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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
12 #include "chrome/browser/about_flags.h" | 12 #include "chrome/browser/about_flags.h" |
13 #include "chrome/browser/accessibility/invert_bubble_prefs.h" | 13 #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
14 #include "chrome/browser/apps/drive/drive_app_mapping.h" | 14 #include "chrome/browser/apps/drive/drive_app_mapping.h" |
15 #include "chrome/browser/apps/shortcut_manager.h" | 15 #include "chrome/browser/apps/shortcut_manager.h" |
16 #include "chrome/browser/autocomplete/zero_suggest_provider.h" | 16 #include "chrome/browser/autocomplete/zero_suggest_provider.h" |
17 #include "chrome/browser/background/background_mode_manager.h" | 17 #include "chrome/browser/background/background_mode_manager.h" |
18 #include "chrome/browser/browser_process_impl.h" | 18 #include "chrome/browser/browser_process_impl.h" |
19 #include "chrome/browser/browser_shutdown.h" | 19 #include "chrome/browser/browser_shutdown.h" |
20 #include "chrome/browser/chrome_content_browser_client.h" | 20 #include "chrome/browser/chrome_content_browser_client.h" |
21 #include "chrome/browser/component_updater/recovery_component_installer.h" | 21 #include "chrome/browser/component_updater/recovery_component_installer.h" |
22 #include "chrome/browser/content_settings/host_content_settings_map.h" | 22 #include "chrome/browser/content_settings/host_content_settings_map.h" |
23 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 23 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
24 #include "chrome/browser/devtools/devtools_window.h" | 24 #include "chrome/browser/devtools/devtools_window.h" |
25 #include "chrome/browser/download/download_prefs.h" | 25 #include "chrome/browser/download/download_prefs.h" |
26 #include "chrome/browser/extensions/extension_web_ui.h" | |
27 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 26 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
28 #include "chrome/browser/first_run/first_run.h" | 27 #include "chrome/browser/first_run/first_run.h" |
29 #include "chrome/browser/geolocation/geolocation_prefs.h" | 28 #include "chrome/browser/geolocation/geolocation_prefs.h" |
30 #include "chrome/browser/google/google_url_tracker_factory.h" | 29 #include "chrome/browser/google/google_url_tracker_factory.h" |
31 #include "chrome/browser/gpu/gl_string_manager.h" | 30 #include "chrome/browser/gpu/gl_string_manager.h" |
32 #include "chrome/browser/gpu/gpu_mode_manager.h" | 31 #include "chrome/browser/gpu/gpu_mode_manager.h" |
33 #include "chrome/browser/intranet_redirect_detector.h" | 32 #include "chrome/browser/intranet_redirect_detector.h" |
34 #include "chrome/browser/io_thread.h" | 33 #include "chrome/browser/io_thread.h" |
35 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 34 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
36 #include "chrome/browser/media/media_device_id_salt.h" | 35 #include "chrome/browser/media/media_device_id_salt.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 #include "components/google/core/browser/google_pref_names.h" | 87 #include "components/google/core/browser/google_pref_names.h" |
89 #include "components/google/core/browser/google_url_tracker.h" | 88 #include "components/google/core/browser/google_url_tracker.h" |
90 #include "components/network_time/network_time_tracker.h" | 89 #include "components/network_time/network_time_tracker.h" |
91 #include "components/password_manager/core/browser/password_manager.h" | 90 #include "components/password_manager/core/browser/password_manager.h" |
92 #include "components/pref_registry/pref_registry_syncable.h" | 91 #include "components/pref_registry/pref_registry_syncable.h" |
93 #include "components/rappor/rappor_service.h" | 92 #include "components/rappor/rappor_service.h" |
94 #include "components/search_engines/template_url_prepopulate_data.h" | 93 #include "components/search_engines/template_url_prepopulate_data.h" |
95 #include "components/sync_driver/sync_prefs.h" | 94 #include "components/sync_driver/sync_prefs.h" |
96 #include "components/translate/core/browser/translate_prefs.h" | 95 #include "components/translate/core/browser/translate_prefs.h" |
97 #include "content/public/browser/render_process_host.h" | 96 #include "content/public/browser/render_process_host.h" |
98 #include "extensions/browser/extension_prefs.h" | |
99 #include "net/http/http_server_properties_manager.h" | 97 #include "net/http/http_server_properties_manager.h" |
100 | 98 |
101 #if defined(ENABLE_AUTOFILL_DIALOG) | 99 #if defined(ENABLE_AUTOFILL_DIALOG) |
102 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 100 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
103 #endif | 101 #endif |
104 | 102 |
105 #if defined(ENABLE_CONFIGURATION_POLICY) | 103 #if defined(ENABLE_CONFIGURATION_POLICY) |
106 #include "components/policy/core/browser/browser_policy_connector.h" | 104 #include "components/policy/core/browser/browser_policy_connector.h" |
107 #include "components/policy/core/browser/url_blacklist_manager.h" | 105 #include "components/policy/core/browser/url_blacklist_manager.h" |
108 #include "components/policy/core/common/policy_statistics_collector.h" | 106 #include "components/policy/core/common/policy_statistics_collector.h" |
109 #endif | 107 #endif |
110 | 108 |
111 #if defined(ENABLE_EXTENSIONS) | 109 #if defined(ENABLE_EXTENSIONS) |
112 #include "apps/prefs.h" | 110 #include "apps/prefs.h" |
113 #include "chrome/browser/extensions/activity_log/activity_log.h" | 111 #include "chrome/browser/extensions/activity_log/activity_log.h" |
114 #include "chrome/browser/extensions/api/commands/command_service.h" | 112 #include "chrome/browser/extensions/api/commands/command_service.h" |
115 #include "chrome/browser/extensions/api/tabs/tabs_api.h" | 113 #include "chrome/browser/extensions/api/tabs/tabs_api.h" |
| 114 #include "chrome/browser/extensions/extension_web_ui.h" |
116 #include "chrome/browser/extensions/launch_util.h" | 115 #include "chrome/browser/extensions/launch_util.h" |
117 #include "chrome/browser/signin/easy_unlock_service.h" | 116 #include "chrome/browser/signin/easy_unlock_service.h" |
| 117 #include "extensions/browser/extension_prefs.h" |
118 #endif | 118 #endif |
119 | 119 |
120 #if defined(ENABLE_MANAGED_USERS) | 120 #if defined(ENABLE_MANAGED_USERS) |
121 #include "chrome/browser/supervised_user/supervised_user_service.h" | 121 #include "chrome/browser/supervised_user/supervised_user_service.h" |
122 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service
.h" | 122 #include "chrome/browser/supervised_user/supervised_user_shared_settings_service
.h" |
123 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" | 123 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" |
124 #endif | 124 #endif |
125 | 125 |
126 #if defined(ENABLE_SERVICE_DISCOVERY) | 126 #if defined(ENABLE_SERVICE_DISCOVERY) |
127 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" | 127 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 399 |
400 #if defined(ENABLE_CONFIGURATION_POLICY) | 400 #if defined(ENABLE_CONFIGURATION_POLICY) |
401 policy::URLBlacklistManager::RegisterProfilePrefs(registry); | 401 policy::URLBlacklistManager::RegisterProfilePrefs(registry); |
402 #endif | 402 #endif |
403 | 403 |
404 #if defined(ENABLE_EXTENSIONS) | 404 #if defined(ENABLE_EXTENSIONS) |
405 apps::RegisterProfilePrefs(registry); | 405 apps::RegisterProfilePrefs(registry); |
406 EasyUnlockService::RegisterProfilePrefs(registry); | 406 EasyUnlockService::RegisterProfilePrefs(registry); |
407 extensions::ActivityLog::RegisterProfilePrefs(registry); | 407 extensions::ActivityLog::RegisterProfilePrefs(registry); |
408 extensions::launch_util::RegisterProfilePrefs(registry); | 408 extensions::launch_util::RegisterProfilePrefs(registry); |
409 #endif | |
410 // TODO(thestig) These should be in ifdef'd out, but too many parts of Chrome | |
411 // still expects it to be registered. | |
412 ExtensionWebUI::RegisterProfilePrefs(registry); | 409 ExtensionWebUI::RegisterProfilePrefs(registry); |
413 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); | 410 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); |
| 411 #endif |
414 | 412 |
415 #if defined(ENABLE_FULL_PRINTING) | 413 #if defined(ENABLE_FULL_PRINTING) |
416 print_dialog_cloud::RegisterProfilePrefs(registry); | 414 print_dialog_cloud::RegisterProfilePrefs(registry); |
417 printing::StickySettings::RegisterProfilePrefs(registry); | 415 printing::StickySettings::RegisterProfilePrefs(registry); |
418 #endif | 416 #endif |
419 | 417 |
420 #if defined(ENABLE_MANAGED_USERS) | 418 #if defined(ENABLE_MANAGED_USERS) |
421 SupervisedUserService::RegisterProfilePrefs(registry); | 419 SupervisedUserService::RegisterProfilePrefs(registry); |
422 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); | 420 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); |
423 SupervisedUserSyncService::RegisterProfilePrefs(registry); | 421 SupervisedUserSyncService::RegisterProfilePrefs(registry); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 #if defined(OS_CHROMEOS) | 605 #if defined(OS_CHROMEOS) |
608 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); | 606 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); |
609 #endif | 607 #endif |
610 | 608 |
611 #if defined(TOOLKIT_VIEWS) | 609 #if defined(TOOLKIT_VIEWS) |
612 MigrateBrowserTabStripPrefs(local_state); | 610 MigrateBrowserTabStripPrefs(local_state); |
613 #endif | 611 #endif |
614 } | 612 } |
615 | 613 |
616 } // namespace chrome | 614 } // namespace chrome |
OLD | NEW |