| 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/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "base/trace_event/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #include "components/autofill/core/browser/autofill_manager.h" | 70 #include "components/autofill/core/browser/autofill_manager.h" |
| 71 #include "components/content_settings/core/browser/host_content_settings_map.h" | 71 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 72 #include "components/dom_distiller/core/distilled_page_prefs.h" | 72 #include "components/dom_distiller/core/distilled_page_prefs.h" |
| 73 #include "components/flags_ui/pref_service_flags_storage.h" | 73 #include "components/flags_ui/pref_service_flags_storage.h" |
| 74 #include "components/gcm_driver/gcm_channel_status_syncer.h" | 74 #include "components/gcm_driver/gcm_channel_status_syncer.h" |
| 75 #include "components/network_time/network_time_tracker.h" | 75 #include "components/network_time/network_time_tracker.h" |
| 76 #include "components/ntp_snippets/ntp_snippets_service.h" | 76 #include "components/ntp_snippets/ntp_snippets_service.h" |
| 77 #include "components/omnibox/browser/zero_suggest_provider.h" | 77 #include "components/omnibox/browser/zero_suggest_provider.h" |
| 78 #include "components/password_manager/core/browser/password_bubble_experiment.h" | 78 #include "components/password_manager/core/browser/password_bubble_experiment.h" |
| 79 #include "components/password_manager/core/browser/password_manager.h" | 79 #include "components/password_manager/core/browser/password_manager.h" |
| 80 #include "components/policy/core/browser/browser_policy_connector.h" |
| 81 #include "components/policy/core/browser/url_blacklist_manager.h" |
| 82 #include "components/policy/core/common/policy_statistics_collector.h" |
| 80 #include "components/pref_registry/pref_registry_syncable.h" | 83 #include "components/pref_registry/pref_registry_syncable.h" |
| 81 #include "components/prefs/pref_registry_simple.h" | 84 #include "components/prefs/pref_registry_simple.h" |
| 82 #include "components/prefs/pref_service.h" | 85 #include "components/prefs/pref_service.h" |
| 83 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" | 86 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" |
| 84 #include "components/rappor/rappor_service.h" | 87 #include "components/rappor/rappor_service.h" |
| 85 #include "components/search_engines/template_url_prepopulate_data.h" | 88 #include "components/search_engines/template_url_prepopulate_data.h" |
| 86 #include "components/ssl_config/ssl_config_service_manager.h" | 89 #include "components/ssl_config/ssl_config_service_manager.h" |
| 87 #include "components/startup_metric_utils/browser/startup_metric_utils.h" | 90 #include "components/startup_metric_utils/browser/startup_metric_utils.h" |
| 88 #include "components/sync_driver/sync_prefs.h" | 91 #include "components/sync_driver/sync_prefs.h" |
| 89 #include "components/syncable_prefs/pref_service_syncable.h" | 92 #include "components/syncable_prefs/pref_service_syncable.h" |
| 90 #include "components/translate/core/browser/translate_prefs.h" | 93 #include "components/translate/core/browser/translate_prefs.h" |
| 91 #include "components/variations/service/variations_service.h" | 94 #include "components/variations/service/variations_service.h" |
| 92 #include "components/web_resource/promo_resource_service.h" | 95 #include "components/web_resource/promo_resource_service.h" |
| 93 #include "content/public/browser/render_process_host.h" | 96 #include "content/public/browser/render_process_host.h" |
| 94 #include "net/http/http_server_properties_manager.h" | 97 #include "net/http/http_server_properties_manager.h" |
| 95 | 98 |
| 96 #if defined(ENABLE_AUTOFILL_DIALOG) | 99 #if defined(ENABLE_AUTOFILL_DIALOG) |
| 97 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 100 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
| 98 #endif | 101 #endif |
| 99 | 102 |
| 100 #if BUILDFLAG(ENABLE_BACKGROUND) | 103 #if BUILDFLAG(ENABLE_BACKGROUND) |
| 101 #include "chrome/browser/background/background_mode_manager.h" | 104 #include "chrome/browser/background/background_mode_manager.h" |
| 102 #endif | 105 #endif |
| 103 | 106 |
| 104 #if defined(ENABLE_CONFIGURATION_POLICY) | |
| 105 #include "components/policy/core/browser/browser_policy_connector.h" | |
| 106 #include "components/policy/core/browser/url_blacklist_manager.h" | |
| 107 #include "components/policy/core/common/policy_statistics_collector.h" | |
| 108 #endif | |
| 109 | |
| 110 #if defined(ENABLE_EXTENSIONS) | 107 #if defined(ENABLE_EXTENSIONS) |
| 111 #include "chrome/browser/accessibility/animation_policy_prefs.h" | 108 #include "chrome/browser/accessibility/animation_policy_prefs.h" |
| 112 #include "chrome/browser/apps/drive/drive_app_mapping.h" | 109 #include "chrome/browser/apps/drive/drive_app_mapping.h" |
| 113 #include "chrome/browser/apps/shortcut_manager.h" | 110 #include "chrome/browser/apps/shortcut_manager.h" |
| 114 #include "chrome/browser/extensions/activity_log/activity_log.h" | 111 #include "chrome/browser/extensions/activity_log/activity_log.h" |
| 115 #include "chrome/browser/extensions/api/commands/command_service.h" | 112 #include "chrome/browser/extensions/api/commands/command_service.h" |
| 116 #include "chrome/browser/extensions/api/copresence/copresence_api.h" | 113 #include "chrome/browser/extensions/api/copresence/copresence_api.h" |
| 117 #include "chrome/browser/extensions/api/tabs/tabs_api.h" | 114 #include "chrome/browser/extensions/api/tabs/tabs_api.h" |
| 118 #include "chrome/browser/extensions/component_migration_helper.h" | 115 #include "chrome/browser/extensions/component_migration_helper.h" |
| 119 #include "chrome/browser/extensions/extension_web_ui.h" | 116 #include "chrome/browser/extensions/extension_web_ui.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 RegisterScreenshotPrefs(registry); | 301 RegisterScreenshotPrefs(registry); |
| 305 SigninManagerFactory::RegisterPrefs(registry); | 302 SigninManagerFactory::RegisterPrefs(registry); |
| 306 ssl_config::SSLConfigServiceManager::RegisterPrefs(registry); | 303 ssl_config::SSLConfigServiceManager::RegisterPrefs(registry); |
| 307 startup_metric_utils::RegisterPrefs(registry); | 304 startup_metric_utils::RegisterPrefs(registry); |
| 308 web_resource::PromoResourceService::RegisterPrefs(registry); | 305 web_resource::PromoResourceService::RegisterPrefs(registry); |
| 309 | 306 |
| 310 #if defined(ENABLE_AUTOFILL_DIALOG) | 307 #if defined(ENABLE_AUTOFILL_DIALOG) |
| 311 autofill::AutofillDialogController::RegisterPrefs(registry); | 308 autofill::AutofillDialogController::RegisterPrefs(registry); |
| 312 #endif | 309 #endif |
| 313 | 310 |
| 314 #if defined(ENABLE_CONFIGURATION_POLICY) | |
| 315 policy::BrowserPolicyConnector::RegisterPrefs(registry); | 311 policy::BrowserPolicyConnector::RegisterPrefs(registry); |
| 316 policy::PolicyStatisticsCollector::RegisterPrefs(registry); | 312 policy::PolicyStatisticsCollector::RegisterPrefs(registry); |
| 317 #endif | |
| 318 | 313 |
| 319 #if defined(ENABLE_EXTENSIONS) | 314 #if defined(ENABLE_EXTENSIONS) |
| 320 EasyUnlockService::RegisterPrefs(registry); | 315 EasyUnlockService::RegisterPrefs(registry); |
| 321 #endif | 316 #endif |
| 322 | 317 |
| 323 #if defined(ENABLE_PLUGINS) | 318 #if defined(ENABLE_PLUGINS) |
| 324 PluginFinder::RegisterPrefs(registry); | 319 PluginFinder::RegisterPrefs(registry); |
| 325 #endif | 320 #endif |
| 326 | 321 |
| 327 #if defined(ENABLE_PLUGIN_INSTALLATION) | 322 #if defined(ENABLE_PLUGIN_INSTALLATION) |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 ZeroSuggestProvider::RegisterProfilePrefs(registry); | 437 ZeroSuggestProvider::RegisterProfilePrefs(registry); |
| 443 | 438 |
| 444 #if defined(ENABLE_APP_LIST) | 439 #if defined(ENABLE_APP_LIST) |
| 445 app_list::AppListPrefs::RegisterProfilePrefs(registry); | 440 app_list::AppListPrefs::RegisterProfilePrefs(registry); |
| 446 #endif | 441 #endif |
| 447 | 442 |
| 448 #if defined(ENABLE_AUTOFILL_DIALOG) | 443 #if defined(ENABLE_AUTOFILL_DIALOG) |
| 449 autofill::AutofillDialogController::RegisterProfilePrefs(registry); | 444 autofill::AutofillDialogController::RegisterProfilePrefs(registry); |
| 450 #endif | 445 #endif |
| 451 | 446 |
| 452 #if defined(ENABLE_CONFIGURATION_POLICY) | |
| 453 policy::URLBlacklistManager::RegisterProfilePrefs(registry); | 447 policy::URLBlacklistManager::RegisterProfilePrefs(registry); |
| 454 #endif | |
| 455 | 448 |
| 456 #if defined(ENABLE_EXTENSIONS) | 449 #if defined(ENABLE_EXTENSIONS) |
| 457 EasyUnlockService::RegisterProfilePrefs(registry); | 450 EasyUnlockService::RegisterProfilePrefs(registry); |
| 458 ExtensionWebUI::RegisterProfilePrefs(registry); | 451 ExtensionWebUI::RegisterProfilePrefs(registry); |
| 459 RegisterAnimationPolicyPrefs(registry); | 452 RegisterAnimationPolicyPrefs(registry); |
| 460 ToolbarActionsBar::RegisterProfilePrefs(registry); | 453 ToolbarActionsBar::RegisterProfilePrefs(registry); |
| 461 extensions::ActivityLog::RegisterProfilePrefs(registry); | 454 extensions::ActivityLog::RegisterProfilePrefs(registry); |
| 462 extensions::ComponentMigrationHelper::RegisterPrefs(registry); | 455 extensions::ComponentMigrationHelper::RegisterPrefs(registry); |
| 463 extensions::CopresenceService::RegisterProfilePrefs(registry); | 456 extensions::CopresenceService::RegisterProfilePrefs(registry); |
| 464 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); | 457 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 profile_prefs->ClearPref(kOverscrollVerticalThresholdComplete); | 652 profile_prefs->ClearPref(kOverscrollVerticalThresholdComplete); |
| 660 profile_prefs->ClearPref(kOverscrollMinimumThresholdStart); | 653 profile_prefs->ClearPref(kOverscrollMinimumThresholdStart); |
| 661 profile_prefs->ClearPref(kOverscrollMinimumThresholdStartTouchpad); | 654 profile_prefs->ClearPref(kOverscrollMinimumThresholdStartTouchpad); |
| 662 profile_prefs->ClearPref(kOverscrollVerticalThresholdStart); | 655 profile_prefs->ClearPref(kOverscrollVerticalThresholdStart); |
| 663 profile_prefs->ClearPref(kOverscrollHorizontalResistThreshold); | 656 profile_prefs->ClearPref(kOverscrollHorizontalResistThreshold); |
| 664 profile_prefs->ClearPref(kOverscrollVerticalResistThreshold); | 657 profile_prefs->ClearPref(kOverscrollVerticalResistThreshold); |
| 665 #endif // defined(USE_AURA) | 658 #endif // defined(USE_AURA) |
| 666 } | 659 } |
| 667 | 660 |
| 668 } // namespace chrome | 661 } // namespace chrome |
| OLD | NEW |