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

Unified Diff: chrome/browser/prefs/browser_prefs.cc

Issue 2819713002: Create TetherService, a TetherAllowed pref, and use DependencyManager for RegisterProfilePrefs call… (Closed)
Patch Set: Create an IsEnabled method on TetherService. Created 3 years, 8 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/prefs/browser_prefs.cc
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index f0b7344a7bd714456f102be662b473cac64183e5..5986cf5c9c5da7fc17705657438fc6acb7a78d6e 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -228,7 +228,6 @@
#include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
#include "chromeos/audio/audio_devices_pref_handler_impl.h"
#include "chromeos/chromeos_switches.h"
-#include "chromeos/components/tether/initializer.h"
#include "chromeos/network/proxy/proxy_config_handler.h"
#include "chromeos/timezone/timezone_resolver.h"
#include "components/invalidation/impl/invalidator_storage.h"
@@ -242,10 +241,6 @@
#include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
#endif
-#if defined(OS_CHROMEOS) || BUILDFLAG(ENABLE_EXTENSIONS)
-#include "components/cryptauth/cryptauth_service.h"
-#endif
-
#if defined(OS_MACOSX)
#include "chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.h"
#include "chrome/browser/ui/cocoa/confirm_quit.h"
@@ -521,12 +516,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
policy::URLBlacklistManager::RegisterProfilePrefs(registry);
certificate_transparency::CTPolicyManager::RegisterPrefs(registry);
-#if BUILDFLAG(ENABLE_EXTENSIONS) || defined(OS_CHROMEOS)
- cryptauth::CryptAuthService::RegisterProfilePrefs(registry);
-#endif
-
#if BUILDFLAG(ENABLE_EXTENSIONS)
- EasyUnlockService::RegisterProfilePrefs(registry);
ExtensionWebUI::RegisterProfilePrefs(registry);
RegisterAnimationPolicyPrefs(registry);
ToolbarActionsBar::RegisterProfilePrefs(registry);
@@ -620,10 +610,6 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
chromeos::SAMLOfflineSigninLimiter::RegisterProfilePrefs(registry);
chromeos::ServicesCustomizationDocument::RegisterProfilePrefs(registry);
chromeos::system::InputDeviceSettings::RegisterProfilePrefs(registry);
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- chromeos::switches::kEnableTether)) {
- chromeos::tether::Initializer::RegisterProfilePrefs(registry);
- }
chromeos::UserImageSyncObserver::RegisterProfilePrefs(registry);
extensions::EPKPChallengeUserKey::RegisterProfilePrefs(registry);
flags_ui::PrefServiceFlagsStorage::RegisterProfilePrefs(registry);

Powered by Google App Engine
This is Rietveld 408576698