OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/prefs/browser_prefs.h" | 5 #include "chrome/browser/prefs/browser_prefs.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 #include "chrome/browser/extensions/api/enterprise_platform_keys_private/enterpr
ise_platform_keys_private_api.h" | 221 #include "chrome/browser/extensions/api/enterprise_platform_keys_private/enterpr
ise_platform_keys_private_api.h" |
222 #include "chrome/browser/extensions/extension_assets_manager_chromeos.h" | 222 #include "chrome/browser/extensions/extension_assets_manager_chromeos.h" |
223 #include "chrome/browser/media/protected_media_identifier_permission_context.h" | 223 #include "chrome/browser/media/protected_media_identifier_permission_context.h" |
224 #include "chrome/browser/metrics/chromeos_metrics_provider.h" | 224 #include "chrome/browser/metrics/chromeos_metrics_provider.h" |
225 #include "chrome/browser/ui/webui/chromeos/login/enable_debugging_screen_handler
.h" | 225 #include "chrome/browser/ui/webui/chromeos/login/enable_debugging_screen_handler
.h" |
226 #include "chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h" | 226 #include "chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h" |
227 #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h" | 227 #include "chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h" |
228 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" | 228 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
229 #include "chromeos/audio/audio_devices_pref_handler_impl.h" | 229 #include "chromeos/audio/audio_devices_pref_handler_impl.h" |
230 #include "chromeos/chromeos_switches.h" | 230 #include "chromeos/chromeos_switches.h" |
231 #include "chromeos/components/tether/initializer.h" | |
232 #include "chromeos/network/proxy/proxy_config_handler.h" | 231 #include "chromeos/network/proxy/proxy_config_handler.h" |
233 #include "chromeos/timezone/timezone_resolver.h" | 232 #include "chromeos/timezone/timezone_resolver.h" |
234 #include "components/invalidation/impl/invalidator_storage.h" | 233 #include "components/invalidation/impl/invalidator_storage.h" |
235 #include "components/onc/onc_pref_names.h" | 234 #include "components/onc/onc_pref_names.h" |
236 #include "components/quirks/quirks_manager.h" | 235 #include "components/quirks/quirks_manager.h" |
237 #else | 236 #else |
238 #include "chrome/browser/extensions/default_apps.h" | 237 #include "chrome/browser/extensions/default_apps.h" |
239 #endif | 238 #endif |
240 | 239 |
241 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST) | 240 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST) |
242 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" | 241 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" |
243 #endif | 242 #endif |
244 | 243 |
245 #if defined(OS_CHROMEOS) || BUILDFLAG(ENABLE_EXTENSIONS) | |
246 #include "components/cryptauth/cryptauth_service.h" | |
247 #endif | |
248 | |
249 #if defined(OS_MACOSX) | 244 #if defined(OS_MACOSX) |
250 #include "chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.h" | 245 #include "chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.h" |
251 #include "chrome/browser/ui/cocoa/confirm_quit.h" | 246 #include "chrome/browser/ui/cocoa/confirm_quit.h" |
252 #endif | 247 #endif |
253 | 248 |
254 #if defined(OS_WIN) | 249 #if defined(OS_WIN) |
255 #include "chrome/browser/apps/app_launch_for_metro_restart_win.h" | 250 #include "chrome/browser/apps/app_launch_for_metro_restart_win.h" |
256 #include "chrome/browser/component_updater/sw_reporter_installer_win.h" | 251 #include "chrome/browser/component_updater/sw_reporter_installer_win.h" |
257 #include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prom
pt_prefs_manager.h" | 252 #include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prom
pt_prefs_manager.h" |
258 #include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h" | 253 #include "chrome/browser/ui/desktop_ios_promotion/desktop_ios_promotion_util.h" |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); | 509 TemplateURLPrepopulateData::RegisterProfilePrefs(registry); |
515 translate::LanguageModel::RegisterProfilePrefs(registry); | 510 translate::LanguageModel::RegisterProfilePrefs(registry); |
516 translate::TranslatePrefs::RegisterProfilePrefs(registry); | 511 translate::TranslatePrefs::RegisterProfilePrefs(registry); |
517 UINetworkQualityEstimatorService::RegisterProfilePrefs(registry); | 512 UINetworkQualityEstimatorService::RegisterProfilePrefs(registry); |
518 ZeroSuggestProvider::RegisterProfilePrefs(registry); | 513 ZeroSuggestProvider::RegisterProfilePrefs(registry); |
519 browsing_data::prefs::RegisterBrowserUserPrefs(registry); | 514 browsing_data::prefs::RegisterBrowserUserPrefs(registry); |
520 | 515 |
521 policy::URLBlacklistManager::RegisterProfilePrefs(registry); | 516 policy::URLBlacklistManager::RegisterProfilePrefs(registry); |
522 certificate_transparency::CTPolicyManager::RegisterPrefs(registry); | 517 certificate_transparency::CTPolicyManager::RegisterPrefs(registry); |
523 | 518 |
524 #if BUILDFLAG(ENABLE_EXTENSIONS) || defined(OS_CHROMEOS) | |
525 cryptauth::CryptAuthService::RegisterProfilePrefs(registry); | |
526 #endif | |
527 | |
528 #if BUILDFLAG(ENABLE_EXTENSIONS) | 519 #if BUILDFLAG(ENABLE_EXTENSIONS) |
529 EasyUnlockService::RegisterProfilePrefs(registry); | |
530 ExtensionWebUI::RegisterProfilePrefs(registry); | 520 ExtensionWebUI::RegisterProfilePrefs(registry); |
531 RegisterAnimationPolicyPrefs(registry); | 521 RegisterAnimationPolicyPrefs(registry); |
532 ToolbarActionsBar::RegisterProfilePrefs(registry); | 522 ToolbarActionsBar::RegisterProfilePrefs(registry); |
533 extensions::ActivityLog::RegisterProfilePrefs(registry); | 523 extensions::ActivityLog::RegisterProfilePrefs(registry); |
534 extensions::AudioAPI::RegisterUserPrefs(registry); | 524 extensions::AudioAPI::RegisterUserPrefs(registry); |
535 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); | 525 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); |
536 extensions::launch_util::RegisterProfilePrefs(registry); | 526 extensions::launch_util::RegisterProfilePrefs(registry); |
537 extensions::RuntimeAPI::RegisterPrefs(registry); | 527 extensions::RuntimeAPI::RegisterPrefs(registry); |
538 #endif // BUILDFLAG(ENABLE_EXTENSIONS) | 528 #endif // BUILDFLAG(ENABLE_EXTENSIONS) |
539 | 529 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 chromeos::file_system_provider::RegisterProfilePrefs(registry); | 603 chromeos::file_system_provider::RegisterProfilePrefs(registry); |
614 chromeos::KeyPermissions::RegisterProfilePrefs(registry); | 604 chromeos::KeyPermissions::RegisterProfilePrefs(registry); |
615 chromeos::MultiProfileUserController::RegisterProfilePrefs(registry); | 605 chromeos::MultiProfileUserController::RegisterProfilePrefs(registry); |
616 chromeos::quick_unlock::PinStorage::RegisterProfilePrefs(registry); | 606 chromeos::quick_unlock::PinStorage::RegisterProfilePrefs(registry); |
617 chromeos::Preferences::RegisterProfilePrefs(registry); | 607 chromeos::Preferences::RegisterProfilePrefs(registry); |
618 chromeos::PrintersManager::RegisterProfilePrefs(registry); | 608 chromeos::PrintersManager::RegisterProfilePrefs(registry); |
619 chromeos::quick_unlock::RegisterProfilePrefs(registry); | 609 chromeos::quick_unlock::RegisterProfilePrefs(registry); |
620 chromeos::SAMLOfflineSigninLimiter::RegisterProfilePrefs(registry); | 610 chromeos::SAMLOfflineSigninLimiter::RegisterProfilePrefs(registry); |
621 chromeos::ServicesCustomizationDocument::RegisterProfilePrefs(registry); | 611 chromeos::ServicesCustomizationDocument::RegisterProfilePrefs(registry); |
622 chromeos::system::InputDeviceSettings::RegisterProfilePrefs(registry); | 612 chromeos::system::InputDeviceSettings::RegisterProfilePrefs(registry); |
623 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | |
624 chromeos::switches::kEnableTether)) { | |
625 chromeos::tether::Initializer::RegisterProfilePrefs(registry); | |
626 } | |
627 chromeos::UserImageSyncObserver::RegisterProfilePrefs(registry); | 613 chromeos::UserImageSyncObserver::RegisterProfilePrefs(registry); |
628 extensions::EPKPChallengeUserKey::RegisterProfilePrefs(registry); | 614 extensions::EPKPChallengeUserKey::RegisterProfilePrefs(registry); |
629 flags_ui::PrefServiceFlagsStorage::RegisterProfilePrefs(registry); | 615 flags_ui::PrefServiceFlagsStorage::RegisterProfilePrefs(registry); |
630 policy::DeviceStatusCollector::RegisterProfilePrefs(registry); | 616 policy::DeviceStatusCollector::RegisterProfilePrefs(registry); |
631 ::onc::RegisterProfilePrefs(registry); | 617 ::onc::RegisterProfilePrefs(registry); |
632 #endif | 618 #endif |
633 | 619 |
634 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST) | 620 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST) |
635 ArcAppListPrefs::RegisterProfilePrefs(registry); | 621 ArcAppListPrefs::RegisterProfilePrefs(registry); |
636 #endif | 622 #endif |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 } | 811 } |
826 | 812 |
827 std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() { | 813 std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() { |
828 auto pref_stores = ExpectedPrefStores(); | 814 auto pref_stores = ExpectedPrefStores(); |
829 pref_stores.erase(PrefValueStore::DEFAULT_STORE); | 815 pref_stores.erase(PrefValueStore::DEFAULT_STORE); |
830 pref_stores.erase(PrefValueStore::USER_STORE); | 816 pref_stores.erase(PrefValueStore::USER_STORE); |
831 return pref_stores; | 817 return pref_stores; |
832 } | 818 } |
833 | 819 |
834 } // namespace chrome | 820 } // namespace chrome |
OLD | NEW |