blob: 28188f19eea103437987e560fd0b3f80a4da63d7 [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"
ginnnnnnnya81c7192023-03-24 18:05:2073#import "ios/chrome/browser/bring_android_tabs/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5774#import "ios/chrome/browser/browsing_data/browsing_data_features.h"
75#import "ios/chrome/browser/crash_report/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"
Ewann Pelle903a05e62023-02-01 17:51:0691#import "ios/chrome/browser/tabs/features.h"
Aliona DANGLA3de5d242023-02-15 16:52:3092#import "ios/chrome/browser/tabs/inactive_tabs/features.h"
Ewann Pelle6eecb8f2023-06-23 14:31:3793#import "ios/chrome/browser/tabs/tab_pickup/features.h"
Zhixiang Teoh40027a22022-07-28 03:24:3494#import "ios/chrome/browser/text_selection/text_selection_util.h"
Hira Mahmoodb0e5f412022-09-01 19:41:0595#import "ios/chrome/browser/ui/app_store_rating/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5796#import "ios/chrome/browser/ui/autofill/features.h"
adamta22a4d502020-05-21 03:12:2197#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h"
Hira Mahmood6b0e5502023-06-12 21:51:4398#import "ios/chrome/browser/ui/default_promo/post_restore/features.h"
Ewann1a9d33d2021-06-14 11:12:2499#import "ios/chrome/browser/ui/download/features.h"
adamta273568472020-12-04 23:53:57100#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
Christian Xub8c06cd2022-04-29 20:55:01101#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Robbie Gibson686c56732021-10-04 17:11:45102#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Ernesto Izquierdo Clua5e589f52023-07-06 20:52:15103#import "ios/chrome/browser/ui/settings/password/password_manager_ui_features.h"
gogerald0ff29e52021-02-03 18:56:19104#import "ios/chrome/browser/ui/start_surface/start_surface_features.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58105#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Gauthier Ambard999088c2022-09-13 08:36:57106#import "ios/chrome/browser/web/features.h"
107#import "ios/chrome/grit/ios_strings.h"
108#import "ios/components/security_interstitials/https_only_mode/feature.h"
109#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
110#import "ios/web/common/features.h"
111#import "ios/web/common/user_agent.h"
112#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21113
Sylvain Defresne9c107082020-10-27 16:39:13114#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
Gauthier Ambard999088c2022-09-13 08:36:57115#import "ios/chrome/browser/screen_time/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13116#endif
117
sdefresne14900ee2015-11-27 14:43:21118#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57119#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22120#endif
stkhapuginc1be1792016-12-13 14:30:53121
elawrence816f6790e2017-06-16 18:19:28122using flags_ui::FeatureEntry;
123
sdefresne14900ee2015-11-27 14:43:21124namespace {
Emily Starkbafa9062017-12-27 15:22:46125
Olivier Robin3d60411622018-02-23 10:03:22126const FeatureEntry::Choice kAutofillIOSDelayBetweenFieldsChoices[] = {
127 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
128 {"0", autofill::switches::kAutofillIOSDelayBetweenFields, "0"},
129 {"10", autofill::switches::kAutofillIOSDelayBetweenFields, "10"},
130 {"20", autofill::switches::kAutofillIOSDelayBetweenFields, "20"},
131 {"50", autofill::switches::kAutofillIOSDelayBetweenFields, "50"},
132 {"100", autofill::switches::kAutofillIOSDelayBetweenFields, "100"},
133 {"200", autofill::switches::kAutofillIOSDelayBetweenFields, "200"},
134 {"500", autofill::switches::kAutofillIOSDelayBetweenFields, "500"},
135 {"1000", autofill::switches::kAutofillIOSDelayBetweenFields, "1000"},
136};
137
Nohemi Fernandezc00842a2021-07-26 11:47:34138const FeatureEntry::Choice
139 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
140 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
141 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
142 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
143 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
144};
145
Cheick Cisse8835611a2023-06-02 21:42:54146// Uses int values from DefaultPromoType enum.
147const FeatureEntry::Choice kDefaultBrowserPromoForceShowPromoChoices[] = {
148 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
149 {"Show generic promo", "default-browser-promo-force-show-promo", "0"},
150 {"Show tailored stay safe promo", "default-browser-promo-force-show-promo",
151 "1"},
152 {"Show tailored made for ios promo",
153 "default-browser-promo-force-show-promo", "2"},
154 {"Show tailored all tabs promo", "default-browser-promo-force-show-promo",
155 "3"},
156 {"Show video promo", "default-browser-promo-force-show-promo", "4"},
157};
158
Stepan Khapugincc4e9842019-01-23 13:38:13159const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
160 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
161const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
162 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
163const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
164 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
165const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
166 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
167const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
168 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
169const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
170 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
171const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
172 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
173
174const FeatureEntry::FeatureVariation
175 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
176 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53177 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13178 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53179 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13180 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53181 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13182 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53183 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13184 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53185 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13186 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53187 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13188 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53189 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13190
Stepan Khapuginbac467e2022-05-06 21:11:54191const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
192 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
193const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
194 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
195const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
196 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
197
198const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
199 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
200 nullptr},
201 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
202 nullptr},
203 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
204 nullptr},
205};
206
Christian Xucf26d562022-07-06 09:28:36207const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
208 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
209const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
210 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
211const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
212 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
213
214const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
215 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
216 nullptr},
217 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
218 nullptr},
219 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
220 nullptr},
221};
222
Cheick Cissedc49dbe2023-08-09 13:33:52223const FeatureEntry::FeatureParam
224 kDefaultBrowserVideoConditionsHalfscreenPromo[] = {
225 {kDefaultBrowserVideoPromoVariant, kVideoConditionsHalfscreenPromo}};
226const FeatureEntry::FeatureParam
227 kDefaultBrowserVideoConditionsFullscreenPromo[] = {
228 {kDefaultBrowserVideoPromoVariant, kVideoConditionsFullscreenPromo}};
229const FeatureEntry::FeatureParam
230 kDefaultBrowserGenericConsitionsFullscreenPromo[] = {
231 {kDefaultBrowserVideoPromoVariant, kGenericConditionsFullscreenPromo}};
232const FeatureEntry::FeatureParam
233 kDefaultBrowserGenericConditionsHalfscreenPromo[] = {
234 {kDefaultBrowserVideoPromoVariant, kGenericConditionsHalfscreenPromo}};
235
Cheick Cisse2806f082b2023-04-25 14:20:01236const FeatureEntry::FeatureVariation kDefaultBrowserVideoPromoVariations[] = {
Cheick Cissedc49dbe2023-08-09 13:33:52237 {"Show half screen ui with video condtions",
238 kDefaultBrowserVideoConditionsHalfscreenPromo,
239 std::size(kDefaultBrowserVideoConditionsHalfscreenPromo), nullptr},
240 {"Show full screen ui with video condtions",
241 kDefaultBrowserVideoConditionsFullscreenPromo,
242 std::size(kDefaultBrowserVideoConditionsFullscreenPromo), nullptr},
243 {"Show full screen ui with generic condtions",
244 kDefaultBrowserGenericConsitionsFullscreenPromo,
245 std::size(kDefaultBrowserGenericConsitionsFullscreenPromo), nullptr},
246 {"Show half screen ui with generic condtions",
247 kDefaultBrowserGenericConditionsHalfscreenPromo,
248 std::size(kDefaultBrowserGenericConditionsHalfscreenPromo), nullptr},
Cheick Cisse2806f082b2023-04-25 14:20:01249};
250
Caitlin Fischer37e01232019-05-24 13:05:45251const FeatureEntry::FeatureParam
Caitlin Fischer37e01232019-05-24 13:05:45252 kAutofillUseMobileLabelDisambiguationShowAll[] = {
253 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
254 autofill::features::
255 kAutofillUseMobileLabelDisambiguationParameterShowAll}};
256const FeatureEntry::FeatureParam
257 kAutofillUseMobileLabelDisambiguationShowOne[] = {
258 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
259 autofill::features::
260 kAutofillUseMobileLabelDisambiguationParameterShowOne}};
261
262const FeatureEntry::FeatureVariation
263 kAutofillUseMobileLabelDisambiguationVariations[] = {
264 {"(show all)", kAutofillUseMobileLabelDisambiguationShowAll,
Daniel Cheng1f047a82022-02-26 10:04:53265 std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr},
Caitlin Fischer37e01232019-05-24 13:05:45266 {"(show one)", kAutofillUseMobileLabelDisambiguationShowOne,
Daniel Cheng1f047a82022-02-26 10:04:53267 std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}};
Caitlin Fischer37e01232019-05-24 13:05:45268
adamta37c6b832023-03-10 20:04:09269// Uses int values from SigninPromoViewStyle enum.
270const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = {
271 {kDiscoverFeedTopSyncPromoStyle, "0"}};
adamta37c6b832023-03-10 20:04:09272const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] =
Guillem Perezc2d13942023-06-22 20:14:59273 {{kDiscoverFeedTopSyncPromoStyle, "1"}};
adamta37c6b832023-03-10 20:04:09274const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = {
Guillem Perezc2d13942023-06-22 20:14:59275 {kDiscoverFeedTopSyncPromoStyle, "2"}};
adamtadb0bfc62022-08-01 17:37:47276
Mohammad Refaatab6bee62022-05-16 16:31:15277const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = {
adamta37c6b832023-03-10 20:04:09278 {"Standard", kDiscoverFeedTopSyncPromoStandard,
279 std::size(kDiscoverFeedTopSyncPromoStandard), nullptr},
adamta37c6b832023-03-10 20:04:09280 {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal,
281 std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr},
282 {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical,
283 std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}};
Mohammad Refaatab6bee62022-05-16 16:31:15284
adamta4a6f2fd22023-02-13 17:37:14285const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = {
286 {kDisableStickyHeaderForFollowingFeed, "true"}};
287const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = {
adamtabc048042023-03-15 22:42:18288 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14289const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = {
290 {kDisableStickyHeaderForFollowingFeed, "true"},
adamtabc048042023-03-15 22:42:18291 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14292
293const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = {
294 {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader,
295 std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr},
296 {"Reduced header height", kFeedHeaderSettingReducedHeight,
297 std::size(kFeedHeaderSettingReducedHeight), nullptr},
298 {"All improvements", kFeedHeaderSettingAllImprovements,
299 std::size(kFeedHeaderSettingAllImprovements), nullptr}};
300
gogerald53c6e7a2021-04-15 22:07:35301const FeatureEntry::FeatureParam kStartSurfaceTenSecondsShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08302 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35303 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
304const FeatureEntry::FeatureParam kStartSurfaceTenSecondsHideShortcuts[] = {
Chris Lu5470417c2021-03-03 18:43:08305 {kStartSurfaceHideShortcutsParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35306 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
307const FeatureEntry::FeatureParam kStartSurfaceTenSecondsReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08308 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35309 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
310const FeatureEntry::FeatureParam
311 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab[] = {
312 {kStartSurfaceShrinkLogoParam, "true"},
313 {kStartSurfaceReturnToRecentTabParam, "true"},
314 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
315const FeatureEntry::FeatureParam
316 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab[] = {
317 {kStartSurfaceHideShortcutsParam, "true"},
318 {kStartSurfaceReturnToRecentTabParam, "true"},
319 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
320const FeatureEntry::FeatureParam kStartSurfaceOneHourShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08321 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35322 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
323const FeatureEntry::FeatureParam kStartSurfaceOneHourHideShortcuts[] = {
324 {kStartSurfaceHideShortcutsParam, "true"},
325 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
326const FeatureEntry::FeatureParam kStartSurfaceOneHourReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08327 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35328 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
329const FeatureEntry::FeatureParam
330 kStartSurfaceOneHourShrinkLogoReturnToRecentTab[] = {
331 {kStartSurfaceShrinkLogoParam, "true"},
332 {kStartSurfaceReturnToRecentTabParam, "true"},
333 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
334const FeatureEntry::FeatureParam
335 kStartSurfaceOneHourHideShortcutsReturnToRecentTab[] = {
336 {kStartSurfaceHideShortcutsParam, "true"},
337 {kStartSurfaceReturnToRecentTabParam, "true"},
338 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08339
gogerald0e39e3aa2021-02-10 18:41:23340const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
gogerald53c6e7a2021-04-15 22:07:35341 {"10s:Show Return to Recent Tab tile",
342 kStartSurfaceTenSecondsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53343 std::size(kStartSurfaceTenSecondsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35344 {"10s:Shrink Logo", kStartSurfaceTenSecondsShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53345 std::size(kStartSurfaceTenSecondsShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35346 {"10s:Hide Shortcuts", kStartSurfaceTenSecondsHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53347 std::size(kStartSurfaceTenSecondsHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35348 {"10s:Shrink Logo and show Return to Recent Tab tile",
349 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53350 std::size(kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35351 {"10s:Hide Shortcuts and show Return to Recent Tab tile",
352 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53353 std::size(kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35354 {"1h:Show Return to Recent Tab tile", kStartSurfaceOneHourReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53355 std::size(kStartSurfaceOneHourReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35356 {"1h:Shrink Logo", kStartSurfaceOneHourShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53357 std::size(kStartSurfaceOneHourShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35358 {"1h:Hide Shortcuts", kStartSurfaceOneHourHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53359 std::size(kStartSurfaceOneHourHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35360 {"1h:Shrink Logo and show Return to Recent Tab tile",
361 kStartSurfaceOneHourShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53362 std::size(kStartSurfaceOneHourShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35363 {"1h:Hide Shortcuts and show Return to Recent Tab tile",
364 kStartSurfaceOneHourHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53365 std::size(kStartSurfaceOneHourHideShortcutsReturnToRecentTab), nullptr},
Chris Lu5470417c2021-03-03 18:43:08366};
gogerald0e39e3aa2021-02-10 18:41:23367
Chris Luce928eb2023-05-12 21:36:26368const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
369 {kMagicStackMostVisitedModuleParam, "true"},
370 {kReducedSpaceParam, "-80"}};
371const FeatureEntry::FeatureParam kMagicStackPushedDown[] = {
372 {kMagicStackMostVisitedModuleParam, "false"},
373 {kReducedSpaceParam, "-30"}};
374const FeatureEntry::FeatureParam kMagicStackReducedNTPTopSpace[] = {
375 {kMagicStackMostVisitedModuleParam, "false"},
376 {kReducedSpaceParam, "20"}};
377
378const FeatureEntry::FeatureVariation kMagicStackVariations[]{
379 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
380 std::size(kMagicStackMostVisitedModule), nullptr},
381 {"Magic Stack with more NTP Top Space", kMagicStackPushedDown,
382 std::size(kMagicStackPushedDown), nullptr},
383 {"Magic Stack with Reduced NTP Top Space", kMagicStackReducedNTPTopSpace,
384 std::size(kMagicStackReducedNTPTopSpace), nullptr},
385};
386
Chris Lu6fd4eaf2023-08-08 18:29:30387const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
388 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
389
390const FeatureEntry::FeatureVariation
391 kSegmentationPlatformIosModuleRankerVariations[]{
392 {"Enabled With Default Model Parameter (Must Set this!)",
393 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
394 };
395
adamta09aa47e2023-05-23 18:20:43396const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesAll[] = {
397 {kHideContentSuggestionsTilesParamMostVisited, "true"},
398 {kHideContentSuggestionsTilesParamShortcuts, "true"},
399};
400const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesMVT[] = {
401 {kHideContentSuggestionsTilesParamMostVisited, "true"},
402 {kHideContentSuggestionsTilesParamShortcuts, "false"},
403};
404const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesShortcuts[] = {
405 {kHideContentSuggestionsTilesParamMostVisited, "false"},
406 {kHideContentSuggestionsTilesParamShortcuts, "true"},
407};
408
409const FeatureEntry::FeatureVariation kHideContentSuggestionTilesVariations[]{
410 {"Hide all tiles", kHideAllContentSuggestionsTilesAll,
411 std::size(kHideAllContentSuggestionsTilesAll), nullptr},
412 {"Hide Most Visited tiles", kHideAllContentSuggestionsTilesMVT,
413 std::size(kHideAllContentSuggestionsTilesMVT), nullptr},
414 {"Hide Shortcuts tiles", kHideAllContentSuggestionsTilesShortcuts,
415 std::size(kHideAllContentSuggestionsTilesShortcuts), nullptr},
416};
417
Ed Chin91e44992022-07-27 13:42:34418#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26419// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01420const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04421 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
422 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01423 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04424 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01425const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04426 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
427 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01428 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04429 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01430const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04431 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
432 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01433 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04434 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01435const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04436 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
437 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01438 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04439 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01440const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04441 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
442 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01443 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
444 {kBackgroundRefreshIntervalInSeconds, "0"}};
445const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04446 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
447 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01448 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
449 {kBackgroundRefreshIntervalInSeconds, "0"}};
450const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
451 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
452 {kEnableRecurringBackgroundRefreshSchedule, "false"},
453 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
454 {kBackgroundRefreshIntervalInSeconds, "0"}};
455const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
456 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
457 {kEnableRecurringBackgroundRefreshSchedule, "true"},
458 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
459 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04460
Ed Chin178ec2a2023-02-10 22:21:26461// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04462const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01463 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
464 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
465 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
466 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
467 {"1hr Interval 1hr Max Age Recurring",
468 kOneHourIntervalOneHourMaxAgeRecurring,
469 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
470 {"4hr Interval 6hr Max Age Recurring",
471 kFourHourIntervalSixHourMaxAgeRecurring,
472 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
473 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
474 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
475 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
476 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
477 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
478 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
479 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
480 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04481};
Ed Chin91e44992022-07-27 13:42:34482#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04483
Ed Chin178ec2a2023-02-10 22:21:26484// Feed Foreground Refresh Feature Params.
Ed Chin5c1fd532023-03-20 17:43:29485const FeatureEntry::FeatureParam kFeedSessionCloseForegroundRefresh[] = {
486 {kEnableFeedSessionCloseForegroundRefresh, "true"},
Ed Chin44e6c7e2023-03-22 00:32:54487 {kEnableFeedAppCloseForegroundRefresh, "false"},
488 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
Ed Chin5c1fd532023-03-20 17:43:29489const FeatureEntry::FeatureParam kFeedAppCloseForegroundRefresh[] = {
490 {kEnableFeedSessionCloseForegroundRefresh, "false"},
Ed Chin44e6c7e2023-03-22 00:32:54491 {kEnableFeedAppCloseForegroundRefresh, "true"},
492 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
493const FeatureEntry::FeatureParam kFeedAppCloseBackgroundRefresh[] = {
494 {kEnableFeedSessionCloseForegroundRefresh, "false"},
495 {kEnableFeedAppCloseForegroundRefresh, "false"},
496 {kEnableFeedAppCloseBackgroundRefresh, "true"}};
Ed Chin178ec2a2023-02-10 22:21:26497
Ed Chin5c1fd532023-03-20 17:43:29498// Feed Invisible Foreground Refresh Feature Variations.
499const FeatureEntry::FeatureVariation
500 kFeedInvisibleForegroundRefreshVariations[] = {
501 {"session close foreground refresh", kFeedSessionCloseForegroundRefresh,
502 std::size(kFeedSessionCloseForegroundRefresh), nullptr},
503 {"app close foreground refresh", kFeedAppCloseForegroundRefresh,
504 std::size(kFeedAppCloseForegroundRefresh), nullptr},
Ed Chin44e6c7e2023-03-22 00:32:54505 {"app close background refresh", kFeedAppCloseBackgroundRefresh,
506 std::size(kFeedAppCloseBackgroundRefresh), nullptr},
Ed Chin178ec2a2023-02-10 22:21:26507};
508
ginnnnnnnyf907fd92023-06-14 22:21:40509const FeatureEntry::FeatureParam kAutofillBrandingIOSUntilInteracted[] = {
510 {autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
511 autofill::features::kAutofillBrandingIOSParamFrequencyTypeUntilInteracted},
512 {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
513 autofill::features::
514 kAutofillBrandingIOSParamFrequencyTypeUntilInteracted}};
515const FeatureEntry::FeatureParam kAutofillBrandingIOSAlwaysShowAndSlideOut[] = {
ginnnnnnnycde6fcbb2023-05-23 16:18:07516 {autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
517 autofill::features::
518 kAutofillBrandingIOSParamFrequencyTypeAlwaysShowAndDismiss},
519 {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
520 autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}};
ginnnnnnnyf907fd92023-06-14 22:21:40521const FeatureEntry::FeatureParam kAutofillBrandingIOSSlideOutWhenInteracted[] =
522 {{autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
523 autofill::features::
524 kAutofillBrandingIOSParamFrequencyTypeDismissWhenInteracted},
525 {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
526 autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}};
ginnnnnnny591a4972022-09-01 16:10:27527const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = {
ginnnnnnnycde6fcbb2023-05-23 16:18:07528 {"(will not show again after user interacts with keyboard accessories)",
ginnnnnnnyf907fd92023-06-14 22:21:40529 kAutofillBrandingIOSUntilInteracted,
530 std::size(kAutofillBrandingIOSUntilInteracted), nullptr},
531 {"(shows and slides out from leading edge every time)",
532 kAutofillBrandingIOSAlwaysShowAndSlideOut,
533 std::size(kAutofillBrandingIOSAlwaysShowAndSlideOut), nullptr},
534 {"(slides out from leading edge after user interacts with keyboard "
535 "accessories)",
536 kAutofillBrandingIOSSlideOutWhenInteracted,
537 std::size(kAutofillBrandingIOSSlideOutWhenInteracted), nullptr}};
ginnnnnnny591a4972022-09-01 16:10:27538
Raj T18a2c8c2023-03-15 17:20:15539const FeatureEntry::FeatureParam kEnableExpKitTextClassifierDate[] = {
540 {"date", "true"}};
541const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddress[] = {
542 {"address", "true"}};
543const FeatureEntry::FeatureParam kEnableExpKitTextClassifierPhoneNumber[] = {
544 {"phonenumber", "true"}};
545const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmail[] = {
546 {"email", "true"}};
Raj Te702d4e2023-05-15 21:03:50547const FeatureEntry::FeatureParam kEnableExpKitTextClassifierOneTap[] = {
548 {"onetap", "true"}};
Raj T18a2c8c2023-03-15 17:20:15549const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAll[] = {
550 {"date", "true"},
551 {"address", "true"},
552 {"phonenumber", "true"},
553 {"email", "true"}};
554const FeatureEntry::FeatureVariation kEnableExpKitTextClassifierVariations[] = {
555 {"Enabled for all entities", kEnableExpKitTextClassifierAll,
556 std::size(kEnableExpKitTextClassifierAll), nullptr},
557 {"Enabled for date", kEnableExpKitTextClassifierDate,
558 std::size(kEnableExpKitTextClassifierDate), nullptr},
559 {"Enabled for address", kEnableExpKitTextClassifierAddress,
560 std::size(kEnableExpKitTextClassifierAddress), nullptr},
561 {"Enabled for phonenumber", kEnableExpKitTextClassifierPhoneNumber,
562 std::size(kEnableExpKitTextClassifierPhoneNumber), nullptr},
563 {"Enabled for email", kEnableExpKitTextClassifierEmail,
Raj Te702d4e2023-05-15 21:03:50564 std::size(kEnableExpKitTextClassifierEmail), nullptr},
565 {"Enabled for One Tap mode", kEnableExpKitTextClassifierOneTap,
566 std::size(kEnableExpKitTextClassifierOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15567
Louis Romero93e9b50a2023-01-26 01:46:12568const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
569 {kTabInactivityThresholdParameterName,
570 kTabInactivityThresholdOneWeekParam}};
571const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
572 {kTabInactivityThresholdParameterName,
573 kTabInactivityThresholdTwoWeeksParam}};
574const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
575 {kTabInactivityThresholdParameterName,
576 kTabInactivityThresholdThreeWeeksParam}};
Louis Romero56abd902023-03-15 16:21:58577const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = {
578 {kTabInactivityThresholdParameterName,
579 kTabInactivityThresholdOneMinuteDemoParam}};
Louis Romero93e9b50a2023-01-26 01:46:12580
581const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
582 {"One week", kTabInactivityThresholdOneWeek,
583 std::size(kTabInactivityThresholdOneWeek), nullptr},
584 {"Two weeks", kTabInactivityThresholdTwoWeeks,
585 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
586 {"Three weeks", kTabInactivityThresholdThreeWeeks,
587 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
Louis Romero56abd902023-03-15 16:21:58588 {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo,
589 std::size(kTabInactivityThresholdOneMinuteDemo), nullptr},
Louis Romero93e9b50a2023-01-26 01:46:12590};
591
Ewann Pelle6eecb8f2023-06-23 14:31:37592const FeatureEntry::FeatureParam kTabPickupThresholdTenMinutes[] = {
593 {kTabPickupThresholdParameterName, kTabPickupThresholdTenMinutesParam}};
594const FeatureEntry::FeatureParam kTabPickupThresholdOneHour[] = {
595 {kTabPickupThresholdParameterName, kTabPickupThresholdOneHourParam}};
596const FeatureEntry::FeatureParam kTabPickupThresholdTwoHours[] = {
597 {kTabPickupThresholdParameterName, kTabPickupThresholdTwoHoursParam}};
598
599const FeatureEntry::FeatureVariation kTabPickupThresholdVariations[] = {
600 {"Ten Minutes", kTabPickupThresholdTenMinutes,
601 std::size(kTabInactivityThresholdOneWeek), nullptr},
602 {"One Hour", kTabPickupThresholdOneHour,
603 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
604 {"Two Hours", kTabPickupThresholdTwoHours,
605 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
606};
607
Huiting Yud7d2a5322023-02-09 21:14:22608const FeatureEntry::FeatureParam
609 kCredentialProviderExtensionPromoOnPasswordSaved[] = {
610 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
611const FeatureEntry::FeatureParam
612 kCredentialProviderExtensionPromoOnPasswordCopied[] = {
613 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}};
614const FeatureEntry::FeatureParam
Hira Mahmood1baa9be2023-05-25 13:55:20615 kCredentialProviderExtensionPromoOnAllTriggers[] = {
Hira Mahmood1baa9be2023-05-25 13:55:20616 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"},
617 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
Huiting Yud7d2a5322023-02-09 21:14:22618
619const FeatureEntry::FeatureVariation
620 kCredentialProviderExtensionPromoVariations[] = {
621 {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved,
622 std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr},
623 {"On password copied",
624 kCredentialProviderExtensionPromoOnPasswordCopied,
625 std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr},
Hira Mahmood1baa9be2023-05-25 13:55:20626 {"On all triggers", kCredentialProviderExtensionPromoOnAllTriggers,
Huiting Yu7997667e2023-07-07 16:12:30627 std::size(kCredentialProviderExtensionPromoOnAllTriggers), nullptr}};
Huiting Yud7d2a5322023-02-09 21:14:22628
Olivier ROBINfd3887b72023-02-23 14:45:42629const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
630 {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
Olivier Robinfa8de5502023-06-21 19:53:44631const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateWithIncognito[] = {
632 {kIOSEditMenuPartialTranslateNoIncognitoParam, "false"}};
Olivier ROBINfd3887b72023-02-23 14:45:42633const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
634 {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
Olivier Robinfa8de5502023-06-21 19:53:44635 std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr},
636 {"Enable on incognito", kIOSEditMenuPartialTranslateWithIncognito,
637 std::size(kIOSEditMenuPartialTranslateWithIncognito), nullptr}};
Olivier ROBINfd3887b72023-02-23 14:45:42638
ginnnnnnny75903622023-03-01 18:00:00639const FeatureEntry::FeatureParam kBringYourOwnTabsIOSBottomMessage[] = {
640 {kBringYourOwnTabsIOSParam, "true"}};
641const FeatureEntry::FeatureVariation kBringYourOwnTabsIOSVariations[] = {
642 {"with bottom message on tab grid", kBringYourOwnTabsIOSBottomMessage,
643 std::size(kBringYourOwnTabsIOSBottomMessage), nullptr}};
644
Olivier ROBIN2613bcd02023-04-20 10:00:47645const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearchWith[] = {
646 {kIOSEditMenuSearchWithTitleParamTitle,
647 kIOSEditMenuSearchWithTitleSearchWithParam}};
648const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearch[] = {
649 {kIOSEditMenuSearchWithTitleParamTitle,
650 kIOSEditMenuSearchWithTitleSearchParam}};
651const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleWebSearch[] = {
652 {kIOSEditMenuSearchWithTitleParamTitle,
653 kIOSEditMenuSearchWithTitleWebSearchParam}};
654const FeatureEntry::FeatureVariation kIOSEditMenuSearchWithVariations[] = {
655 {"Search with DSE", kIOSEditMenuSearchWithTitleSearchWith,
656 std::size(kIOSEditMenuSearchWithTitleSearchWith), nullptr},
657 {"Search", kIOSEditMenuSearchWithTitleSearch,
658 std::size(kIOSEditMenuSearchWithTitleSearch), nullptr},
659 {"Web Search", kIOSEditMenuSearchWithTitleWebSearch,
660 std::size(kIOSEditMenuSearchWithTitleWebSearch), nullptr},
661};
662
Hira Mahmood6b0e5502023-06-12 21:51:43663const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoHalfscreen[] = {
664 {kPostRestoreDefaultBrowserPromoHalfscreenParam, "true"}};
665const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoFullscreen[] = {
666 {kPostRestoreDefaultBrowserPromoFullscreenParam, "true"}};
667const FeatureEntry::FeatureVariation
668 kPostRestoreDefaultBrowserPromoVariations[] = {
669 {"with half screen ui", kPostRestoreDefaultBrowserPromoHalfscreen,
670 std::size(kPostRestoreDefaultBrowserPromoHalfscreen), nullptr},
671 {"with full screen ui", kPostRestoreDefaultBrowserPromoFullscreen,
672 std::size(kPostRestoreDefaultBrowserPromoFullscreen), nullptr},
673};
674
Christian Xu07d600192023-07-24 12:29:52675const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
676 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
677const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
678 {kBottomOmniboxDefaultSettingParam,
679 kBottomOmniboxDefaultSettingParamBottom}};
680const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
681 {{kBottomOmniboxDefaultSettingParam,
682 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
683const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
684 {
685 {"Top", kBottomOmniboxDefaultSettingTop,
686 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
687 {"Bottom", kBottomOmniboxDefaultSettingBottom,
688 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
689 {"Bottom for Safari Switcher",
690 kBottomOmniboxDefaultSettingSafariSwitcher,
691 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
692};
693
Marc Treib9bddebb2023-06-15 14:03:34694const FeatureEntry::Choice kReplaceSyncPromosWithSignInPromosChoices[] = {
695 {"Default", "", ""},
Marc Treib565b4182023-07-28 10:27:25696 {"Disabled", "disable-features",
697 "ReplaceSyncPromosWithSignInPromos,"
698 "FeedBottomSyncStringRemoval"},
699 {"Base only", "enable-features",
700 "ReplaceSyncPromosWithSignInPromos,"
701 "FeedBottomSyncStringRemoval"},
Marc Treib9bddebb2023-06-15 14:03:34702 {"Everything (bookmarks, reading list, etc)", "enable-features",
703 "ReplaceSyncPromosWithSignInPromos,"
Marc Treib565b4182023-07-28 10:27:25704 "FeedBottomSyncStringRemoval,"
Marc Treib9bddebb2023-06-15 14:03:34705 "SyncEnableContactInfoDataTypeInTransportMode,"
Marc Treibae48ec482023-08-04 16:33:37706 "SyncEnableContactInfoDataTypeForCustomPassphraseUsers,"
Marc Treib9bddebb2023-06-15 14:03:34707 "EnableBookmarksAccountStorage,"
Marc Treib72443c02023-06-19 16:27:10708 "EnablePreferencesAccountStorage,"
Marc Treib9bddebb2023-06-15 14:03:34709 "ReadingListEnableDualReadingListModel,"
Marc Treib81d732c2023-06-19 10:20:39710 "ReadingListEnableSyncTransportModeUponSignIn,"
Victor Hugo Vianna Silva23d2ebf22023-06-20 16:19:12711 "ConsistencyNewAccountInterface,"
Victor Hugo Vianna Silvac5c6e8e2023-08-11 08:52:04712 "AutofillAccountProfileStorage"},
Marc Treib9bddebb2023-06-15 14:03:34713};
714
Olivier ROBIN82b67002023-07-31 14:34:46715const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
716 {web::features::kOneTapForMapsConsentModeParamTitle,
717 web::features::kOneTapForMapsConsentModeDefaultParam}};
718const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
719 {web::features::kOneTapForMapsConsentModeParamTitle,
720 web::features::kOneTapForMapsConsentModeForcedParam}};
721const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
722 {web::features::kOneTapForMapsConsentModeParamTitle,
723 web::features::kOneTapForMapsConsentModeDisabledParam}};
724const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
725 {"Consent Default", kOneTapForMapsConsentModeDefault,
726 std::size(kOneTapForMapsConsentModeDefault), nullptr},
727 {"Consent Forced", kOneTapForMapsConsentModeForced,
728 std::size(kOneTapForMapsConsentModeForced), nullptr},
729 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
730 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
731};
732
Cooper Knaak1e026562017-07-26 05:22:28733// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21734// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28735// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
736// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21737// macro for this type supplying the command line to the macro.
738// . MULTI_VALUE: a list of choices, the first of which should correspond to a
739// deactivated state for this lab (i.e. no command line option). To specify
740// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
741// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28742// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
743// either enabled, disabled, or uses the default value of the associated
744// base::Feature instance. To specify this type of entry use the macro
745// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
746// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
747// base::Feature instance. Choices corresponding to the default state, a
748// universally enabled state, and a universally disabled state are
749// automatically included. To specify this type of entry use the macro
750// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
751// the array of choices.
752//
sdefresne14900ee2015-11-27 14:43:21753// See the documentation of FeatureEntry for details on the fields.
754//
755// When adding a new choice, add it to the end of the list.
756const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28757 {"in-product-help-demo-mode-choice",
758 flag_descriptions::kInProductHelpDemoModeName,
759 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
760 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23761 feature_engagement::kIPHDemoMode,
762 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09763 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22764 {"enable-autofill-credit-card-upload",
765 flag_descriptions::kAutofillCreditCardUploadName,
766 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24767 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23768 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
769 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
770 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51771 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:23772 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
773 {"wallet-service-use-sandbox",
774 flag_descriptions::kWalletServiceUseSandboxName,
775 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
776 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
777 autofill::switches::kWalletServiceUseSandbox,
778 "1",
779 autofill::switches::kWalletServiceUseSandbox,
780 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:59781 {"show-autofill-type-predictions",
782 flag_descriptions::kShowAutofillTypePredictionsName,
783 flag_descriptions::kShowAutofillTypePredictionsDescription,
784 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:50785 FEATURE_VALUE_TYPE(
786 autofill::features::test::kAutofillShowTypePredictions)},
Vidhan Jainb86c94b2023-04-06 14:13:57787 {"autofill-account-profiles-storage",
788 flag_descriptions::kAutofillAccountProfilesStorageName,
789 flag_descriptions::kAutofillAccountProfilesStorageDescription,
790 flags_ui::kOsIos,
791 FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfileStorage)},
Olivier Robin3d60411622018-02-23 10:03:22792 {"autofill-ios-delay-between-fields",
793 flag_descriptions::kAutofillIOSDelayBetweenFieldsName,
794 flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription,
795 flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)},
Benjamin Williamsdf18e7e2022-10-03 18:46:05796 {"fullscreen-promos-manager-skip-internal-limits",
797 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
798 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
799 flags_ui::kOsIos,
800 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:14801 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:53802 flag_descriptions::kFullscreenSmoothScrollingName,
803 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:19804 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:06805 {"webpage-default-zoom-from-dynamic-type",
806 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
807 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
808 flags_ui::kOsIos,
809 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:56810 {"webpage-alternative-text-zoom",
811 flag_descriptions::kWebPageAlternativeTextZoomName,
812 flag_descriptions::kWebPageAlternativeTextZoomDescription,
813 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:34814 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
815 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
816 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Stepan Khapugincc4e9842019-01-23 13:38:13817 {"omnibox-ui-max-autocomplete-matches",
818 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
819 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
820 flags_ui::kOsIos,
821 FEATURE_WITH_PARAMS_VALUE_TYPE(
822 omnibox::kUIExperimentMaxAutocompleteMatches,
823 kOmniboxUIMaxAutocompleteMatchesVariations,
824 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:35825 {"omnibox-local-history-zero-suggest-beyond-ntp",
826 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
827 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
828 flags_ui::kOsIos,
829 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:54830 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
831 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
832 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
833 kOmniboxMaxZPSMatchesVariations,
834 "OmniboxMaxZPSVariations")},
Stepan Khapugind9876842023-01-27 17:59:45835
836 {"omnibox-most-visited-tiles-on-srp",
837 flag_descriptions::kOmniboxMostVisitedTilesOnSrpName,
838 flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription,
839 flags_ui::kOsIos,
840 FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)},
Caitlin Fischer43edd90a2019-05-01 13:24:30841 {"autofill-use-mobile-label-disambiguation",
842 flag_descriptions::kAutofillUseMobileLabelDisambiguationName,
843 flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription,
844 flags_ui::kOsIos,
Caitlin Fischer37e01232019-05-24 13:05:45845 FEATURE_WITH_PARAMS_VALUE_TYPE(
846 autofill::features::kAutofillUseMobileLabelDisambiguation,
847 kAutofillUseMobileLabelDisambiguationVariations,
848 "AutofillUseMobileLabelDisambiguation")},
Jérôme Lebelc374fdd2019-09-27 10:36:48849 {"force-startup-signin-promo",
850 flag_descriptions::kForceStartupSigninPromoName,
851 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:29852 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Yoichi Osato7ae11752021-03-16 03:27:22853 {"restore-session-from-cache",
854 flag_descriptions::kRestoreSessionFromCacheName,
855 flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos,
Justin Cohen3ec2522c2021-04-23 18:23:49856 FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)},
Tommy Martino6b4eb7e2020-06-25 18:25:41857 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
858 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
859 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:13860#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:45861 {"screen-time-integration-ios",
862 flag_descriptions::kScreenTimeIntegrationName,
863 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
864 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:13865#endif
Nazerke3e993f72020-09-21 13:00:06866 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
867 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
868 FEATURE_VALUE_TYPE(kModernTabStrip)},
Eugene Butf869bff2020-12-10 01:16:55869 {"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName,
870 flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos,
871 FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)},
Cheick Cisse76ade3d2020-12-16 00:15:11872 {"ios-shared-highlighting-color-change",
873 flag_descriptions::kIOSSharedHighlightingColorChangeName,
874 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:07875 flags_ui::kOsIos,
876 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:34877 {"ios-shared-highlighting-v2",
878 flag_descriptions::kIOSSharedHighlightingV2Name,
879 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
880 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Stepan Khapugin04341202021-01-07 12:22:45881 {"omnibox-new-textfield-implementation",
882 flag_descriptions::kOmniboxNewImplementationName,
883 flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos,
884 FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)},
Stepan Khapugin0be8f6d2022-09-21 20:22:26885 {"omnibox-on-focus-suggestions-contextual-web",
886 flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName,
887 flag_descriptions::
888 kOmniboxFocusTriggersContextualWebZeroSuggestDescription,
889 flags_ui::kOsIos,
890 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)},
891 {"omnibox-on-focus-suggestions-srp",
892 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName,
893 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription,
894 flags_ui::kOsIos,
895 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)},
Stepan Khapugin0da12382023-01-24 16:08:12896 {"omnibox-report-assisted-query-stats",
897 flag_descriptions::kOmniboxReportAssistedQueryStatsName,
898 flag_descriptions::kOmniboxReportAssistedQueryStatsDescription,
899 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)},
900 {"omnibox-report-searchbox-stats",
901 flag_descriptions::kOmniboxReportSearchboxStatsName,
902 flag_descriptions::kOmniboxReportSearchboxStatsDescription,
903 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)},
Stepan Khapuginecf128a92022-08-30 11:23:15904 {"omnibox-fuzzy-url-suggestions",
905 flag_descriptions::kOmniboxFuzzyUrlSuggestionsName,
906 flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription,
907 flags_ui::kOsIos,
908 FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)},
gogerald0ff29e52021-02-03 18:56:19909 {"start-surface", flag_descriptions::kStartSurfaceName,
910 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:23911 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
912 kStartSurfaceVariations,
913 "StartSurface")},
Vidhan Jain451b4752021-07-15 10:16:42914 {"autofill-address-verification-in-save-prompt",
915 flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName,
916 flag_descriptions::
917 kEnableAutofillAddressSavePromptAddressVerificationDescription,
918 flags_ui::kOsIos,
919 FEATURE_VALUE_TYPE(
920 autofill::features::
921 kAutofillAddressProfileSavePromptAddressVerificationSupport)},
Side Yilmaz6c53f7102021-09-07 13:26:19922 {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName,
923 flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos,
924 FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)},
Nohemi Fernandezc00842a2021-07-26 11:47:34925 {"wait-threshold-seconds-for-capabilities-api",
926 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
927 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
928 flags_ui::kOsIos,
929 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Sylvain Defresnedff67e42021-09-24 09:43:03930 {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName,
931 flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos,
932 FEATURE_VALUE_TYPE(kNewOverflowMenu)},
Guillem Perez49e1df42023-08-23 22:15:24933 {"content-push-notifications",
934 flag_descriptions::kContentPushNotificationsName,
935 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
936 FEATURE_VALUE_TYPE(kContentPushNotifications)},
Robbie Gibsoned7f6ffb2023-05-15 16:03:57937 {"overflow-menu-customization",
938 flag_descriptions::kOverflowMenuCustomizationName,
939 flag_descriptions::kOverflowMenuCustomizationDescription, flags_ui::kOsIos,
940 FEATURE_VALUE_TYPE(kOverflowMenuCustomization)},
Jason Hu3830a072022-08-19 20:56:22941 {"enable-lens-in-home-screen-widget",
942 flag_descriptions::kEnableLensInHomeScreenWidgetName,
943 flag_descriptions::kEnableLensInHomeScreenWidgetDescription,
944 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)},
945 {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName,
946 flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos,
947 FEATURE_VALUE_TYPE(kEnableLensInKeyboard)},
948 {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName,
949 flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos,
950 FEATURE_VALUE_TYPE(kEnableLensInNTP)},
Anudeep Palanki403c907a2023-01-25 20:30:03951 {"enable-lens-context-menu-alt-text",
952 flag_descriptions::kEnableLensContextMenuAltTextName,
953 flag_descriptions::kEnableLensContextMenuAltTextDescription,
954 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)},
Jason Hu67cfb0f2022-11-14 20:21:44955 {"enable-lens-in-omnibox-copied-image",
956 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
957 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
958 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Benjamin Williamsbee6ab62022-02-28 18:09:40959 {"use-load-simulated-request-for-error-page-navigation",
Gauthier Ambard33cceaf2022-05-05 14:00:23960 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName,
961 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription,
Benjamin Williamsbee6ab62022-02-28 18:09:40962 flags_ui::kOsIos,
Gauthier Ambard33cceaf2022-05-05 14:00:23963 FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)},
Sergio Collazos9fcc6ed2021-10-06 00:58:03964 {"enable-disco-feed-endpoint",
965 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
966 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
967 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:11968 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Mohammad Refaatab6bee62022-05-16 16:31:15969 {"enable-discover-feed-top-sync-promo",
970 flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
971 flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
972 flags_ui::kOsIos,
973 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
974 kDiscoverFeedTopSyncPromoVariations,
975 "EnableDiscoverFeedTopSyncPromo")},
adamta4a6f2fd22023-02-13 17:37:14976 {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
977 flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
978 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
979 kFeedHeaderSettingsVariations,
980 "FeedHeaderSettings")},
Tommy Martino7393d762021-10-12 17:59:28981 {"shared-highlighting-amp",
982 flag_descriptions::kIOSSharedHighlightingAmpName,
983 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
984 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:28985 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:42986 commerce::flag_descriptions::kCommercePriceTrackingName,
987 commerce::flag_descriptions::kCommercePriceTrackingDescription,
988 flags_ui::kOsIos,
989 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
990 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:15991 "CommercePriceTracking")},
adamta250f4ad2023-08-02 15:26:06992 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
993 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
994 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:54995 {"ntp-view-hierarchy-repair",
996 flag_descriptions::kNTPViewHierarchyRepairName,
997 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:20998 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Justin Cohen69cec682021-11-04 20:10:26999 {"synthesized-restore-session",
1000 flag_descriptions::kSynthesizedRestoreSessionName,
1001 flag_descriptions::kSynthesizedRestoreSessionDescription, flags_ui::kOsIos,
1002 FEATURE_VALUE_TYPE(web::features::kSynthesizedRestoreSession)},
Ali Juma1429cf8a2022-02-09 15:31:011003 {"enable-fullscreen-api", flag_descriptions::kEnableFullscreenAPIName,
1004 flag_descriptions::kEnableFullscreenAPIDescription, flags_ui::kOsIos,
1005 FEATURE_VALUE_TYPE(web::features::kEnableFullscreenAPI)},
Joemer Ramosc34a30a02022-09-22 15:18:431006 {"enable-tailored-security-integration",
1007 flag_descriptions::kTailoredSecurityIntegrationName,
1008 flag_descriptions::kTailoredSecurityIntegrationDescription,
1009 flags_ui::kOsIos,
1010 FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)},
Vishwas Uppoor89303a92022-08-03 00:56:261011 {"autofill-enable-card-product-name",
1012 flag_descriptions::kAutofillEnableCardProductNameName,
1013 flag_descriptions::kAutofillEnableCardProductNameDescription,
1014 flags_ui::kOsIos,
1015 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Victor Hugo Vianna Silvaf0a44002022-02-16 10:38:001016 {"send-tab-to-self-signin-promo",
1017 flag_descriptions::kSendTabToSelfSigninPromoName,
1018 flag_descriptions::kSendTabToSelfSigninPromoDescription, flags_ui::kOsIos,
1019 FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfSigninPromo)},
Jared Saulb0473bd2022-04-20 00:03:411020 {"autofill-upstream-allow-additional-email-domains",
1021 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName,
1022 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription,
1023 flags_ui::kOsIos,
1024 FEATURE_VALUE_TYPE(
1025 autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)},
1026 {"autofill-upstream-allow-all-email-domains",
1027 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName,
1028 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription,
1029 flags_ui::kOsIos,
1030 FEATURE_VALUE_TYPE(
1031 autofill::features::kAutofillUpstreamAllowAllEmailDomains)},
Raj Tb95d813542022-11-16 21:27:521032 {"enable-download-service-foreground-session",
1033 flag_descriptions::kDownloadServiceForegroundSessionName,
1034 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1035 flags_ui::kOsIos,
1036 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231037 {"enable-tflite-language-detection",
1038 flag_descriptions::kTFLiteLanguageDetectionName,
1039 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1040 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201041 {"optimization-guide-debug-logs",
1042 flag_descriptions::kOptimizationGuideDebugLogsName,
1043 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1044 flags_ui::kOsIos,
1045 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Raj T5aacebd2023-05-22 19:45:091046 {"optimization-guide-install-wide-model-store",
1047 flag_descriptions::kOptimizationGuideInstallWideModelStoreName,
1048 flag_descriptions::kOptimizationGuideInstallWideModelStoreDescription,
1049 flags_ui::kOsIos,
1050 FEATURE_VALUE_TYPE(optimization_guide::features::
1051 kOptimizationGuideInstallWideModelStore)},
Daniel Whited02b6962023-02-14 14:19:551052 {"optimization-guide-push-notifications",
1053 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1054 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1055 flags_ui::kOsIos,
1056 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
Benjamin Williams11f39912023-04-13 19:00:251057 {"sync-segments-data", flag_descriptions::kSyncSegmentsDataName,
1058 flag_descriptions::kSyncSegmentsDataDescription, flags_ui::kOsIos,
1059 FEATURE_VALUE_TYPE(history::kSyncSegmentsData)},
Christian Xub8c06cd2022-04-29 20:55:011060 {"suggestions-scrolling-ipad",
1061 flag_descriptions::kEnableSuggestionsScrollingOnIPadName,
1062 flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription,
1063 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)},
Stepan Khapuginfee136c62022-11-28 13:24:001064 {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName,
1065 flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos,
1066 FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)},
Elmehdi Rahmaoui5a6273a22022-11-28 16:19:251067 {"intents-on-phone-number", flag_descriptions::kPhoneNumberName,
1068 flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331069 FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)},
David Jeanad303a92023-07-31 16:58:111070 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1071 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1072 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
Elmehdi Rahmaoui21e87d52022-11-09 15:00:551073 {"experience-kit-apple-calendar",
1074 flag_descriptions::kAppleCalendarExperienceKitName,
1075 flag_descriptions::kAppleCalendarExperienceKitDescription,
1076 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)},
Raj T7db7a0e2022-11-17 16:33:081077 {"enable-expkit-text-classifier",
1078 flag_descriptions::kEnableExpKitTextClassifierName,
1079 flag_descriptions::kEnableExpKitTextClassifierDescription,
Raj T18a2c8c2023-03-15 17:20:151080 flags_ui::kOsIos,
1081 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifier,
1082 kEnableExpKitTextClassifierVariations,
1083 "ExpKitTextClassifier")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331084 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1085 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461086 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1087 kOneTapForMapsWithVariations,
1088 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251089 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1090 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1091 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Benjamin Williamsf721fc22023-01-10 23:28:251092 {"smart-sorting-price-tracking-destination",
1093 flag_descriptions::kSmartSortingPriceTrackingDestinationName,
1094 flag_descriptions::kSmartSortingPriceTrackingDestinationDescription,
1095 flags_ui::kOsIos,
1096 FEATURE_VALUE_TYPE(kSmartSortingPriceTrackingDestination)},
Scott Yoder10493562022-06-28 17:37:441097 {"new-overflow-menu-share-chrome-action",
1098 flag_descriptions::kNewOverflowMenuShareChromeActionName,
1099 flag_descriptions::kNewOverflowMenuShareChromeActionDescription,
1100 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuShareChromeAction)},
Alexander Tekleb4643812023-01-06 23:12:301101 {"autofill-enable-ranking-formula-address-profiles",
1102 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1103 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1104 flags_ui::kOsIos,
1105 FEATURE_VALUE_TYPE(
1106 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391107 {"autofill-enable-ranking-formula-credit-cards",
1108 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1109 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1110 flags_ui::kOsIos,
1111 FEATURE_VALUE_TYPE(
1112 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021113 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1114 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1115 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Tina Wang30df7172022-12-09 22:02:021116 {"enable-feed-card-menu-sign-in-promo",
1117 flag_descriptions::kEnableFeedCardMenuSignInPromoName,
1118 flag_descriptions::kEnableFeedCardMenuSignInPromoDescription,
1119 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)},
Chris Luc36e3962023-04-11 21:50:521120 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1121 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261122 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1123 kMagicStackVariations,
1124 flag_descriptions::kMagicStackName)},
Chris Lub0bad572023-08-07 18:13:291125 {"ios-magic-stack-segmentation-ranking",
1126 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1127 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1128 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301129 FEATURE_WITH_PARAMS_VALUE_TYPE(
1130 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1131 kSegmentationPlatformIosModuleRankerVariations,
1132 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Olivier Robin058c1fad2022-05-31 18:24:061133 {"default-browser-intents-show-settings",
1134 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1135 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1136 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Tommy Martinoad42be52022-06-13 11:51:191137 {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName,
1138 flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos,
1139 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)},
Scott Yoder16bff3c2023-03-24 16:00:551140 {"ios-set-up-list", flag_descriptions::kIOSSetUpListName,
1141 flag_descriptions::kIOSSetUpListDescription, flags_ui::kOsIos,
1142 FEATURE_VALUE_TYPE(kIOSSetUpList)},
Veronique Nguyenc3d7db52023-03-08 22:52:321143 {"ios-password-bottom-sheet",
1144 flag_descriptions::kIOSPasswordBottomSheetName,
1145 flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos,
1146 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)},
Alexis Hétu459451a2023-06-01 17:05:311147 {"ios-payments-bottom-sheet",
1148 flag_descriptions::kIOSPaymentsBottomSheetName,
1149 flag_descriptions::kIOSPaymentsBottomSheetDescription, flags_ui::kOsIos,
1150 FEATURE_VALUE_TYPE(kIOSPaymentsBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241151 {"omnibox-zero-suggest-prefetching",
1152 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1153 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1154 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451155 {"omnibox-zero-suggest-prefetching-on-srp",
1156 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1157 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1158 flags_ui::kOsIos,
1159 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1160 {"omnibox-zero-suggest-prefetching-on-web",
1161 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1162 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1163 flags_ui::kOsIos,
1164 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471165 {"omnibox-zero-suggest-in-memory-caching",
1166 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1167 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1168 flags_ui::kOsIos,
1169 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351170 {"omnibox-on-device-tail-suggestions",
1171 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1172 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1173 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Joemer Ramosbde5d5d2023-03-31 13:18:371174 {"enable-browser-lockdown-mode",
Joemer Ramos944cbc792023-05-11 16:58:411175 flag_descriptions::kBrowserLockdownModeAvailableName,
1176 flag_descriptions::kBrowserLockdownModeAvailableDescription,
1177 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kBrowserLockdownModeAvailable)},
Joemer Ramosada1e852023-03-10 19:14:411178 {"enable-button-configuration-usage",
1179 flag_descriptions::kEnableUIButtonConfigurationName,
1180 flag_descriptions::kEnableUIButtonConfigurationDescription,
1181 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableUIButtonConfiguration)},
Vincent Boisselle68105c6f2023-08-03 16:43:071182 {"enable-user-policy-for-signin-and-nosync-consent-level",
1183 flag_descriptions::kEnableUserPolicyForSigninAndNoSyncConsentLevelName,
1184 flag_descriptions::
1185 kEnableUserPolicyForSigninAndNoSyncConsentLevelDescription,
1186 flags_ui::kOsIos,
1187 FEATURE_VALUE_TYPE(policy::kUserPolicyForSigninAndNoSyncConsentLevel)},
1188 {"enable-user-policy-for-signin-or-sync-consent-level",
1189 flag_descriptions::kEnableUserPolicyForSigninOrSyncConsentLevelName,
1190 flag_descriptions::kEnableUserPolicyForSigninOrSyncConsentLevelDescription,
1191 flags_ui::kOsIos,
1192 FEATURE_VALUE_TYPE(policy::kUserPolicyForSigninOrSyncConsentLevel)},
Christian Xucf26d562022-07-06 09:28:361193 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1194 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1195 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1196 kOmniboxMaxURLMatchesVariations,
1197 "OmniboxMaxURLMatches")},
Olivier Robin60d3a062022-07-06 17:34:061198 {"metrickit-non-crash-reports",
1199 flag_descriptions::kMetrickitNonCrashReportName,
1200 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1201 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Siyu An3194bda2022-07-13 19:30:371202 {"autofill-enable-remade-downstream-metrics",
1203 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName,
1204 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription,
1205 flags_ui::kOsIos,
1206 FEATURE_VALUE_TYPE(
1207 autofill::features::kAutofillEnableRemadeDownstreamMetrics)},
Nakul Vaidya13ca2042022-07-27 01:59:551208 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1209 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1210 flag_descriptions::
1211 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1212 flags_ui::kOsIos,
1213 FEATURE_VALUE_TYPE(
1214 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Cheick Cisse1a168ef2023-03-24 10:39:531215 {"default-browser-refactoring-promo-manager",
1216 flag_descriptions::kDefaultBrowserRefactoringPromoManagerName,
1217 flag_descriptions::kDefaultBrowserRefactoringPromoManagerDescription,
1218 flags_ui::kOsIos,
1219 FEATURE_VALUE_TYPE(kDefaultBrowserRefactoringPromoManager)},
Cheick Cisse2806f082b2023-04-25 14:20:011220 {"default-browser-video-promo",
1221 flag_descriptions::kDefaultBrowserVideoPromoName,
1222 flag_descriptions::kDefaultBrowserVideoPromoDescription, flags_ui::kOsIos,
1223 FEATURE_WITH_PARAMS_VALUE_TYPE(kDefaultBrowserVideoPromo,
1224 kDefaultBrowserVideoPromoVariations,
1225 "DefaultBrowserVideoPromoVariations")},
Cheick Cisse8835611a2023-06-02 21:42:541226 {"default-browser-promo-force-show-promo",
1227 flag_descriptions::kDefaultBrowserPromoForceShowPromoName,
1228 flag_descriptions::kDefaultBrowserPromoForceShowPromoDescription,
1229 flags_ui::kOsIos,
1230 MULTI_VALUE_TYPE(kDefaultBrowserPromoForceShowPromoChoices)},
Gayane Petrosyan5960a172023-06-19 15:40:171231 {"default-browser-promo-trigger-criteria-experiment",
1232 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1233 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1234 flags_ui::kOsIos,
Gayane Petrosyandc3188c2023-08-10 17:28:501235 FEATURE_VALUE_TYPE(kDefaultBrowserTriggerCriteriaExperiment)},
1236 {"fullscreen-promo-on-omnibox-copy-paste",
1237 flag_descriptions::kFullScreenPromoOnOmniboxCopyPasteName,
1238 flag_descriptions::kFullScreenPromoOnOmniboxCopyPasteDescription,
1239 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kFullScreenPromoOnOmniboxCopyPaste)},
Ed Chin91e44992022-07-27 13:42:341240#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1241 {"feed-background-refresh-ios",
1242 flag_descriptions::kFeedBackgroundRefreshName,
1243 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1244 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1245 kFeedBackgroundRefreshVariations,
1246 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261247#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin5c1fd532023-03-20 17:43:291248 {"feed-invisible-foreground-refresh-ios",
1249 flag_descriptions::kFeedInvisibleForegroundRefreshName,
1250 flag_descriptions::kFeedInvisibleForegroundRefreshDescription,
1251 flags_ui::kOsIos,
1252 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedInvisibleForegroundRefresh,
1253 kFeedInvisibleForegroundRefreshVariations,
1254 "FeedInvisibleForegroundRefresh")},
Christian Xu164a2e512022-08-01 20:38:191255 {"omnibox-keyboard-paste-button",
1256 flag_descriptions::kOmniboxKeyboardPasteButtonName,
1257 flag_descriptions::kOmniboxKeyboardPasteButtonDescription,
1258 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)},
Cheick Cisse5d2b6cb82023-06-05 17:27:581259 {"whats-new-ios-m116", flag_descriptions::kWhatsNewIOSM116Name,
1260 flag_descriptions::kWhatsNewIOSM116Description, flags_ui::kOsIos,
1261 FEATURE_VALUE_TYPE(kWhatsNewIOSM116)},
ginnnnnnny591a4972022-09-01 16:10:271262 {"ios-autofill-branding", flag_descriptions::kAutofillBrandingIOSName,
1263 flag_descriptions::kAutofillBrandingIOSDescription, flags_ui::kOsIos,
1264 FEATURE_WITH_PARAMS_VALUE_TYPE(autofill::features::kAutofillBrandingIOS,
1265 kAutofillBrandingIOSVariations,
Hira Mahmoodb0e5f412022-09-01 19:41:051266 "AutofillBrandingIOS")},
1267 {"app-store-rating", flag_descriptions::kAppStoreRatingName,
1268 flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos,
1269 FEATURE_VALUE_TYPE(kAppStoreRating)},
Christian Xu6b90c2a32022-09-13 18:17:021270 {"most-visited-tiles", flag_descriptions::kMostVisitedTilesName,
1271 flag_descriptions::kMostVisitedTilesDescription, flags_ui::kOsIos,
1272 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTiles)},
Olivier ROBINf05518782022-09-14 23:55:501273 {"enable-tflite-language-detection-ignore",
1274 flag_descriptions::kTFLiteLanguageDetectionIgnoreName,
1275 flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription,
1276 flags_ui::kOsIos,
1277 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)},
Tina Wang89ae4252022-10-14 00:39:471278 {"enable-check-visibility-on-attention-log-start",
1279 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartName,
1280 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartDescription,
1281 flags_ui::kOsIos,
1282 FEATURE_VALUE_TYPE(kEnableCheckVisibilityOnAttentionLogStart)},
1283 {"enable-refine-data-source-reload-reporting",
1284 flag_descriptions::kEnableRefineDataSourceReloadReportingName,
1285 flag_descriptions::kEnableRefineDataSourceReloadReportingDescription,
1286 flags_ui::kOsIos,
1287 FEATURE_VALUE_TYPE(kEnableRefineDataSourceReloadReporting)},
Petro Akzhygitov2e2322e2023-04-25 16:26:571288 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1289 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1290 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Ewann Pelle3774cac532022-11-15 10:12:371291 {"enable-pinned-tabs", flag_descriptions::kEnablePinnedTabsName,
1292 flag_descriptions::kEnablePinnedTabsDescription, flags_ui::kOsIos,
Gauthier Ambardfd9708892023-08-11 08:16:481293 FEATURE_VALUE_TYPE(kEnablePinnedTabs)},
Hira Mahmoodea109752022-11-17 17:45:411294 {"credential-provider-extension-promo",
1295 flag_descriptions::kCredentialProviderExtensionPromoName,
1296 flag_descriptions::kCredentialProviderExtensionPromoDescription,
Huiting Yud7d2a5322023-02-09 21:14:221297 flags_ui::kOsIos,
1298 FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo,
1299 kCredentialProviderExtensionPromoVariations,
1300 "CredentialProviderExtensionPromo")},
Nicolas MacBethfb43e152022-11-28 19:31:521301 {"default-browser-blue-dot-promo",
1302 flag_descriptions::kDefaultBrowserBlueDotPromoName,
1303 flag_descriptions::kDefaultBrowserBlueDotPromoDescription,
1304 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserBlueDotPromo)},
Olivier ROBINa8838c12022-12-05 17:50:271305 {"ios-force-translate-enabled",
1306 flag_descriptions::kIOSForceTranslateEnabledName,
1307 flag_descriptions::kIOSForceTranslateEnabledDescription, flags_ui::kOsIos,
1308 FEATURE_VALUE_TYPE(translate::kIOSForceTranslateEnabled)},
Daniel Whiteae1cb672022-12-14 18:25:251309 {"iph-price-notifications-while-browsing",
1310 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1311 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1312 flags_ui::kOsIos,
1313 FEATURE_VALUE_TYPE(
1314 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Qihui Zhao72836c62022-12-16 04:31:411315 {"autofill-offer-to-save-card-with-same-last-four",
1316 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourName,
1317 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourDescription,
1318 flags_ui::kOsIos,
1319 FEATURE_VALUE_TYPE(
1320 autofill::features::kAutofillOfferToSaveCardWithSameLastFour)},
Christian Xu588330f32023-01-05 10:51:041321 {"omnibox-multiline-search-suggest",
1322 flag_descriptions::kOmniboxMultilineSearchSuggestName,
1323 flag_descriptions::kOmniboxMultilineSearchSuggestDescription,
1324 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxMultilineSearchSuggest)},
Vipul Vinod Koulaebbcb3a2023-01-05 19:50:501325 {"autofill-suggest-server-card-instead-of-local-card",
1326 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName,
1327 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription,
1328 flags_ui::kOsIos,
1329 FEATURE_VALUE_TYPE(
1330 autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)},
Elmehdi Rahmaoui5d8ba8e2023-01-11 14:53:551331 {"intents-on-email", flag_descriptions::kEmailName,
1332 flag_descriptions::kEmailDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331333 FEATURE_VALUE_TYPE(web::features::kEnableEmails)},
Ernesto Izquierdo Clua023bb52352023-01-12 19:33:341334 {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName,
1335 flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos,
1336 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)},
Christian Xu7e5234c12023-01-16 09:26:351337 {"multiline-fade-truncating-label",
1338 flag_descriptions::kMultilineFadeTruncatingLabelName,
1339 flag_descriptions::kMultilineFadeTruncatingLabelDescription,
1340 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kMultilineFadeTruncatingLabel)},
Robbie Gibson88f680a2023-01-19 16:47:301341 {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName,
1342 flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos,
1343 FEATURE_VALUE_TYPE(kPromosManagerUsesFET)},
Matt Jonesc01327662023-08-02 16:34:291344 {"shopping-collection",
1345 commerce::flag_descriptions::kShoppingCollectionName,
1346 commerce::flag_descriptions::kShoppingCollectionDescription,
1347 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kShoppingCollection)},
Ewann Pelledec2d042023-01-25 15:28:391348 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1349 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1350 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones5c8c8e32023-06-13 22:49:471351 {"shopping-list-track-by-default",
1352 commerce::flag_descriptions::kShoppingListTrackByDefaultName,
1353 commerce::flag_descriptions::kShoppingListTrackByDefaultDescription,
1354 flags_ui::kOsIos,
1355 FEATURE_VALUE_TYPE(commerce::kShoppingListTrackByDefault)},
Matt Jones1795eda2023-05-09 20:24:481356 {"local-pdp-detection",
1357 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1358 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1359 flags_ui::kOsIos,
1360 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Louis Romero93e9b50a2023-01-26 01:46:121361 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1362 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1363 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1364 kTabInactivityThresholdVariations,
1365 "TabInactivityThreshold")},
Sergio Collazos8d2ac27942023-01-26 19:03:411366 {"enable-feed-synthetic-capabilities",
1367 flag_descriptions::kEnableFeedSyntheticCapabilitiesName,
1368 flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription,
1369 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)},
Joemer Ramos0fccdf62023-07-28 17:17:181370 {"enable-friendlier-safe-browsing-settings-enhanced-protection",
1371 flag_descriptions::
1372 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionName,
1373 flag_descriptions::
1374 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionDescription,
1375 flags_ui::kOsIos,
1376 FEATURE_VALUE_TYPE(
1377 safe_browsing::kFriendlierSafeBrowsingSettingsEnhancedProtection)},
Awad Osmanf1a89122023-07-27 19:59:361378 {"enable-friendlier-safe-browsing-settings-standard-protection",
1379 flag_descriptions::
1380 kEnableFriendlierSafeBrowsingSettingsStandardProtectionName,
1381 flag_descriptions::
1382 kEnableFriendlierSafeBrowsingSettingsStandardProtectionDescription,
Joemer Ramos961389e52023-07-20 20:22:521383 flags_ui::kOsIos,
Awad Osmanf1a89122023-07-27 19:59:361384 FEATURE_VALUE_TYPE(
1385 safe_browsing::kFriendlierSafeBrowsingSettingsStandardProtection)},
Louis Romero58f355022023-02-13 19:04:311386 {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName,
1387 flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos,
1388 FEATURE_VALUE_TYPE(kShowInactiveTabsCount)},
Olivier ROBIN52eddbf32023-02-15 10:33:421389 {"ios-edit-menu-partial-translate",
1390 flag_descriptions::kIOSEditMenuPartialTranslateName,
1391 flag_descriptions::kIOSEditMenuPartialTranslateDescription,
Olivier ROBINfd3887b72023-02-23 14:45:421392 flags_ui::kOsIos,
1393 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate,
1394 kIOSEditMenuPartialTranslateVariations,
1395 "IOSEditMenuPartialTranslate")},
Ali Juma57849c42023-02-21 22:53:431396 {"notification-settings-menu-item",
1397 flag_descriptions::kNotificationSettingsMenuItemName,
1398 flag_descriptions::kNotificationSettingsMenuItemDescription,
1399 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
Ed Chin97560fc42023-02-20 16:48:321400 {"feed-experiment-tagging-ios",
1401 flag_descriptions::kFeedExperimentTaggingName,
1402 flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos,
1403 FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)},
Stepan Khapugin551917f82023-02-21 18:00:061404 {"spotlight-reading-list-source",
1405 flag_descriptions::kSpotlightReadingListSourceName,
1406 flag_descriptions::kSpotlightReadingListSourceDescription,
1407 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)},
kalettuced6ba72cb2023-02-22 00:55:381408 {"consistency-new-account-interface",
1409 flag_descriptions::kConsistencyNewAccountInterfaceName,
1410 flag_descriptions::kConsistencyNewAccountInterfaceDescription,
1411 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kConsistencyNewAccountInterface)},
Salma Elmahallawy72c5d34d2023-02-27 23:44:421412 {"policy-logs-page-ios", flag_descriptions::kPolicyLogsPageIOSName,
1413 flag_descriptions::kPolicyLogsPageIOSDescription, flags_ui::kOsIos,
1414 FEATURE_VALUE_TYPE(policy::features::kPolicyLogsPageIOS)},
Menghan YANGf3fe2de52023-02-27 16:38:501415 {"enable-bookmarks-account-storage",
1416 flag_descriptions::kEnableBookmarksAccountStorageName,
1417 flag_descriptions::kEnableBookmarksAccountStorageDescription,
1418 flags_ui::kOsIos,
Marc Treib98d17f52023-07-06 13:00:461419 FEATURE_VALUE_TYPE(syncer::kEnableBookmarksAccountStorage)},
kalettucefb09e402023-02-27 18:35:531420 {"web-feed-feedback-reroute",
1421 flag_descriptions::kWebFeedFeedbackRerouteName,
1422 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1423 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Jason Huac58fea2023-02-28 20:25:551424 {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName,
1425 flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos,
1426 FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)},
ginnnnnnny75903622023-03-01 18:00:001427 {"bring-your-own-tabs-ios", flag_descriptions::kBringYourOwnTabsIOSName,
1428 flag_descriptions::kBringYourOwnTabsIOSDescription, flags_ui::kOsIos,
1429 FEATURE_WITH_PARAMS_VALUE_TYPE(kBringYourOwnTabsIOS,
1430 kBringYourOwnTabsIOSVariations,
1431 "BringYourOwnTabsIOS")},
Tina Wangd3f6f192023-04-05 05:22:431432 {"enable-follow-IPH-exp-params",
1433 flag_descriptions::kEnableFollowIPHExpParamsName,
1434 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1435 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Tina Wange81e24d2023-03-08 21:10:031436 {"enable-follow-management-instant-reload",
1437 flag_descriptions::kEnableFollowManagementInstantReloadName,
1438 flag_descriptions::kEnableFollowManagementInstantReloadDescription,
1439 flags_ui::kOsIos,
1440 FEATURE_VALUE_TYPE(kEnableFollowManagementInstantReload)},
Guillem Perez3c139a822023-05-24 19:34:251441 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1442 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1443 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Mustafa Acerc8c0b152023-03-09 02:41:441444 {"mixed-content-autoupgrade-ios",
1445 flag_descriptions::kMixedContentAutoupgradeName,
1446 flag_descriptions::kMixedContentAutoupgradeDescription, flags_ui::kOsIos,
1447 FEATURE_VALUE_TYPE(
1448 security_interstitials::features::kMixedContentAutoupgrade)},
Jared Saul5363f3962023-03-10 23:03:511449 {"autofill-upstream-authenticate-preflight-call",
1450 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallName,
1451 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallDescription,
1452 flags_ui::kOsIos,
1453 FEATURE_VALUE_TYPE(
1454 autofill::features::kAutofillUpstreamAuthenticatePreflightCall)},
Marc Treibe9f79ea72023-03-14 10:25:421455 {"enable-preferences-account-storage",
1456 flag_descriptions::kEnablePreferencesAccountStorageName,
1457 flag_descriptions::kEnablePreferencesAccountStorageDescription,
1458 flags_ui::kOsIos,
1459 FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)},
Olivier ROBINa229d2132023-03-21 12:44:201460 {"ios-browser-edit-menu-metrics",
1461 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1462 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1463 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Menghan YANG5b3a78a2023-03-24 17:38:261464 {"enable-reading-list-account-storage",
1465 flag_descriptions::kEnableReadingListAccountStorageName,
1466 flag_descriptions::kEnableReadingListAccountStorageDescription,
1467 flags_ui::kOsIos,
Marc Treib98d17f52023-07-06 13:00:461468 FEATURE_VALUE_TYPE(syncer::kReadingListEnableDualReadingListModel)},
Menghan YANG5b3a78a2023-03-24 17:38:261469 {"enable-reading-list-sign-in-promo",
1470 flag_descriptions::kEnableReadingListSignInPromoName,
1471 flag_descriptions::kEnableReadingListSignInPromoDescription,
1472 flags_ui::kOsIos,
Marc Treib98d17f52023-07-06 13:00:461473 FEATURE_VALUE_TYPE(syncer::kReadingListEnableSyncTransportModeUponSignIn)},
Stepan Khapuginb2f49522023-04-03 18:25:241474 {"omnibox-grouping-framework-zps",
1475 flag_descriptions::kOmniboxGroupingFrameworkForZPSName,
1476 flag_descriptions::kOmniboxGroupingFrameworkForZPSDescription,
1477 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForZPS)},
1478 {"omnibox-grouping-framework-non-zps",
1479 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1480 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1481 flags_ui::kOsIos,
1482 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Sylvain Defresne935e6f72023-04-04 09:54:471483 {"enable-session-serialization-optimizations",
1484 flag_descriptions::kEnableSessionSerializationOptimizationsName,
1485 flag_descriptions::kEnableSessionSerializationOptimizationsDescription,
1486 flags_ui::kOsIos,
1487 FEATURE_VALUE_TYPE(
1488 web::features::kEnableSessionSerializationOptimizations)},
Stepan Khapugin8c075872023-04-05 14:29:411489 {"bottom-omnibox-steady-state",
1490 flag_descriptions::kBottomOmniboxSteadyStateName,
1491 flag_descriptions::kBottomOmniboxSteadyStateDescription, flags_ui::kOsIos,
1492 FEATURE_VALUE_TYPE(kBottomOmniboxSteadyState)},
Jared Saul19f8ba12023-04-11 17:44:531493 {"autofill-upstream-use-alternate-secure-data-type",
1494 flag_descriptions::kAutofillUpstreamUseAlternateSecureDataTypeName,
1495 flag_descriptions::kAutofillUpstreamUseAlternateSecureDataTypeDescription,
1496 flags_ui::kOsIos,
1497 FEATURE_VALUE_TYPE(
1498 autofill::features::kAutofillUpstreamUseAlternateSecureDataType)},
Robbie Gibson0ea280602023-04-12 01:02:391499 {"only-access-clipboard-async",
1500 flag_descriptions::kOnlyAccessClipboardAsyncName,
1501 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1502 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Christian Xue5f60232023-04-12 17:50:091503 {"omnibox-tail-suggest", flag_descriptions::kOmniboxTailSuggestName,
1504 flag_descriptions::kOmniboxTailSuggestDescription, flags_ui::kOsIos,
1505 FEATURE_VALUE_TYPE(kOmniboxTailSuggest)},
Stepan Khapugin5f0a4ae2023-07-05 12:51:191506 {"omnibox-improved-rtl-suggestions",
1507 flag_descriptions::kOmniboxSuggestionsRTLImprovementsName,
1508 flag_descriptions::kOmniboxSuggestionsRTLImprovementsDescription,
1509 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxSuggestionsRTLImprovements)},
Ed Chinecb7d5b2023-04-14 19:22:091510 {"feed-disable-hot-start-refresh-ios",
1511 flag_descriptions::kFeedDisableHotStartRefreshName,
1512 flag_descriptions::kFeedDisableHotStartRefreshDescription,
1513 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kFeedDisableHotStartRefresh)},
Olivier ROBIN2613bcd02023-04-20 10:00:471514 {"ios-edit-menu-search-with", flag_descriptions::kIOSEditMenuSearchWithName,
1515 flag_descriptions::kIOSEditMenuSearchWithDescription, flags_ui::kOsIos,
1516 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuSearchWith,
1517 kIOSEditMenuSearchWithVariations,
1518 "IOSEditMenuSearchWith")},
1519 {"ios-edit-menu-hide-search-web",
1520 flag_descriptions::kIOSEditMenuHideSearchWebName,
1521 flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos,
1522 FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)},
Stephen McGruer9afca1a2023-05-18 20:55:171523 {"autofill-enable-card-art-image",
1524 flag_descriptions::kAutofillEnableCardArtImageName,
1525 flag_descriptions::kAutofillEnableCardArtImageDescription,
1526 flags_ui::kOsIos,
1527 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)},
adamta09aa47e2023-05-23 18:20:431528 {"hide-content-suggestions-tiles",
1529 flag_descriptions::kHideContentSuggestionTilesName,
1530 flag_descriptions::kHideContentSuggestionTilesDescription,
1531 flags_ui::kOsIos,
1532 FEATURE_WITH_PARAMS_VALUE_TYPE(
1533 kHideContentSuggestionsTiles,
1534 kHideContentSuggestionTilesVariations,
1535 flag_descriptions::kHideContentSuggestionTilesName)},
Tina Wangcda2c902023-05-25 17:39:451536 {"enable-signed-out-view-demotion",
1537 flag_descriptions::kEnableSignedOutViewDemotionName,
1538 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1539 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stephen McGruerb4c8f7f2023-06-01 21:28:251540 {"autofill-use-two-dots-for-last-four-digits",
1541 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsName,
1542 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsDescription,
1543 flags_ui::kOsIos,
1544 FEATURE_VALUE_TYPE(
1545 autofill::features::kAutofillUseTwoDotsForLastFourDigits)},
Duong Dac4181ab52023-06-07 12:51:501546 {"enable-variations-google-group-filtering",
1547 flag_descriptions::kEnableVariationsGoogleGroupFilteringName,
1548 flag_descriptions::kEnableVariationsGoogleGroupFilteringDescription,
1549 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kVariationsGoogleGroupFiltering)},
sebsg977f9aa2023-06-08 18:48:241550 {"autofill-disable-profile-updates",
1551 flag_descriptions::kAutofillDisableProfileUpdatesName,
1552 flag_descriptions::kAutofillDisableProfileUpdatesDescription,
1553 flags_ui::kOsIos,
1554 FEATURE_VALUE_TYPE(
1555 autofill::features::test::kAutofillDisableProfileUpdates)},
1556 {"autofill-disable-silent-profile-updates",
1557 flag_descriptions::kAutofillDisableSilentProfileUpdatesName,
1558 flag_descriptions::kAutofillDisableSilentProfileUpdatesDescription,
1559 flags_ui::kOsIos,
1560 FEATURE_VALUE_TYPE(
1561 autofill::features::test::kAutofillDisableSilentProfileUpdates)},
1562 {"autofill-enable-admin-level-2",
1563 flag_descriptions::kAutofillEnableSupportForAdminLevel2Name,
1564 flag_descriptions::kAutofillEnableSupportForAdminLevel2Description,
1565 flags_ui::kOsIos,
1566 FEATURE_VALUE_TYPE(
1567 autofill::features::kAutofillEnableSupportForAdminLevel2)},
1568 {"autofill-enable-between-streets",
1569 flag_descriptions::kAutofillEnableSupportForBetweenStreetsName,
1570 flag_descriptions::kAutofillEnableSupportForBetweenStreetsDescription,
1571 flags_ui::kOsIos,
1572 FEATURE_VALUE_TYPE(
1573 autofill::features::kAutofillEnableSupportForBetweenStreets)},
1574 {"autofill-enable-landmark",
1575 flag_descriptions::kAutofillEnableSupportForLandmarkName,
1576 flag_descriptions::kAutofillEnableSupportForLandmarkDescription,
1577 flags_ui::kOsIos,
1578 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableSupportForLandmark)},
Hira Mahmood6b0e5502023-06-12 21:51:431579 {"post-restore-default-browser-promo",
1580 flag_descriptions::kPostRestoreDefaultBrowserPromoName,
1581 flag_descriptions::kPostRestoreDefaultBrowserPromoDescription,
1582 flags_ui::kOsIos,
1583 FEATURE_WITH_PARAMS_VALUE_TYPE(
1584 kPostRestoreDefaultBrowserPromo,
1585 kPostRestoreDefaultBrowserPromoVariations,
1586 "PostRestoreDefaultBrowserPromoVariations")},
Ameur Hosnib40858a2023-06-12 17:27:311587 {"spotlight-open-tabs-source",
1588 flag_descriptions::kSpotlightOpenTabsSourceName,
1589 flag_descriptions::kSpotlightOpenTabsSourceDescription, flags_ui::kOsIos,
1590 FEATURE_VALUE_TYPE(kSpotlightOpenTabsSource)},
Marc Treib9bddebb2023-06-15 14:03:341591 {"replace-sync-promos-with-sign-in-promos",
1592 flag_descriptions::kReplaceSyncPromosWithSignInPromosName,
1593 flag_descriptions::kReplaceSyncPromosWithSignInPromosDescription,
1594 flags_ui::kOsIos,
Gauthier Ambard6ca6d5e2023-06-20 09:33:301595 MULTI_VALUE_TYPE(kReplaceSyncPromosWithSignInPromosChoices)},
1596 {"toolbar-theme-color", flag_descriptions::kThemeColorInToolbarName,
1597 flag_descriptions::kThemeColorInToolbarDescription, flags_ui::kOsIos,
1598 FEATURE_VALUE_TYPE(kThemeColorInToolbar)},
Aliona DANGLA4326cad82023-06-20 16:32:571599 {"tab-grid-refactoring", flag_descriptions::kTabGridRefactoringName,
1600 flag_descriptions::kTabGridRefactoringDescription, flags_ui::kOsIos,
1601 FEATURE_VALUE_TYPE(kTabGridRefactoring)},
Ewann Pelle6eecb8f2023-06-23 14:31:371602 {"tab-pickup-threshold", flag_descriptions::kTabPickupThresholdName,
1603 flag_descriptions::kTabPickupThresholdDescription, flags_ui::kOsIos,
1604 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabPickupThreshold,
1605 kTabPickupThresholdVariations,
1606 "TabPickupThreshold")},
Huiting Yubc1bf4d2023-06-26 18:15:321607 {"ios-iph-for-safari-switcher",
1608 flag_descriptions::kIPHForSafariSwitcherName,
1609 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1610 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071611 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1612 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1613 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Hira Mahmood746047162023-07-11 22:02:061614 {"app-store-rating-loosened-triggers",
1615 flag_descriptions::kAppStoreRatingLoosenedTriggersName,
1616 flag_descriptions::kAppStoreRatingLoosenedTriggersDescription,
1617 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kAppStoreRatingLoosenedTriggers)},
Ernesto Izquierdo Clua5e589f52023-07-06 20:52:151618 {"ios-password-auth-on-entry",
1619 flag_descriptions::kIOSPasswordAuthOnEntryName,
1620 flag_descriptions::kIOSPasswordAuthOnEntryDescription, flags_ui::kOsIos,
1621 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntry)},
Ewann Pelle9cd85b22023-07-12 14:42:011622 {"tab-resumption", flag_descriptions::kTabResumptionName,
1623 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
1624 FEATURE_VALUE_TYPE(kTabResumption)},
Jason Huba0b87a2023-07-18 15:57:001625 {"ios-lens-use-direct-upload",
1626 flag_descriptions::kIOSLensUseDirectUploadName,
1627 flag_descriptions::kIOSLensUseDirectUploadDescription, flags_ui::kOsIos,
1628 FEATURE_VALUE_TYPE(kIOSLensUseDirectUpload)},
Siyu An33708bc2023-07-21 20:24:111629 {"autofill-enable-payments-mandatory-reauth-on-bling",
1630 flag_descriptions::kAutofillEnablePaymentsMandatoryReauthOnBlingName,
1631 flag_descriptions::
1632 kAutofillEnablePaymentsMandatoryReauthOnBlingDescription,
1633 flags_ui::kOsIos,
1634 FEATURE_VALUE_TYPE(
1635 autofill::features::kAutofillEnablePaymentsMandatoryReauthOnBling)},
Christian Xu07d600192023-07-24 12:29:521636 {"bottom-omnibox-default-setting",
1637 flag_descriptions::kBottomOmniboxDefaultSettingName,
1638 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1639 flags_ui::kOsIos,
1640 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1641 kBottomOmniboxDefaultSettingVariations,
1642 "BottomOmniboxDefaultSetting")},
Ewann Pelle422c0942023-08-01 12:28:131643 {"tab-pickup-minimum-delay", flag_descriptions::kTabPickupMinimumDelayName,
1644 flag_descriptions::kTabPickupMinimumDelayDescription, flags_ui::kOsIos,
1645 FEATURE_VALUE_TYPE(kTabPickupMinimumDelay)},
Nohemi Fernandez64acf982023-08-04 09:27:151646 {"enable-family-link-controls",
1647 flag_descriptions::kEnableFamilyLinkControlsName,
1648 flag_descriptions::kEnableFamilyLinkControlsDescription, flags_ui::kOsIos,
1649 FEATURE_VALUE_TYPE(
1650 supervised_user::kFilterWebsitesForSupervisedUsersOnDesktopAndIOS)},
adamta7be73b182023-08-08 22:30:351651 {"discover-feed-sport-card", flag_descriptions::kDiscoverFeedSportCardName,
1652 flag_descriptions::kDiscoverFeedSportCardDescription, flags_ui::kOsIos,
1653 FEATURE_VALUE_TYPE(kDiscoverFeedSportCard)},
Ernesto Izquierdo Clua6a00cb9d2023-08-11 15:12:501654 {"ios-password-auth-on-entry-v2",
1655 flag_descriptions::kIOSPasswordAuthOnEntryV2Name,
1656 flag_descriptions::kIOSPasswordAuthOnEntryV2Description, flags_ui::kOsIos,
1657 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntryV2)},
Quentin Pubert476786e82023-08-16 12:45:281658 {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName,
1659 flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos,
1660 FEATURE_VALUE_TYPE(kIOSSaveToPhotos)},
Hira Mahmood4c15f382023-08-17 16:21:131661 {"ios-parcel-tracking", flag_descriptions::kIOSParcelTrackingName,
1662 flag_descriptions::kIOSParcelTrackingDescription, flags_ui::kOsIos,
1663 FEATURE_VALUE_TYPE(kIOSParcelTracking)},
Aliona DANGLAcc8379f2023-08-18 16:56:441664 {"enable-inactive-tabs-limit",
1665 flag_descriptions::kInactiveTabsMoveLimitName,
1666 flag_descriptions::kInactiveTabsMoveLimitDescription, flags_ui::kOsIos,
1667 FEATURE_VALUE_TYPE(kInactiveTabsMoveLimit)},
Gauthier Ambard6ca6d5e2023-06-20 09:33:301668};
sdefresne14900ee2015-11-27 14:43:211669
Rohit Raobed794c2020-04-27 15:27:451670bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1671 return false;
1672}
1673
1674flags_ui::FlagsState& GetGlobalFlagsState() {
1675 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1676 nullptr);
1677 return *flags_state;
1678}
David Jean5ca263c2021-08-18 09:19:301679// Creates the experimental test policies map, used by AsyncPolicyLoader and
1680// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341681NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211682 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1683
Guillaume Jenkins25e9bd72020-08-27 17:39:061684 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551685 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061686 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551687
Guillaume Jenkins25e9bd72020-08-27 17:39:061688 // Set some sample policy values for testing if EnableSamplePolicies is set to
1689 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401690 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551691 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011692 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1693
Guillaume Jenkinseeb7007c2020-06-25 22:55:401694 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1695
1696 // 2 = Disable all variations
1697 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1698
1699 // 2 = Do not allow any site to show popups
1700 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1701
Tina Wang5abee802020-07-29 23:09:521702 // Set default search engine.
1703 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1704 @YES,
1705 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1706 @"http://www.google.com/search?q={searchTerms}",
1707 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021708 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521709
Tina Wang89068c82020-10-29 15:51:501710 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1711
Gauthier Ambard21b23702021-04-16 16:11:271712 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1713
Tina Wang59d0b7e2020-08-11 04:41:011714 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531715
1716 // 2 = Enhanced safe browsing protection
1717 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1718
1719 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291720
1721 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551722 }];
1723 }
1724
Ewann227a3c02021-04-19 12:04:541725 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041726 NSString* sync_policy_key =
1727 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301728 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541729 }
Ewann227a3c02021-04-19 12:04:541730
Ewann570a6302021-08-17 07:22:421731 // SyncTypesListDisabled policy.
1732 NSString* Sync_types_list_disabled_key =
1733 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1734 NSMutableArray* Sync_types_list_disabled_values =
1735 [[NSMutableArray alloc] init];
1736 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
1737 [Sync_types_list_disabled_values addObject:@"bookmarks"];
1738 }
1739 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
1740 [Sync_types_list_disabled_values addObject:@"readingList"];
1741 }
1742 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
1743 [Sync_types_list_disabled_values addObject:@"preferences"];
1744 }
1745 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
1746 [Sync_types_list_disabled_values addObject:@"passwords"];
1747 }
1748 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
1749 [Sync_types_list_disabled_values addObject:@"autofill"];
1750 }
1751 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
1752 [Sync_types_list_disabled_values addObject:@"typedUrls"];
1753 }
1754 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
1755 [Sync_types_list_disabled_values addObject:@"tabs"];
1756 }
1757 if ([Sync_types_list_disabled_values count]) {
1758 [testing_policies addEntriesFromDictionary:@{
1759 Sync_types_list_disabled_key : Sync_types_list_disabled_values
1760 }];
Ewann570a6302021-08-17 07:22:421761 }
1762
Gauthier Ambard073eaa92021-11-22 15:24:131763 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:521764 NSString* incognito_policy_key =
1765 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
1766 NSInteger incognito_mode_availability =
1767 [defaults integerForKey:incognito_policy_key];
1768 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:521769 [testing_policies addEntriesFromDictionary:@{
1770 incognito_policy_key : @(incognito_mode_availability),
1771 }];
1772 }
1773
Ewann40a8f8a2021-07-29 10:01:201774 NSString* restriction_pattern =
1775 [defaults stringForKey:@"RestrictAccountsToPatterns"];
1776 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:291777 NSString* restrict_key =
1778 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:201779 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:291780 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:201781 }];
1782 }
1783
Vincent Boisselle19200bc2021-09-01 17:58:251784 // If the sign-in policy is set (not "None"), add the policy key to the list
1785 // of enabled experimental policies, and set the value.
1786 NSString* const kSigninPolicyKey = @"BrowserSignin";
1787 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
1788 if (signin_policy_mode) {
1789 // Remove the mode offset that was used to represent the unset policy.
1790 --signin_policy_mode;
1791 DCHECK(signin_policy_mode >= 0);
1792
Vincent Boisselle19200bc2021-09-01 17:58:251793 [testing_policies addEntriesFromDictionary:@{
1794 kSigninPolicyKey : @(signin_policy_mode),
1795 }];
1796 }
1797
Veronique Nguyen9b1044f2022-01-11 14:41:131798 // If the New Tab Page URL is set (not empty) add the value to the list of
1799 // test policies.
1800 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
1801 if ([ntp_location length] > 0) {
1802 NSString* ntp_location_key =
1803 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
1804 [testing_policies
1805 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:571806 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:131807 }
1808
Ali Juma9ec36d2b2022-03-28 14:53:121809 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
1810 NSString* allow_backups_key =
1811 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
1812 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
1813 [allowed_experimental_policies addObject:allow_backups_key];
1814 }
1815
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241816 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
1817 NSString* password_manager_key =
1818 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
1819 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
1820 [allowed_experimental_policies addObject:password_manager_key];
1821 }
Arthur Milchiorbb44f5c82023-03-14 16:14:461822 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
1823 NSString* managed_bookmarks_key =
1824 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
1825 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:571826 @"["
1827 // The following gets filtered out from
1828 // the JSON string when parsed.
1829 " {"
1830 " \"toplevel_name\": \"Managed Bookmarks\""
1831 " },"
1832 " {"
1833 " \"name\": \"Google\","
1834 " \"url\": \"google.com\""
1835 " },"
1836 " {"
1837 " \"name\": \"Empty Folder\","
1838 " \"children\": []"
1839 " },"
1840 " {"
1841 " \"name\": \"Big Folder\","
1842 " \"children\": ["
1843 " {"
1844 " \"name\": \"Youtube\","
1845 " \"url\": \"youtube.com\""
1846 " },"
1847 " {"
1848 " \"name\": \"Chromium\","
1849 " \"url\": \"chromium.org\""
1850 " },"
1851 " {"
1852 " \"name\": \"More Stuff\","
1853 " \"children\": ["
1854 " {"
1855 " \"name\": \"Bugs\","
1856 " \"url\": \"crbug.com\""
1857 " }"
1858 " ]"
1859 " }"
1860 " ]"
1861 " }"
1862 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:461863 [testing_policies addEntriesFromDictionary:@{
1864 managed_bookmarks_key : managed_bookmarks_value
1865 }];
1866 [allowed_experimental_policies addObject:managed_bookmarks_key];
1867 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241868
Guillaume Jenkins25e9bd72020-08-27 17:39:061869 // If any experimental policy was allowed, set the EnableExperimentalPolicies
1870 // policy.
1871 if ([allowed_experimental_policies count] > 0) {
1872 [testing_policies setValue:allowed_experimental_policies
1873 forKey:base::SysUTF8ToNSString(
1874 policy::key::kEnableExperimentalPolicies)];
1875 }
1876
jlebel2eb40222022-05-06 11:15:421877 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
1878 switch ([defaults integerForKey:metrics_reporting_key]) {
1879 case 1:
1880 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:131881 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421882 break;
1883 case 2:
1884 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:131885 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421886 break;
1887 default:
1888 // Metrics reporting not managed.
1889 break;
1890 }
1891
David Jean6f85d44f2021-08-19 08:08:451892 // Warning: Add new flags to TestingPoliciesHash() below.
1893
David Jean5ca263c2021-08-18 09:19:301894 return testing_policies;
1895}
David Jean6f85d44f2021-08-19 08:08:451896
David Jean5ca263c2021-08-18 09:19:301897} // namespace
1898
Gauthier Ambard02dbf022022-08-23 08:28:471899// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:301900void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
1901 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1902
1903 // Set the UA flag if UseMobileSafariUA is enabled.
1904 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
1905 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
1906 // Chrome puts its product token.
1907 int32_t major = 0;
1908 int32_t minor = 0;
1909 int32_t bugfix = 0;
1910 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
1911 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
1912
1913 command_line->AppendSwitchASCII(switches::kUserAgent,
1914 web::BuildMobileUserAgent(product));
1915 }
1916
1917 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341918 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:301919
1920 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
1921 // Management to enabled and add the token to the list of policies.
1922 NSString* token_key =
1923 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
1924 NSString* token = [defaults stringForKey:token_key];
1925
1926 if ([token length] > 0) {
1927 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
1928 [testing_policies setValue:token forKey:token_key];
1929 }
1930
Guillaume Jenkins57606d72020-08-13 17:32:551931 // If some policies were set, commit them to the app's registration defaults.
1932 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:401933 NSDictionary* registration_defaults =
1934 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
1935 [defaults registerDefaults:registration_defaults];
1936 }
1937
sdefresne14900ee2015-11-27 14:43:211938 // Freeform commandline flags. These are added last, so that any flags added
1939 // earlier in this function take precedence.
1940 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
1941 base::CommandLine::StringVector flags;
1942 // Append an empty "program" argument.
1943 flags.push_back("");
1944
1945 // The number of flags corresponds to the number of text fields in
1946 // Experimental.plist.
1947 const int kNumFreeformFlags = 5;
1948 for (int i = 1; i <= kNumFreeformFlags; ++i) {
1949 NSString* key =
1950 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
1951 NSString* flag = [defaults stringForKey:key];
1952 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:331953 // iOS keyboard replaces -- with —, so undo that.
1954 flag = [flag stringByReplacingOccurrencesOfString:@"—"
1955 withString:@"--"
1956 options:0
1957 range:NSMakeRange(0, 1)];
1958 // To make things easier, allow flags with no dashes by prepending them
1959 // here. This also allows for flags that just have one dash if they
1960 // exist.
1961 if (![flag hasPrefix:@"-"]) {
1962 flag = [@"--" stringByAppendingString:flag];
1963 }
sdefresne14900ee2015-11-27 14:43:211964 flags.push_back(base::SysNSStringToUTF8(flag));
1965 }
1966 }
1967
1968 base::CommandLine temp_command_line(flags);
1969 command_line->AppendArguments(temp_command_line, false);
1970 }
msardafc76f662017-02-24 12:46:281971
justincohendacc85d2017-06-28 23:34:101972 // Populate command line flag for 3rd party keyboard omnibox workaround.
1973 NSString* enableThirdPartyKeyboardWorkaround =
1974 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
1975 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
1976 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
1977 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
1978 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
1979 }
1980
Sylvain Defresned3cd8d92022-01-18 13:35:081981 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:211982}
1983
sdefresne14900ee2015-11-27 14:43:211984void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
1985 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:181986 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:111987 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:531988 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:211989}
1990
jkrcalbf073372016-07-29 07:21:311991std::vector<std::string> RegisterAllFeatureVariationParameters(
1992 flags_ui::FlagsStorage* flags_storage,
1993 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:181994 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
1995 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:311996}
1997
sdefresne14900ee2015-11-27 14:43:211998void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
1999 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502000 base::Value::List& supported_entries,
2001 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182002 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212003 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512004 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212005}
2006
2007void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2008 const std::string& internal_name,
2009 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182010 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2011 enable);
sdefresne14900ee2015-11-27 14:43:212012}
2013
2014void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182015 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212016}
2017
Nicolas MacBeth972e2592023-02-23 15:22:092018bool IsRestartNeededToCommitChanges() {
2019 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2020}
2021
sdefresne14900ee2015-11-27 14:43:212022namespace testing {
2023
Elly Fong-Jones323ab1092021-08-23 22:36:312024base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2025 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532026 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212027}
2028
2029} // namespace testing