# Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//ios/build/chrome_build.gni")
source_set("flags") {
sources = [
"about_flags.h",
"about_flags.mm",
"ios_chrome_flag_descriptions.cc",
"ios_chrome_flag_descriptions.h",
]
deps = [
":system_flags",
"//base",
"//components/autofill/core/common",
"//components/autofill/ios/browser",
"//components/autofill/ios/common",
"//components/bookmarks/common",
"//components/browser_sync:switches",
"//components/commerce/core:feature_list",
"//components/dom_distiller/core",
"//components/download/public/background_service:public",
"//components/enterprise",
"//components/feature_engagement/public",
"//components/feed:feature_list",
"//components/flags_ui",
"//components/flags_ui:switches",
"//components/history/core/browser",
"//components/invalidation/impl:feature_list",
"//components/ntp_tiles",
"//components/omnibox/browser",
"//components/omnibox/common",
"//components/optimization_guide/core",
"//components/optimization_guide/core:features",
"//components/page_content_annotations/core:features",
"//components/page_image_service",
"//components/password_manager/core/browser/features:password_features",
"//components/password_manager/core/common:features",
"//components/payments/core",
"//components/policy:generated",
"//components/policy/core/common:common_constants",
"//components/safe_browsing/core/common",
"//components/search_provider_logos",
"//components/security_state/core",
"//components/segmentation_platform/public",
"//components/send_tab_to_self",
"//components/shared_highlighting/core/common",
"//components/signin/core/browser",
"//components/signin/ios/browser",
"//components/strings:components_strings",
"//components/supervised_user/core/common:features",
"//components/sync/service",
"//components/translate/core/browser",
"//components/translate/core/common",
"//components/unified_consent",
"//components/variations",
"//components/variations/service",
"//ios/chrome/app:background_mode_buildflags",
"//ios/chrome/app/strings",
"//ios/chrome/browser/app_store_rating/ui_bundled:features",
"//ios/chrome/browser/browsing_data/model:feature_flags",
"//ios/chrome/browser/crash_report/model",
"//ios/chrome/browser/credential_provider/model:features",
"//ios/chrome/browser/default_browser/model:utils",
"//ios/chrome/browser/download/ui_bundled:features",
"//ios/chrome/browser/drag_and_drop/model",
"//ios/chrome/browser/find_in_page/model:util",
"//ios/chrome/browser/first_run/ui_bundled:field_trial",
"//ios/chrome/browser/follow/model:feature_flags",
"//ios/chrome/browser/iph_for_new_chrome_user/model:features",
"//ios/chrome/browser/ntp/ui_bundled:feature_flags",
"//ios/chrome/browser/ntp/ui_bundled:feature_flags",
"//ios/chrome/browser/policy/model",
"//ios/chrome/browser/policy/model:constants",
"//ios/chrome/browser/policy/model:policy_util",
"//ios/chrome/browser/price_insights/model:feature",
"//ios/chrome/browser/promos_manager/model:features",
"//ios/chrome/browser/screen_time/model:buildflags",
"//ios/chrome/browser/sessions/model:features",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/public/features:system_flags",
"//ios/chrome/browser/start_surface/ui_bundled:feature_flags",
"//ios/chrome/browser/tabs/model/inactive_tabs:features",
"//ios/chrome/browser/text_selection/model:model_utils",
"//ios/chrome/browser/ui/lens:features",
"//ios/chrome/browser/ui/omnibox:features",
"//ios/chrome/browser/ui/page_info:features",
"//ios/chrome/browser/ui/popup_menu/overflow_menu:feature_flags",
"//ios/chrome/browser/ui/settings/clear_browsing_data:features",
"//ios/chrome/browser/ui/settings/google_services:features",
"//ios/chrome/browser/ui/settings/privacy/privacy_guide:features",
"//ios/chrome/browser/ui/whats_new:util",
"//ios/chrome/browser/web/model:feature_flags",
"//ios/components/security_interstitials/https_only_mode:feature",
"//ios/public/provider/chrome/browser/app_utils:app_utils_api",
"//ios/web/common",
"//ios/web/common:user_agent",
"//ios/web/common:web_view_creation_util",
"//ios/web/public",
]
if (ios_enable_screen_time) {
deps += [ "//ios/chrome/browser/screen_time/model:feature_flags" ]
}
}
source_set("system_flags") {
sources = [
"chrome_switches.cc",
"chrome_switches.h",
]
}
source_set("client_side") {
sources = [
"ios_chrome_field_trials.h",
"ios_chrome_field_trials.mm",
]
deps = [
"//base",
"//components/metrics",
"//components/variations",
"//ios/chrome/app:tests_hook",
"//ios/chrome/browser/first_run/ui_bundled:field_trial",
"//ios/chrome/browser/shared/model/paths",
"//ios/chrome/browser/variations/model:store",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "about_flags_unittest.mm" ]
deps = [
":flags",
":test_data",
"//base",
"//components/flags_ui",
"//components/flags_ui:test_support",
"//testing/gtest",
]
}
bundle_data("test_data") {
sources = [
"//chrome/browser/flag-metadata.json",
"//chrome/browser/flag-never-expire-list.json",
]
outputs = [ "{{bundle_resources_dir}}/{{source_root_relative_dir}}/{{source_file_part}}" ]
}