blob: f24da2d32a2daff4f59741307b90016828c02155 [file] [log] [blame]
Avi Drissmanea1be232022-09-14 23:29:061// Copyright 2012 The Chromium Authors
sdefresne14900ee2015-11-27 14:43:212// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Implementation of about_flags for iOS that sets flags based on experimental
6// settings.
7
Gauthier Ambard999088c2022-09-13 08:36:578#import "ios/chrome/browser/flags/about_flags.h"
sdefresne14900ee2015-11-27 14:43:219
Nazerke9c259052019-06-26 15:30:1010#import <UIKit/UIKit.h>
Gauthier Ambard999088c2022-09-13 08:36:5711#import <stddef.h>
12#import <stdint.h>
sdefresne14900ee2015-11-27 14:43:2113
Avi Drissmaneac566b02023-08-18 02:56:2114#import "base/apple/foundation_util.h"
Gauthier Ambard999088c2022-09-13 08:36:5715#import "base/base_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5716#import "base/check_op.h"
Peter Boström3f798572022-07-26 23:44:3617#import "base/debug/debugging_buildflags.h"
Avi Drissmancac43f22023-01-12 00:58:4118#import "base/functional/bind.h"
19#import "base/functional/callback_helpers.h"
Gauthier Ambard999088c2022-09-13 08:36:5720#import "base/no_destructor.h"
21#import "base/strings/stringprintf.h"
22#import "base/strings/sys_string_conversions.h"
23#import "base/system/sys_info.h"
24#import "components/autofill/core/common/autofill_features.h"
25#import "components/autofill/core/common/autofill_payments_features.h"
26#import "components/autofill/core/common/autofill_switches.h"
27#import "components/autofill/ios/browser/autofill_switches.h"
Menghan YANGf3fe2de52023-02-27 16:38:5028#import "components/bookmarks/common/bookmark_features.h"
Gauthier Ambard999088c2022-09-13 08:36:5729#import "components/commerce/core/commerce_feature_list.h"
30#import "components/commerce/core/flag_descriptions.h"
31#import "components/content_settings/core/common/features.h"
32#import "components/dom_distiller/core/dom_distiller_switches.h"
Raj Tb95d813542022-11-16 21:27:5233#import "components/download/public/background_service/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5734#import "components/enterprise/browser/enterprise_switches.h"
35#import "components/feature_engagement/public/feature_constants.h"
36#import "components/feature_engagement/public/feature_list.h"
37#import "components/feed/feed_feature_list.h"
38#import "components/flags_ui/feature_entry.h"
39#import "components/flags_ui/feature_entry_macros.h"
40#import "components/flags_ui/flags_storage.h"
41#import "components/flags_ui/flags_ui_switches.h"
Benjamin Williams11f39912023-04-13 19:00:2542#import "components/history/core/browser/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5743#import "components/invalidation/impl/invalidation_switches.h"
Benjamin Williamsaa8da8142022-11-14 19:51:0344#import "components/ntp_tiles/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5745#import "components/ntp_tiles/switches.h"
46#import "components/omnibox/browser/omnibox_field_trial.h"
47#import "components/omnibox/common/omnibox_features.h"
48#import "components/optimization_guide/core/optimization_guide_features.h"
Raj Ta921ffc2022-08-25 19:00:2049#import "components/optimization_guide/core/optimization_guide_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5750#import "components/password_manager/core/common/password_manager_features.h"
51#import "components/payments/core/features.h"
52#import "components/policy/core/common/features.h"
Guillaume Jenkinseeb7007c2020-06-25 22:55:4053#import "components/policy/core/common/policy_loader_ios_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5754#import "components/policy/policy_constants.h"
Menghan YANG5b3a78a2023-03-24 17:38:2655#import "components/reading_list/features/reading_list_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5756#import "components/safe_browsing/core/common/features.h"
Chris Lu6fd4eaf2023-08-08 18:29:3057#import "components/segmentation_platform/public/constants.h"
Chris Lub0bad572023-08-07 18:13:2958#import "components/segmentation_platform/public/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2559#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5760#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
61#import "components/signin/core/browser/account_reconcilor.h"
62#import "components/signin/ios/browser/features.h"
63#import "components/signin/public/base/signin_switches.h"
64#import "components/strings/grit/components_strings.h"
Nohemi Fernandez64acf982023-08-04 09:27:1565#import "components/supervised_user/core/common/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5766#import "components/sync/base/command_line_switches.h"
67#import "components/sync/base/features.h"
68#import "components/sync/base/pref_names.h"
69#import "components/translate/core/browser/translate_prefs.h"
70#import "components/translate/core/common/translate_util.h"
Duong Dac4181ab52023-06-07 12:51:5071#import "components/variations/service/google_groups_updater_service.h"
Ed Chin91e44992022-07-27 13:42:3472#import "ios/chrome/app/background_mode_buildflags.h"
Gauthier Ambard02c23422023-09-11 09:11:0173#import "ios/chrome/browser/bring_android_tabs/model/features.h"
Gauthier Ambard5b7f3c22023-09-13 12:03:3074#import "ios/chrome/browser/browsing_data/model/browsing_data_features.h"
Aman Vermab6f55572023-09-28 11:40:5375#import "ios/chrome/browser/crash_report/model/features.h"
Huiting Yua68998d2022-12-14 17:47:5476#import "ios/chrome/browser/credential_provider_promo/features.h"
Scott Yoder663a2262023-03-29 14:27:0477#import "ios/chrome/browser/default_browser/utils.h"
Quentin Puberteb5eb042023-07-03 16:16:2278#import "ios/chrome/browser/find_in_page/util.h"
Gauthier Ambard92605132022-08-26 13:25:1779#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5780#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Tina Wangd3f6f192023-04-05 05:22:4381#import "ios/chrome/browser/follow/follow_features.h"
Huiting Yubc1bf4d2023-06-26 18:15:3282#import "ios/chrome/browser/iph_for_new_chrome_user/features.h"
Ed Chin100660bf2022-04-26 16:59:1383#import "ios/chrome/browser/ntp/features.h"
Hira Mahmood4c15f382023-08-17 16:21:1384#import "ios/chrome/browser/parcel_tracking/parcel_tracking_util.h"
Vincent Boisselle88fef222022-09-23 18:54:5085#import "ios/chrome/browser/policy/cloud/user_policy_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5786#import "ios/chrome/browser/policy/policy_util.h"
Benjamin Williams14233d72022-07-26 18:32:2087#import "ios/chrome/browser/promos_manager/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5788#import "ios/chrome/browser/screen_time/screen_time_buildflags.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:4689#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:3590#import "ios/chrome/browser/shared/public/features/system_flags.h"
Aliona DANGLA3de5d242023-02-15 16:52:3091#import "ios/chrome/browser/tabs/inactive_tabs/features.h"
Ewann Pelle6eecb8f2023-06-23 14:31:3792#import "ios/chrome/browser/tabs/tab_pickup/features.h"
Ewann Pelled2eaeba2023-09-19 09:15:2893#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Hira Mahmoodb0e5f412022-09-01 19:41:0594#import "ios/chrome/browser/ui/app_store_rating/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5795#import "ios/chrome/browser/ui/autofill/features.h"
adamta22a4d502020-05-21 03:12:2196#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h"
Hira Mahmood6b0e5502023-06-12 21:51:4397#import "ios/chrome/browser/ui/default_promo/post_restore/features.h"
Ewann1a9d33d2021-06-14 11:12:2498#import "ios/chrome/browser/ui/download/features.h"
adamta273568472020-12-04 23:53:5799#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
Christian Xub8c06cd2022-04-29 20:55:01100#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Robbie Gibson686c56732021-10-04 17:11:45101#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Ernesto Izquierdo Clua5e589f52023-07-06 20:52:15102#import "ios/chrome/browser/ui/settings/password/password_manager_ui_features.h"
gogerald0ff29e52021-02-03 18:56:19103#import "ios/chrome/browser/ui/start_surface/start_surface_features.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58104#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Gauthier Ambard999088c2022-09-13 08:36:57105#import "ios/chrome/browser/web/features.h"
106#import "ios/chrome/grit/ios_strings.h"
107#import "ios/components/security_interstitials/https_only_mode/feature.h"
108#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
109#import "ios/web/common/features.h"
110#import "ios/web/common/user_agent.h"
111#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21112
Sylvain Defresne9c107082020-10-27 16:39:13113#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
Gauthier Ambard999088c2022-09-13 08:36:57114#import "ios/chrome/browser/screen_time/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13115#endif
116
sdefresne14900ee2015-11-27 14:43:21117#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57118#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22119#endif
stkhapuginc1be1792016-12-13 14:30:53120
elawrence816f6790e2017-06-16 18:19:28121using flags_ui::FeatureEntry;
122
sdefresne14900ee2015-11-27 14:43:21123namespace {
Emily Starkbafa9062017-12-27 15:22:46124
Olivier Robin3d60411622018-02-23 10:03:22125const FeatureEntry::Choice kAutofillIOSDelayBetweenFieldsChoices[] = {
126 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
127 {"0", autofill::switches::kAutofillIOSDelayBetweenFields, "0"},
128 {"10", autofill::switches::kAutofillIOSDelayBetweenFields, "10"},
129 {"20", autofill::switches::kAutofillIOSDelayBetweenFields, "20"},
130 {"50", autofill::switches::kAutofillIOSDelayBetweenFields, "50"},
131 {"100", autofill::switches::kAutofillIOSDelayBetweenFields, "100"},
132 {"200", autofill::switches::kAutofillIOSDelayBetweenFields, "200"},
133 {"500", autofill::switches::kAutofillIOSDelayBetweenFields, "500"},
134 {"1000", autofill::switches::kAutofillIOSDelayBetweenFields, "1000"},
135};
136
Nohemi Fernandezc00842a2021-07-26 11:47:34137const FeatureEntry::Choice
138 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
139 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
140 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
141 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
142 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
143};
144
Cheick Cisse8835611a2023-06-02 21:42:54145// Uses int values from DefaultPromoType enum.
146const FeatureEntry::Choice kDefaultBrowserPromoForceShowPromoChoices[] = {
147 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
148 {"Show generic promo", "default-browser-promo-force-show-promo", "0"},
149 {"Show tailored stay safe promo", "default-browser-promo-force-show-promo",
150 "1"},
151 {"Show tailored made for ios promo",
152 "default-browser-promo-force-show-promo", "2"},
153 {"Show tailored all tabs promo", "default-browser-promo-force-show-promo",
154 "3"},
155 {"Show video promo", "default-browser-promo-force-show-promo", "4"},
156};
157
Stepan Khapugincc4e9842019-01-23 13:38:13158const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
159 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
160const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
161 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
162const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
163 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
164const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
165 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
166const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
167 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
168const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
169 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
170const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
171 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
172
173const FeatureEntry::FeatureVariation
174 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
175 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53176 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13177 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53178 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13179 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53180 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13181 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53182 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13183 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53184 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13185 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53186 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13187 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53188 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13189
Stepan Khapuginbac467e2022-05-06 21:11:54190const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
191 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
192const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
193 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
194const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
195 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
196
197const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
198 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
199 nullptr},
200 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
201 nullptr},
202 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
203 nullptr},
204};
205
Christian Xucf26d562022-07-06 09:28:36206const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
207 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
208const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
209 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
210const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
211 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
212
213const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
214 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
215 nullptr},
216 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
217 nullptr},
218 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
219 nullptr},
220};
221
Cheick Cissedc49dbe2023-08-09 13:33:52222const FeatureEntry::FeatureParam
223 kDefaultBrowserVideoConditionsHalfscreenPromo[] = {
224 {kDefaultBrowserVideoPromoVariant, kVideoConditionsHalfscreenPromo}};
225const FeatureEntry::FeatureParam
226 kDefaultBrowserVideoConditionsFullscreenPromo[] = {
227 {kDefaultBrowserVideoPromoVariant, kVideoConditionsFullscreenPromo}};
228const FeatureEntry::FeatureParam
229 kDefaultBrowserGenericConsitionsFullscreenPromo[] = {
230 {kDefaultBrowserVideoPromoVariant, kGenericConditionsFullscreenPromo}};
231const FeatureEntry::FeatureParam
232 kDefaultBrowserGenericConditionsHalfscreenPromo[] = {
233 {kDefaultBrowserVideoPromoVariant, kGenericConditionsHalfscreenPromo}};
234
Cheick Cisse2806f082b2023-04-25 14:20:01235const FeatureEntry::FeatureVariation kDefaultBrowserVideoPromoVariations[] = {
Cheick Cissedc49dbe2023-08-09 13:33:52236 {"Show half screen ui with video condtions",
237 kDefaultBrowserVideoConditionsHalfscreenPromo,
238 std::size(kDefaultBrowserVideoConditionsHalfscreenPromo), nullptr},
239 {"Show full screen ui with video condtions",
240 kDefaultBrowserVideoConditionsFullscreenPromo,
241 std::size(kDefaultBrowserVideoConditionsFullscreenPromo), nullptr},
242 {"Show full screen ui with generic condtions",
243 kDefaultBrowserGenericConsitionsFullscreenPromo,
244 std::size(kDefaultBrowserGenericConsitionsFullscreenPromo), nullptr},
245 {"Show half screen ui with generic condtions",
246 kDefaultBrowserGenericConditionsHalfscreenPromo,
247 std::size(kDefaultBrowserGenericConditionsHalfscreenPromo), nullptr},
Cheick Cisse2806f082b2023-04-25 14:20:01248};
249
Caitlin Fischer37e01232019-05-24 13:05:45250const FeatureEntry::FeatureParam
Caitlin Fischer37e01232019-05-24 13:05:45251 kAutofillUseMobileLabelDisambiguationShowAll[] = {
252 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
253 autofill::features::
254 kAutofillUseMobileLabelDisambiguationParameterShowAll}};
255const FeatureEntry::FeatureParam
256 kAutofillUseMobileLabelDisambiguationShowOne[] = {
257 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
258 autofill::features::
259 kAutofillUseMobileLabelDisambiguationParameterShowOne}};
260
261const FeatureEntry::FeatureVariation
262 kAutofillUseMobileLabelDisambiguationVariations[] = {
263 {"(show all)", kAutofillUseMobileLabelDisambiguationShowAll,
Daniel Cheng1f047a82022-02-26 10:04:53264 std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr},
Caitlin Fischer37e01232019-05-24 13:05:45265 {"(show one)", kAutofillUseMobileLabelDisambiguationShowOne,
Daniel Cheng1f047a82022-02-26 10:04:53266 std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}};
Caitlin Fischer37e01232019-05-24 13:05:45267
adamta37c6b832023-03-10 20:04:09268// Uses int values from SigninPromoViewStyle enum.
269const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = {
270 {kDiscoverFeedTopSyncPromoStyle, "0"}};
adamta37c6b832023-03-10 20:04:09271const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] =
Guillem Perezc2d13942023-06-22 20:14:59272 {{kDiscoverFeedTopSyncPromoStyle, "1"}};
adamta37c6b832023-03-10 20:04:09273const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = {
Guillem Perezc2d13942023-06-22 20:14:59274 {kDiscoverFeedTopSyncPromoStyle, "2"}};
adamtadb0bfc62022-08-01 17:37:47275
Mohammad Refaatab6bee62022-05-16 16:31:15276const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = {
adamta37c6b832023-03-10 20:04:09277 {"Standard", kDiscoverFeedTopSyncPromoStandard,
278 std::size(kDiscoverFeedTopSyncPromoStandard), nullptr},
adamta37c6b832023-03-10 20:04:09279 {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal,
280 std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr},
281 {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical,
282 std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}};
Mohammad Refaatab6bee62022-05-16 16:31:15283
adamta4a6f2fd22023-02-13 17:37:14284const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = {
285 {kDisableStickyHeaderForFollowingFeed, "true"}};
286const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = {
adamtabc048042023-03-15 22:42:18287 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14288const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = {
289 {kDisableStickyHeaderForFollowingFeed, "true"},
adamtabc048042023-03-15 22:42:18290 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14291
292const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = {
293 {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader,
294 std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr},
295 {"Reduced header height", kFeedHeaderSettingReducedHeight,
296 std::size(kFeedHeaderSettingReducedHeight), nullptr},
297 {"All improvements", kFeedHeaderSettingAllImprovements,
298 std::size(kFeedHeaderSettingAllImprovements), nullptr}};
299
Chris Ludca9ce32023-09-20 16:53:50300const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35301 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50302const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35303 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08304
gogerald0e39e3aa2021-02-10 18:41:23305const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50306 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
307 std::size(kStartSurfaceTenSeconds), nullptr},
308 {"1h:Show Home Surface", kStartSurfaceOneHour,
309 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08310};
gogerald0e39e3aa2021-02-10 18:41:23311
Chris Luce928eb2023-05-12 21:36:26312const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
313 {kMagicStackMostVisitedModuleParam, "true"},
314 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22315const FeatureEntry::FeatureParam
316 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
317 {kMagicStackMostVisitedModuleParam, "true"},
318 {kReducedSpaceParam, "-80"},
319 {kHideIrrelevantModulesParam, "true"}};
Chris Lu22909b42023-09-08 21:12:13320const FeatureEntry::FeatureParam kMagicStackReducedNTPTopSpace[] = {
Chris Luce928eb2023-05-12 21:36:26321 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu22909b42023-09-08 21:12:13322 {kReducedSpaceParam, "20"}};
323const FeatureEntry::FeatureParam
324 kMagicStackReducedNTPTopSpaceHidIrrelevantModules[] = {
325 {kMagicStackMostVisitedModuleParam, "false"},
326 {kReducedSpaceParam, "20"},
327 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26328
329const FeatureEntry::FeatureVariation kMagicStackVariations[]{
330 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
331 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22332 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
333 kMagicStackMostVisitedModuleHideIrrelevantModules,
334 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu22909b42023-09-08 21:12:13335 {"Magic Stack with less NTP Top Space", kMagicStackReducedNTPTopSpace,
336 std::size(kMagicStackReducedNTPTopSpace), nullptr},
337 {"Magic Stack with less NTP Top Space and hide irrelevant modules",
338 kMagicStackReducedNTPTopSpaceHidIrrelevantModules,
339 std::size(kMagicStackReducedNTPTopSpaceHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26340};
341
Chris Lu6fd4eaf2023-08-08 18:29:30342const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
343 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
344
345const FeatureEntry::FeatureVariation
346 kSegmentationPlatformIosModuleRankerVariations[]{
347 {"Enabled With Default Model Parameter (Must Set this!)",
348 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
349 };
350
adamta09aa47e2023-05-23 18:20:43351const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesAll[] = {
352 {kHideContentSuggestionsTilesParamMostVisited, "true"},
353 {kHideContentSuggestionsTilesParamShortcuts, "true"},
354};
355const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesMVT[] = {
356 {kHideContentSuggestionsTilesParamMostVisited, "true"},
357 {kHideContentSuggestionsTilesParamShortcuts, "false"},
358};
359const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesShortcuts[] = {
360 {kHideContentSuggestionsTilesParamMostVisited, "false"},
361 {kHideContentSuggestionsTilesParamShortcuts, "true"},
362};
363
364const FeatureEntry::FeatureVariation kHideContentSuggestionTilesVariations[]{
365 {"Hide all tiles", kHideAllContentSuggestionsTilesAll,
366 std::size(kHideAllContentSuggestionsTilesAll), nullptr},
367 {"Hide Most Visited tiles", kHideAllContentSuggestionsTilesMVT,
368 std::size(kHideAllContentSuggestionsTilesMVT), nullptr},
369 {"Hide Shortcuts tiles", kHideAllContentSuggestionsTilesShortcuts,
370 std::size(kHideAllContentSuggestionsTilesShortcuts), nullptr},
371};
372
Ed Chin91e44992022-07-27 13:42:34373#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26374// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01375const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04376 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
377 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01378 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04379 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01380const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04381 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
382 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01383 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04384 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01385const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04386 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
387 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01388 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04389 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01390const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04391 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
392 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01393 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04394 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01395const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04396 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
397 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01398 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
399 {kBackgroundRefreshIntervalInSeconds, "0"}};
400const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04401 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
402 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01403 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
404 {kBackgroundRefreshIntervalInSeconds, "0"}};
405const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
406 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
407 {kEnableRecurringBackgroundRefreshSchedule, "false"},
408 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
409 {kBackgroundRefreshIntervalInSeconds, "0"}};
410const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
411 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
412 {kEnableRecurringBackgroundRefreshSchedule, "true"},
413 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
414 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04415
Ed Chin178ec2a2023-02-10 22:21:26416// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04417const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01418 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
419 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
420 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
421 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
422 {"1hr Interval 1hr Max Age Recurring",
423 kOneHourIntervalOneHourMaxAgeRecurring,
424 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
425 {"4hr Interval 6hr Max Age Recurring",
426 kFourHourIntervalSixHourMaxAgeRecurring,
427 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
428 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
429 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
430 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
431 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
432 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
433 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
434 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
435 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04436};
Ed Chin91e44992022-07-27 13:42:34437#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04438
Ed Chin178ec2a2023-02-10 22:21:26439// Feed Foreground Refresh Feature Params.
Ed Chin5c1fd532023-03-20 17:43:29440const FeatureEntry::FeatureParam kFeedSessionCloseForegroundRefresh[] = {
441 {kEnableFeedSessionCloseForegroundRefresh, "true"},
Ed Chin44e6c7e2023-03-22 00:32:54442 {kEnableFeedAppCloseForegroundRefresh, "false"},
443 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
Ed Chin5c1fd532023-03-20 17:43:29444const FeatureEntry::FeatureParam kFeedAppCloseForegroundRefresh[] = {
445 {kEnableFeedSessionCloseForegroundRefresh, "false"},
Ed Chin44e6c7e2023-03-22 00:32:54446 {kEnableFeedAppCloseForegroundRefresh, "true"},
447 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
448const FeatureEntry::FeatureParam kFeedAppCloseBackgroundRefresh[] = {
449 {kEnableFeedSessionCloseForegroundRefresh, "false"},
450 {kEnableFeedAppCloseForegroundRefresh, "false"},
451 {kEnableFeedAppCloseBackgroundRefresh, "true"}};
Ed Chin178ec2a2023-02-10 22:21:26452
Ed Chin5c1fd532023-03-20 17:43:29453// Feed Invisible Foreground Refresh Feature Variations.
454const FeatureEntry::FeatureVariation
455 kFeedInvisibleForegroundRefreshVariations[] = {
456 {"session close foreground refresh", kFeedSessionCloseForegroundRefresh,
457 std::size(kFeedSessionCloseForegroundRefresh), nullptr},
458 {"app close foreground refresh", kFeedAppCloseForegroundRefresh,
459 std::size(kFeedAppCloseForegroundRefresh), nullptr},
Ed Chin44e6c7e2023-03-22 00:32:54460 {"app close background refresh", kFeedAppCloseBackgroundRefresh,
461 std::size(kFeedAppCloseBackgroundRefresh), nullptr},
Ed Chin178ec2a2023-02-10 22:21:26462};
463
ginnnnnnnyf907fd92023-06-14 22:21:40464const FeatureEntry::FeatureParam kAutofillBrandingIOSUntilInteracted[] = {
465 {autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
466 autofill::features::kAutofillBrandingIOSParamFrequencyTypeUntilInteracted},
467 {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
468 autofill::features::
469 kAutofillBrandingIOSParamFrequencyTypeUntilInteracted}};
470const FeatureEntry::FeatureParam kAutofillBrandingIOSAlwaysShowAndSlideOut[] = {
ginnnnnnnycde6fcbb2023-05-23 16:18:07471 {autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
472 autofill::features::
473 kAutofillBrandingIOSParamFrequencyTypeAlwaysShowAndDismiss},
474 {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
475 autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}};
ginnnnnnnyf907fd92023-06-14 22:21:40476const FeatureEntry::FeatureParam kAutofillBrandingIOSSlideOutWhenInteracted[] =
477 {{autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
478 autofill::features::
479 kAutofillBrandingIOSParamFrequencyTypeDismissWhenInteracted},
480 {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
481 autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}};
ginnnnnnny591a4972022-09-01 16:10:27482const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = {
ginnnnnnnycde6fcbb2023-05-23 16:18:07483 {"(will not show again after user interacts with keyboard accessories)",
ginnnnnnnyf907fd92023-06-14 22:21:40484 kAutofillBrandingIOSUntilInteracted,
485 std::size(kAutofillBrandingIOSUntilInteracted), nullptr},
486 {"(shows and slides out from leading edge every time)",
487 kAutofillBrandingIOSAlwaysShowAndSlideOut,
488 std::size(kAutofillBrandingIOSAlwaysShowAndSlideOut), nullptr},
489 {"(slides out from leading edge after user interacts with keyboard "
490 "accessories)",
491 kAutofillBrandingIOSSlideOutWhenInteracted,
492 std::size(kAutofillBrandingIOSSlideOutWhenInteracted), nullptr}};
ginnnnnnny591a4972022-09-01 16:10:27493
Raj T18a2c8c2023-03-15 17:20:15494const FeatureEntry::FeatureParam kEnableExpKitTextClassifierDate[] = {
495 {"date", "true"}};
496const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddress[] = {
497 {"address", "true"}};
498const FeatureEntry::FeatureParam kEnableExpKitTextClassifierPhoneNumber[] = {
499 {"phonenumber", "true"}};
500const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmail[] = {
501 {"email", "true"}};
Raj Te702d4e2023-05-15 21:03:50502const FeatureEntry::FeatureParam kEnableExpKitTextClassifierOneTap[] = {
503 {"onetap", "true"}};
Raj T18a2c8c2023-03-15 17:20:15504const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAll[] = {
505 {"date", "true"},
506 {"address", "true"},
507 {"phonenumber", "true"},
508 {"email", "true"}};
509const FeatureEntry::FeatureVariation kEnableExpKitTextClassifierVariations[] = {
510 {"Enabled for all entities", kEnableExpKitTextClassifierAll,
511 std::size(kEnableExpKitTextClassifierAll), nullptr},
512 {"Enabled for date", kEnableExpKitTextClassifierDate,
513 std::size(kEnableExpKitTextClassifierDate), nullptr},
514 {"Enabled for address", kEnableExpKitTextClassifierAddress,
515 std::size(kEnableExpKitTextClassifierAddress), nullptr},
516 {"Enabled for phonenumber", kEnableExpKitTextClassifierPhoneNumber,
517 std::size(kEnableExpKitTextClassifierPhoneNumber), nullptr},
518 {"Enabled for email", kEnableExpKitTextClassifierEmail,
Raj Te702d4e2023-05-15 21:03:50519 std::size(kEnableExpKitTextClassifierEmail), nullptr},
520 {"Enabled for One Tap mode", kEnableExpKitTextClassifierOneTap,
521 std::size(kEnableExpKitTextClassifierOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15522
Louis Romero93e9b50a2023-01-26 01:46:12523const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
524 {kTabInactivityThresholdParameterName,
525 kTabInactivityThresholdOneWeekParam}};
526const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
527 {kTabInactivityThresholdParameterName,
528 kTabInactivityThresholdTwoWeeksParam}};
529const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
530 {kTabInactivityThresholdParameterName,
531 kTabInactivityThresholdThreeWeeksParam}};
Louis Romero56abd902023-03-15 16:21:58532const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = {
533 {kTabInactivityThresholdParameterName,
534 kTabInactivityThresholdOneMinuteDemoParam}};
Louis Romero93e9b50a2023-01-26 01:46:12535
536const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
537 {"One week", kTabInactivityThresholdOneWeek,
538 std::size(kTabInactivityThresholdOneWeek), nullptr},
539 {"Two weeks", kTabInactivityThresholdTwoWeeks,
540 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
541 {"Three weeks", kTabInactivityThresholdThreeWeeks,
542 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
Louis Romero56abd902023-03-15 16:21:58543 {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo,
544 std::size(kTabInactivityThresholdOneMinuteDemo), nullptr},
Louis Romero93e9b50a2023-01-26 01:46:12545};
546
Ewann Pelle6eecb8f2023-06-23 14:31:37547const FeatureEntry::FeatureParam kTabPickupThresholdTenMinutes[] = {
548 {kTabPickupThresholdParameterName, kTabPickupThresholdTenMinutesParam}};
549const FeatureEntry::FeatureParam kTabPickupThresholdOneHour[] = {
550 {kTabPickupThresholdParameterName, kTabPickupThresholdOneHourParam}};
551const FeatureEntry::FeatureParam kTabPickupThresholdTwoHours[] = {
552 {kTabPickupThresholdParameterName, kTabPickupThresholdTwoHoursParam}};
553
554const FeatureEntry::FeatureVariation kTabPickupThresholdVariations[] = {
555 {"Ten Minutes", kTabPickupThresholdTenMinutes,
Ewann Pellea2bcb3a2023-08-28 13:53:00556 std::size(kTabPickupThresholdTenMinutes), nullptr},
Ewann Pelle6eecb8f2023-06-23 14:31:37557 {"One Hour", kTabPickupThresholdOneHour,
Ewann Pellea2bcb3a2023-08-28 13:53:00558 std::size(kTabPickupThresholdOneHour), nullptr},
Ewann Pelle6eecb8f2023-06-23 14:31:37559 {"Two Hours", kTabPickupThresholdTwoHours,
Ewann Pellea2bcb3a2023-08-28 13:53:00560 std::size(kTabPickupThresholdTwoHours), nullptr},
561};
562
563const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = {
564 {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}};
565const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = {
566 {kTabResumptionParameterName, kTabResumptionAllTabsParam}};
567
568const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
569 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
570 std::size(kTabResumptionMostRecentTabOnly), nullptr},
571 {"Most recent tab and last synced tab", kTabResumptionAllTabs,
572 std::size(kTabResumptionAllTabs), nullptr},
Ewann Pelle6eecb8f2023-06-23 14:31:37573};
574
Huiting Yud7d2a5322023-02-09 21:14:22575const FeatureEntry::FeatureParam
576 kCredentialProviderExtensionPromoOnPasswordSaved[] = {
577 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
578const FeatureEntry::FeatureParam
579 kCredentialProviderExtensionPromoOnPasswordCopied[] = {
580 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}};
581const FeatureEntry::FeatureParam
Hira Mahmood1baa9be2023-05-25 13:55:20582 kCredentialProviderExtensionPromoOnAllTriggers[] = {
Hira Mahmood1baa9be2023-05-25 13:55:20583 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"},
584 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
Huiting Yud7d2a5322023-02-09 21:14:22585
586const FeatureEntry::FeatureVariation
587 kCredentialProviderExtensionPromoVariations[] = {
588 {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved,
589 std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr},
590 {"On password copied",
591 kCredentialProviderExtensionPromoOnPasswordCopied,
592 std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr},
Hira Mahmood1baa9be2023-05-25 13:55:20593 {"On all triggers", kCredentialProviderExtensionPromoOnAllTriggers,
Huiting Yu7997667e2023-07-07 16:12:30594 std::size(kCredentialProviderExtensionPromoOnAllTriggers), nullptr}};
Huiting Yud7d2a5322023-02-09 21:14:22595
Olivier ROBINfd3887b72023-02-23 14:45:42596const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
597 {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
Olivier Robinfa8de5502023-06-21 19:53:44598const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateWithIncognito[] = {
599 {kIOSEditMenuPartialTranslateNoIncognitoParam, "false"}};
Olivier ROBINfd3887b72023-02-23 14:45:42600const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
601 {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
Olivier Robinfa8de5502023-06-21 19:53:44602 std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr},
603 {"Enable on incognito", kIOSEditMenuPartialTranslateWithIncognito,
604 std::size(kIOSEditMenuPartialTranslateWithIncognito), nullptr}};
Olivier ROBINfd3887b72023-02-23 14:45:42605
ginnnnnnny75903622023-03-01 18:00:00606const FeatureEntry::FeatureParam kBringYourOwnTabsIOSBottomMessage[] = {
607 {kBringYourOwnTabsIOSParam, "true"}};
608const FeatureEntry::FeatureVariation kBringYourOwnTabsIOSVariations[] = {
609 {"with bottom message on tab grid", kBringYourOwnTabsIOSBottomMessage,
610 std::size(kBringYourOwnTabsIOSBottomMessage), nullptr}};
611
Olivier ROBIN2613bcd02023-04-20 10:00:47612const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearchWith[] = {
613 {kIOSEditMenuSearchWithTitleParamTitle,
614 kIOSEditMenuSearchWithTitleSearchWithParam}};
615const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearch[] = {
616 {kIOSEditMenuSearchWithTitleParamTitle,
617 kIOSEditMenuSearchWithTitleSearchParam}};
618const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleWebSearch[] = {
619 {kIOSEditMenuSearchWithTitleParamTitle,
620 kIOSEditMenuSearchWithTitleWebSearchParam}};
621const FeatureEntry::FeatureVariation kIOSEditMenuSearchWithVariations[] = {
622 {"Search with DSE", kIOSEditMenuSearchWithTitleSearchWith,
623 std::size(kIOSEditMenuSearchWithTitleSearchWith), nullptr},
624 {"Search", kIOSEditMenuSearchWithTitleSearch,
625 std::size(kIOSEditMenuSearchWithTitleSearch), nullptr},
626 {"Web Search", kIOSEditMenuSearchWithTitleWebSearch,
627 std::size(kIOSEditMenuSearchWithTitleWebSearch), nullptr},
628};
629
Hira Mahmood6b0e5502023-06-12 21:51:43630const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoHalfscreen[] = {
631 {kPostRestoreDefaultBrowserPromoHalfscreenParam, "true"}};
632const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoFullscreen[] = {
633 {kPostRestoreDefaultBrowserPromoFullscreenParam, "true"}};
634const FeatureEntry::FeatureVariation
635 kPostRestoreDefaultBrowserPromoVariations[] = {
636 {"with half screen ui", kPostRestoreDefaultBrowserPromoHalfscreen,
637 std::size(kPostRestoreDefaultBrowserPromoHalfscreen), nullptr},
638 {"with full screen ui", kPostRestoreDefaultBrowserPromoFullscreen,
639 std::size(kPostRestoreDefaultBrowserPromoFullscreen), nullptr},
640};
641
Christian Xu07d600192023-07-24 12:29:52642const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
643 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
644const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
645 {kBottomOmniboxDefaultSettingParam,
646 kBottomOmniboxDefaultSettingParamBottom}};
647const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
648 {{kBottomOmniboxDefaultSettingParam,
649 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
650const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
651 {
652 {"Top", kBottomOmniboxDefaultSettingTop,
653 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
654 {"Bottom", kBottomOmniboxDefaultSettingBottom,
655 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
656 {"Bottom for Safari Switcher",
657 kBottomOmniboxDefaultSettingSafariSwitcher,
658 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
659};
660
Marc Treib9bddebb2023-06-15 14:03:34661const FeatureEntry::Choice kReplaceSyncPromosWithSignInPromosChoices[] = {
662 {"Default", "", ""},
Marc Treib565b4182023-07-28 10:27:25663 {"Disabled", "disable-features",
664 "ReplaceSyncPromosWithSignInPromos,"
Victor Hugo Vianna Silvaa730e2c2023-08-31 10:28:24665 "ConsistencyNewAccountInterface,"
Marc Treib565b4182023-07-28 10:27:25666 "FeedBottomSyncStringRemoval"},
667 {"Base only", "enable-features",
668 "ReplaceSyncPromosWithSignInPromos,"
Victor Hugo Vianna Silvaa730e2c2023-08-31 10:28:24669 "ConsistencyNewAccountInterface,"
Marc Treib565b4182023-07-28 10:27:25670 "FeedBottomSyncStringRemoval"},
Marc Treib9bddebb2023-06-15 14:03:34671 {"Everything (bookmarks, reading list, etc)", "enable-features",
672 "ReplaceSyncPromosWithSignInPromos,"
Victor Hugo Vianna Silvaa730e2c2023-08-31 10:28:24673 "ConsistencyNewAccountInterface,"
Marc Treib565b4182023-07-28 10:27:25674 "FeedBottomSyncStringRemoval,"
Marc Treib9bddebb2023-06-15 14:03:34675 "SyncEnableContactInfoDataTypeInTransportMode,"
Marc Treibae48ec482023-08-04 16:33:37676 "SyncEnableContactInfoDataTypeForCustomPassphraseUsers,"
Jood Hajeer5c609ec2023-09-05 12:20:55677 "SyncEnableBatchUploadLocalData,"
Marc Treibd4de9272023-09-19 13:54:06678 "EnablePreferencesAccountStorage,"
679 "SyncEnableWalletMetadataInTransportMode,"
Marc Treibfcc40d02023-09-20 18:16:06680 "SyncEnableWalletOfferInTransportMode,"
681 "IOSPasswordSettingsBulkUploadLocalPasswords"},
Marc Treib9bddebb2023-06-15 14:03:34682};
683
Olivier ROBIN82b67002023-07-31 14:34:46684const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
685 {web::features::kOneTapForMapsConsentModeParamTitle,
686 web::features::kOneTapForMapsConsentModeDefaultParam}};
687const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
688 {web::features::kOneTapForMapsConsentModeParamTitle,
689 web::features::kOneTapForMapsConsentModeForcedParam}};
690const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
691 {web::features::kOneTapForMapsConsentModeParamTitle,
692 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31693const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
694 {web::features::kOneTapForMapsConsentModeParamTitle,
695 web::features::kOneTapForMapsConsentModeIPHParam}};
696const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
697 {web::features::kOneTapForMapsConsentModeParamTitle,
698 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46699const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
700 {"Consent Default", kOneTapForMapsConsentModeDefault,
701 std::size(kOneTapForMapsConsentModeDefault), nullptr},
702 {"Consent Forced", kOneTapForMapsConsentModeForced,
703 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31704 {"Consent IPH", kOneTapForMapsConsentModeIPH,
705 std::size(kOneTapForMapsConsentModeIPH), nullptr},
706 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
707 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46708 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
709 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
710};
711
Cooper Knaak1e026562017-07-26 05:22:28712// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21713// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28714// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
715// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21716// macro for this type supplying the command line to the macro.
717// . MULTI_VALUE: a list of choices, the first of which should correspond to a
718// deactivated state for this lab (i.e. no command line option). To specify
719// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
720// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28721// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
722// either enabled, disabled, or uses the default value of the associated
723// base::Feature instance. To specify this type of entry use the macro
724// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
725// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
726// base::Feature instance. Choices corresponding to the default state, a
727// universally enabled state, and a universally disabled state are
728// automatically included. To specify this type of entry use the macro
729// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
730// the array of choices.
731//
sdefresne14900ee2015-11-27 14:43:21732// See the documentation of FeatureEntry for details on the fields.
733//
734// When adding a new choice, add it to the end of the list.
735const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28736 {"in-product-help-demo-mode-choice",
737 flag_descriptions::kInProductHelpDemoModeName,
738 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
739 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23740 feature_engagement::kIPHDemoMode,
741 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09742 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22743 {"enable-autofill-credit-card-upload",
744 flag_descriptions::kAutofillCreditCardUploadName,
745 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24746 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23747 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
748 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
749 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51750 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:23751 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
752 {"wallet-service-use-sandbox",
753 flag_descriptions::kWalletServiceUseSandboxName,
754 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
755 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
756 autofill::switches::kWalletServiceUseSandbox,
757 "1",
758 autofill::switches::kWalletServiceUseSandbox,
759 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:59760 {"show-autofill-type-predictions",
761 flag_descriptions::kShowAutofillTypePredictionsName,
762 flag_descriptions::kShowAutofillTypePredictionsDescription,
763 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:50764 FEATURE_VALUE_TYPE(
765 autofill::features::test::kAutofillShowTypePredictions)},
Vidhan Jainb86c94b2023-04-06 14:13:57766 {"autofill-account-profiles-storage",
767 flag_descriptions::kAutofillAccountProfilesStorageName,
768 flag_descriptions::kAutofillAccountProfilesStorageDescription,
769 flags_ui::kOsIos,
770 FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfileStorage)},
Olivier Robin3d60411622018-02-23 10:03:22771 {"autofill-ios-delay-between-fields",
772 flag_descriptions::kAutofillIOSDelayBetweenFieldsName,
773 flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription,
774 flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)},
Benjamin Williamsdf18e7e2022-10-03 18:46:05775 {"fullscreen-promos-manager-skip-internal-limits",
776 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
777 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
778 flags_ui::kOsIos,
779 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:14780 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:53781 flag_descriptions::kFullscreenSmoothScrollingName,
782 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:19783 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:06784 {"webpage-default-zoom-from-dynamic-type",
785 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
786 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
787 flags_ui::kOsIos,
788 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:56789 {"webpage-alternative-text-zoom",
790 flag_descriptions::kWebPageAlternativeTextZoomName,
791 flag_descriptions::kWebPageAlternativeTextZoomDescription,
792 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:34793 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
794 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
795 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Stepan Khapugincc4e9842019-01-23 13:38:13796 {"omnibox-ui-max-autocomplete-matches",
797 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
798 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
799 flags_ui::kOsIos,
800 FEATURE_WITH_PARAMS_VALUE_TYPE(
801 omnibox::kUIExperimentMaxAutocompleteMatches,
802 kOmniboxUIMaxAutocompleteMatchesVariations,
803 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:35804 {"omnibox-local-history-zero-suggest-beyond-ntp",
805 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
806 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
807 flags_ui::kOsIos,
808 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:54809 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
810 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
811 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
812 kOmniboxMaxZPSMatchesVariations,
813 "OmniboxMaxZPSVariations")},
Stepan Khapugind9876842023-01-27 17:59:45814
815 {"omnibox-most-visited-tiles-on-srp",
816 flag_descriptions::kOmniboxMostVisitedTilesOnSrpName,
817 flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription,
818 flags_ui::kOsIos,
819 FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)},
Caitlin Fischer43edd90a2019-05-01 13:24:30820 {"autofill-use-mobile-label-disambiguation",
821 flag_descriptions::kAutofillUseMobileLabelDisambiguationName,
822 flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription,
823 flags_ui::kOsIos,
Caitlin Fischer37e01232019-05-24 13:05:45824 FEATURE_WITH_PARAMS_VALUE_TYPE(
825 autofill::features::kAutofillUseMobileLabelDisambiguation,
826 kAutofillUseMobileLabelDisambiguationVariations,
827 "AutofillUseMobileLabelDisambiguation")},
Jérôme Lebelc374fdd2019-09-27 10:36:48828 {"force-startup-signin-promo",
829 flag_descriptions::kForceStartupSigninPromoName,
830 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:29831 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Yoichi Osato7ae11752021-03-16 03:27:22832 {"restore-session-from-cache",
833 flag_descriptions::kRestoreSessionFromCacheName,
834 flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos,
Justin Cohen3ec2522c2021-04-23 18:23:49835 FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)},
Tommy Martino6b4eb7e2020-06-25 18:25:41836 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
837 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
838 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:13839#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:45840 {"screen-time-integration-ios",
841 flag_descriptions::kScreenTimeIntegrationName,
842 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
843 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:13844#endif
Nazerke3e993f72020-09-21 13:00:06845 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
846 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
847 FEATURE_VALUE_TYPE(kModernTabStrip)},
Eugene Butf869bff2020-12-10 01:16:55848 {"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName,
849 flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos,
850 FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)},
Cheick Cisse76ade3d2020-12-16 00:15:11851 {"ios-shared-highlighting-color-change",
852 flag_descriptions::kIOSSharedHighlightingColorChangeName,
853 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:07854 flags_ui::kOsIos,
855 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:34856 {"ios-shared-highlighting-v2",
857 flag_descriptions::kIOSSharedHighlightingV2Name,
858 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
859 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Stepan Khapugin04341202021-01-07 12:22:45860 {"omnibox-new-textfield-implementation",
861 flag_descriptions::kOmniboxNewImplementationName,
862 flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos,
863 FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)},
Stepan Khapugin0be8f6d2022-09-21 20:22:26864 {"omnibox-on-focus-suggestions-contextual-web",
865 flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName,
866 flag_descriptions::
867 kOmniboxFocusTriggersContextualWebZeroSuggestDescription,
868 flags_ui::kOsIos,
869 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)},
870 {"omnibox-on-focus-suggestions-srp",
871 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName,
872 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription,
873 flags_ui::kOsIos,
874 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)},
Stepan Khapugin0da12382023-01-24 16:08:12875 {"omnibox-report-assisted-query-stats",
876 flag_descriptions::kOmniboxReportAssistedQueryStatsName,
877 flag_descriptions::kOmniboxReportAssistedQueryStatsDescription,
878 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)},
879 {"omnibox-report-searchbox-stats",
880 flag_descriptions::kOmniboxReportSearchboxStatsName,
881 flag_descriptions::kOmniboxReportSearchboxStatsDescription,
882 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)},
Stepan Khapuginecf128a92022-08-30 11:23:15883 {"omnibox-fuzzy-url-suggestions",
884 flag_descriptions::kOmniboxFuzzyUrlSuggestionsName,
885 flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription,
886 flags_ui::kOsIos,
887 FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)},
gogerald0ff29e52021-02-03 18:56:19888 {"start-surface", flag_descriptions::kStartSurfaceName,
889 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:23890 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
891 kStartSurfaceVariations,
892 "StartSurface")},
Vidhan Jain451b4752021-07-15 10:16:42893 {"autofill-address-verification-in-save-prompt",
894 flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName,
895 flag_descriptions::
896 kEnableAutofillAddressSavePromptAddressVerificationDescription,
897 flags_ui::kOsIos,
898 FEATURE_VALUE_TYPE(
899 autofill::features::
900 kAutofillAddressProfileSavePromptAddressVerificationSupport)},
Side Yilmaz6c53f7102021-09-07 13:26:19901 {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName,
902 flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos,
903 FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)},
Nohemi Fernandezc00842a2021-07-26 11:47:34904 {"wait-threshold-seconds-for-capabilities-api",
905 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
906 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
907 flags_ui::kOsIos,
908 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Sylvain Defresnedff67e42021-09-24 09:43:03909 {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName,
910 flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos,
911 FEATURE_VALUE_TYPE(kNewOverflowMenu)},
Guillem Perez49e1df42023-08-23 22:15:24912 {"content-push-notifications",
913 flag_descriptions::kContentPushNotificationsName,
914 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
915 FEATURE_VALUE_TYPE(kContentPushNotifications)},
Robbie Gibsoned7f6ffb2023-05-15 16:03:57916 {"overflow-menu-customization",
917 flag_descriptions::kOverflowMenuCustomizationName,
918 flag_descriptions::kOverflowMenuCustomizationDescription, flags_ui::kOsIos,
919 FEATURE_VALUE_TYPE(kOverflowMenuCustomization)},
Jason Hu3830a072022-08-19 20:56:22920 {"enable-lens-in-home-screen-widget",
921 flag_descriptions::kEnableLensInHomeScreenWidgetName,
922 flag_descriptions::kEnableLensInHomeScreenWidgetDescription,
923 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)},
924 {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName,
925 flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos,
926 FEATURE_VALUE_TYPE(kEnableLensInKeyboard)},
927 {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName,
928 flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos,
929 FEATURE_VALUE_TYPE(kEnableLensInNTP)},
Anudeep Palanki403c907a2023-01-25 20:30:03930 {"enable-lens-context-menu-alt-text",
931 flag_descriptions::kEnableLensContextMenuAltTextName,
932 flag_descriptions::kEnableLensContextMenuAltTextDescription,
933 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)},
Jason Hu67cfb0f2022-11-14 20:21:44934 {"enable-lens-in-omnibox-copied-image",
935 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
936 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
937 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Benjamin Williamsbee6ab62022-02-28 18:09:40938 {"use-load-simulated-request-for-error-page-navigation",
Gauthier Ambard33cceaf2022-05-05 14:00:23939 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName,
940 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription,
Benjamin Williamsbee6ab62022-02-28 18:09:40941 flags_ui::kOsIos,
Gauthier Ambard33cceaf2022-05-05 14:00:23942 FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)},
Sergio Collazos9fcc6ed2021-10-06 00:58:03943 {"enable-disco-feed-endpoint",
944 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
945 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
946 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:11947 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Mohammad Refaatab6bee62022-05-16 16:31:15948 {"enable-discover-feed-top-sync-promo",
949 flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
950 flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
951 flags_ui::kOsIos,
952 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
953 kDiscoverFeedTopSyncPromoVariations,
954 "EnableDiscoverFeedTopSyncPromo")},
adamta4a6f2fd22023-02-13 17:37:14955 {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
956 flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
957 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
958 kFeedHeaderSettingsVariations,
959 "FeedHeaderSettings")},
Tommy Martino7393d762021-10-12 17:59:28960 {"shared-highlighting-amp",
961 flag_descriptions::kIOSSharedHighlightingAmpName,
962 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
963 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:28964 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:42965 commerce::flag_descriptions::kCommercePriceTrackingName,
966 commerce::flag_descriptions::kCommercePriceTrackingDescription,
967 flags_ui::kOsIos,
968 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
969 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:15970 "CommercePriceTracking")},
adamta250f4ad2023-08-02 15:26:06971 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
972 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
973 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:54974 {"ntp-view-hierarchy-repair",
975 flag_descriptions::kNTPViewHierarchyRepairName,
976 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:20977 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Joemer Ramosc34a30a02022-09-22 15:18:43978 {"enable-tailored-security-integration",
979 flag_descriptions::kTailoredSecurityIntegrationName,
980 flag_descriptions::kTailoredSecurityIntegrationDescription,
981 flags_ui::kOsIos,
982 FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)},
Vishwas Uppoor89303a92022-08-03 00:56:26983 {"autofill-enable-card-product-name",
984 flag_descriptions::kAutofillEnableCardProductNameName,
985 flag_descriptions::kAutofillEnableCardProductNameDescription,
986 flags_ui::kOsIos,
987 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Victor Hugo Vianna Silvaf0a44002022-02-16 10:38:00988 {"send-tab-to-self-signin-promo",
989 flag_descriptions::kSendTabToSelfSigninPromoName,
990 flag_descriptions::kSendTabToSelfSigninPromoDescription, flags_ui::kOsIos,
991 FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfSigninPromo)},
Jared Saulb0473bd2022-04-20 00:03:41992 {"autofill-upstream-allow-additional-email-domains",
993 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName,
994 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription,
995 flags_ui::kOsIos,
996 FEATURE_VALUE_TYPE(
997 autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)},
998 {"autofill-upstream-allow-all-email-domains",
999 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName,
1000 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription,
1001 flags_ui::kOsIos,
1002 FEATURE_VALUE_TYPE(
1003 autofill::features::kAutofillUpstreamAllowAllEmailDomains)},
Raj Tb95d813542022-11-16 21:27:521004 {"enable-download-service-foreground-session",
1005 flag_descriptions::kDownloadServiceForegroundSessionName,
1006 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1007 flags_ui::kOsIos,
1008 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231009 {"enable-tflite-language-detection",
1010 flag_descriptions::kTFLiteLanguageDetectionName,
1011 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1012 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201013 {"optimization-guide-debug-logs",
1014 flag_descriptions::kOptimizationGuideDebugLogsName,
1015 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1016 flags_ui::kOsIos,
1017 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Raj T5aacebd2023-05-22 19:45:091018 {"optimization-guide-install-wide-model-store",
1019 flag_descriptions::kOptimizationGuideInstallWideModelStoreName,
1020 flag_descriptions::kOptimizationGuideInstallWideModelStoreDescription,
1021 flags_ui::kOsIos,
1022 FEATURE_VALUE_TYPE(optimization_guide::features::
1023 kOptimizationGuideInstallWideModelStore)},
Daniel Whited02b6962023-02-14 14:19:551024 {"optimization-guide-push-notifications",
1025 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1026 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1027 flags_ui::kOsIos,
1028 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
Benjamin Williams11f39912023-04-13 19:00:251029 {"sync-segments-data", flag_descriptions::kSyncSegmentsDataName,
1030 flag_descriptions::kSyncSegmentsDataDescription, flags_ui::kOsIos,
1031 FEATURE_VALUE_TYPE(history::kSyncSegmentsData)},
Christian Xub8c06cd2022-04-29 20:55:011032 {"suggestions-scrolling-ipad",
1033 flag_descriptions::kEnableSuggestionsScrollingOnIPadName,
1034 flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription,
1035 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)},
Stepan Khapuginfee136c62022-11-28 13:24:001036 {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName,
1037 flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos,
1038 FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)},
Elmehdi Rahmaoui5a6273a22022-11-28 16:19:251039 {"intents-on-phone-number", flag_descriptions::kPhoneNumberName,
1040 flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331041 FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)},
David Jeanad303a92023-07-31 16:58:111042 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1043 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1044 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
Elmehdi Rahmaoui21e87d52022-11-09 15:00:551045 {"experience-kit-apple-calendar",
1046 flag_descriptions::kAppleCalendarExperienceKitName,
1047 flag_descriptions::kAppleCalendarExperienceKitDescription,
1048 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)},
Raj T7db7a0e2022-11-17 16:33:081049 {"enable-expkit-text-classifier",
1050 flag_descriptions::kEnableExpKitTextClassifierName,
1051 flag_descriptions::kEnableExpKitTextClassifierDescription,
Raj T18a2c8c2023-03-15 17:20:151052 flags_ui::kOsIos,
1053 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifier,
1054 kEnableExpKitTextClassifierVariations,
1055 "ExpKitTextClassifier")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331056 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1057 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461058 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1059 kOneTapForMapsWithVariations,
1060 "OneTapForMaps")},
David Jean139ba1bf2023-08-31 15:59:321061 {"enable-annotations-language-detection",
1062 flag_descriptions::kUseAnnotationsForLanguageDetectionName,
1063 flag_descriptions::kUseAnnotationsForLanguageDetectionDescription,
1064 flags_ui::kOsIos,
1065 FEATURE_VALUE_TYPE(web::features::kUseAnnotationsForLanguageDetection)},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251066 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1067 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1068 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Benjamin Williamsf721fc22023-01-10 23:28:251069 {"smart-sorting-price-tracking-destination",
1070 flag_descriptions::kSmartSortingPriceTrackingDestinationName,
1071 flag_descriptions::kSmartSortingPriceTrackingDestinationDescription,
1072 flags_ui::kOsIos,
1073 FEATURE_VALUE_TYPE(kSmartSortingPriceTrackingDestination)},
Alexander Tekleb4643812023-01-06 23:12:301074 {"autofill-enable-ranking-formula-address-profiles",
1075 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1076 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1077 flags_ui::kOsIos,
1078 FEATURE_VALUE_TYPE(
1079 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391080 {"autofill-enable-ranking-formula-credit-cards",
1081 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1082 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1083 flags_ui::kOsIos,
1084 FEATURE_VALUE_TYPE(
1085 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021086 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1087 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1088 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Tina Wang30df7172022-12-09 22:02:021089 {"enable-feed-card-menu-sign-in-promo",
1090 flag_descriptions::kEnableFeedCardMenuSignInPromoName,
1091 flag_descriptions::kEnableFeedCardMenuSignInPromoDescription,
1092 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)},
Chris Luc36e3962023-04-11 21:50:521093 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1094 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261095 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1096 kMagicStackVariations,
1097 flag_descriptions::kMagicStackName)},
Scott Yoder7b9e51f2023-09-13 23:47:261098 {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName,
1099 flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos,
1100 FEATURE_VALUE_TYPE(kIOSLargeFakebox)},
Chris Lub0bad572023-08-07 18:13:291101 {"ios-magic-stack-segmentation-ranking",
1102 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1103 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1104 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301105 FEATURE_WITH_PARAMS_VALUE_TYPE(
1106 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1107 kSegmentationPlatformIosModuleRankerVariations,
1108 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Olivier Robin058c1fad2022-05-31 18:24:061109 {"default-browser-intents-show-settings",
1110 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1111 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1112 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Tommy Martinoad42be52022-06-13 11:51:191113 {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName,
1114 flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos,
1115 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)},
Scott Yoder16bff3c2023-03-24 16:00:551116 {"ios-set-up-list", flag_descriptions::kIOSSetUpListName,
1117 flag_descriptions::kIOSSetUpListDescription, flags_ui::kOsIos,
1118 FEATURE_VALUE_TYPE(kIOSSetUpList)},
Veronique Nguyenc3d7db52023-03-08 22:52:321119 {"ios-password-bottom-sheet",
1120 flag_descriptions::kIOSPasswordBottomSheetName,
1121 flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos,
1122 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)},
Alexis Hétu459451a2023-06-01 17:05:311123 {"ios-payments-bottom-sheet",
1124 flag_descriptions::kIOSPaymentsBottomSheetName,
1125 flag_descriptions::kIOSPaymentsBottomSheetDescription, flags_ui::kOsIos,
1126 FEATURE_VALUE_TYPE(kIOSPaymentsBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241127 {"omnibox-zero-suggest-prefetching",
1128 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1129 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1130 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451131 {"omnibox-zero-suggest-prefetching-on-srp",
1132 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1133 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1134 flags_ui::kOsIos,
1135 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1136 {"omnibox-zero-suggest-prefetching-on-web",
1137 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1138 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1139 flags_ui::kOsIos,
1140 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471141 {"omnibox-zero-suggest-in-memory-caching",
1142 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1143 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1144 flags_ui::kOsIos,
1145 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351146 {"omnibox-on-device-tail-suggestions",
1147 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1148 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1149 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Joemer Ramosbde5d5d2023-03-31 13:18:371150 {"enable-browser-lockdown-mode",
Joemer Ramos944cbc792023-05-11 16:58:411151 flag_descriptions::kBrowserLockdownModeAvailableName,
1152 flag_descriptions::kBrowserLockdownModeAvailableDescription,
1153 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kBrowserLockdownModeAvailable)},
Joemer Ramosada1e852023-03-10 19:14:411154 {"enable-button-configuration-usage",
1155 flag_descriptions::kEnableUIButtonConfigurationName,
1156 flag_descriptions::kEnableUIButtonConfigurationDescription,
1157 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableUIButtonConfiguration)},
Vincent Boisselle68105c6f2023-08-03 16:43:071158 {"enable-user-policy-for-signin-and-nosync-consent-level",
1159 flag_descriptions::kEnableUserPolicyForSigninAndNoSyncConsentLevelName,
1160 flag_descriptions::
1161 kEnableUserPolicyForSigninAndNoSyncConsentLevelDescription,
1162 flags_ui::kOsIos,
1163 FEATURE_VALUE_TYPE(policy::kUserPolicyForSigninAndNoSyncConsentLevel)},
1164 {"enable-user-policy-for-signin-or-sync-consent-level",
1165 flag_descriptions::kEnableUserPolicyForSigninOrSyncConsentLevelName,
1166 flag_descriptions::kEnableUserPolicyForSigninOrSyncConsentLevelDescription,
1167 flags_ui::kOsIos,
1168 FEATURE_VALUE_TYPE(policy::kUserPolicyForSigninOrSyncConsentLevel)},
Christian Xucf26d562022-07-06 09:28:361169 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1170 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1171 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1172 kOmniboxMaxURLMatchesVariations,
1173 "OmniboxMaxURLMatches")},
Olivier Robin60d3a062022-07-06 17:34:061174 {"metrickit-non-crash-reports",
1175 flag_descriptions::kMetrickitNonCrashReportName,
1176 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1177 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Siyu An3194bda2022-07-13 19:30:371178 {"autofill-enable-remade-downstream-metrics",
1179 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName,
1180 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription,
1181 flags_ui::kOsIos,
1182 FEATURE_VALUE_TYPE(
1183 autofill::features::kAutofillEnableRemadeDownstreamMetrics)},
Nakul Vaidya13ca2042022-07-27 01:59:551184 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1185 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1186 flag_descriptions::
1187 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1188 flags_ui::kOsIos,
1189 FEATURE_VALUE_TYPE(
1190 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Cheick Cisse1a168ef2023-03-24 10:39:531191 {"default-browser-refactoring-promo-manager",
1192 flag_descriptions::kDefaultBrowserRefactoringPromoManagerName,
1193 flag_descriptions::kDefaultBrowserRefactoringPromoManagerDescription,
1194 flags_ui::kOsIos,
1195 FEATURE_VALUE_TYPE(kDefaultBrowserRefactoringPromoManager)},
Cheick Cisse2806f082b2023-04-25 14:20:011196 {"default-browser-video-promo",
1197 flag_descriptions::kDefaultBrowserVideoPromoName,
1198 flag_descriptions::kDefaultBrowserVideoPromoDescription, flags_ui::kOsIos,
1199 FEATURE_WITH_PARAMS_VALUE_TYPE(kDefaultBrowserVideoPromo,
1200 kDefaultBrowserVideoPromoVariations,
1201 "DefaultBrowserVideoPromoVariations")},
Cheick Cisse8835611a2023-06-02 21:42:541202 {"default-browser-promo-force-show-promo",
1203 flag_descriptions::kDefaultBrowserPromoForceShowPromoName,
1204 flag_descriptions::kDefaultBrowserPromoForceShowPromoDescription,
1205 flags_ui::kOsIos,
1206 MULTI_VALUE_TYPE(kDefaultBrowserPromoForceShowPromoChoices)},
Gayane Petrosyan5960a172023-06-19 15:40:171207 {"default-browser-promo-trigger-criteria-experiment",
1208 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1209 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1210 flags_ui::kOsIos,
Gayane Petrosyandc3188c2023-08-10 17:28:501211 FEATURE_VALUE_TYPE(kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyan6fb79752023-09-26 15:39:441212 {"default-browser-video-in-settings",
1213 flag_descriptions::kDBVideoInSettingsName,
1214 flag_descriptions::kDBVideoInSettingsDescription, flags_ui::kOsIos,
1215 FEATURE_VALUE_TYPE(kDBVideoInSettings)},
Gayane Petrosyandc3188c2023-08-10 17:28:501216 {"fullscreen-promo-on-omnibox-copy-paste",
1217 flag_descriptions::kFullScreenPromoOnOmniboxCopyPasteName,
1218 flag_descriptions::kFullScreenPromoOnOmniboxCopyPasteDescription,
1219 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kFullScreenPromoOnOmniboxCopyPaste)},
Ed Chin91e44992022-07-27 13:42:341220#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1221 {"feed-background-refresh-ios",
1222 flag_descriptions::kFeedBackgroundRefreshName,
1223 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1224 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1225 kFeedBackgroundRefreshVariations,
1226 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261227#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin5c1fd532023-03-20 17:43:291228 {"feed-invisible-foreground-refresh-ios",
1229 flag_descriptions::kFeedInvisibleForegroundRefreshName,
1230 flag_descriptions::kFeedInvisibleForegroundRefreshDescription,
1231 flags_ui::kOsIos,
1232 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedInvisibleForegroundRefresh,
1233 kFeedInvisibleForegroundRefreshVariations,
1234 "FeedInvisibleForegroundRefresh")},
Christian Xu164a2e512022-08-01 20:38:191235 {"omnibox-keyboard-paste-button",
1236 flag_descriptions::kOmniboxKeyboardPasteButtonName,
1237 flag_descriptions::kOmniboxKeyboardPasteButtonDescription,
1238 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)},
Cheick Cisse5d2b6cb82023-06-05 17:27:581239 {"whats-new-ios-m116", flag_descriptions::kWhatsNewIOSM116Name,
1240 flag_descriptions::kWhatsNewIOSM116Description, flags_ui::kOsIos,
1241 FEATURE_VALUE_TYPE(kWhatsNewIOSM116)},
ginnnnnnny591a4972022-09-01 16:10:271242 {"ios-autofill-branding", flag_descriptions::kAutofillBrandingIOSName,
1243 flag_descriptions::kAutofillBrandingIOSDescription, flags_ui::kOsIos,
1244 FEATURE_WITH_PARAMS_VALUE_TYPE(autofill::features::kAutofillBrandingIOS,
1245 kAutofillBrandingIOSVariations,
Hira Mahmoodb0e5f412022-09-01 19:41:051246 "AutofillBrandingIOS")},
1247 {"app-store-rating", flag_descriptions::kAppStoreRatingName,
1248 flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos,
1249 FEATURE_VALUE_TYPE(kAppStoreRating)},
Christian Xu6b90c2a32022-09-13 18:17:021250 {"most-visited-tiles", flag_descriptions::kMostVisitedTilesName,
1251 flag_descriptions::kMostVisitedTilesDescription, flags_ui::kOsIos,
1252 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTiles)},
Olivier ROBINf05518782022-09-14 23:55:501253 {"enable-tflite-language-detection-ignore",
1254 flag_descriptions::kTFLiteLanguageDetectionIgnoreName,
1255 flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription,
1256 flags_ui::kOsIos,
1257 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)},
Tina Wang89ae4252022-10-14 00:39:471258 {"enable-check-visibility-on-attention-log-start",
1259 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartName,
1260 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartDescription,
1261 flags_ui::kOsIos,
1262 FEATURE_VALUE_TYPE(kEnableCheckVisibilityOnAttentionLogStart)},
1263 {"enable-refine-data-source-reload-reporting",
1264 flag_descriptions::kEnableRefineDataSourceReloadReportingName,
1265 flag_descriptions::kEnableRefineDataSourceReloadReportingDescription,
1266 flags_ui::kOsIos,
1267 FEATURE_VALUE_TYPE(kEnableRefineDataSourceReloadReporting)},
Petro Akzhygitov2e2322e2023-04-25 16:26:571268 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1269 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1270 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Hira Mahmoodea109752022-11-17 17:45:411271 {"credential-provider-extension-promo",
1272 flag_descriptions::kCredentialProviderExtensionPromoName,
1273 flag_descriptions::kCredentialProviderExtensionPromoDescription,
Huiting Yud7d2a5322023-02-09 21:14:221274 flags_ui::kOsIos,
1275 FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo,
1276 kCredentialProviderExtensionPromoVariations,
1277 "CredentialProviderExtensionPromo")},
Nicolas MacBethfb43e152022-11-28 19:31:521278 {"default-browser-blue-dot-promo",
1279 flag_descriptions::kDefaultBrowserBlueDotPromoName,
1280 flag_descriptions::kDefaultBrowserBlueDotPromoDescription,
1281 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserBlueDotPromo)},
Olivier ROBINa8838c12022-12-05 17:50:271282 {"ios-force-translate-enabled",
1283 flag_descriptions::kIOSForceTranslateEnabledName,
1284 flag_descriptions::kIOSForceTranslateEnabledDescription, flags_ui::kOsIos,
1285 FEATURE_VALUE_TYPE(translate::kIOSForceTranslateEnabled)},
Daniel Whiteae1cb672022-12-14 18:25:251286 {"iph-price-notifications-while-browsing",
1287 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1288 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1289 flags_ui::kOsIos,
1290 FEATURE_VALUE_TYPE(
1291 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Qihui Zhao72836c62022-12-16 04:31:411292 {"autofill-offer-to-save-card-with-same-last-four",
1293 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourName,
1294 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourDescription,
1295 flags_ui::kOsIos,
1296 FEATURE_VALUE_TYPE(
1297 autofill::features::kAutofillOfferToSaveCardWithSameLastFour)},
Christian Xu588330f32023-01-05 10:51:041298 {"omnibox-multiline-search-suggest",
1299 flag_descriptions::kOmniboxMultilineSearchSuggestName,
1300 flag_descriptions::kOmniboxMultilineSearchSuggestDescription,
1301 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxMultilineSearchSuggest)},
Vipul Vinod Koulaebbcb3a2023-01-05 19:50:501302 {"autofill-suggest-server-card-instead-of-local-card",
1303 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName,
1304 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription,
1305 flags_ui::kOsIos,
1306 FEATURE_VALUE_TYPE(
1307 autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)},
Ernesto Izquierdo Clua023bb52352023-01-12 19:33:341308 {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName,
1309 flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos,
1310 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)},
Christian Xu7e5234c12023-01-16 09:26:351311 {"multiline-fade-truncating-label",
1312 flag_descriptions::kMultilineFadeTruncatingLabelName,
1313 flag_descriptions::kMultilineFadeTruncatingLabelDescription,
1314 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kMultilineFadeTruncatingLabel)},
Robbie Gibson88f680a2023-01-19 16:47:301315 {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName,
1316 flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos,
1317 FEATURE_VALUE_TYPE(kPromosManagerUsesFET)},
Matt Jonesc01327662023-08-02 16:34:291318 {"shopping-collection",
1319 commerce::flag_descriptions::kShoppingCollectionName,
1320 commerce::flag_descriptions::kShoppingCollectionDescription,
1321 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kShoppingCollection)},
Ewann Pelledec2d042023-01-25 15:28:391322 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1323 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1324 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones5c8c8e32023-06-13 22:49:471325 {"shopping-list-track-by-default",
1326 commerce::flag_descriptions::kShoppingListTrackByDefaultName,
1327 commerce::flag_descriptions::kShoppingListTrackByDefaultDescription,
1328 flags_ui::kOsIos,
1329 FEATURE_VALUE_TYPE(commerce::kShoppingListTrackByDefault)},
Matt Jones1795eda2023-05-09 20:24:481330 {"local-pdp-detection",
1331 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1332 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1333 flags_ui::kOsIos,
1334 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Louis Romero93e9b50a2023-01-26 01:46:121335 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1336 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1337 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1338 kTabInactivityThresholdVariations,
1339 "TabInactivityThreshold")},
Sergio Collazos8d2ac27942023-01-26 19:03:411340 {"enable-feed-synthetic-capabilities",
1341 flag_descriptions::kEnableFeedSyntheticCapabilitiesName,
1342 flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription,
1343 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)},
Joemer Ramos0fccdf62023-07-28 17:17:181344 {"enable-friendlier-safe-browsing-settings-enhanced-protection",
1345 flag_descriptions::
1346 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionName,
1347 flag_descriptions::
1348 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionDescription,
1349 flags_ui::kOsIos,
1350 FEATURE_VALUE_TYPE(
1351 safe_browsing::kFriendlierSafeBrowsingSettingsEnhancedProtection)},
Awad Osmanf1a89122023-07-27 19:59:361352 {"enable-friendlier-safe-browsing-settings-standard-protection",
1353 flag_descriptions::
1354 kEnableFriendlierSafeBrowsingSettingsStandardProtectionName,
1355 flag_descriptions::
1356 kEnableFriendlierSafeBrowsingSettingsStandardProtectionDescription,
Joemer Ramos961389e52023-07-20 20:22:521357 flags_ui::kOsIos,
Awad Osmanf1a89122023-07-27 19:59:361358 FEATURE_VALUE_TYPE(
1359 safe_browsing::kFriendlierSafeBrowsingSettingsStandardProtection)},
Sarah Criel5d59a3932023-09-05 23:44:291360 {"enable-red-interstitial-facelift",
1361 flag_descriptions::kEnableRedInterstitialFaceliftName,
1362 flag_descriptions::kEnableRedInterstitialFaceliftDescription,
1363 flags_ui::kOsIos,
1364 FEATURE_VALUE_TYPE(safe_browsing::kRedInterstitialFacelift)},
Louis Romero58f355022023-02-13 19:04:311365 {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName,
1366 flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos,
1367 FEATURE_VALUE_TYPE(kShowInactiveTabsCount)},
Olivier ROBIN52eddbf32023-02-15 10:33:421368 {"ios-edit-menu-partial-translate",
1369 flag_descriptions::kIOSEditMenuPartialTranslateName,
1370 flag_descriptions::kIOSEditMenuPartialTranslateDescription,
Olivier ROBINfd3887b72023-02-23 14:45:421371 flags_ui::kOsIos,
1372 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate,
1373 kIOSEditMenuPartialTranslateVariations,
1374 "IOSEditMenuPartialTranslate")},
Ali Juma57849c42023-02-21 22:53:431375 {"notification-settings-menu-item",
1376 flag_descriptions::kNotificationSettingsMenuItemName,
1377 flag_descriptions::kNotificationSettingsMenuItemDescription,
1378 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
Ed Chin97560fc42023-02-20 16:48:321379 {"feed-experiment-tagging-ios",
1380 flag_descriptions::kFeedExperimentTaggingName,
1381 flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos,
1382 FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)},
Stepan Khapugin551917f82023-02-21 18:00:061383 {"spotlight-reading-list-source",
1384 flag_descriptions::kSpotlightReadingListSourceName,
1385 flag_descriptions::kSpotlightReadingListSourceDescription,
1386 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)},
Salma Elmahallawy72c5d34d2023-02-27 23:44:421387 {"policy-logs-page-ios", flag_descriptions::kPolicyLogsPageIOSName,
1388 flag_descriptions::kPolicyLogsPageIOSDescription, flags_ui::kOsIos,
1389 FEATURE_VALUE_TYPE(policy::features::kPolicyLogsPageIOS)},
Menghan YANGf3fe2de52023-02-27 16:38:501390 {"enable-bookmarks-account-storage",
1391 flag_descriptions::kEnableBookmarksAccountStorageName,
1392 flag_descriptions::kEnableBookmarksAccountStorageDescription,
1393 flags_ui::kOsIos,
Marc Treib98d17f52023-07-06 13:00:461394 FEATURE_VALUE_TYPE(syncer::kEnableBookmarksAccountStorage)},
kalettucefb09e402023-02-27 18:35:531395 {"web-feed-feedback-reroute",
1396 flag_descriptions::kWebFeedFeedbackRerouteName,
1397 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1398 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Jason Huac58fea2023-02-28 20:25:551399 {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName,
1400 flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos,
1401 FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)},
ginnnnnnny75903622023-03-01 18:00:001402 {"bring-your-own-tabs-ios", flag_descriptions::kBringYourOwnTabsIOSName,
1403 flag_descriptions::kBringYourOwnTabsIOSDescription, flags_ui::kOsIos,
1404 FEATURE_WITH_PARAMS_VALUE_TYPE(kBringYourOwnTabsIOS,
1405 kBringYourOwnTabsIOSVariations,
1406 "BringYourOwnTabsIOS")},
Tina Wangd3f6f192023-04-05 05:22:431407 {"enable-follow-IPH-exp-params",
1408 flag_descriptions::kEnableFollowIPHExpParamsName,
1409 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1410 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Tina Wange81e24d2023-03-08 21:10:031411 {"enable-follow-management-instant-reload",
1412 flag_descriptions::kEnableFollowManagementInstantReloadName,
1413 flag_descriptions::kEnableFollowManagementInstantReloadDescription,
1414 flags_ui::kOsIos,
1415 FEATURE_VALUE_TYPE(kEnableFollowManagementInstantReload)},
Guillem Perez3c139a822023-05-24 19:34:251416 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1417 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1418 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Mustafa Acerc8c0b152023-03-09 02:41:441419 {"mixed-content-autoupgrade-ios",
1420 flag_descriptions::kMixedContentAutoupgradeName,
1421 flag_descriptions::kMixedContentAutoupgradeDescription, flags_ui::kOsIos,
1422 FEATURE_VALUE_TYPE(
1423 security_interstitials::features::kMixedContentAutoupgrade)},
Jared Saul5363f3962023-03-10 23:03:511424 {"autofill-upstream-authenticate-preflight-call",
1425 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallName,
1426 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallDescription,
1427 flags_ui::kOsIos,
1428 FEATURE_VALUE_TYPE(
1429 autofill::features::kAutofillUpstreamAuthenticatePreflightCall)},
Marc Treibe9f79ea72023-03-14 10:25:421430 {"enable-preferences-account-storage",
1431 flag_descriptions::kEnablePreferencesAccountStorageName,
1432 flag_descriptions::kEnablePreferencesAccountStorageDescription,
1433 flags_ui::kOsIos,
1434 FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)},
Olivier ROBINa229d2132023-03-21 12:44:201435 {"ios-browser-edit-menu-metrics",
1436 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1437 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1438 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Nicolas MacBeth17c9b92c2023-08-24 14:15:401439 {"ios-bulk-upload-local-passwords",
1440 flag_descriptions::kIOSPasswordSettingsBulkUploadLocalPasswordsName,
1441 flag_descriptions::kIOSPasswordSettingsBulkUploadLocalPasswordsDescription,
1442 flags_ui::kOsIos,
1443 FEATURE_VALUE_TYPE(password_manager::features::
1444 kIOSPasswordSettingsBulkUploadLocalPasswords)},
Menghan YANG5b3a78a2023-03-24 17:38:261445 {"enable-reading-list-account-storage",
1446 flag_descriptions::kEnableReadingListAccountStorageName,
1447 flag_descriptions::kEnableReadingListAccountStorageDescription,
1448 flags_ui::kOsIos,
Marc Treib98d17f52023-07-06 13:00:461449 FEATURE_VALUE_TYPE(syncer::kReadingListEnableDualReadingListModel)},
Menghan YANG5b3a78a2023-03-24 17:38:261450 {"enable-reading-list-sign-in-promo",
1451 flag_descriptions::kEnableReadingListSignInPromoName,
1452 flag_descriptions::kEnableReadingListSignInPromoDescription,
1453 flags_ui::kOsIos,
Marc Treib98d17f52023-07-06 13:00:461454 FEATURE_VALUE_TYPE(syncer::kReadingListEnableSyncTransportModeUponSignIn)},
Stepan Khapuginb2f49522023-04-03 18:25:241455 {"omnibox-grouping-framework-zps",
1456 flag_descriptions::kOmniboxGroupingFrameworkForZPSName,
1457 flag_descriptions::kOmniboxGroupingFrameworkForZPSDescription,
1458 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForZPS)},
1459 {"omnibox-grouping-framework-non-zps",
1460 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1461 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1462 flags_ui::kOsIos,
1463 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Sylvain Defresne935e6f72023-04-04 09:54:471464 {"enable-session-serialization-optimizations",
1465 flag_descriptions::kEnableSessionSerializationOptimizationsName,
1466 flag_descriptions::kEnableSessionSerializationOptimizationsDescription,
1467 flags_ui::kOsIos,
1468 FEATURE_VALUE_TYPE(
1469 web::features::kEnableSessionSerializationOptimizations)},
Stepan Khapugin8c075872023-04-05 14:29:411470 {"bottom-omnibox-steady-state",
1471 flag_descriptions::kBottomOmniboxSteadyStateName,
1472 flag_descriptions::kBottomOmniboxSteadyStateDescription, flags_ui::kOsIos,
1473 FEATURE_VALUE_TYPE(kBottomOmniboxSteadyState)},
Jared Saul19f8ba12023-04-11 17:44:531474 {"autofill-upstream-use-alternate-secure-data-type",
1475 flag_descriptions::kAutofillUpstreamUseAlternateSecureDataTypeName,
1476 flag_descriptions::kAutofillUpstreamUseAlternateSecureDataTypeDescription,
1477 flags_ui::kOsIos,
1478 FEATURE_VALUE_TYPE(
1479 autofill::features::kAutofillUpstreamUseAlternateSecureDataType)},
Robbie Gibson0ea280602023-04-12 01:02:391480 {"only-access-clipboard-async",
1481 flag_descriptions::kOnlyAccessClipboardAsyncName,
1482 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1483 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Christian Xue5f60232023-04-12 17:50:091484 {"omnibox-tail-suggest", flag_descriptions::kOmniboxTailSuggestName,
1485 flag_descriptions::kOmniboxTailSuggestDescription, flags_ui::kOsIos,
1486 FEATURE_VALUE_TYPE(kOmniboxTailSuggest)},
Stepan Khapugin5f0a4ae2023-07-05 12:51:191487 {"omnibox-improved-rtl-suggestions",
1488 flag_descriptions::kOmniboxSuggestionsRTLImprovementsName,
1489 flag_descriptions::kOmniboxSuggestionsRTLImprovementsDescription,
1490 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxSuggestionsRTLImprovements)},
Ed Chinecb7d5b2023-04-14 19:22:091491 {"feed-disable-hot-start-refresh-ios",
1492 flag_descriptions::kFeedDisableHotStartRefreshName,
1493 flag_descriptions::kFeedDisableHotStartRefreshDescription,
1494 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kFeedDisableHotStartRefresh)},
Olivier ROBIN2613bcd02023-04-20 10:00:471495 {"ios-edit-menu-search-with", flag_descriptions::kIOSEditMenuSearchWithName,
1496 flag_descriptions::kIOSEditMenuSearchWithDescription, flags_ui::kOsIos,
1497 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuSearchWith,
1498 kIOSEditMenuSearchWithVariations,
1499 "IOSEditMenuSearchWith")},
1500 {"ios-edit-menu-hide-search-web",
1501 flag_descriptions::kIOSEditMenuHideSearchWebName,
1502 flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos,
1503 FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)},
Stephen McGruer9afca1a2023-05-18 20:55:171504 {"autofill-enable-card-art-image",
1505 flag_descriptions::kAutofillEnableCardArtImageName,
1506 flag_descriptions::kAutofillEnableCardArtImageDescription,
1507 flags_ui::kOsIos,
1508 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)},
adamta09aa47e2023-05-23 18:20:431509 {"hide-content-suggestions-tiles",
1510 flag_descriptions::kHideContentSuggestionTilesName,
1511 flag_descriptions::kHideContentSuggestionTilesDescription,
1512 flags_ui::kOsIos,
1513 FEATURE_WITH_PARAMS_VALUE_TYPE(
1514 kHideContentSuggestionsTiles,
1515 kHideContentSuggestionTilesVariations,
1516 flag_descriptions::kHideContentSuggestionTilesName)},
Tina Wangcda2c902023-05-25 17:39:451517 {"enable-signed-out-view-demotion",
1518 flag_descriptions::kEnableSignedOutViewDemotionName,
1519 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1520 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stephen McGruerb4c8f7f2023-06-01 21:28:251521 {"autofill-use-two-dots-for-last-four-digits",
1522 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsName,
1523 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsDescription,
1524 flags_ui::kOsIos,
1525 FEATURE_VALUE_TYPE(
1526 autofill::features::kAutofillUseTwoDotsForLastFourDigits)},
Duong Dac4181ab52023-06-07 12:51:501527 {"enable-variations-google-group-filtering",
1528 flag_descriptions::kEnableVariationsGoogleGroupFilteringName,
1529 flag_descriptions::kEnableVariationsGoogleGroupFilteringDescription,
1530 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kVariationsGoogleGroupFiltering)},
sebsg977f9aa2023-06-08 18:48:241531 {"autofill-disable-profile-updates",
1532 flag_descriptions::kAutofillDisableProfileUpdatesName,
1533 flag_descriptions::kAutofillDisableProfileUpdatesDescription,
1534 flags_ui::kOsIos,
1535 FEATURE_VALUE_TYPE(
1536 autofill::features::test::kAutofillDisableProfileUpdates)},
1537 {"autofill-disable-silent-profile-updates",
1538 flag_descriptions::kAutofillDisableSilentProfileUpdatesName,
1539 flag_descriptions::kAutofillDisableSilentProfileUpdatesDescription,
1540 flags_ui::kOsIos,
1541 FEATURE_VALUE_TYPE(
1542 autofill::features::test::kAutofillDisableSilentProfileUpdates)},
1543 {"autofill-enable-admin-level-2",
1544 flag_descriptions::kAutofillEnableSupportForAdminLevel2Name,
1545 flag_descriptions::kAutofillEnableSupportForAdminLevel2Description,
1546 flags_ui::kOsIos,
1547 FEATURE_VALUE_TYPE(
1548 autofill::features::kAutofillEnableSupportForAdminLevel2)},
1549 {"autofill-enable-between-streets",
1550 flag_descriptions::kAutofillEnableSupportForBetweenStreetsName,
1551 flag_descriptions::kAutofillEnableSupportForBetweenStreetsDescription,
1552 flags_ui::kOsIos,
1553 FEATURE_VALUE_TYPE(
1554 autofill::features::kAutofillEnableSupportForBetweenStreets)},
1555 {"autofill-enable-landmark",
1556 flag_descriptions::kAutofillEnableSupportForLandmarkName,
1557 flag_descriptions::kAutofillEnableSupportForLandmarkDescription,
1558 flags_ui::kOsIos,
1559 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableSupportForLandmark)},
Hira Mahmood6b0e5502023-06-12 21:51:431560 {"post-restore-default-browser-promo",
1561 flag_descriptions::kPostRestoreDefaultBrowserPromoName,
1562 flag_descriptions::kPostRestoreDefaultBrowserPromoDescription,
1563 flags_ui::kOsIos,
1564 FEATURE_WITH_PARAMS_VALUE_TYPE(
1565 kPostRestoreDefaultBrowserPromo,
1566 kPostRestoreDefaultBrowserPromoVariations,
1567 "PostRestoreDefaultBrowserPromoVariations")},
Ameur Hosnib40858a2023-06-12 17:27:311568 {"spotlight-open-tabs-source",
1569 flag_descriptions::kSpotlightOpenTabsSourceName,
1570 flag_descriptions::kSpotlightOpenTabsSourceDescription, flags_ui::kOsIos,
1571 FEATURE_VALUE_TYPE(kSpotlightOpenTabsSource)},
Stepan Khapuginc302b9412023-09-12 10:19:451572 {"spotlight-donate-new-intents",
1573 flag_descriptions::kSpotlightDonateNewIntentsName,
1574 flag_descriptions::kSpotlightDonateNewIntentsDescription, flags_ui::kOsIos,
1575 FEATURE_VALUE_TYPE(kSpotlightDonateNewIntents)},
Marc Treib9bddebb2023-06-15 14:03:341576 {"replace-sync-promos-with-sign-in-promos",
1577 flag_descriptions::kReplaceSyncPromosWithSignInPromosName,
1578 flag_descriptions::kReplaceSyncPromosWithSignInPromosDescription,
1579 flags_ui::kOsIos,
Gauthier Ambard6ca6d5e2023-06-20 09:33:301580 MULTI_VALUE_TYPE(kReplaceSyncPromosWithSignInPromosChoices)},
Aliona DANGLA4326cad82023-06-20 16:32:571581 {"tab-grid-refactoring", flag_descriptions::kTabGridRefactoringName,
1582 flag_descriptions::kTabGridRefactoringDescription, flags_ui::kOsIos,
1583 FEATURE_VALUE_TYPE(kTabGridRefactoring)},
Ewann Pelle6eecb8f2023-06-23 14:31:371584 {"tab-pickup-threshold", flag_descriptions::kTabPickupThresholdName,
1585 flag_descriptions::kTabPickupThresholdDescription, flags_ui::kOsIos,
1586 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabPickupThreshold,
1587 kTabPickupThresholdVariations,
1588 "TabPickupThreshold")},
Huiting Yubc1bf4d2023-06-26 18:15:321589 {"ios-iph-for-safari-switcher",
1590 flag_descriptions::kIPHForSafariSwitcherName,
1591 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1592 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071593 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1594 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1595 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Hira Mahmood746047162023-07-11 22:02:061596 {"app-store-rating-loosened-triggers",
1597 flag_descriptions::kAppStoreRatingLoosenedTriggersName,
1598 flag_descriptions::kAppStoreRatingLoosenedTriggersDescription,
1599 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kAppStoreRatingLoosenedTriggers)},
Ernesto Izquierdo Clua5e589f52023-07-06 20:52:151600 {"ios-password-auth-on-entry",
1601 flag_descriptions::kIOSPasswordAuthOnEntryName,
1602 flag_descriptions::kIOSPasswordAuthOnEntryDescription, flags_ui::kOsIos,
1603 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntry)},
Ewann Pelle9cd85b22023-07-12 14:42:011604 {"tab-resumption", flag_descriptions::kTabResumptionName,
1605 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001606 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1607 kTabResumptionVariations,
1608 "TabResumption")},
Jason Huba0b87a2023-07-18 15:57:001609 {"ios-lens-use-direct-upload",
1610 flag_descriptions::kIOSLensUseDirectUploadName,
1611 flag_descriptions::kIOSLensUseDirectUploadDescription, flags_ui::kOsIos,
1612 FEATURE_VALUE_TYPE(kIOSLensUseDirectUpload)},
Siyu An33708bc2023-07-21 20:24:111613 {"autofill-enable-payments-mandatory-reauth-on-bling",
1614 flag_descriptions::kAutofillEnablePaymentsMandatoryReauthOnBlingName,
1615 flag_descriptions::
1616 kAutofillEnablePaymentsMandatoryReauthOnBlingDescription,
1617 flags_ui::kOsIos,
1618 FEATURE_VALUE_TYPE(
1619 autofill::features::kAutofillEnablePaymentsMandatoryReauthOnBling)},
Christian Xu07d600192023-07-24 12:29:521620 {"bottom-omnibox-default-setting",
1621 flag_descriptions::kBottomOmniboxDefaultSettingName,
1622 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1623 flags_ui::kOsIos,
1624 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1625 kBottomOmniboxDefaultSettingVariations,
1626 "BottomOmniboxDefaultSetting")},
Ewann Pelle422c0942023-08-01 12:28:131627 {"tab-pickup-minimum-delay", flag_descriptions::kTabPickupMinimumDelayName,
1628 flag_descriptions::kTabPickupMinimumDelayDescription, flags_ui::kOsIos,
1629 FEATURE_VALUE_TYPE(kTabPickupMinimumDelay)},
Nohemi Fernandez64acf982023-08-04 09:27:151630 {"enable-family-link-controls",
1631 flag_descriptions::kEnableFamilyLinkControlsName,
1632 flag_descriptions::kEnableFamilyLinkControlsDescription, flags_ui::kOsIos,
1633 FEATURE_VALUE_TYPE(
1634 supervised_user::kFilterWebsitesForSupervisedUsersOnDesktopAndIOS)},
adamta7be73b182023-08-08 22:30:351635 {"discover-feed-sport-card", flag_descriptions::kDiscoverFeedSportCardName,
1636 flag_descriptions::kDiscoverFeedSportCardDescription, flags_ui::kOsIos,
1637 FEATURE_VALUE_TYPE(kDiscoverFeedSportCard)},
Ernesto Izquierdo Clua6a00cb9d2023-08-11 15:12:501638 {"ios-password-auth-on-entry-v2",
1639 flag_descriptions::kIOSPasswordAuthOnEntryV2Name,
1640 flag_descriptions::kIOSPasswordAuthOnEntryV2Description, flags_ui::kOsIos,
1641 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntryV2)},
Quentin Pubert476786e82023-08-16 12:45:281642 {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName,
1643 flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos,
1644 FEATURE_VALUE_TYPE(kIOSSaveToPhotos)},
Hira Mahmood4c15f382023-08-17 16:21:131645 {"ios-parcel-tracking", flag_descriptions::kIOSParcelTrackingName,
1646 flag_descriptions::kIOSParcelTrackingDescription, flags_ui::kOsIos,
1647 FEATURE_VALUE_TYPE(kIOSParcelTracking)},
Aliona DANGLAcc8379f2023-08-18 16:56:441648 {"enable-inactive-tabs-limit",
1649 flag_descriptions::kInactiveTabsMoveLimitName,
1650 flag_descriptions::kInactiveTabsMoveLimitDescription, flags_ui::kOsIos,
1651 FEATURE_VALUE_TYPE(kInactiveTabsMoveLimit)},
Justin Wells37e32c4d2023-09-06 22:11:111652 {"autofill-enable-merchant-domain-in-unmask-card-request",
1653 flag_descriptions::kAutofillEnableMerchantDomainInUnmaskCardRequestName,
1654 flag_descriptions::
1655 kAutofillEnableMerchantDomainInUnmaskCardRequestDescription,
1656 flags_ui::kOsIos,
1657 FEATURE_VALUE_TYPE(
1658 autofill::features::kAutofillEnableMerchantDomainInUnmaskCardRequest)},
Verina Armanyousb23d4612023-09-07 20:31:331659 {"autofill-update-chrome-settings-link-to-gpay-web",
1660 flag_descriptions::kAutofillUpdateChromeSettingsLinkToGPayWebName,
1661 flag_descriptions::kAutofillUpdateChromeSettingsLinkToGPayWebDescription,
1662 flags_ui::kOsIos,
1663 FEATURE_VALUE_TYPE(
1664 autofill::features::kAutofillUpdateChromeSettingsLinkToGPayWeb)},
Christian Xu90e952f2023-09-13 09:05:281665 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1666 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1667 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Noémie St-Onge2634eb82023-09-19 18:25:591668 {"iph-ios-promo-manager-widget-promo",
1669 flag_descriptions::kIPHiOSPromoPasswordManagerWidgetName,
1670 flag_descriptions::kIPHiOSPromoPasswordManagerWidgetDescription,
1671 flags_ui::kOsIos,
1672 FEATURE_VALUE_TYPE(
1673 feature_engagement::kIPHiOSPromoPasswordManagerWidgetFeature)},
Siyu263cf562023-09-25 20:59:571674 {"autofill-enable-virtual-cards",
1675 flag_descriptions::kAutofillEnableVirtualCardsName,
1676 flag_descriptions::kAutofillEnableVirtualCardsDescription,
1677 flags_ui::kOsIos,
1678 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVirtualCards)},
Gauthier Ambard6ca6d5e2023-06-20 09:33:301679};
sdefresne14900ee2015-11-27 14:43:211680
Rohit Raobed794c2020-04-27 15:27:451681bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1682 return false;
1683}
1684
1685flags_ui::FlagsState& GetGlobalFlagsState() {
1686 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1687 nullptr);
1688 return *flags_state;
1689}
David Jean5ca263c2021-08-18 09:19:301690// Creates the experimental test policies map, used by AsyncPolicyLoader and
1691// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341692NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211693 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1694
Guillaume Jenkins25e9bd72020-08-27 17:39:061695 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551696 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061697 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551698
Guillaume Jenkins25e9bd72020-08-27 17:39:061699 // Set some sample policy values for testing if EnableSamplePolicies is set to
1700 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401701 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551702 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011703 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1704
Guillaume Jenkinseeb7007c2020-06-25 22:55:401705 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1706
1707 // 2 = Disable all variations
1708 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1709
1710 // 2 = Do not allow any site to show popups
1711 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1712
Tina Wang5abee802020-07-29 23:09:521713 // Set default search engine.
1714 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1715 @YES,
1716 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1717 @"http://www.google.com/search?q={searchTerms}",
1718 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021719 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521720
Tina Wang89068c82020-10-29 15:51:501721 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1722
Gauthier Ambard21b23702021-04-16 16:11:271723 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1724
Tina Wang59d0b7e2020-08-11 04:41:011725 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531726
1727 // 2 = Enhanced safe browsing protection
1728 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1729
1730 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291731
1732 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551733 }];
1734 }
1735
Ewann227a3c02021-04-19 12:04:541736 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041737 NSString* sync_policy_key =
1738 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301739 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541740 }
Ewann227a3c02021-04-19 12:04:541741
Ewann570a6302021-08-17 07:22:421742 // SyncTypesListDisabled policy.
1743 NSString* Sync_types_list_disabled_key =
1744 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1745 NSMutableArray* Sync_types_list_disabled_values =
1746 [[NSMutableArray alloc] init];
1747 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
1748 [Sync_types_list_disabled_values addObject:@"bookmarks"];
1749 }
1750 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
1751 [Sync_types_list_disabled_values addObject:@"readingList"];
1752 }
1753 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
1754 [Sync_types_list_disabled_values addObject:@"preferences"];
1755 }
1756 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
1757 [Sync_types_list_disabled_values addObject:@"passwords"];
1758 }
1759 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
1760 [Sync_types_list_disabled_values addObject:@"autofill"];
1761 }
1762 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
1763 [Sync_types_list_disabled_values addObject:@"typedUrls"];
1764 }
1765 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
1766 [Sync_types_list_disabled_values addObject:@"tabs"];
1767 }
1768 if ([Sync_types_list_disabled_values count]) {
1769 [testing_policies addEntriesFromDictionary:@{
1770 Sync_types_list_disabled_key : Sync_types_list_disabled_values
1771 }];
Ewann570a6302021-08-17 07:22:421772 }
1773
Gauthier Ambard073eaa92021-11-22 15:24:131774 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:521775 NSString* incognito_policy_key =
1776 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
1777 NSInteger incognito_mode_availability =
1778 [defaults integerForKey:incognito_policy_key];
1779 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:521780 [testing_policies addEntriesFromDictionary:@{
1781 incognito_policy_key : @(incognito_mode_availability),
1782 }];
1783 }
1784
Ewann40a8f8a2021-07-29 10:01:201785 NSString* restriction_pattern =
1786 [defaults stringForKey:@"RestrictAccountsToPatterns"];
1787 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:291788 NSString* restrict_key =
1789 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:201790 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:291791 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:201792 }];
1793 }
1794
Vincent Boisselle19200bc2021-09-01 17:58:251795 // If the sign-in policy is set (not "None"), add the policy key to the list
1796 // of enabled experimental policies, and set the value.
1797 NSString* const kSigninPolicyKey = @"BrowserSignin";
1798 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
1799 if (signin_policy_mode) {
1800 // Remove the mode offset that was used to represent the unset policy.
1801 --signin_policy_mode;
1802 DCHECK(signin_policy_mode >= 0);
1803
Vincent Boisselle19200bc2021-09-01 17:58:251804 [testing_policies addEntriesFromDictionary:@{
1805 kSigninPolicyKey : @(signin_policy_mode),
1806 }];
1807 }
1808
Veronique Nguyen9b1044f2022-01-11 14:41:131809 // If the New Tab Page URL is set (not empty) add the value to the list of
1810 // test policies.
1811 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
1812 if ([ntp_location length] > 0) {
1813 NSString* ntp_location_key =
1814 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
1815 [testing_policies
1816 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:571817 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:131818 }
1819
Ali Juma9ec36d2b2022-03-28 14:53:121820 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
1821 NSString* allow_backups_key =
1822 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
1823 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
1824 [allowed_experimental_policies addObject:allow_backups_key];
1825 }
1826
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241827 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
1828 NSString* password_manager_key =
1829 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
1830 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
1831 [allowed_experimental_policies addObject:password_manager_key];
1832 }
Vincent Boisselle003569a72023-09-11 16:03:121833
1834 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
1835 NSString* user_policy_merge_key =
1836 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
1837 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
1838 [allowed_experimental_policies addObject:user_policy_merge_key];
1839 }
1840
Arthur Milchiorbb44f5c82023-03-14 16:14:461841 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
1842 NSString* managed_bookmarks_key =
1843 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
1844 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:571845 @"["
1846 // The following gets filtered out from
1847 // the JSON string when parsed.
1848 " {"
1849 " \"toplevel_name\": \"Managed Bookmarks\""
1850 " },"
1851 " {"
1852 " \"name\": \"Google\","
1853 " \"url\": \"google.com\""
1854 " },"
1855 " {"
1856 " \"name\": \"Empty Folder\","
1857 " \"children\": []"
1858 " },"
1859 " {"
1860 " \"name\": \"Big Folder\","
1861 " \"children\": ["
1862 " {"
1863 " \"name\": \"Youtube\","
1864 " \"url\": \"youtube.com\""
1865 " },"
1866 " {"
1867 " \"name\": \"Chromium\","
1868 " \"url\": \"chromium.org\""
1869 " },"
1870 " {"
1871 " \"name\": \"More Stuff\","
1872 " \"children\": ["
1873 " {"
1874 " \"name\": \"Bugs\","
1875 " \"url\": \"crbug.com\""
1876 " }"
1877 " ]"
1878 " }"
1879 " ]"
1880 " }"
1881 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:461882 [testing_policies addEntriesFromDictionary:@{
1883 managed_bookmarks_key : managed_bookmarks_value
1884 }];
1885 [allowed_experimental_policies addObject:managed_bookmarks_key];
1886 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241887
Guillaume Jenkins25e9bd72020-08-27 17:39:061888 // If any experimental policy was allowed, set the EnableExperimentalPolicies
1889 // policy.
1890 if ([allowed_experimental_policies count] > 0) {
1891 [testing_policies setValue:allowed_experimental_policies
1892 forKey:base::SysUTF8ToNSString(
1893 policy::key::kEnableExperimentalPolicies)];
1894 }
1895
jlebel2eb40222022-05-06 11:15:421896 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
1897 switch ([defaults integerForKey:metrics_reporting_key]) {
1898 case 1:
1899 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:131900 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421901 break;
1902 case 2:
1903 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:131904 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421905 break;
1906 default:
1907 // Metrics reporting not managed.
1908 break;
1909 }
1910
David Jean6f85d44f2021-08-19 08:08:451911 // Warning: Add new flags to TestingPoliciesHash() below.
1912
David Jean5ca263c2021-08-18 09:19:301913 return testing_policies;
1914}
David Jean6f85d44f2021-08-19 08:08:451915
David Jean5ca263c2021-08-18 09:19:301916} // namespace
1917
Gauthier Ambard02dbf022022-08-23 08:28:471918// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:301919void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
1920 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1921
1922 // Set the UA flag if UseMobileSafariUA is enabled.
1923 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
1924 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
1925 // Chrome puts its product token.
1926 int32_t major = 0;
1927 int32_t minor = 0;
1928 int32_t bugfix = 0;
1929 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
1930 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
1931
1932 command_line->AppendSwitchASCII(switches::kUserAgent,
1933 web::BuildMobileUserAgent(product));
1934 }
1935
1936 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341937 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:301938
1939 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
1940 // Management to enabled and add the token to the list of policies.
1941 NSString* token_key =
1942 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
1943 NSString* token = [defaults stringForKey:token_key];
1944
1945 if ([token length] > 0) {
1946 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
1947 [testing_policies setValue:token forKey:token_key];
1948 }
1949
Guillaume Jenkins57606d72020-08-13 17:32:551950 // If some policies were set, commit them to the app's registration defaults.
1951 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:401952 NSDictionary* registration_defaults =
1953 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
1954 [defaults registerDefaults:registration_defaults];
1955 }
1956
sdefresne14900ee2015-11-27 14:43:211957 // Freeform commandline flags. These are added last, so that any flags added
1958 // earlier in this function take precedence.
1959 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
1960 base::CommandLine::StringVector flags;
1961 // Append an empty "program" argument.
1962 flags.push_back("");
1963
1964 // The number of flags corresponds to the number of text fields in
1965 // Experimental.plist.
1966 const int kNumFreeformFlags = 5;
1967 for (int i = 1; i <= kNumFreeformFlags; ++i) {
1968 NSString* key =
1969 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
1970 NSString* flag = [defaults stringForKey:key];
1971 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:331972 // iOS keyboard replaces -- with —, so undo that.
1973 flag = [flag stringByReplacingOccurrencesOfString:@"—"
1974 withString:@"--"
1975 options:0
1976 range:NSMakeRange(0, 1)];
1977 // To make things easier, allow flags with no dashes by prepending them
1978 // here. This also allows for flags that just have one dash if they
1979 // exist.
1980 if (![flag hasPrefix:@"-"]) {
1981 flag = [@"--" stringByAppendingString:flag];
1982 }
sdefresne14900ee2015-11-27 14:43:211983 flags.push_back(base::SysNSStringToUTF8(flag));
1984 }
1985 }
1986
1987 base::CommandLine temp_command_line(flags);
1988 command_line->AppendArguments(temp_command_line, false);
1989 }
msardafc76f662017-02-24 12:46:281990
justincohendacc85d2017-06-28 23:34:101991 // Populate command line flag for 3rd party keyboard omnibox workaround.
1992 NSString* enableThirdPartyKeyboardWorkaround =
1993 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
1994 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
1995 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
1996 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
1997 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
1998 }
1999
Sylvain Defresned3cd8d92022-01-18 13:35:082000 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212001}
2002
sdefresne14900ee2015-11-27 14:43:212003void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2004 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182005 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112006 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532007 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212008}
2009
jkrcalbf073372016-07-29 07:21:312010std::vector<std::string> RegisterAllFeatureVariationParameters(
2011 flags_ui::FlagsStorage* flags_storage,
2012 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182013 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2014 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312015}
2016
sdefresne14900ee2015-11-27 14:43:212017void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2018 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502019 base::Value::List& supported_entries,
2020 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182021 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212022 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512023 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212024}
2025
2026void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2027 const std::string& internal_name,
2028 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182029 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2030 enable);
sdefresne14900ee2015-11-27 14:43:212031}
2032
2033void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182034 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212035}
2036
Nicolas MacBeth972e2592023-02-23 15:22:092037bool IsRestartNeededToCommitChanges() {
2038 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2039}
2040
sdefresne14900ee2015-11-27 14:43:212041namespace testing {
2042
Elly Fong-Jones323ab1092021-08-23 22:36:312043base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2044 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532045 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212046}
2047
2048} // namespace testing