Bind PluginUser.Factory in PluginModule

This factory is required by some plugin classes, and only used when
plugins are loaded. It makes more sense to bundle it in PluginModule,
where the other Plugin-related classes are bound

Change-Id: If7f8c086356e403ea06c9a218140be6fa3b60df8
This commit is contained in:
Maxime Guerreiro
2018-05-15 16:02:13 +00:00
parent 304e5db452
commit 0f3a9e2649
4 changed files with 7 additions and 2 deletions

View File

@@ -76,7 +76,6 @@ import com.google.gerrit.server.ChangeFinder;
import com.google.gerrit.server.CmdLineParserModule;
import com.google.gerrit.server.CreateGroupPermissionSyncer;
import com.google.gerrit.server.IdentifiedUser;
import com.google.gerrit.server.PluginUser;
import com.google.gerrit.server.Sequences;
import com.google.gerrit.server.account.AccountCacheImpl;
import com.google.gerrit.server.account.AccountControl;
@@ -262,7 +261,6 @@ public class GerritGlobalModule extends FactoryModule {
factory(MergedSender.Factory.class);
factory(MergeUtil.Factory.class);
factory(PatchScriptFactory.Factory.class);
factory(PluginUser.Factory.class);
factory(ProjectState.Factory.class);
factory(RegisterNewEmailSender.Factory.class);
factory(ReplacePatchSetSender.Factory.class);