Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Unified Diff: chrome/browser/component_updater/component_updater_prefs.cc

Issue 2928823003: Make it possible to build without enable_supervised_users.
Patch Set: Does it still compile with the feature enabled? Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/component_updater_prefs.cc
diff --git a/chrome/browser/component_updater/component_updater_prefs.cc b/chrome/browser/component_updater/component_updater_prefs.cc
index 7a6604e27c123fa46af74e945bba7171ac82bcf8..bccc32bd1e80732a934469d6b7343a4f00a58a0f 100644
--- a/chrome/browser/component_updater/component_updater_prefs.cc
+++ b/chrome/browser/component_updater/component_updater_prefs.cc
@@ -7,7 +7,11 @@
#include "chrome/browser/component_updater/chrome_component_updater_configurator.h"
#include "chrome/browser/component_updater/recovery_component_installer.h"
#include "chrome/browser/component_updater/recovery_improved_component_installer.h"
+#include "chrome/common/features.h"
+
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
#include "chrome/browser/component_updater/supervised_user_whitelist_installer.h"
+#endif
namespace component_updater {
@@ -15,7 +19,10 @@ void RegisterPrefs(PrefRegistrySimple* registry) {
RegisterPrefsForChromeComponentUpdaterConfigurator(registry);
RegisterPrefsForRecoveryComponent(registry);
RegisterPrefsForRecoveryImprovedComponent(registry);
+
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
SupervisedUserWhitelistInstaller::RegisterPrefs(registry);
+#endif
}
} // namespace component_updater
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/component_updater/supervised_user_whitelist_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698