[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 | |
primiano | 6221e57 | 2015-01-28 12:14:34 | [diff] [blame] | 9 | #include "base/trace_event/trace_event.h" |
Nico Weber | eaa0841 | 2019-08-14 01:24:37 | [diff] [blame] | 10 | #include "build/branding_buildflags.h" |
avi | b896c71 | 2015-12-26 02:10:43 | [diff] [blame] | 11 | #include "build/build_config.h" |
Maksim Sisov | b2e86e27 | 2021-09-28 05:24:49 | [diff] [blame] | 12 | #include "build/chromecast_buildflags.h" |
Yuta Hijikata | 31a359c | 2020-11-27 07:50:26 | [diff] [blame] | 13 | #include "build/chromeos_buildflags.h" |
[email protected] | 1a47d7e | 2010-10-15 00:37:24 | [diff] [blame] | 14 | #include "chrome/browser/about_flags.h" |
Dominic Mazzoni | 21fb028 | 2019-02-13 18:32:47 | [diff] [blame] | 15 | #include "chrome/browser/accessibility/accessibility_labels_service.h" |
James Wallace-Lee | 25a1b05e | 2018-07-24 00:06:31 | [diff] [blame] | 16 | #include "chrome/browser/accessibility/accessibility_ui.h" |
[email protected] | 7a25d87 | 2012-05-21 19:14:13 | [diff] [blame] | 17 | #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
[email protected] | b1de2c7 | 2013-02-06 02:45:47 | [diff] [blame] | 18 | #include "chrome/browser/browser_process_impl.h" |
[email protected] | bca1838 | 2012-06-25 19:15:23 | [diff] [blame] | 19 | #include "chrome/browser/chrome_content_browser_client.h" |
sorin | ebcfc8dd | 2016-08-12 21:57:18 | [diff] [blame] | 20 | #include "chrome/browser/component_updater/component_updater_prefs.h" |
Tarun Bansal | 2a09d3b | 2020-05-28 16:06:27 | [diff] [blame] | 21 | #include "chrome/browser/data_use_measurement/chrome_data_use_measurement.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" |
dmurph | 93fa43b | 2017-02-07 23:45:16 | [diff] [blame] | 24 | #include "chrome/browser/engagement/important_sites_util.h" |
Dominique Fauteux-Chapleau | 556bb84f | 2020-04-20 22:06:29 | [diff] [blame] | 25 | #include "chrome/browser/enterprise/connectors/connectors_prefs.h" |
Og Astorga | 3089fd8 | 2021-09-21 00:02:37 | [diff] [blame] | 26 | #include "chrome/browser/enterprise/reporting/prefs.h" |
Dominique Fauteux-Chapleau | 0e897db0 | 2021-04-19 18:42:22 | [diff] [blame] | 27 | #include "chrome/browser/enterprise/util/managed_browser_utils.h" |
[email protected] | ed2b100 | 2011-05-25 14:12:10 | [diff] [blame] | 28 | #include "chrome/browser/external_protocol/external_protocol_handler.h" |
Kirubel Aklilu | 60d316f | 2021-12-16 01:55:33 | [diff] [blame] | 29 | #include "chrome/browser/first_party_sets/first_party_sets_pref_names.h" |
[email protected] | 1b3588d | 2012-10-10 21:17:25 | [diff] [blame] | 30 | #include "chrome/browser/first_run/first_run.h" |
[email protected] | e6933d2a | 2013-03-12 22:32:21 | [diff] [blame] | 31 | #include "chrome/browser/gpu/gpu_mode_manager.h" |
Avi Drissman | d3092734 | 2018-05-22 15:04:27 | [diff] [blame] | 32 | #include "chrome/browser/lifetime/browser_shutdown.h" |
rajendrant | ff2361da | 2020-12-16 09:18:27 | [diff] [blame] | 33 | #include "chrome/browser/login_detection/login_detection_prefs.h" |
[email protected] | cd80cce | 2013-12-02 15:19:19 | [diff] [blame] | 34 | #include "chrome/browser/media/media_device_id_salt.h" |
Becca Hughes | 6354b6b | 2017-08-31 22:01:55 | [diff] [blame] | 35 | #include "chrome/browser/media/media_engagement_service.h" |
John Rummell | e5621c1 | 2017-09-05 23:52:10 | [diff] [blame] | 36 | #include "chrome/browser/media/media_storage_id_salt.h" |
Derek Cheng | 23a0140 | 2018-07-24 13:38:14 | [diff] [blame] | 37 | #include "chrome/browser/media/router/media_router_feature.h" |
mcasas | a2023ab | 2016-09-08 01:06:36 | [diff] [blame] | 38 | #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
Evan Stade | 32d635a | 2020-04-03 18:51:25 | [diff] [blame] | 39 | #include "chrome/browser/media/webrtc/permission_bubble_media_access_handler.h" |
Henrik Grunell | e11045a | 2019-04-12 09:27:27 | [diff] [blame] | 40 | #include "chrome/browser/media/webrtc/system_media_capture_permissions_stats_mac.h" |
Sebastien Marchand | 5a63997a | 2019-09-27 19:15:34 | [diff] [blame] | 41 | #include "chrome/browser/memory/enterprise_memory_limit_pref_observer.h" |
[email protected] | 4a55a71 | 2014-06-08 16:50:34 | [diff] [blame] | 42 | #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
Eric Seckler | a5c24e1 | 2018-11-28 16:09:20 | [diff] [blame] | 43 | #include "chrome/browser/net/net_error_tab_helper.h" |
Matt Menke | cfef87d | 2017-08-03 13:03:06 | [diff] [blame] | 44 | #include "chrome/browser/net/profile_network_context_service.h" |
Ben Schwartz | 135746c | 2020-05-14 04:37:03 | [diff] [blame] | 45 | #include "chrome/browser/net/secure_dns_util.h" |
Matt Menke | 4dfb375c | 2018-06-13 18:06:31 | [diff] [blame] | 46 | #include "chrome/browser/net/system_network_context_manager.h" |
Anita Woodruff | da0cdb64 | 2017-08-22 18:36:50 | [diff] [blame] | 47 | #include "chrome/browser/notifications/notification_channels_provider_android.h" |
Tom Anderson | 1ef51d03 | 2020-02-11 01:05:08 | [diff] [blame] | 48 | #include "chrome/browser/notifications/notification_display_service_impl.h" |
peter | c400791 | 2015-07-31 21:13:37 | [diff] [blame] | 49 | #include "chrome/browser/notifications/notifier_state_tracker.h" |
Sharon Yang | c670690 | 2018-07-16 13:06:19 | [diff] [blame] | 50 | #include "chrome/browser/notifications/platform_notification_service_impl.h" |
Balazs Engedy | 715b0ec | 2019-12-04 15:11:45 | [diff] [blame] | 51 | #include "chrome/browser/permissions/quiet_notification_permission_ui_state.h" |
Pavol Marko | debb0ff | 2018-05-07 18:35:41 | [diff] [blame] | 52 | #include "chrome/browser/policy/developer_tools_policy_handler.h" |
Simon Pelchat | e74bbb6 | 2021-12-03 23:57:55 | [diff] [blame] | 53 | #include "chrome/browser/prefetch/prefetch_prefs.h" |
Robert Ogden | 575d8a02 | 2020-11-13 17:54:54 | [diff] [blame] | 54 | #include "chrome/browser/prefetch/prefetch_proxy/prefetch_proxy_origin_decider.h" |
Ryan Sturm | 010e2f5 | 2021-01-08 00:13:56 | [diff] [blame] | 55 | #include "chrome/browser/prefetch/search_prefetch/search_prefetch_service.h" |
[email protected] | 24f9524 | 2014-02-10 17:55:28 | [diff] [blame] | 56 | #include "chrome/browser/prefs/chrome_pref_service_factory.h" |
[email protected] | 4e94ab3 | 2011-08-05 05:28:27 | [diff] [blame] | 57 | #include "chrome/browser/prefs/incognito_mode_prefs.h" |
[email protected] | 37858e5 | 2010-08-26 00:22:02 | [diff] [blame] | 58 | #include "chrome/browser/prefs/session_startup_pref.h" |
Nikita Podguzov | 26222d1 | 2019-12-04 11:44:31 | [diff] [blame] | 59 | #include "chrome/browser/printing/print_preview_sticky_settings.h" |
[email protected] | 1bee6ed | 2012-03-14 06:46:36 | [diff] [blame] | 60 | #include "chrome/browser/profiles/chrome_version_service.h" |
[email protected] | ee937fe | 2013-02-27 00:41:59 | [diff] [blame] | 61 | #include "chrome/browser/profiles/profile.h" |
Thomas Tangl | c67ace4 | 2019-06-07 19:31:50 | [diff] [blame] | 62 | #include "chrome/browser/profiles/profile_attributes_entry.h" |
Alex Ilin | bb08a0d | 2021-07-08 09:37:24 | [diff] [blame] | 63 | #include "chrome/browser/profiles/profile_attributes_storage.h" |
[email protected] | 8ecad5e | 2010-12-02 21:18:33 | [diff] [blame] | 64 | #include "chrome/browser/profiles/profile_impl.h" |
[email protected] | de71ae99 | 2013-07-18 03:30:38 | [diff] [blame] | 65 | #include "chrome/browser/profiles/profiles_state.h" |
johnme | cf2da0c | 2015-10-28 19:42:12 | [diff] [blame] | 66 | #include "chrome/browser/push_messaging/push_messaging_app_identifier.h" |
gab | 3ca4a49 | 2017-03-02 00:19:41 | [diff] [blame] | 67 | #include "chrome/browser/rlz/chrome_rlz_tracker_delegate.h" |
[email protected] | a7b8e43d | 2013-03-18 18:52:43 | [diff] [blame] | 68 | #include "chrome/browser/search/search.h" |
Himanshu Jaju | bcf3b929 | 2019-06-07 12:54:07 | [diff] [blame] | 69 | #include "chrome/browser/sharing/sharing_sync_preference.h" |
Kristi Park | d0f7241 | 2021-07-02 01:09:03 | [diff] [blame] | 70 | #include "chrome/browser/sharing_hub/sharing_hub_features.h" |
Ryan Sleevi | 4689ad3 | 2018-04-16 19:09:05 | [diff] [blame] | 71 | #include "chrome/browser/ssl/ssl_config_service_manager.h" |
avi | 24d693f | 2016-08-06 18:03:52 | [diff] [blame] | 72 | #include "chrome/browser/task_manager/task_manager_interface.h" |
oysteine | 386fc9e | 2015-06-07 18:45:41 | [diff] [blame] | 73 | #include "chrome/browser/tracing/chrome_tracing_delegate.h" |
[email protected] | 2cd4fde | 2012-06-26 03:10:26 | [diff] [blame] | 74 | #include "chrome/browser/ui/browser_ui_prefs.h" |
Robert Liao | 741be30 | 2019-07-19 23:24:42 | [diff] [blame] | 75 | #include "chrome/browser/ui/hats/hats_service.h" |
[email protected] | 297fb7c2 | 2012-06-26 12:37:49 | [diff] [blame] | 76 | #include "chrome/browser/ui/network_profile_bubble.h" |
[email protected] | 9ce7cb4 | 2011-12-07 18:53:07 | [diff] [blame] | 77 | #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
[email protected] | 62f7777 | 2011-02-23 19:45:42 | [diff] [blame] | 78 | #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
Kristi Park | 6a5ed4d | 2020-01-27 20:24:05 | [diff] [blame] | 79 | #include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_bubble_controller.h" |
[email protected] | b56e2e3 | 2012-05-11 21:18:04 | [diff] [blame] | 80 | #include "chrome/browser/ui/tabs/pinned_tab_codec.h" |
Elaine Chien | 07f137d | 2021-01-14 02:57:21 | [diff] [blame] | 81 | #include "chrome/browser/ui/toolbar/chrome_labs_prefs.h" |
Livvie Lin | 9141d0f13 | 2020-03-23 22:47:04 | [diff] [blame] | 82 | #include "chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h" |
Dana Fried | 7fba60e | 2020-10-28 22:00:53 | [diff] [blame] | 83 | #include "chrome/browser/ui/user_education/feature_promo_snooze_service.h" |
dpapad | 2be5b61c6 | 2020-12-08 11:58:49 | [diff] [blame] | 84 | #include "chrome/browser/ui/webui/flags/flags_ui.h" |
[email protected] | 7c5c6f3a | 2011-04-28 19:56:49 | [diff] [blame] | 85 | #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
Nicolas Ouellet-Payeur | 4dbdf1e5 | 2018-08-06 21:51:02 | [diff] [blame] | 86 | #include "chrome/browser/ui/webui/print_preview/policy_settings.h" |
Xing Liu | 7252b8d | 2020-01-22 22:12:47 | [diff] [blame] | 87 | #include "chrome/browser/updates/announcement_notification/announcement_notification_service.h" |
Alexey Baskakov | 396edb9 | 2018-08-02 05:11:42 | [diff] [blame] | 88 | #include "chrome/browser/web_applications/web_app_provider.h" |
Martin Kreichgauer | 0e1b15e | 2018-06-20 02:59:50 | [diff] [blame] | 89 | #include "chrome/browser/webauthn/chrome_authenticator_request_delegate.h" |
Scott Violet | 6200d33 | 2018-02-23 21:29:23 | [diff] [blame] | 90 | #include "chrome/common/buildflags.h" |
[email protected] | f87919d7 | 2011-02-02 18:46:16 | [diff] [blame] | 91 | #include "chrome/common/pref_names.h" |
Ayu Ishii | fbb1fad | 2020-06-22 20:15:07 | [diff] [blame] | 92 | #include "chrome/common/secure_origin_allowlist.h" |
Moe Ahmadi | 173b0a2b | 2018-08-03 17:35:51 | [diff] [blame] | 93 | #include "components/autofill/core/common/autofill_prefs.h" |
Clark DuVall | 8236b6a8 | 2020-05-28 22:54:32 | [diff] [blame] | 94 | #include "components/blocked_content/safe_browsing_triggered_popup_blocker.h" |
ioanap | a8bfbc7 | 2016-09-07 16:09:05 | [diff] [blame] | 95 | #include "components/browsing_data/core/pref_names.h" |
Doug Turner | 9e79cf0c | 2018-04-05 21:32:30 | [diff] [blame] | 96 | #include "components/certificate_transparency/pref_names.h" |
mukai | 8eaec82 | 2014-10-25 17:53:16 | [diff] [blame] | 97 | #include "components/content_settings/core/browser/host_content_settings_map.h" |
Javier Fernández García-Boente | 7966a89 | 2021-12-09 12:28:23 | [diff] [blame] | 98 | #include "components/custom_handlers/protocol_handler_registry.h" |
John Abd-El-Malek | 89a5f3a | 2019-06-14 18:21:53 | [diff] [blame] | 99 | #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h" |
[email protected] | 6a5b071 | 2014-07-16 00:30:10 | [diff] [blame] | 100 | #include "components/dom_distiller/core/distilled_page_prefs.h" |
Katie D | 1ca4328b | 2020-02-19 18:08:47 | [diff] [blame] | 101 | #include "components/dom_distiller/core/dom_distiller_features.h" |
| 102 | #include "components/dom_distiller/core/pref_names.h" |
Mugdha Lakhani | da851fd | 2021-03-16 18:21:02 | [diff] [blame] | 103 | #include "components/embedder_support/origin_trials/origin_trial_prefs.h" |
Yao Xiao | ca909b9 | 2020-11-23 23:51:45 | [diff] [blame] | 104 | #include "components/federated_learning/floc_id.h" |
sdefresne | 8593e643 | 2015-12-01 12:38:08 | [diff] [blame] | 105 | #include "components/flags_ui/pref_service_flags_storage.h" |
Moe Ahmadi | 656dd53 | 2021-10-06 21:59:18 | [diff] [blame] | 106 | #include "components/history_clusters/core/history_clusters_prefs.h" |
Brandon Wylie | c7a9450 | 2018-10-18 18:43:25 | [diff] [blame] | 107 | #include "components/image_fetcher/core/cache/image_cache.h" |
Anthony Vallee-Dubois | 43fded970 | 2020-06-19 16:30:38 | [diff] [blame] | 108 | #include "components/invalidation/impl/fcm_invalidation_service.h" |
Tanja Gornak | 5c8b5d95 | 2018-10-12 14:39:54 | [diff] [blame] | 109 | #include "components/invalidation/impl/invalidator_registrar_with_memory.h" |
Marc Treib | 8c29f0c | 2019-12-19 12:48:07 | [diff] [blame] | 110 | #include "components/invalidation/impl/per_user_topic_subscription_manager.h" |
Anthony Vallee-Dubois | 6f99312 | 2018-09-17 16:13:28 | [diff] [blame] | 111 | #include "components/language/content/browser/geo_language_provider.h" |
Alexandre Frechette | 38f4ef9 | 2019-02-25 16:31:57 | [diff] [blame] | 112 | #include "components/language/content/browser/ulp_language_code_locator/ulp_language_code_locator.h" |
Alexandre Frechette | 572755b | 2019-02-13 22:30:20 | [diff] [blame] | 113 | #include "components/language/core/browser/language_prefs.h" |
Joe DeBlasio | 59db500b | 2020-08-21 00:37:35 | [diff] [blame] | 114 | #include "components/lookalikes/core/lookalike_url_util.h" |
Mikel Astiz | f422691 | 2020-10-19 19:10:37 | [diff] [blame] | 115 | #include "components/metrics/demographics/user_demographics.h" |
Peter Wen | 45025ea | 2018-09-17 15:16:27 | [diff] [blame] | 116 | #include "components/metrics/metrics_pref_names.h" |
[email protected] | d0ab865b | 2014-06-04 19:41:34 | [diff] [blame] | 117 | #include "components/network_time/network_time_tracker.h" |
treib | bb0c5af5 | 2016-12-09 17:34:15 | [diff] [blame] | 118 | #include "components/ntp_tiles/most_visited_sites.h" |
Scott Violet | 9ae8289 | 2018-03-01 18:38:12 | [diff] [blame] | 119 | #include "components/offline_pages/buildflags/buildflags.h" |
Travis Skare | 27cee15c | 2018-07-19 14:34:13 | [diff] [blame] | 120 | #include "components/omnibox/browser/document_provider.h" |
Moe Ahmadi | 1266de8 | 2020-04-10 17:19:53 | [diff] [blame] | 121 | #include "components/omnibox/browser/omnibox_prefs.h" |
blundell | 2102f7c | 2015-07-09 10:00:53 | [diff] [blame] | 122 | #include "components/omnibox/browser/zero_suggest_provider.h" |
Sophie Chang | f2da5f0 | 2021-01-07 19:38:47 | [diff] [blame] | 123 | #include "components/optimization_guide/core/optimization_guide_prefs.h" |
[email protected] | 1f730bd | 2014-02-28 15:11:32 | [diff] [blame] | 124 | #include "components/password_manager/core/browser/password_manager.h" |
anthonyvd | 6a43b93 | 2017-05-11 18:39:27 | [diff] [blame] | 125 | #include "components/payments/core/payment_prefs.h" |
Ravjit | 0dc26474 | 2021-10-15 11:09:35 | [diff] [blame] | 126 | #include "components/permissions/permission_actions_history.h" |
brettw | 03e6196 | 2016-03-15 06:27:04 | [diff] [blame] | 127 | #include "components/policy/core/browser/browser_policy_connector.h" |
Aaron Colwell | b422622 | 2020-07-25 16:11:36 | [diff] [blame] | 128 | #include "components/policy/core/browser/url_blocklist_manager.h" |
David Bienvenu | 554a259 | 2020-02-13 20:20:54 | [diff] [blame] | 129 | #include "components/policy/core/common/policy_pref_names.h" |
brettw | 03e6196 | 2016-03-15 06:27:04 | [diff] [blame] | 130 | #include "components/policy/core/common/policy_statistics_collector.h" |
[email protected] | f0c8c499 | 2014-05-15 17:37:26 | [diff] [blame] | 131 | #include "components/pref_registry/pref_registry_syncable.h" |
Martin Šrámek | 5921f631 | 2020-03-25 09:31:47 | [diff] [blame] | 132 | #include "components/prefs/pref_registry.h" |
brettw | b1fc1b8 | 2016-02-02 00:19:08 | [diff] [blame] | 133 | #include "components/prefs/pref_registry_simple.h" |
| 134 | #include "components/prefs/pref_service.h" |
Sean Harrison | 4685ab7 | 2020-12-08 18:26:22 | [diff] [blame] | 135 | #include "components/privacy_sandbox/privacy_sandbox_prefs.h" |
abhishek.a21 | 71c61285 | 2015-08-31 10:48:19 | [diff] [blame] | 136 | #include "components/proxy_config/pref_proxy_config_tracker_impl.h" |
Ali Juma | fb3dc1f | 2020-01-07 17:33:47 | [diff] [blame] | 137 | #include "components/safe_browsing/core/common/safe_browsing_prefs.h" |
[email protected] | 0915b35 | 2014-06-25 19:58:14 | [diff] [blame] | 138 | #include "components/search_engines/template_url_prepopulate_data.h" |
Carlos IL | 06e6c8c | 2020-07-28 00:25:19 | [diff] [blame] | 139 | #include "components/security_interstitials/content/insecure_form_blocking_page.h" |
Colin Blundell | 7657b40 | 2020-02-25 09:46:50 | [diff] [blame] | 140 | #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h" |
Shakti Sahu | 93bfba2 | 2021-06-17 18:05:21 | [diff] [blame] | 141 | #include "components/segmentation_platform/public/segmentation_platform_service.h" |
Mikel Astiz | f61f4ba0 | 2018-06-01 10:50:19 | [diff] [blame] | 142 | #include "components/sessions/core/session_id_generator.h" |
David Roger | fbfc938 | 2021-07-12 13:58:45 | [diff] [blame] | 143 | #include "components/signin/public/base/signin_buildflags.h" |
Henrique Ferreiro | 94eb46f | 2019-07-03 14:38:56 | [diff] [blame] | 144 | #include "components/signin/public/identity_manager/identity_manager.h" |
Evan Stade | 8915819 | 2021-01-27 18:45:23 | [diff] [blame] | 145 | #include "components/site_engagement/content/site_engagement_service.h" |
Eric Robinson | 49f19b6 | 2018-09-17 21:28:15 | [diff] [blame] | 146 | #include "components/subresource_filter/content/browser/ruleset_service.h" |
maxbogue | 2f960e5 | 2016-10-07 01:24:15 | [diff] [blame] | 147 | #include "components/sync/base/sync_prefs.h" |
Mikel Astiz |
|