blob: c9986a11329c55f6dee4c036e1fe9cd8fd8866b8 [file] [log] [blame]
[email protected]e41982a72012-11-20 07:16:511// Copyright 2012 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit09911bf2008-07-26 23:55:294
[email protected]37858e52010-08-26 00:22:025#include "chrome/browser/prefs/browser_prefs.h"
initial.commit09911bf2008-07-26 23:55:296
[email protected]c5d4b1842014-06-20 21:19:507#include <string>
8
rkaplow058da3132015-02-19 18:18:389#include "base/metrics/histogram_macros.h"
primiano6221e572015-01-28 12:14:3410#include "base/trace_event/trace_event.h"
avib896c712015-12-26 02:10:4311#include "build/build_config.h"
[email protected]1a47d7e2010-10-15 00:37:2412#include "chrome/browser/about_flags.h"
James Wallace-Lee25a1b05e2018-07-24 00:06:3113#include "chrome/browser/accessibility/accessibility_ui.h"
[email protected]7a25d872012-05-21 19:14:1314#include "chrome/browser/accessibility/invert_bubble_prefs.h"
[email protected]b1de2c72013-02-06 02:45:4715#include "chrome/browser/browser_process_impl.h"
[email protected]bca18382012-06-25 19:15:2316#include "chrome/browser/chrome_content_browser_client.h"
sorinebcfc8dd2016-08-12 21:57:1817#include "chrome/browser/component_updater/component_updater_prefs.h"
[email protected]a6d36cc2011-02-23 00:39:4818#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
[email protected]70019152012-12-19 11:44:1919#include "chrome/browser/devtools/devtools_window.h"
[email protected]e5dc4222010-08-30 22:16:3220#include "chrome/browser/download/download_prefs.h"
dmurph93fa43b2017-02-07 23:45:1621#include "chrome/browser/engagement/important_sites_util.h"
[email protected]ed2b1002011-05-25 14:12:1022#include "chrome/browser/external_protocol/external_protocol_handler.h"
[email protected]1b3588d2012-10-10 21:17:2523#include "chrome/browser/first_run/first_run.h"
[email protected]e6933d2a2013-03-12 22:32:2124#include "chrome/browser/gpu/gpu_mode_manager.h"
[email protected]5e9d1f72011-01-19 14:15:2325#include "chrome/browser/intranet_redirect_detector.h"
[email protected]3c319eb2013-02-21 14:44:4526#include "chrome/browser/io_thread.h"
Avi Drissmand30927342018-05-22 15:04:2727#include "chrome/browser/lifetime/browser_shutdown.h"
[email protected]cd80cce2013-12-02 15:19:1928#include "chrome/browser/media/media_device_id_salt.h"
Becca Hughes6354b6b2017-08-31 22:01:5529#include "chrome/browser/media/media_engagement_service.h"
John Rummelle5621c12017-09-05 23:52:1030#include "chrome/browser/media/media_storage_id_salt.h"
Derek Cheng23a01402018-07-24 13:38:1431#include "chrome/browser/media/router/media_router_feature.h"
mcasasa2023ab2016-09-08 01:06:3632#include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h"
33#include "chrome/browser/media/webrtc/media_stream_devices_controller.h"
[email protected]4a55a712014-06-08 16:50:3434#include "chrome/browser/metrics/chrome_metrics_service_client.h"
[email protected]ba85a602014-06-28 20:37:1235#include "chrome/browser/net/prediction_options.h"
Matt Menkecfef87d2017-08-03 13:03:0636#include "chrome/browser/net/profile_network_context_service.h"
Matt Menke4dfb375c2018-06-13 18:06:3137#include "chrome/browser/net/system_network_context_manager.h"
Anita Woodruffda0cdb642017-08-22 18:36:5038#include "chrome/browser/notifications/notification_channels_provider_android.h"
peterc4007912015-07-31 21:13:3739#include "chrome/browser/notifications/notifier_state_tracker.h"
Sharon Yangc6706902018-07-16 13:06:1940#include "chrome/browser/notifications/platform_notification_service_impl.h"
[email protected]18a4d63c82012-05-25 23:37:0341#include "chrome/browser/pepper_flash_settings_manager.h"
Pavol Markodebb0ff2018-05-07 18:35:4142#include "chrome/browser/policy/developer_tools_policy_handler.h"
Owen Min54ddcd72017-08-16 20:10:5843#include "chrome/browser/policy/policy_helpers.h"
[email protected]24f95242014-02-10 17:55:2844#include "chrome/browser/prefs/chrome_pref_service_factory.h"
[email protected]4e94ab32011-08-05 05:28:2745#include "chrome/browser/prefs/incognito_mode_prefs.h"
iclelland27f4bcb2016-06-22 16:41:0346#include "chrome/browser/prefs/origin_trial_prefs.h"
[email protected]37858e52010-08-26 00:22:0247#include "chrome/browser/prefs/session_startup_pref.h"
Robert Ogden22bd863372018-10-01 22:10:2648#include "chrome/browser/previews/previews_lite_page_decider.h"
[email protected]1bee6ed2012-03-14 06:46:3649#include "chrome/browser/profiles/chrome_version_service.h"
[email protected]ee937fe2013-02-27 00:41:5950#include "chrome/browser/profiles/profile.h"
[email protected]8ecad5e2010-12-02 21:18:3351#include "chrome/browser/profiles/profile_impl.h"
[email protected]dee810e2011-06-27 19:43:3952#include "chrome/browser/profiles/profile_info_cache.h"
[email protected]de71ae992013-07-18 03:30:3853#include "chrome/browser/profiles/profiles_state.h"
johnmecf2da0c2015-10-28 19:42:1254#include "chrome/browser/push_messaging/push_messaging_app_identifier.h"
[email protected]bb9c9752013-04-25 23:02:1155#include "chrome/browser/renderer_host/pepper/device_id_fetcher.h"
gab3ca4a492017-03-02 00:19:4156#include "chrome/browser/rlz/chrome_rlz_tracker_delegate.h"
[email protected]a7b8e43d2013-03-18 18:52:4357#include "chrome/browser/search/search.h"
[email protected]8a120892012-06-08 01:18:5058#include "chrome/browser/signin/signin_manager_factory.h"
Emily Starkc657d45e2018-05-11 19:03:1959#include "chrome/browser/ssl/chrome_ssl_host_state_delegate.h"
Ryan Sleevi4689ad32018-04-16 19:09:0560#include "chrome/browser/ssl/ssl_config_service_manager.h"
avi24d693f2016-08-06 18:03:5261#include "chrome/browser/task_manager/task_manager_interface.h"
oysteine386fc9e2015-06-07 18:45:4162#include "chrome/browser/tracing/chrome_tracing_delegate.h"
Shivani Sharma343451382017-12-07 20:18:0863#include "chrome/browser/ui/blocked_content/safe_browsing_triggered_popup_blocker.h"
[email protected]2cd4fde2012-06-26 03:10:2664#include "chrome/browser/ui/browser_ui_prefs.h"
[email protected]26bd3893c2014-04-15 18:59:5865#include "chrome/browser/ui/navigation_correction_tab_observer.h"
[email protected]297fb7c22012-06-26 12:37:4966#include "chrome/browser/ui/network_profile_bubble.h"
[email protected]9ce7cb42011-12-07 18:53:0767#include "chrome/browser/ui/prefs/prefs_tab_helper.h"
[email protected]62f77772011-02-23 19:45:4268#include "chrome/browser/ui/search_engines/keyword_editor_controller.h"
[email protected]b56e2e32012-05-11 21:18:0469#include "chrome/browser/ui/tabs/pinned_tab_codec.h"
[email protected]265a1492011-02-27 05:58:0770#include "chrome/browser/ui/webui/flags_ui.h"
[email protected]7c5c6f3a2011-04-28 19:56:4971#include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
Nicolas Ouellet-Payeur4dbdf1e52018-08-06 21:51:0272#include "chrome/browser/ui/webui/print_preview/policy_settings.h"
[email protected]0209b442012-07-18 00:38:0573#include "chrome/browser/ui/webui/print_preview/sticky_settings.h"
Alexey Baskakov396edb92018-08-02 05:11:4274#include "chrome/browser/web_applications/web_app_provider.h"
Martin Kreichgauer0e1b15e2018-06-20 02:59:5075#include "chrome/browser/webauthn/chrome_authenticator_request_delegate.h"
Scott Violet6200d332018-02-23 21:29:2376#include "chrome/common/buildflags.h"
[email protected]f87919d72011-02-02 18:46:1677#include "chrome/common/pref_names.h"
Daniel Vogelheim976f1c22017-11-22 16:26:0378#include "chrome/common/secure_origin_whitelist.h"
Moe Ahmadi173b0a2b2018-08-03 17:35:5179#include "components/autofill/core/common/autofill_prefs.h"
ioanapa8bfbc72016-09-07 16:09:0580#include "components/browsing_data/core/pref_names.h"
Doug Turner9e79cf0c2018-04-05 21:32:3081#include "components/certificate_transparency/pref_names.h"
mukai8eaec822014-10-25 17:53:1682#include "components/content_settings/core/browser/host_content_settings_map.h"
[email protected]6a5b0712014-07-16 00:30:1083#include "components/dom_distiller/core/distilled_page_prefs.h"
Scott Violet9ae82892018-03-01 18:38:1284#include "components/feature_engagement/buildflags.h"
sdefresne8593e6432015-12-01 12:38:0885#include "components/flags_ui/pref_service_flags_storage.h"
jianli2dc910b02014-09-19 02:42:4686#include "components/gcm_driver/gcm_channel_status_syncer.h"
Brandon Wyliec7a94502018-10-18 18:43:2587#include "components/image_fetcher/core/cache/image_cache.h"
Tanja Gornak5c8b5d952018-10-12 14:39:5488#include "components/invalidation/impl/invalidator_registrar_with_memory.h"
Tatiana Gornaka4f3a922018-05-28 08:53:5389#include "components/invalidation/impl/per_user_topic_registration_manager.h"
Anthony Vallee-Dubois6f993122018-09-17 16:13:2890#include "components/language/content/browser/geo_language_provider.h"
Peter Wen45025ea2018-09-17 15:16:2791#include "components/metrics/metrics_pref_names.h"
[email protected]d0ab865b2014-06-04 19:41:3492#include "components/network_time/network_time_tracker.h"
dgn52914722016-10-18 10:28:4293#include "components/ntp_snippets/content_suggestions_service.h"
jkrcal093410c2016-12-21 16:13:5594#include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h"
jkrcalf9966462017-03-29 16:25:2195#include "components/ntp_snippets/remote/remote_suggestions_scheduler_impl.h"
treibe0e11db2016-09-29 15:35:3496#include "components/ntp_snippets/remote/request_throttler.h"
jkrcale13510e2016-09-08 17:56:2097#include "components/ntp_snippets/user_classifier.h"
treibbb0c5af52016-12-09 17:34:1598#include "components/ntp_tiles/most_visited_sites.h"
Scott Violet9ae82892018-03-01 18:38:1299#include "components/offline_pages/buildflags/buildflags.h"
Travis Skare27cee15c2018-07-19 14:34:13100#include "components/omnibox/browser/document_provider.h"
blundell2102f7c2015-07-09 10:00:53101#include "components/omnibox/browser/zero_suggest_provider.h"
melandory444f85f2015-09-07 13:32:42102#include "components/password_manager/core/browser/password_bubble_experiment.h"
[email protected]1f730bd2014-02-28 15:11:32103#include "components/password_manager/core/browser/password_manager.h"
anthonyvd6a43b932017-05-11 18:39:27104#include "components/payments/core/payment_prefs.h"
brettw03e61962016-03-15 06:27:04105#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"
[email protected]f0c8c4992014-05-15 17:37:26108#include "components/pref_registry/pref_registry_syncable.h"
brettwb1fc1b82016-02-02 00:19:08109#include "components/prefs/pref_registry_simple.h"
110#include "components/prefs/pref_service.h"
abhishek.a2171c612852015-08-31 10:48:19111#include "components/proxy_config/pref_proxy_config_tracker_impl.h"
nzolghadrd87a308d2016-12-07 15:45:56112#include "components/rappor/rappor_service_impl.h"
Luke Zielinski12ef88552017-06-23 15:36:27113#include "components/safe_browsing/common/safe_browsing_prefs.h"
[email protected]0915b352014-06-25 19:58:14114#include "components/search_engines/template_url_prepopulate_data.h"
Mikel Astizf61f4ba02018-06-01 10:50:19115#include "components/sessions/core/session_id_generator.h"
fdoray44cd7812016-01-08 17:03:59116#include "components/startup_metric_utils/browser/startup_metric_utils.h"
Eric Robinson49f19b62018-09-17 21:28:15117#include "components/subresource_filter/content/browser/ruleset_service.h"
maxbogue2f960e52016-10-07 01:24:15118#include "components/sync/base/sync_prefs.h"
maxbogueea16ff412016-10-28 16:35:29119#include "components/sync_preferences/pref_service_syncable.h"
Mikel Astiz0889b2be2018-09-25 16:20:41120#include "components/sync_sessions/session_sync_prefs.h"
[email protected]81135072014-02-14 14:11:02121#include "components/translate/core/browser/translate_prefs.h"
wafflesd2d9a332016-04-09 01:59:57122#include "components/update_client/update_client.h"
blundell0300cdea2015-09-03 12:47:44123#include "components/variations/service/variations_service.h"
[email protected]f3b1a082011-11-18 00:34:30124#include "content/public/browser/render_process_host.h"
Scott Violetc8240b02018-03-08 22:03:59125#include "extensions/buildflags/buildflags.h"
[email protected]ad66db12014-07-10 12:43:47126#include "net/http/http_server_properties_manager.h"
Scott Violet02e38b92018-03-27 23:42:14127#include "ppapi/buildflags/buildflags.h"
Scott Violet318a55f2018-03-30 19:08:19128#include "printing/buildflags/buildflags.h"
Scott Violeta5f7ba12018-04-02 22:03:40129#include "rlz/buildflags/buildflags.h"
[email protected]a814d8632009-01-31 20:18:52130
brettwd1bc9da2016-10-14 19:04:24131#if BUILDFLAG(ENABLE_APP_LIST)
khmeleca50572016-11-03 16:54:45132#include "chrome/browser/ui/app_list/app_list_syncable_service.h"
thestigf2a0fa92016-09-07 09:37:29133#endif
134
Denis Kuznetsov32099f32017-12-15 14:04:57135#if BUILDFLAG(ENABLE_BACKGROUND_MODE)
thestige4155842014-10-20 18:58:02136#include "chrome/browser/background/background_mode_manager.h"
137#endif
138
brettw00899e62016-11-12 02:10:17139#if BUILDFLAG(ENABLE_EXTENSIONS)
je_julie.kim7fbb5a1a2015-02-09 17:26:05