| 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" |
| 11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "chrome/browser/about_flags.h" | 13 #include "chrome/browser/about_flags.h" |
| 14 #include "chrome/browser/accessibility/invert_bubble_prefs.h" | 14 #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
| 15 #include "chrome/browser/browser_process_impl.h" | 15 #include "chrome/browser/browser_process_impl.h" |
| 16 #include "chrome/browser/browser_shutdown.h" | 16 #include "chrome/browser/browser_shutdown.h" |
| 17 #include "chrome/browser/budget_service/background_budget_service.h" | 17 #include "chrome/browser/budget_service/background_budget_service.h" |
| 18 #include "chrome/browser/chrome_content_browser_client.h" | 18 #include "chrome/browser/chrome_content_browser_client.h" |
| 19 #include "chrome/browser/component_updater/recovery_component_installer.h" | 19 #include "chrome/browser/component_updater/component_updater_prefs.h" |
| 20 #include "chrome/browser/component_updater/supervised_user_whitelist_installer.h
" | |
| 21 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 20 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 22 #include "chrome/browser/devtools/devtools_window.h" | 21 #include "chrome/browser/devtools/devtools_window.h" |
| 23 #include "chrome/browser/download/download_prefs.h" | 22 #include "chrome/browser/download/download_prefs.h" |
| 24 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 23 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 25 #include "chrome/browser/first_run/first_run.h" | 24 #include "chrome/browser/first_run/first_run.h" |
| 26 #include "chrome/browser/geolocation/geolocation_prefs.h" | 25 #include "chrome/browser/geolocation/geolocation_prefs.h" |
| 27 #include "chrome/browser/gpu/gpu_mode_manager.h" | 26 #include "chrome/browser/gpu/gpu_mode_manager.h" |
| 28 #include "chrome/browser/gpu/gpu_profile_cache.h" | 27 #include "chrome/browser/gpu/gpu_profile_cache.h" |
| 29 #include "chrome/browser/intranet_redirect_detector.h" | 28 #include "chrome/browser/intranet_redirect_detector.h" |
| 30 #include "chrome/browser/io_thread.h" | 29 #include "chrome/browser/io_thread.h" |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 namespace chrome { | 321 namespace chrome { |
| 323 | 322 |
| 324 void RegisterLocalState(PrefRegistrySimple* registry) { | 323 void RegisterLocalState(PrefRegistrySimple* registry) { |
| 325 // Please keep this list alphabetized. | 324 // Please keep this list alphabetized. |
| 326 AppListService::RegisterPrefs(registry); | 325 AppListService::RegisterPrefs(registry); |
| 327 browser_shutdown::RegisterPrefs(registry); | 326 browser_shutdown::RegisterPrefs(registry); |
| 328 BrowserProcessImpl::RegisterPrefs(registry); | 327 BrowserProcessImpl::RegisterPrefs(registry); |
| 329 ChromeMetricsServiceClient::RegisterPrefs(registry); | 328 ChromeMetricsServiceClient::RegisterPrefs(registry); |
| 330 ChromeTracingDelegate::RegisterPrefs(registry); | 329 ChromeTracingDelegate::RegisterPrefs(registry); |
| 331 variations::VariationsService::RegisterPrefs(registry); | 330 variations::VariationsService::RegisterPrefs(registry); |
| 332 component_updater::RegisterPrefsForRecoveryComponent(registry); | 331 component_updater::RegisterPrefs(registry); |
| 333 component_updater::SupervisedUserWhitelistInstaller::RegisterPrefs(registry); | |
| 334 ExternalProtocolHandler::RegisterPrefs(registry); | 332 ExternalProtocolHandler::RegisterPrefs(registry); |
| 335 flags_ui::PrefServiceFlagsStorage::RegisterPrefs(registry); | 333 flags_ui::PrefServiceFlagsStorage::RegisterPrefs(registry); |
| 336 geolocation::RegisterPrefs(registry); | 334 geolocation::RegisterPrefs(registry); |
| 337 GpuModeManager::RegisterPrefs(registry); | 335 GpuModeManager::RegisterPrefs(registry); |
| 338 GpuProfileCache::RegisterPrefs(registry); | 336 GpuProfileCache::RegisterPrefs(registry); |
| 339 IntranetRedirectDetector::RegisterPrefs(registry); | 337 IntranetRedirectDetector::RegisterPrefs(registry); |
| 340 IOThread::RegisterPrefs(registry); | 338 IOThread::RegisterPrefs(registry); |
| 341 network_time::NetworkTimeTracker::RegisterPrefs(registry); | 339 network_time::NetworkTimeTracker::RegisterPrefs(registry); |
| 342 OriginTrialPrefs::RegisterPrefs(registry); | 340 OriginTrialPrefs::RegisterPrefs(registry); |
| 343 PrefProxyConfigTrackerImpl::RegisterPrefs(registry); | 341 PrefProxyConfigTrackerImpl::RegisterPrefs(registry); |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 // Added 5/2016. | 735 // Added 5/2016. |
| 738 profile_prefs->ClearPref(kDesktopSearchRedirectionInfobarShownPref); | 736 profile_prefs->ClearPref(kDesktopSearchRedirectionInfobarShownPref); |
| 739 | 737 |
| 740 // Added 7/2016. | 738 // Added 7/2016. |
| 741 DeleteWebRTCIdentityStoreDB(profile); | 739 DeleteWebRTCIdentityStoreDB(profile); |
| 742 profile_prefs->ClearPref(kNetworkPredictionEnabled); | 740 profile_prefs->ClearPref(kNetworkPredictionEnabled); |
| 743 profile_prefs->ClearPref(kDisableSpdy); | 741 profile_prefs->ClearPref(kDisableSpdy); |
| 744 } | 742 } |
| 745 | 743 |
| 746 } // namespace chrome | 744 } // namespace chrome |
| OLD | NEW |