# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("prefs") {
sources = [
"pref_backed_boolean.h",
"pref_backed_boolean.mm",
]
deps = [
"//base",
"//components/prefs",
"//ios/chrome/browser/shared/model/utils",
"//ui/base",
]
}
source_set("pref_names") {
sources = [ "pref_names.h" ]
}
source_set("browser_prefs") {
sources = [
"browser_prefs.h",
"browser_prefs.mm",
]
deps = [
":pref_names",
"//components/autofill/core/browser",
"//components/breadcrumbs/core:status",
"//components/browser_sync",
"//components/browsing_data/core",
"//components/commerce/core:pref_names",
"//components/component_updater",
"//components/component_updater/installer_policies",
"//components/content_settings/core/browser",
"//components/dom_distiller/core",
"//components/enterprise",
"//components/enterprise/idle",
"//components/feed/core/v2/public/ios:feed_ios_public",
"//components/flags_ui",
"//components/gcm_driver",
"//components/handoff",
"//components/history/core/common",
"//components/invalidation/impl:impl",
"//components/language/core/browser",
"//components/lens:enterprise_policy",
"//components/metrics",
"//components/metrics/demographics",
"//components/network_time",
"//components/ntp_tiles",
"//components/omnibox/browser",
"//components/optimization_guide/core",
"//components/password_manager/core/browser",
"//components/payments/core",
"//components/plus_addresses:prefs",
"//components/policy/core/browser",
"//components/policy/core/common",
"//components/pref_registry",
"//components/prefs",
"//components/proxy_config",
"//components/reading_list/core",
"//components/safe_browsing/core/common:safe_browsing_prefs",
"//components/saved_tab_groups:model",
"//components/search_engines",
"//components/segmentation_platform/embedder/default_model:default_model",
"//components/segmentation_platform/public",
"//components/sessions",
"//components/sharing_message",
"//components/signin/core/browser",
"//components/signin/public/identity_manager",
"//components/strings",
"//components/supervised_user/core/browser",
"//components/supervised_user/core/common",
"//components/supervised_user/core/common:buildflags",
"//components/sync",
"//components/sync_sessions",
"//components/translate/core/browser",
"//components/translate/core/common",
"//components/unified_consent",
"//components/update_client",
"//components/variations/service",
"//components/web_resource",
"//ios/chrome/app:variations_app_state_agent",
"//ios/chrome/app/spotlight",
"//ios/chrome/browser/app_store_rating/ui_bundled",
"//ios/chrome/browser/bookmarks/ui_bundled:constants",
"//ios/chrome/browser/bookmarks/ui_bundled:core",
"//ios/chrome/browser/bookmarks/ui_bundled/home:home",
"//ios/chrome/browser/drive/model:policy",
"//ios/chrome/browser/first_run/model",
"//ios/chrome/browser/first_run/ui_bundled:field_trial",
"//ios/chrome/browser/geolocation/model",
"//ios/chrome/browser/incognito_reauth/ui_bundled:incognito_reauth_scene_agent",
"//ios/chrome/browser/memory/model",
"//ios/chrome/browser/metrics/model",
"//ios/chrome/browser/metrics/model:constants",
"//ios/chrome/browser/net/model",
"//ios/chrome/browser/ntp/model:set_up_list_prefs",
"//ios/chrome/browser/ntp/shared/metrics:constants",
"//ios/chrome/browser/ntp_tiles/model/tab_resumption:tab_resumption_prefs",
"//ios/chrome/browser/parcel_tracking:opt_in_status",
"//ios/chrome/browser/parcel_tracking:prefs",
"//ios/chrome/browser/photos/model:policy",
"//ios/chrome/browser/policy/model:policy_util",
"//ios/chrome/browser/prerender/model:prerender_pref",
"//ios/chrome/browser/push_notification/model:push_notification_service_header",
"//ios/chrome/browser/safety_check/model:constants",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/tips_notifications/model:client",
"//ios/chrome/browser/ui/authentication",
"//ios/chrome/browser/ui/authentication/history_sync",
"//ios/chrome/browser/ui/authentication/signin",
"//ios/chrome/browser/ui/content_suggestions",
"//ios/chrome/browser/ui/content_suggestions/safety_check:prefs",
"//ios/chrome/browser/ui/reading_list:reading_list_constants",
"//ios/chrome/browser/upgrade/model:public",
"//ios/chrome/browser/voice/model:prefs",
"//ios/chrome/browser/web/model",
"//ios/chrome/browser/web/model/annotations",
"//ios/chrome/browser/web/model/font_size",
"//ios/components/cookie_util:constants",
"//ios/web/common:features",
"//ui/base",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"browser_prefs_unittest.mm",
"pref_backed_boolean_unittest.mm",
]
deps = [
":browser_prefs",
":prefs",
"//base",
"//components/prefs",
"//components/prefs:test_support",
"//components/signin/public/identity_manager:identity_manager",
"//components/sync_preferences:test_support",
"//ios/chrome/browser/ntp_tiles/model/tab_resumption:tab_resumption_prefs",
"//ios/chrome/browser/safety_check/model:constants",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/utils:test_support",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//testing/gtest",
]
}