[email protected] | e41982a7 | 2012-11-20 07:16:51 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 4 | |
[email protected] | 37858e5 | 2010-08-26 00:22:02 | [diff] [blame] | 5 | #include "chrome/browser/prefs/browser_prefs.h" |
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 6 | |
[email protected] | c5d4b184 | 2014-06-20 21:19:50 | [diff] [blame] | 7 | #include <string> |
8 | |||||
rkaplow | 058da313 | 2015-02-19 18:18:38 | [diff] [blame] | 9 | #include "base/metrics/histogram_macros.h" |
[email protected] | 3853a4c | 2013-02-11 17:15:57 | [diff] [blame] | 10 | #include "base/prefs/pref_registry_simple.h" |
11 | #include "base/prefs/pref_service.h" | ||||
wjmaclean | e530aa74 | 2014-10-14 21:43:30 | [diff] [blame] | 12 | #include "base/prefs/scoped_user_pref_update.h" |
primiano | 6221e57 | 2015-01-28 12:14:34 | [diff] [blame] | 13 | #include "base/trace_event/trace_event.h" |
[email protected] | 1a47d7e | 2010-10-15 00:37:24 | [diff] [blame] | 14 | #include "chrome/browser/about_flags.h" |
[email protected] | 7a25d87 | 2012-05-21 19:14:13 | [diff] [blame] | 15 | #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
[email protected] | b1de2c7 | 2013-02-06 02:45:47 | [diff] [blame] | 16 | #include "chrome/browser/browser_process_impl.h" |
[email protected] | c5cf0103 | 2009-02-16 07:00:37 | [diff] [blame] | 17 | #include "chrome/browser/browser_shutdown.h" |
[email protected] | bca1838 | 2012-06-25 19:15:23 | [diff] [blame] | 18 | #include "chrome/browser/chrome_content_browser_client.h" |
[email protected] | 681958c | 2013-02-21 13:48:14 | [diff] [blame] | 19 | #include "chrome/browser/component_updater/recovery_component_installer.h" |
bauerb | 22951c3 | 2015-02-12 13:18:17 | [diff] [blame] | 20 | #include "chrome/browser/component_updater/supervised_user_whitelist_installer.h" |
[email protected] | a6d36cc | 2011-02-23 00:39:48 | [diff] [blame] | 21 | #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
[email protected] | 7001915 | 2012-12-19 11:44:19 | [diff] [blame] | 22 | #include "chrome/browser/devtools/devtools_window.h" |
[email protected] | e5dc422 | 2010-08-30 22:16:32 | [diff] [blame] | 23 | #include "chrome/browser/download/download_prefs.h" |
[email protected] | ed2b100 | 2011-05-25 14:12:10 | [diff] [blame] | 24 | #include "chrome/browser/external_protocol/external_protocol_handler.h" |
[email protected] | 1b3588d | 2012-10-10 21:17:25 | [diff] [blame] | 25 | #include "chrome/browser/first_run/first_run.h" |
[email protected] | 4e48d77 | 2010-02-18 12:11:14 | [diff] [blame] | 26 | #include "chrome/browser/geolocation/geolocation_prefs.h" |
[email protected] | 681958c | 2013-02-21 13:48:14 | [diff] [blame] | 27 | #include "chrome/browser/gpu/gl_string_manager.h" |
[email protected] | e6933d2a | 2013-03-12 22:32:21 | [diff] [blame] | 28 | #include "chrome/browser/gpu/gpu_mode_manager.h" |
[email protected] | 5e9d1f7 | 2011-01-19 14:15:23 | [diff] [blame] | 29 | #include "chrome/browser/intranet_redirect_detector.h" |
[email protected] | 3c319eb | 2013-02-21 14:44:45 | [diff] [blame] | 30 | #include "chrome/browser/io_thread.h" |
[email protected] | 89c6eaf | 2012-11-26 18:52:27 | [diff] [blame] | 31 | #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
[email protected] | cd80cce | 2013-12-02 15:19:19 | [diff] [blame] | 32 | #include "chrome/browser/media/media_device_id_salt.h" |
[email protected] | 7695593 | 2012-12-06 11:01:10 | [diff] [blame] | 33 | #include "chrome/browser/media/media_stream_devices_controller.h" |
[email protected] | 4a55a71 | 2014-06-08 16:50:34 | [diff] [blame] | 34 | #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
[email protected] | cf265dc0 | 2012-08-15 01:01:16 | [diff] [blame] | 35 | #include "chrome/browser/metrics/variations/variations_service.h" |
[email protected] | ad66db1 | 2014-07-10 12:43:47 | [diff] [blame] | 36 | #include "chrome/browser/net/http_server_properties_manager_factory.h" |
[email protected] | 5e9d1f7 | 2011-01-19 14:15:23 | [diff] [blame] | 37 | #include "chrome/browser/net/net_pref_observer.h" |
[email protected] | ba85a60 | 2014-06-28 20:37:12 | [diff] [blame] | 38 | #include "chrome/browser/net/prediction_options.h" |
[email protected] | 67372ecf | 2011-09-10 01:30:46 | [diff] [blame] | 39 | #include "chrome/browser/net/predictor.h" |
[email protected] | 53c5b0f | 2013-07-22 10:54:11 | [diff] [blame] | 40 | #include "chrome/browser/net/pref_proxy_config_tracker_impl.h" |
[email protected] | ffa3e486 | 2011-07-23 04:47:30 | [diff] [blame] | 41 | #include "chrome/browser/net/ssl_config_service_manager.h" |
[email protected] | 480760a | 2011-01-18 16:14:48 | [diff] [blame] | 42 | #include "chrome/browser/notifications/desktop_notification_service.h" |
peter | 7015281 | 2014-09-24 19:56:25 | [diff] [blame] | 43 | #include "chrome/browser/notifications/extension_welcome_notification.h" |
[email protected] | 93b1c4e | 2014-04-11 00:59:14 | [diff] [blame] | 44 | #include "chrome/browser/notifications/message_center_notification_manager.h" |
[email protected] | 18a4d63c8 | 2012-05-25 23:37:03 | [diff] [blame] | 45 | #include "chrome/browser/pepper_flash_settings_manager.h" |
[email protected] | cb166d4e3f | 2012-11-01 06:36:08 | [diff] [blame] | 46 | #include "chrome/browser/plugins/plugin_finder.h" |
[email protected] | 24f9524 | 2014-02-10 17:55:28 | [diff] [blame] | 47 | #include "chrome/browser/prefs/chrome_pref_service_factory.h" |
[email protected] | 4e94ab3 | 2011-08-05 05:28:27 | [diff] [blame] | 48 | #include "chrome/browser/prefs/incognito_mode_prefs.h" |
[email protected] | c753f14 | 2013-02-10 13:14:04 | [diff] [blame] | 49 | #include "chrome/browser/prefs/pref_service_syncable.h" |
[email protected] | 37858e5 | 2010-08-26 00:22:02 | [diff] [blame] | 50 | #include "chrome/browser/prefs/session_startup_pref.h" |
[email protected] | 1bee6ed | 2012-03-14 06:46:36 | [diff] [blame] | 51 | #include "chrome/browser/profiles/chrome_version_service.h" |
[email protected] | ee937fe | 2013-02-27 00:41:59 | [diff] [blame] | 52 | #include "chrome/browser/profiles/profile.h" |
[email protected] | 8ecad5e | 2010-12-02 21:18:33 | [diff] [blame] | 53 | #include "chrome/browser/profiles/profile_impl.h" |
[email protected] | dee810e | 2011-06-27 19:43:39 | [diff] [blame] | 54 | #include "chrome/browser/profiles/profile_info_cache.h" |
[email protected] | de71ae99 | 2013-07-18 03:30:38 | [diff] [blame] | 55 | #include "chrome/browser/profiles/profiles_state.h" |
b.kelemen | 4596b51 | 2015-03-04 18:42:47 | [diff] [blame] | 56 | #include "chrome/browser/push_messaging/push_messaging_service_impl.h" |
[email protected] | bb9c975 | 2013-04-25 23:02:11 | [diff] [blame] | 57 | #include "chrome/browser/renderer_host/pepper/device_id_fetcher.h" |
[email protected] | a7b8e43d | 2013-03-18 18:52:43 | [diff] [blame] | 58 | #include "chrome/browser/search/search.h" |
[email protected] | 8a12089 | 2012-06-08 01:18:50 | [diff] [blame] | 59 | #include "chrome/browser/signin/signin_manager_factory.h" |
[email protected] | a5d1e1e | 2010-09-23 19:34:12 | [diff] [blame] | 60 | #include "chrome/browser/task_manager/task_manager.h" |
oysteine | 386fc9e | 2015-06-07 18:45:41 | [diff] [blame] | 61 | #include "chrome/browser/tracing/chrome_tracing_delegate.h" |
calamity | 5ec7ec7 | 2014-10-03 03:57:46 | [diff] [blame] | 62 | #include "chrome/browser/ui/app_list/app_list_prefs.h" |
[email protected] | f0ee791 | 2013-02-27 06:02:55 | [diff] [blame] | 63 | #include "chrome/browser/ui/app_list/app_list_service.h" |
[email protected] | 2cd4fde | 2012-06-26 03:10:26 | [diff] [blame] | 64 | #include "chrome/browser/ui/browser_ui_prefs.h" |
[email protected] | 26bd3893c | 2014-04-15 18:59:58 | [diff] [blame] | 65 | #include "chrome/browser/ui/navigation_correction_tab_observer.h" |
[email protected] | 297fb7c2 | 2012-06-26 12:37:49 | [diff] [blame] | 66 | #include "chrome/browser/ui/network_profile_bubble.h" |
[email protected] | 9ce7cb4 | 2011-12-07 18:53:07 | [diff] [blame] | 67 | #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
[email protected] | 62f7777 | 2011-02-23 19:45:42 | [diff] [blame] | 68 | #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
[email protected] | bc4303d3 | 2012-05-10 14:58:55 | [diff] [blame] | 69 | #include "chrome/browser/ui/startup/autolaunch_prompt.h" |
[email protected] | abaca60 | 2013-03-29 01:31:29 | [diff] [blame] | 70 | #include "chrome/browser/ui/startup/default_browser_prompt.h" |
[email protected] | b56e2e3 | 2012-05-11 21:18:04 | [diff] [blame] | 71 | #include "chrome/browser/ui/tabs/pinned_tab_codec.h" |
[email protected] | 265a149 | 2011-02-27 05:58:07 | [diff] [blame] | 72 | #include "chrome/browser/ui/webui/flags_ui.h" |
[email protected] | 21372321 | 2012-09-21 22:28:46 | [diff] [blame] | 73 | #include "chrome/browser/ui/webui/instant_ui.h" |
[email protected] | 7c5c6f3a | 2011-04-28 19:56:49 | [diff] [blame] | 74 | #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
[email protected] | 265a149 | 2011-02-27 05:58:07 | [diff] [blame] | 75 | #include "chrome/browser/ui/webui/plugins_ui.h" |
[email protected] | 0209b44 | 2012-07-18 00:38:05 | [diff] [blame] | 76 | #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" |
wjmaclean | e530aa74 | 2014-10-14 21:43:30 | [diff] [blame] | 77 | #include "chrome/browser/ui/zoom/chrome_zoom_level_prefs.h" |
[email protected] | 8fcec3c7 | 2010-06-03 00:17:22 | [diff] [blame] | 78 | #include "chrome/browser/upgrade_detector.h" |
[email protected] | 18cc5a5 | 2011-04-15 16:03:38 | [diff] [blame] | 79 | #include "chrome/browser/web_resource/promo_resource_service.h" |
[email protected] | f87919d7 | 2011-02-02 18:46:16 | [diff] [blame] | 80 | #include "chrome/common/pref_names.h" |
[email protected] | 526a16b | 2013-06-20 11:44:33 | [diff] [blame] | 81 | #include "components/autofill/core/browser/autofill_manager.h" |
[email protected] | a90c8ca | 2014-05-20 17:16:04 | [diff] [blame] | 82 | #include "components/bookmarks/browser/bookmark_utils.h" |
mukai | 8eaec82 | 2014-10-25 17:53:16 | [diff] [blame] | 83 | #include "components/content_settings/core/browser/host_content_settings_map.h" |
[email protected] | 6a5b071 | 2014-07-16 00:30:10 | [diff] [blame] | 84 | #include "components/dom_distiller/core/distilled_page_prefs.h" |
noyau | daaac3a | 2014-10-08 11:11:11 | [diff] [blame] | 85 | #include "components/enhanced_bookmarks/bookmark_server_cluster_service.h" |
jianli | 2dc910b0 | 2014-09-19 02:42:46 | [diff] [blame] | 86 | #include "components/gcm_driver/gcm_channel_status_syncer.h" |
[email protected] | d0ab865b | 2014-06-04 19:41:34 | [diff] [blame] | 87 | #include "components/network_time/network_time_tracker.h" |
blundell | 2102f7c | 2015-07-09 10:00:53 | [diff] [blame] | 88 | #include "components/omnibox/browser/zero_suggest_provider.h" |
[email protected] | 1f730bd | 2014-02-28 15:11:32 | [diff] [blame] | 89 | #include "components/password_manager/core/browser/password_manager.h" |
[email protected] | f0c8c499 | 2014-05-15 17:37:26 | [diff] [blame] | 90 | #include "components/pref_registry/pref_registry_syncable.h" |
[email protected] | 2a172e4 | 2014-02-21 04:06:10 | [diff] [blame] | 91 | #include "components/rappor/rappor_service.h" |
[email protected] | 0915b35 | 2014-06-25 19:58:14 | [diff] [blame] | 92 | #include "components/search_engines/template_url_prepopulate_data.h" |
[email protected] | 34f5405 | 2014-03-20 21:33:40 | [diff] [blame] | 93 | #include "components/sync_driver/sync_prefs.h" |
[email protected] | 8113507 | 2014-02-14 14:11:02 | [diff] [blame] | 94 | #include "components/translate/core/browser/translate_prefs.h" |
[email protected] | f3b1a08 | 2011-11-18 00:34:30 | [diff] [blame] | 95 | #include "content/public/browser/render_process_host.h" |
[email protected] | ad66db1 | 2014-07-10 12:43:47 | [diff] [blame] | 96 | #include "net/http/http_server_properties_manager.h" |
[email protected] | a814d863 | 2009-01-31 20:18:52 | [diff] [blame] | 97 | |
[email protected] | a55c674 | 2013-08-10 07:28:48 | [diff] [blame] | 98 | #if defined(ENABLE_AUTOFILL_DIALOG) |
99 | #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | ||||
100 | #endif | ||||
101 | |||||
thestig | e415584 | 2014-10-20 18:58:02 | [diff] [blame] | 102 | #if defined(ENABLE_BACKGROUND) |
103 | #include "chrome/browser/background/background_mode_manager.h" | ||||
104 | #endif | ||||
105 | |||||
[email protected] | e908adf | 2012-09-20 16:44:32 | [diff] [blame] | 106 | #if defined(ENABLE_CONFIGURATION_POLICY) |
[email protected] | 9727582 | 2014-01-21 19:30:36 | [diff] [blame] | 107 | #include "components/policy/core/browser/browser_policy_connector.h" |
[email protected] | f522afa | 2014-01-08 15:36:36 | [diff] [blame] | 108 | #include "components/policy/core/browser/url_blacklist_manager.h" |
[email protected] | 76b4b15 | 2013-12-08 21:10:04 | [diff] [blame] | 109 | #include "components/policy/core/common/policy_statistics_collector.h" |
[email protected] | e908adf | 2012-09-20 16:44:32 | [diff] [blame] | 110 | #endif |
111 | |||||
[email protected] | 1751060 | 2014-06-05 11:02:28 | [diff] [blame] | 112 | #if defined(ENABLE_EXTENSIONS) |
je_julie.kim | 7fbb5a1a | 2015-02-09 17:26:05 | [diff] [blame] | 113 | #include "chrome/browser/accessibility/animation_policy_prefs.h" |
thestig | e415584 | 2014-10-20 18:58:02 | [diff] [blame] | 114 | #include "chrome/browser/apps/drive/drive_app_mapping.h" |
115 | #include "chrome/browser/apps/shortcut_manager.h" | ||||
[email protected] | 1751060 | 2014-06-05 11:02:28 | [diff] [blame] | 116 | #include "chrome/browser/extensions/activity_log/activity_log.h" |
117 | #include "chrome/browser/extensions/api/commands/command_service.h" | ||||
118 | #include "chrome/browser/extensions/api/tabs/tabs_api.h" | ||||
[email protected] | d5a74be | 2014-08-08 01:01:27 | [diff] [blame] | 119 | #include "chrome/browser/extensions/extension_web_ui.h" |
[email protected] | 1751060 | 2014-06-05 11:02:28 | [diff] [blame] | 120 | #include "chrome/browser/extensions/launch_util.h" |
[email protected] | deba96a | 2014-08-03 05:48:54 | [diff] [blame] | 121 | #include "chrome/browser/signin/easy_unlock_service.h" |
thestig | 428c2ca | 2014-09-07 06:17:51 | [diff] [blame] | 122 | #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
[email protected] | d5a74be | 2014-08-08 01:01:27 | [diff] [blame] | 123 | #include "extensions/browser/extension_prefs.h" |
ckehoe | f2e12d0 | 2015-01-09 23:32:59 | [diff] [blame] | 124 | #if !defined(OS_ANDROID) && !defined(OS_IOS) |
125 | #include "chrome/browser/extensions/api/copresence/copresence_api.h" | ||||
rdevlin.cronin | 28582da | 2015-03-19 17:18:41 | [diff] [blame] | 126 | #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" |
[email protected] | 1751060 | 2014-06-05 11:02:28 | [diff] [blame] | 127 | #endif |
ckehoe | f2e12d0 | 2015-01-09 23:32:59 | [diff] [blame] | 128 | #endif // defined(ENABLE_EXTENSIONS) |
[email protected] | 1751060 | 2014-06-05 11:02:28 | [diff] [blame] | 129 | |
bauerb | 4da3613 | 2014-12-26 19:53:13 | [diff] [blame] | 130 | #if defined(ENABLE_PLUGIN_INSTALLATION) |
131 | #include "chrome/browser/plugins/plugins_resource_service.h" | ||||
132 | #endif | ||||
133 | |||||
treib | 87bb89cbb | 2014-12-01 16:01:47 | [diff] [blame] | 134 | #if defined(ENABLE_SUPERVISED_USERS) |
kotenkov | 869545512 | 2015-04-16 16:40:07 | [diff] [blame] | 135 | #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" |
treib | b473df2 | 2015-01-08 18:08:26 | [diff] [blame] | 136 | #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_service.h" |
137 | #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | ||||
[email protected] | cce15bb | 2014-06-17 13:43:51 | [diff] [blame] | 138 | #include "chrome/browser/supervised_user/supervised_user_service.h" |
bauerb | 4da3613 | 2014-12-26 19:53:13 | [diff] [blame] | 139 | #include "chrome/browser/supervised_user/supervised_user_whitelist_service.h" |
[email protected] | a079559 | 2013-05-25 14:19:02 | [diff] [blame] | 140 | #endif |
141 | |||||
[email protected] | 2188c8d | 2014-03-21 00:58:56 | [diff] [blame] | 142 | #if defined(ENABLE_SERVICE_DISCOVERY) |
[email protected] | 9544e56 | 2013-09-21 04:20:55 | [diff] [blame] | 143 | #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" |
144 | #endif | ||||
145 | |||||
[email protected] | ceafc46 | 2013-11-04 12:26:03 | [diff] [blame] | 146 | #if defined(OS_ANDROID) |
[email protected] | 53a946f6 | 2013-11-07 19:09:13 | [diff] [blame] | 147 | #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" |
148 | #include "chrome/browser/android/new_tab_page_prefs.h" | ||||
[email protected] | ceafc46 | 2013-11-04 12:26:03 | [diff] [blame] | 149 | #else |
Balazs Engedy | 9d0221cd | 2014-09-18 10:40:18 | [diff] [blame] | 150 | #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" |
[email protected] | ceafc46 | 2013-11-04 12:26:03 | [diff] [blame] | 151 | #include "chrome/browser/ui/autofill/generated_credit_card_bubble_controller.h" |
grt | f14398c | 2015-07-14 15:11:44 | [diff] [blame^] | 152 | #include "chrome/browser/ui/startup/startup_browser_creator.h" |
[email protected] | fc7611b3 | 2009-07-31 21:52:44 | [diff] [blame] | 153 | #endif |
154 | |||||
thestig | c91176f4 | 2014-10-28 20:16:35 | [diff] [blame] | 155 | #if !defined(OS_ANDROID) && !defined(OS_IOS) |
156 | #include "chrome/browser/signin/signin_promo.h" | ||||
dbeam | 72db076 | 2015-05-20 20:37:12 | [diff] [blame] | 157 | #include "chrome/browser/ui/webui/foreign_session_handler.h" |
thestig | c91176f4 | 2014-10-28 20:16:35 | [diff] [blame] | 158 | #endif |
159 | |||||
[email protected] | 9acc4860 | 2009-11-30 21:18:51 | [diff] [blame] | 160 | #if defined(OS_CHROMEOS) |
[email protected] | 1637c19 | 2013-02-16 04:00:13 | [diff] [blame] | 161 | #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
Satoru Takabayashi | 876d4e6 | 2014-12-03 04:52:24 | [diff] [blame] | 162 | #include "chrome/browser/chromeos/customization/customization_document.h" |
[email protected] |