| # Copyright 2019 The Chromium Authors. All rights reserved. |
| # 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") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "about_flags.h", |
| "about_flags.mm", |
| "ios_chrome_flag_descriptions.cc", |
| "ios_chrome_flag_descriptions.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/autofill/core/common", |
| "//components/autofill/ios/browser", |
| "//components/breadcrumbs/core:feature_flags", |
| "//components/commerce/core:feature_list", |
| "//components/dom_distiller/core", |
| "//components/enterprise", |
| "//components/feature_engagement/public", |
| "//components/feed:feature_list", |
| "//components/flags_ui", |
| "//components/flags_ui:switches", |
| "//components/invalidation/impl:feature_list", |
| "//components/ntp_tiles", |
| "//components/omnibox/browser", |
| "//components/omnibox/common", |
| "//components/optimization_guide/core", |
| "//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/send_tab_to_self", |
| "//components/shared_highlighting/core/common", |
| "//components/signin/core/browser", |
| "//components/signin/ios/browser", |
| "//components/strings:components_strings", |
| "//components/sync/driver", |
| "//components/translate/core/browser", |
| "//components/translate/core/common", |
| "//components/unified_consent", |
| "//components/variations", |
| "//ios/chrome/app/strings:ios_strings", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/browsing_data:feature_flags", |
| "//ios/chrome/browser/crash_report", |
| "//ios/chrome/browser/drag_and_drop", |
| "//ios/chrome/browser/ntp:features", |
| "//ios/chrome/browser/policy", |
| "//ios/chrome/browser/policy:policy_util", |
| "//ios/chrome/browser/screen_time:buildflags", |
| "//ios/chrome/browser/sessions:features", |
| "//ios/chrome/browser/ui:feature_flags", |
| "//ios/chrome/browser/ui/bubble:features", |
| "//ios/chrome/browser/ui/content_suggestions:feature_flags", |
| "//ios/chrome/browser/ui/default_promo:utils", |
| "//ios/chrome/browser/ui/download:features", |
| "//ios/chrome/browser/ui/first_run:field_trial", |
| "//ios/chrome/browser/ui/fullscreen:feature_flags", |
| "//ios/chrome/browser/ui/ntp:feature_flags", |
| "//ios/chrome/browser/ui/omnibox:features", |
| "//ios/chrome/browser/ui/overlays/infobar_banner:feature_flags", |
| "//ios/chrome/browser/ui/popup_menu/overflow_menu:feature_flags", |
| "//ios/chrome/browser/ui/popup_menu/public:features", |
| "//ios/chrome/browser/ui/start_surface:feature_flags", |
| "//ios/chrome/browser/ui/tab_switcher/tab_grid:features", |
| "//ios/chrome/browser/ui/toolbar_container:feature_flags", |
| "//ios/chrome/browser/ui/util:features", |
| "//ios/chrome/browser/web: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:feature_flags" ] |
| } |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| configs += [ "//build/config/compiler:enable_arc" ] |
| 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}}" ] |
| } |