blob: ffe6b1e4a5af9017a3d7c5151baf93962a35e5a7 [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2012 The Chromium Authors
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
conniekxu4d14f65c2023-03-28 20:56:369#include "ash/constants/ash_constants.h"
Artsiom Mitrokhincf332e22023-03-07 16:27:4710#include "base/time/time.h"
primiano6221e572015-01-28 12:14:3411#include "base/trace_event/trace_event.h"
Nico Webereaa08412019-08-14 01:24:3712#include "build/branding_buildflags.h"
avib896c712015-12-26 02:10:4313#include "build/build_config.h"
Maksim Sisovb2e86e272021-09-28 05:24:4914#include "build/chromecast_buildflags.h"
Yuta Hijikata31a359c2020-11-27 07:50:2615#include "build/chromeos_buildflags.h"
[email protected]1a47d7e2010-10-15 00:37:2416#include "chrome/browser/about_flags.h"
Dominic Mazzoni21fb0282019-02-13 18:32:4717#include "chrome/browser/accessibility/accessibility_labels_service.h"
James Wallace-Lee25a1b052018-07-24 00:06:3118#include "chrome/browser/accessibility/accessibility_ui.h"
[email protected]7a25d872012-05-21 19:14:1319#include "chrome/browser/accessibility/invert_bubble_prefs.h"
[email protected]b1de2c72013-02-06 02:45:4720#include "chrome/browser/browser_process_impl.h"
[email protected]bca18382012-06-25 19:15:2321#include "chrome/browser/chrome_content_browser_client.h"
sorinebcfc8dd2016-08-12 21:57:1822#include "chrome/browser/component_updater/component_updater_prefs.h"
[email protected]70019152012-12-19 11:44:1923#include "chrome/browser/devtools/devtools_window.h"
[email protected]e5dc4222010-08-30 22:16:3224#include "chrome/browser/download/download_prefs.h"
dmurph93fa43b2017-02-07 23:45:1625#include "chrome/browser/engagement/important_sites_util.h"
Dominique Fauteux-Chapleau556bb84f2020-04-20 22:06:2926#include "chrome/browser/enterprise/connectors/connectors_prefs.h"
Og Astorga3089fd82021-09-21 00:02:3727#include "chrome/browser/enterprise/reporting/prefs.h"
Dominique Fauteux-Chapleau0e897db02021-04-19 18:42:2228#include "chrome/browser/enterprise/util/managed_browser_utils.h"
[email protected]ed2b1002011-05-25 14:12:1029#include "chrome/browser/external_protocol/external_protocol_handler.h"
[email protected]1b3588d2012-10-10 21:17:2530#include "chrome/browser/first_run/first_run.h"
[email protected]e6933d2a2013-03-12 22:32:2131#include "chrome/browser/gpu/gpu_mode_manager.h"
Avi Drissmand30927342018-05-22 15:04:2732#include "chrome/browser/lifetime/browser_shutdown.h"
rajendrantff2361da2020-12-16 09:18:2733#include "chrome/browser/login_detection/login_detection_prefs.h"
[email protected]cd80cce2013-12-02 15:19:1934#include "chrome/browser/media/media_device_id_salt.h"
Becca Hughes6354b6b2017-08-31 22:01:5535#include "chrome/browser/media/media_engagement_service.h"
John Rummelle5621c12017-09-05 23:52:1036#include "chrome/browser/media/media_storage_id_salt.h"
George Benz13da3df02022-01-14 00:03:5237#include "chrome/browser/media/router/discovery/access_code/access_code_cast_feature.h"
Derek Cheng23a01402018-07-24 13:38:1438#include "chrome/browser/media/router/media_router_feature.h"
mcasasa2023ab2016-09-08 01:06:3639#include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h"
Evan Stade32d635a2020-04-03 18:51:2540#include "chrome/browser/media/webrtc/permission_bubble_media_access_handler.h"
Sebastien Marchand5a63997a2019-09-27 19:15:3441#include "chrome/browser/memory/enterprise_memory_limit_pref_observer.h"
[email protected]4a55a712014-06-08 16:50:3442#include "chrome/browser/metrics/chrome_metrics_service_client.h"
Eric Secklera5c24e12018-11-28 16:09:2043#include "chrome/browser/net/net_error_tab_helper.h"
Matt Menkecfef87d2017-08-03 13:03:0644#include "chrome/browser/net/profile_network_context_service.h"
Ben Schwartz135746c2020-05-14 04:37:0345#include "chrome/browser/net/secure_dns_util.h"
Matt Menke4dfb375c2018-06-13 18:06:3146#include "chrome/browser/net/system_network_context_manager.h"
Tom Anderson1ef51d032020-02-11 01:05:0847#include "chrome/browser/notifications/notification_display_service_impl.h"
peterc4007912015-07-31 21:13:3748#include "chrome/browser/notifications/notifier_state_tracker.h"
Sharon Yangc6706902018-07-16 13:06:1949#include "chrome/browser/notifications/platform_notification_service_impl.h"
Balazs Engedy715b0ec2019-12-04 15:11:4550#include "chrome/browser/permissions/quiet_notification_permission_ui_state.h"
Simon Pelchate74bbb62021-12-03 23:57:5551#include "chrome/browser/prefetch/prefetch_prefs.h"
[email protected]24f95242014-02-10 17:55:2852#include "chrome/browser/prefs/chrome_pref_service_factory.h"
[email protected]4e94ab32011-08-05 05:28:2753#include "chrome/browser/prefs/incognito_mode_prefs.h"
[email protected]37858e52010-08-26 00:22:0254#include "chrome/browser/prefs/session_startup_pref.h"
Max Curran14dd7872023-03-20 19:57:3655#include "chrome/browser/preloading/prefetch/prefetch_service/prefetch_origin_decider.h"
Sreeja Kamishettyb8e18ae2022-07-22 03:12:4356#include "chrome/browser/preloading/prefetch/search_prefetch/search_prefetch_service.h"
Nikita Podguzov26222d12019-12-04 11:44:3157#include "chrome/browser/printing/print_preview_sticky_settings.h"
[email protected]1bee6ed2012-03-14 06:46:3658#include "chrome/browser/profiles/chrome_version_service.h"
[email protected]ee937fe2013-02-27 00:41:5959#include "chrome/browser/profiles/profile.h"
Thomas Tanglc67ace42019-06-07 19:31:5060#include "chrome/browser/profiles/profile_attributes_entry.h"
Alex Ilinbb08a0d2021-07-08 09:37:2461#include "chrome/browser/profiles/profile_attributes_storage.h"
[email protected]8ecad5e2010-12-02 21:18:3362#include "chrome/browser/profiles/profile_impl.h"
[email protected]de71ae992013-07-18 03:30:3863#include "chrome/browser/profiles/profiles_state.h"
johnmecf2da0c2015-10-28 19:42:1264#include "chrome/browser/push_messaging/push_messaging_app_identifier.h"
Illia Klimov4b72378ed2022-07-18 13:46:5765#include "chrome/browser/push_messaging/push_messaging_service_impl.h"
gab3ca4a492017-03-02 00:19:4166#include "chrome/browser/rlz/chrome_rlz_tracker_delegate.h"
[email protected]a7b8e43d2013-03-18 18:52:4367#include "chrome/browser/search/search.h"
Himanshu Jajubcf3b9292019-06-07 12:54:0768#include "chrome/browser/sharing/sharing_sync_preference.h"
Kristi Parkd0f72412021-07-02 01:09:0369#include "chrome/browser/sharing_hub/sharing_hub_features.h"
Ryan Sleevi4689ad32018-04-16 19:09:0570#include "chrome/browser/ssl/ssl_config_service_manager.h"
avi24d693f2016-08-06 18:03:5271#include "chrome/browser/task_manager/task_manager_interface.h"
oysteine386fc9e2015-06-07 18:45:4172#include "chrome/browser/tracing/chrome_tracing_delegate.h"
[email protected]2cd4fde2012-06-26 03:10:2673#include "chrome/browser/ui/browser_ui_prefs.h"
Robert Liao741be302019-07-19 23:24:4274#include "chrome/browser/ui/hats/hats_service.h"
[email protected]297fb7c22012-06-26 12:37:4975#include "chrome/browser/ui/network_profile_bubble.h"
[email protected]9ce7cb42011-12-07 18:53:0776#include "chrome/browser/ui/prefs/prefs_tab_helper.h"
[email protected]62f77772011-02-23 19:45:4277#include "chrome/browser/ui/search_engines/keyword_editor_controller.h"
Victor Hugo Vianna Silva3452787c2022-07-28 23:25:3078#include "chrome/browser/ui/send_tab_to_self/send_tab_to_self_bubble.h"
Caroline Risingf4b49092023-03-23 02:28:2679#include "chrome/browser/ui/side_panel/side_panel_prefs.h"
[email protected]b56e2e32012-05-11 21:18:0480#include "chrome/browser/ui/tabs/pinned_tab_codec.h"
Elaine Chien07f137d2021-01-14 02:57:2181#include "chrome/browser/ui/toolbar/chrome_labs_prefs.h"
Livvie Lin9141d0f132020-03-23 22:47:0482#include "chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h"
Dana Friedcf8c2142022-01-25 18:33:4283#include "chrome/browser/ui/user_education/browser_feature_promo_snooze_service.h"
Emily Shack670f745c2023-03-03 19:47:3084#include "chrome/browser/ui/webui/bookmarks/bookmark_prefs.h"
dpapad2be5b61c62020-12-08 11:58:4985#include "chrome/browser/ui/webui/flags/flags_ui.h"
[email protected]7c5c6f3a2011-04-28 19:56:4986#include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
Nicolas Ouellet-Payeur4dbdf1e52018-08-06 21:51:0287#include "chrome/browser/ui/webui/print_preview/policy_settings.h"
Xing Liu7252b8d2020-01-22 22:12:4788#include "chrome/browser/updates/announcement_notification/announcement_notification_service.h"
Martin Kreichgauer0e1b15e2018-06-20 02:59:5089#include "chrome/browser/webauthn/chrome_authenticator_request_delegate.h"
Martin Kreichgauerd7aa4f92022-02-22 20:46:2190#include "chrome/browser/webauthn/webauthn_pref_names.h"
Scott Violet6200d332018-02-23 21:29:2391#include "chrome/common/buildflags.h"
[email protected]f87919d72011-02-02 18:46:1692#include "chrome/common/pref_names.h"
Ayu Ishiifbb1fad2020-06-22 20:15:0793#include "chrome/common/secure_origin_allowlist.h"
Moe Ahmadi173b0a2b2018-08-03 17:35:5194#include "components/autofill/core/common/autofill_prefs.h"
Clark DuVall8236b6a82020-05-28 22:54:3295#include "components/blocked_content/safe_browsing_triggered_popup_blocker.h"
ioanapa8bfbc72016-09-07 16:09:0596#include "components/browsing_data/core/pref_names.h"
Doug Turner9e79cf0c2018-04-05 21:32:3097#include "components/certificate_transparency/pref_names.h"
Matt Jones704e1a62022-09-20 16:28:2498#include "components/commerce/core/pref_names.h"
mukai8eaec822014-10-25 17:53:1699#include "components/content_settings/core/browser/host_content_settings_map.h"
Javier Fernández García-Boente7966a892021-12-09 12:28:23100#include "components/custom_handlers/protocol_handler_registry.h"
[email protected]6a5b0712014-07-16 00:30:10101#include "components/dom_distiller/core/distilled_page_prefs.h"
Katie D1ca4328b2020-02-19 18:08:47102#include "components/dom_distiller/core/dom_distiller_features.h"
103#include "components/dom_distiller/core/pref_names.h"
Alex Chen9e56f7352023-01-20 22:56:15104#include "components/domain_reliability/domain_reliability_prefs.h"
Mugdha Lakhanida851fd2021-03-16 18:21:02105#include "components/embedder_support/origin_trials/origin_trial_prefs.h"
hmaree31cadf52022-11-09 22:32:55106#include "components/enterprise/browser/identifiers/identifiers_prefs.h"
sdefresne8593e6432015-12-01 12:38:08107#include "components/flags_ui/pref_service_flags_storage.h"
Moe Ahmadi656dd532021-10-06 21:59:18108#include "components/history_clusters/core/history_clusters_prefs.h"
Brandon Wyliec7a94502018-10-18 18:43:25109#include "components/image_fetcher/core/cache/image_cache.h"
Anthony Vallee-Dubois43fded9702020-06-19 16:30:38110#include "components/invalidation/impl/fcm_invalidation_service.h"
Tanja Gornak5c8b5d952018-10-12 14:39:54111#include "components/invalidation/impl/invalidator_registrar_with_memory.h"
Marc Treib8c29f0c2019-12-19 12:48:07112#include "components/invalidation/impl/per_user_topic_subscription_manager.h"
Anthony Vallee-Dubois6f993122018-09-17 16:13:28113#include "components/language/content/browser/geo_language_provider.h"
Alexandre Frechette38f4ef92019-02-25 16:31:57114#include "components/language/content/browser/ulp_language_code_locator/ulp_language_code_locator.h"
Alexandre Frechette572755b2019-02-13 22:30:20115#include "components/language/core/browser/language_prefs.h"
Duncan Mercer8062eef2022-12-28 22:28:37116#include "components/lens/buildflags.h"
Joe DeBlasio59db500b2020-08-21 00:37:35117#include "components/lookalikes/core/lookalike_url_util.h"
Mikel Astizf4226912020-10-19 19:10:37118#include "components/metrics/demographics/user_demographics.h"
Peter Wen45025ea2018-09-17 15:16:27119#include "components/metrics/metrics_pref_names.h"
[email protected]d0ab865b2014-06-04 19:41:34120#include "components/network_time/network_time_tracker.h"
treibbb0c5af52016-12-09 17:34:15121#include "components/ntp_tiles/most_visited_sites.h"
Scott Violet9ae82892018-03-01 18:38:12122#include "components/offline_pages/buildflags/buildflags.h"
Travis Skare27cee15c2018-07-19 14:34:13123#include "components/omnibox/browser/document_provider.h"
Moe Ahmadi1266de82020-04-10 17:19:53124#include "components/omnibox/browser/omnibox_prefs.h"
blundell2102f7c2015-07-09 10:00:53125#include "components/omnibox/browser/zero_suggest_provider.h"
Sophie Changf2da5f02021-01-07 19:38:47126#include "components/optimization_guide/core/optimization_guide_prefs.h"
[email protected]1f730bd2014-02-28 15:11:32127#include "components/password_manager/core/browser/password_manager.h"
anthonyvd6a43b932017-05-11 18:39:27128#include "components/payments/core/payment_prefs.h"
Anthony Vallee-Duboiscee55b12022-03-24 22:54:02129#include "components/performance_manager/public/user_tuning/prefs.h"
Ravjit0dc264742021-10-15 11:09:35130#include "components/permissions/permission_actions_history.h"
brettw03e61962016-03-15 06:27:04131#include "components/policy/core/browser/browser_policy_connector.h"
Aaron Colwellb4226222020-07-25 16:11:36132#include "components/policy/core/browser/url_blocklist_manager.h"
Yann Dago9c1e19512022-02-28 22:27:31133#include "components/policy/core/common/management/management_service.h"
David Bienvenu554a2592020-02-13 20:20:54134#include "components/policy/core/common/policy_pref_names.h"
brettw03e61962016-03-15 06:27:04135#include "components/policy/core/common/policy_statistics_collector.h"
[email protected]f0c8c4992014-05-15 17:37:26136#include "components/pref_registry/pref_registry_syncable.h"
Martin Šrámek5921f6312020-03-25 09:31:47137#include "components/prefs/pref_registry.h"
brettwb1fc1b82016-02-02 00:19:08138#include "components/prefs/pref_registry_simple.h"
139#include "components/prefs/pref_service.h"
Sean Harrison4685ab72020-12-08 18:26:22140#include "components/privacy_sandbox/privacy_sandbox_prefs.h"
abhishek.a2171c612852015-08-31 10:48:19141#include "components/proxy_config/pref_proxy_config_tracker_impl.h"
Amanda Velasco Gallardo25f07362022-01-28 02:08:47142#include "components/safe_browsing/content/common/file_type_policies_prefs.h"
Ali Jumafb3dc1f2020-01-07 17:33:47143#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
[email protected]0915b352014-06-25 19:58:14144#include "components/search_engines/template_url_prepopulate_data.h"
Carlos IL06e6c8c2020-07-28 00:25:19145#include "components/security_interstitials/content/insecure_form_blocking_page.h"
Colin Blundell7657b402020-02-25 09:46:50146#include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
Anastasia Helfinstein33187fd2023-01-27 03:06:07147#include "components/segmentation_platform/embedder/default_model/device_switcher_result_dispatcher.h"
Shakti Sahu93bfba22021-06-17 18:05:21148#include "components/segmentation_platform/public/segmentation_platform_service.h"
Ramin Halavati52a9a292022-04-28 04:27:49149#include "components/services/screen_ai/buildflags/buildflags.h"
Ayu Ishii73a353d2022-07-07 21:56:42150#include "components/services/storage/public/cpp/storage_prefs.h"
Mikel Astizf61f4ba02018-06-01 10:50:19151#include "components/sessions/core/session_id_generator.h"
David Rogerfbfc9382021-07-12 13:58:45152#include "components/signin/public/base/signin_buildflags.h"
David Roger877bdc72022-10-19 09:38:51153#include "components/signin/public/base/signin_pref_names.h"
Henrique Ferreiro94eb46f2019-07-03 14:38:56154#include "components/signin/public/identity_manager/identity_manager.h"
Evan Stade89158192021-01-27 18:45:23155#include "components/site_engagement/content/site_engagement_service.h"
Eric Robinson49f19b62018-09-17 21:28:15156#include "components/subresource_filter/content/browser/ruleset_service.h"
[email protected]1099454d2023-01-31 14:35:11157#include "components/supervised_user/core/common/buildflags.h"
maxbogue2f960e52016-10-07 01:24:15158#include "components/sync/base/sync_prefs.h"
Mikel Astiz91c345c2023-05-16 14:18:56159#include "components/sync/service/glue/sync_transport_data_prefs.h"
Jeffrey Cohen053be24d2019-07-23 23:44:05160#include "components/sync_device_info/device_info_prefs.h"
maxbogueea16ff412016-10-28 16:35:29161#include "components/sync_preferences/pref_service_syncable.h"
Mikel Astiz0889b2be2018-09-25 16:20:41162#include "components/sync_sessions/session_sync_prefs.h"
Oksana Zhuravlova58c85282022-06-14 20:24:28163#include "components/tracing/common/pref_names.h"
[email protected]81135072014-02-14 14:11:02164#include "components/translate/core/browser/translate_prefs.h"
wafflesd2d9a332016-04-09 01:59:57165#include "components/update_client/update_client.h"
blundell0300cdea2015-09-03 12:47:44166#include "components/variations/service/variations_service.h"
[email protected]f3b1a082011-11-18 00:34:30167#include "content/public/browser/render_process_host.h"
Scott Violetc8240b02018-03-08 22:03:59168#include "extensions/buildflags/buildflags.h"
[email protected]ad66db12014-07-10 12:43:47169#include "net/http/http_server_properties_manager.h"
Andy Phan99ccfb42022-11-29 18:57:07170#include "pdf/buildflags.h"
Scott Violet02e38b92018-03-27 23:42:14171#include "ppapi/buildflags/buildflags.h"
Scott Violet318a55f2018-03-30 19:08:19172#include "printing/buildflags/buildflags.h"
Scott Violeta5f7ba12018-04-02 22:03:40173#include "rlz/buildflags/buildflags.h"
Jan Keitel98b2cc42022-09-20 05:38:39174#include "third_party/abseil-cpp/absl/types/optional.h"
[email protected]a814d8632009-01-31 20:18:52175
Denis Kuznetsov32099f32017-12-15 14:04:57176#if BUILDFLAG(ENABLE_BACKGROUND_MODE)
thestige4155842014-10-20 18:58:02177#include "chrome/browser/background/background_mode_manager.h"
178#endif
179
brettw00899e62016-11-12 02:10:17180#if BUILDFLAG(ENABLE_EXTENSIONS)
je_julie.kim7fbb5a1a2015-02-09 17:26:05181#include "chrome/browser/accessibility/animation_policy_prefs.h"
Dominick Ng6ff51052018-07-06 05:30:20182#include "chrome/browser/apps/platform_apps/shortcut_manager.h"
[email protected]17510602014-06-05 11:02:28183#include "chrome/browser/extensions/activity_log/activity_log.h"
184#include "chrome/browser/extensions/api/commands/command_service.h"
[email protected]17510602014-06-05 11:02:28185#include "chrome/browser/extensions/api/tabs/tabs_api.h"
[email protected]d5a74be2014-08-08 01:01:27186#include "chrome/browser/extensions/extension_web_ui.h"
Daniel Murphy3657906d2021-04-13 20:33:12187#include "chrome/browser/extensions/preinstalled_apps.h"
Devlin Cronina997c8e2021-03-18 00:33:18188#include "chrome/browser/ui/extensions/settings_api_bubble_helpers.h"
Devlin Cronin71f0f532018-04-26 16:35:06189#include "chrome/browser/ui/webui/extensions/extensions_ui.h"
tbarzicfa3c7ef62017-04-17 23:12:02190#include "extensions/browser/api/audio/audio_api.h"
afakhry2bd481832016-06-16 16:17:24191#include "extensions/browser/api/runtime/runtime_api.h"
[email protected]d5a74be2014-08-08 01:01:27192#include "extensions/browser/extension_prefs.h"
Emilia Paz363fa0062022-01-15 05:12:03193#include "extensions/browser/permissions_manager.h"
Yann Dago2cbd7cb2022-06-27 18:18:29194#include "extensions/browser/pref_names.h"
Yuta Hijikata31a359c2020-11-27 07:50:26195#if BUILDFLAG(IS_CHROMEOS_ASH)
Michael Ershov289785c2021-06-29 10:53:32196#include "chrome/browser/ash/attestation/tpm_challenge_key.h"
Yuta Hijikata54df9132021-10-09 01:27:12197#include "chrome/browser/ash/crosapi/browser_data_migrator.h"
Henrique Ferreiro7967dce2021-09-23 11:37:47198#include "chrome/browser/ash/device_name/device_name_store.h"
Henrique Ferreirod67f0472022-11-05 00:40:09199#include "chrome/browser/ash/extensions/extensions_permissions_tracker.h"
Yeunjoo Choi5e8463292021-04-28 01:19:42200#include "chrome/browser/ash/kerberos/kerberos_credentials_manager.h"
Henrique Ferreirob3c117562021-02-24 20:12:45201#include "chrome/browser/ash/login/easy_unlock/easy_unlock_service.h"
Henrique Ferreirod57c4962021-09-29 07:26:59202#include "chrome/browser/ash/net/system_proxy_manager.h"
Henrique Ferreiro4ebaaa32021-10-13 16:59:35203#include "chrome/browser/ash/platform_keys/key_permissions/key_permissions_manager_impl.h"
Anatoliy Potapchuka460bc12021-11-05 19:23:10204#include "chrome/browser/ash/policy/networking/euicc_status_uploader.h"
Danila Kuzmin90a42f02021-12-08 14:00:16205#include "chrome/browser/ash/settings/hardware_data_usage_controller.h"
Yeunjoo Choi5097e9c2021-02-25 08:46:52206#include "chrome/browser/ash/settings/stats_reporting_controller.h"
Xiaochu Liu48ab5932018-05-11 03:44:04207#include "chrome/browser/component_updater/metadata_table_chromeos.h"
Joel Hockeya9ccf0e2022-05-27 22:11:19208#include "chrome/browser/extensions/api/shared_storage/shared_storage_private_api.h"
yilkal95d9f882021-10-18 21:59:00209#include "chrome/browser/ui/ash/projector/projector_app_client_impl.h"
Yeunjoo Choi38cea422022-10-18 06:19:17210#include "chrome/browser/ui/webui/ash/edu_coexistence/edu_coexistence_login_handler.h"
Yeunjoo Choiebbdaa62022-10-20 01:05:31211#include "chrome/browser/ui/webui/signin/ash/inline_login_handler_impl.h"
Yuta Hijikata31a359c2020-11-27 07:50:26212#endif // BUILDFLAG(IS_CHROMEOS_ASH)
brettw00899e62016-11-12 02:10:17213#endif // BUILDFLAG(ENABLE_EXTENSIONS)
[email protected]17510602014-06-05 11:02:28214
jianliac940cb2017-06-07 05:13:08215#if BUILDFLAG(ENABLE_OFFLINE_PAGES)
Dmitry Titov4d2bde02017-06-30 05:29:52216#include "chrome/browser/offline_pages/prefetch/offline_metrics_collector_impl.h"
jianliac940cb2017-06-07 05:13:08217#endif
218
Andy Phan99ccfb42022-11-29 18:57:07219#if BUILDFLAG(ENABLE_PDF)
220#include "chrome/browser/pdf/pdf_pref_names.h"
221#endif // BUILDFLAG(ENABLE_PDF)
222
Ramin Halavati52a9a292022-04-28 04:27:49223#if BUILDFLAG(ENABLE_SCREEN_AI_SERVICE)
224#include "components/services/screen_ai/public/cpp/pref_names.h" // nogncheck
225#endif
226
Lei Zhang6cb9b842019-12-16 20:29:12227#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
228#include "chrome/browser/supervised_user/child_accounts/child_account_service.h"
[email protected]1e50f232023-05-12 13:57:34229#include "components/supervised_user/core/browser/supervised_user_service.h"
Bettina Deaf3dac202017-09-16 20:53:22230#endif
231
Jian Lic9a227c2022-02-28 22:55:44232#include "components/feed/buildflags.h"
233#include "components/feed/core/common/pref_names.h"
234#include "components/feed/core/shared_prefs/pref_names.h"
235
Xiaohan Wangae7f9182022-01-16 00:37:52236#if BUILDFLAG(IS_ANDROID)
zpengdb4a58e2017-01-10 17:40:32237#include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h"
Dmitry Titov5f6cfb42018-10-05 18:52:14238#include "chrome/browser/android/explore_sites/history_statistics_reporter.h"
zpengdb4a58e2017-01-10 17:40:32239#include "chrome/browser/android/ntp/recent_tabs_page_prefs.h"
Kenichi Ishibashi35ac7132017-12-08 03:44:30240#include "chrome/browser/android/oom_intervention/oom_intervention_decider.h"
mlliuee3a405c2016-10-28 22:34:52241#include "chrome/browser/android/preferences/browser_prefs_android.h"
Jan Keitel98b2cc42022-09-20 05:38:39242#include "chrome/browser/android/preferences/shared_preferences_migrator_android.h"
Patrick Noland87d9f842019-01-16 03:52:02243#include "chrome/browser/android/usage_stats/usage_stats_bridge.h"
Sky Maliced8eb4302020-08-03 05:46:44244#include "chrome/browser/first_run/android/first_run_prefs.h"
Yu Su4d459862021-04-15 04:19:54245#include "chrome/browser/lens/android/lens_prefs.h"
John Rummell4703af62019-02-15 02:31:00246#include "chrome/browser/media/android/cdm/media_drm_origin_id_manager.h"
Lei Zhangdb0c0872022-03-04 04:26:59247#include "chrome/browser/notifications/notification_channels_provider_android.h"
Christopher Thompson2602fea2019-11-26 19:36:54248#include "chrome/browser/ssl/known_interception_disclosure_infobar_delegate.h"
Glen Robertson8a825ae4f2020-09-16 06:50:08249#include "components/cdm/browser/media_drm_storage_impl.h" // nogncheck crbug.com/1125897
Sebastien Lalancette374cf6a2021-06-22 17:23:52250#include "components/content_creation/notes/core/note_prefs.h"
Dan Harrington899e25232023-04-11 18:23:57251#include "components/ntp_snippets/register_prefs.h"
zpengdb4a58e2017-01-10 17:40:32252#include "components/ntp_tiles/popular_sites_impl.h"
Clark DuVall600abea2020-03-23 16:16:17253#include "components/permissions/contexts/geolocation_permission_context_android.h"
Xing Liu0327d832020-05-15 21:07:03254#include "components/query_tiles/tile_service_prefs.h"
Ella Gec7c64062023-05-02 17:16:14255#include "components/webapps/browser/android/install_prompt_prefs.h"
Xiaohan Wangae7f9182022-01-16 00:37:52256#else // BUILDFLAG(IS_ANDROID)
Yue Zhang87902392020-12-23 23:12:05257#include "chrome/browser/cart/cart_service.h"
Shakti Sahue7597fd2023-04-05 23:32:39258#include "chrome/browser/companion/core/promo_handler.h"
Anqing Zhao9595e482021-06-10 11:33:55259#include "chrome/browser/device_api/device_service_impl.h"
peter9f4490a2017-01-27 00:58:36260#include "chrome/browser/gcm/gcm_product_util.h"
Matt Reynolds1914ff6b2022-02-04 08:48:26261#include "chrome/browser/hid/hid_policy_allowed_devices.h"
Tommy Lid5b7c22b2020-10-28 01:26:51262#include "chrome/browser/intranet_redirect_detector.h"
Lei Zhang6cb9b842019-12-16 20:29:12263#include "chrome/browser/media/unified_autoplay_config.h"
Sebastien Marchande9f7b992021-02-10 03:11:08264#include "chrome/browser/metrics/tab_stats/tab_stats_tracker.h"
Josh Nohle13ea6b432020-07-21 20:46:59265#include "chrome/browser/nearby_sharing/common/nearby_share_prefs.h"
Tibor Goldschwendt83b26a02021-07-09 23:13:18266#include "chrome/browser/new_tab_page/modules/drive/drive_service.h"
Jeremy Selier730b56d32021-09-17 02:59:39267#include "chrome/browser/new_tab_page/modules/photos/photos_service.h"
Riley Tatumc48258f12022-08-18 22:13:13268#include "chrome/browser/new_tab_page/modules/recipes/recipes_service.h"
Rohit Bhatia22e544f2021-10-05 15:32:26269#include "chrome/browser/new_tab_page/modules/safe_browsing/safe_browsing_handler.h"
Tibor Goldschwendt53a0eab2021-07-29 10:40:25270#include "chrome/browser/new_tab_page/promos/promo_service.h"
Yann Dago44d6cc322022-07-13 17:46:25271#include "chrome/browser/policy/developer_tools_policy_handler.h"
Tibor Goldschwendtf3a3ce92021-08-17 00:42:16272#include "chrome/browser/search/background/ntp_custom_background_service.h"
Reilly Grantd4fb5842021-03-15 23:16:49273#include "chrome/browser/serial/serial_policy_allowed_ports.h"
thestigc91176f42014-10-28 20:16:35274#include "chrome/browser/signin/signin_promo.h"
Mei Liang74df4f82022-09-26 23:00:33275#include "chrome/browser/ui/commerce/price_tracking/shopping_list_ui_tab_helper.h"
zpengdb4a58e2017-01-10 17:40:32276#include "chrome/browser/ui/startup/startup_browser_creator.h"
rbpotterbe128632019-11-22 04:50:42277#include "chrome/browser/ui/webui/history/foreign_session_handler.h"
Tibor Goldschwendt53ca78b2020-10-07 19:56:18278#include "chrome/browser/ui/webui/new_tab_page/new_tab_page_handler.h"
Tibor Goldschwendtbbdbe8f2021-05-20 19:27:39279#include "chrome/browser/ui/webui/new_tab_page/new_tab_page_ui.h"
John Lee136759f02019-04-15 20:19:11280#include "chrome/browser/ui/webui/settings/settings_ui.h"
Mark Schillaciba4a7322022-06-29 15:08:35281#include "chrome/browser/ui/webui/side_panel/read_anything/read_anything_prefs.h"
Roman Aroracd8462c2021-08-03 01:20:33282#include "chrome/browser/ui/webui/tab_search/tab_search_prefs.h"
rbpotter73c13252021-07-16 21:29:34283#include "chrome/browser/ui/webui/whats_new/whats_new_ui.h"
Greg Thompson8bcd799b2018-08-10 09:49:33284#include "chrome/browser/upgrade_detector/upgrade_detector.h"
Peter Kvitek6567a8a3a2023-01-31 01:03:57285#include "components/headless/policy/headless_mode_prefs.h"
Abigail Klein153fa7a2021-08-26 19:50:50286#include "components/live_caption/live_caption_controller.h"
evliuc5b5a722022-10-28 00:05:49287#include "components/live_caption/live_translate_controller.h"
Lei Zhang6cb9b842019-12-16 20:29:12288#include "components/ntp_tiles/custom_links_manager_impl.h"
Florian Jacky6723cef2023-04-17 11:38:31289#include "components/permissions/permission_hats_trigger_helper.h"
Caroline Rising065085a22023-02-22 14:34:09290#include "components/user_notes/user_notes_prefs.h"
Xiaohan Wangae7f9182022-01-16 00:37:52291#endif // BUILDFLAG(IS_ANDROID)
thestigc91176f42014-10-28 20:16:35292
Xiaohan Wangae7f9182022-01-16 00:37:52293#if BUILDFLAG(IS_CHROMEOS)
Tim Sergeant2b6bc66e2022-04-14 20:15:21294#include "chrome/browser/apps/intent_helper/supported_links_infobar_prefs_service.h"
Erik Chen643355d2022-04-22 05:44:49295#include "chrome/browser/chromeos/extensions/echo_private/echo_private_api.h"
Maria Petrisorbb5226b2022-06-02 09:10:51296#include "chrome/browser/chromeos/extensions/login_screen/login/login_api_prefs.h"
Alvin Lee99f8d9a82021-11-18 18:45:55297#include "chrome/browser/chromeos/policy/dlp/dlp_rules_manager_impl.h"
Olya Kalitova39e913d52021-03-16 22:26:22298#include "chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api.h"
Kuo-Hsin Yang40227972022-05-16 18:39:09299#include "chrome/browser/memory/oom_kills_monitor.h"
Michael Ershov5b2a7062022-01-17 14:28:45300#include "chrome/browser/policy/networking/policy_cert_service.h"
Ben Franz73537362021-11-08 11:53:40301#include "chrome/browser/policy/system_features_disable_list_policy_handler.h"
Michael Ershovd9a627e2021-11-03 13:55:27302#include "chrome/browser/ui/webui/certificates_handler.h"
anina koehlerf1e29df62022-08-10 07:22:32303#include "chromeos/ui/wm/fullscreen/pref_names.h"
Andrew Rayskiy16f8cab2022-12-15 16:28:33304#if BUILDFLAG(USE_CUPS)
Pranav Batrae71407672021-08-16 23:53:00305#include "chrome/browser/extensions/api/printing/printing_api_handler.h"
Andrew Rayskiy16f8cab2022-12-15 16:28:33306#endif // BUILDFLAG(USE_CUPS)
Xiaohan Wangae7f9182022-01-16 00:37:52307#endif // BUILDFLAG(IS_CHROMEOS)
Olya Kalitova39e913d52021-03-16 22:26:22308
Yuta Hijikata31a359c2020-11-27 07:50:26309#if BUILDFLAG(IS_CHROMEOS_ASH)
Yao Li646187a2021-11-16 01:02:11310#include "ash/components/arc/arc_prefs.h"
Henrique Ferreirof9d1cb22021-07-13 01:32:47311#include "ash/constants/ash_pref_names.h"
Eric Sumbed9fdd2023-03-15 18:06:30312#include "ash/public/cpp/ambient/ambient_prefs.h"
Xiyuan Xia5a8c4172019-05-13 16:23:48313#include "ash/public/cpp/ash_prefs.h"
Nikki Fangac3f0592023-02-14 01:31:19314#include "chrome/browser/apps/app_deduplication_service/app_deduplication_service.h"
Jeevan Shikarama73dec1a2022-09-08 05:51:52315#include "chrome/browser/apps/app_preload_service/app_preload_service.h"
Nancy Wang811fe4f92021-10-08 12:28:13316#include "chrome/browser/apps/app_service/metrics/app_platform_metrics_service.h"
Tim Sergeant1231dcc2021-05-10 14:00:57317#include "chrome/browser/apps/app_service/webapk/webapk_prefs.h"
Anastasiia N0582a902021-12-08 17:44:59318#include "chrome/browser/ash/account_manager/account_apps_availability.h"
Pranav Batra468fbe622021-06-23 01:42:36319#include "chrome/browser/ash/account_manager/account_manager_edu_coexistence_controller.h"
Yeunjoo Choife4364d2022-12-14 10:41:37