blob: af61c18ed2dcb53fc0d9b39c73bf616c3234a450 [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
Gauthier Ambard999088c2022-09-13 08:36:5714#import "base/base_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5715#import "base/check_op.h"
Peter Boström3f798572022-07-26 23:44:3616#import "base/debug/debugging_buildflags.h"
Avi Drissmancac43f22023-01-12 00:58:4117#import "base/functional/bind.h"
18#import "base/functional/callback_helpers.h"
David Jean5ca263c2021-08-18 09:19:3019#import "base/mac/foundation_util.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/breadcrumbs/core/features.h"
30#import "components/commerce/core/commerce_feature_list.h"
31#import "components/commerce/core/flag_descriptions.h"
32#import "components/content_settings/core/common/features.h"
33#import "components/dom_distiller/core/dom_distiller_switches.h"
Raj Tb95d813542022-11-16 21:27:5234#import "components/download/public/background_service/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5735#import "components/enterprise/browser/enterprise_switches.h"
36#import "components/feature_engagement/public/feature_constants.h"
37#import "components/feature_engagement/public/feature_list.h"
38#import "components/feed/feed_feature_list.h"
39#import "components/flags_ui/feature_entry.h"
40#import "components/flags_ui/feature_entry_macros.h"
41#import "components/flags_ui/flags_storage.h"
42#import "components/flags_ui/flags_ui_switches.h"
43#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"
55#import "components/safe_browsing/core/common/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2556#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5757#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
58#import "components/signin/core/browser/account_reconcilor.h"
59#import "components/signin/ios/browser/features.h"
60#import "components/signin/public/base/signin_switches.h"
61#import "components/strings/grit/components_strings.h"
62#import "components/sync/base/command_line_switches.h"
63#import "components/sync/base/features.h"
64#import "components/sync/base/pref_names.h"
65#import "components/translate/core/browser/translate_prefs.h"
66#import "components/translate/core/common/translate_util.h"
Ed Chin91e44992022-07-27 13:42:3467#import "ios/chrome/app/background_mode_buildflags.h"
Gauthier Ambard999088c2022-09-13 08:36:5768#import "ios/chrome/browser/browsing_data/browsing_data_features.h"
69#import "ios/chrome/browser/crash_report/features.h"
Huiting Yua68998d2022-12-14 17:47:5470#import "ios/chrome/browser/credential_provider_promo/features.h"
Quentin Pubert154fc6a2023-01-09 15:58:5871#import "ios/chrome/browser/find_in_page/features.h"
Gauthier Ambard92605132022-08-26 13:25:1772#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5773#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Gauthier Ambard92605132022-08-26 13:25:1774#import "ios/chrome/browser/flags/system_flags.h"
Ed Chin100660bf2022-04-26 16:59:1375#import "ios/chrome/browser/ntp/features.h"
Vincent Boisselle88fef222022-09-23 18:54:5076#import "ios/chrome/browser/policy/cloud/user_policy_constants.h"
Vincent Boissellead6cbe22022-07-04 19:32:3977#import "ios/chrome/browser/policy/cloud/user_policy_switch.h"
Gauthier Ambard999088c2022-09-13 08:36:5778#import "ios/chrome/browser/policy/policy_util.h"
Benjamin Williams14233d72022-07-26 18:32:2079#import "ios/chrome/browser/promos_manager/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5780#import "ios/chrome/browser/screen_time/screen_time_buildflags.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:4681#import "ios/chrome/browser/shared/public/features/features.h"
Ewann Pelle903a05e62023-02-01 17:51:0682#import "ios/chrome/browser/tabs/features.h"
Aliona DANGLA3de5d242023-02-15 16:52:3083#import "ios/chrome/browser/tabs/inactive_tabs/features.h"
Zhixiang Teoh40027a22022-07-28 03:24:3484#import "ios/chrome/browser/text_selection/text_selection_util.h"
Hira Mahmoodb0e5f412022-09-01 19:41:0585#import "ios/chrome/browser/ui/app_store_rating/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5786#import "ios/chrome/browser/ui/autofill/features.h"
adamta22a4d502020-05-21 03:12:2187#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h"
Javier Ernesto Flores Robles209b2822021-03-25 19:16:5088#import "ios/chrome/browser/ui/default_promo/default_browser_utils.h"
Ewann1a9d33d2021-06-14 11:12:2489#import "ios/chrome/browser/ui/download/features.h"
Chris Lu438e1c052022-08-17 02:57:0090#import "ios/chrome/browser/ui/first_run/trending_queries_field_trial.h"
Kurt Horimoto4da682b022018-04-12 07:43:3591#import "ios/chrome/browser/ui/fullscreen/fullscreen_features.h"
Louis Romeroc18612b962022-10-07 12:08:1492#import "ios/chrome/browser/ui/keyboard/features.h"
adamta273568472020-12-04 23:53:5793#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
adamta8886def42023-03-07 19:45:2394#import "ios/chrome/browser/ui/ntp/new_tab_page_retention_field_trial_constants.h"
Christian Xub8c06cd2022-04-29 20:55:0195#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Aliona DANGLAa5257ccc2022-08-29 14:01:4996#import "ios/chrome/browser/ui/open_in/features.h"
Robbie Gibson686c56732021-10-04 17:11:4597#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Benjamin Williams3d3a2ec2022-09-13 20:01:2698#import "ios/chrome/browser/ui/post_restore_signin/features.h"
gogerald0ff29e52021-02-03 18:56:1999#import "ios/chrome/browser/ui/start_surface/start_surface_features.h"
Kurt Horimoto79d590b2018-09-12 19:09:28100#import "ios/chrome/browser/ui/toolbar_container/toolbar_container_features.h"
Cheick Cisse87a51cb2022-09-08 21:29:17101#import "ios/chrome/browser/ui/whats_new/feature_flags.h"
Gauthier Ambard999088c2022-09-13 08:36:57102#import "ios/chrome/browser/web/features.h"
103#import "ios/chrome/grit/ios_strings.h"
104#import "ios/components/security_interstitials/https_only_mode/feature.h"
105#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
106#import "ios/web/common/features.h"
107#import "ios/web/common/user_agent.h"
108#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21109
Sylvain Defresne9c107082020-10-27 16:39:13110#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
Gauthier Ambard999088c2022-09-13 08:36:57111#import "ios/chrome/browser/screen_time/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13112#endif
113
sdefresne14900ee2015-11-27 14:43:21114#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57115#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22116#endif
stkhapuginc1be1792016-12-13 14:30:53117
118#if !defined(__has_feature) || !__has_feature(objc_arc)
119#error "This file requires ARC support."
120#endif
sdefresne14900ee2015-11-27 14:43:21121
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
Stepan Khapugincc4e9842019-01-23 13:38:13146const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
147 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
148const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
149 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
150const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
151 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
152const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
153 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
154const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
155 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
156const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
157 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
158const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
159 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
160
161const FeatureEntry::FeatureVariation
162 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
163 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53164 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13165 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53166 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13167 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53168 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13169 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53170 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13171 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53172 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13173 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53174 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13175 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53176 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13177
Stepan Khapuginbac467e2022-05-06 21:11:54178const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
179 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
180const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
181 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
182const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
183 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
184
185const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
186 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
187 nullptr},
188 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
189 nullptr},
190 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
191 nullptr},
192};
193
Christian Xucf26d562022-07-06 09:28:36194const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
195 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
196const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
197 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
198const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
199 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
200
201const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
202 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
203 nullptr},
204 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
205 nullptr},
206 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
207 nullptr},
208};
209
Cheick Cissef37087902022-10-07 19:01:41210const FeatureEntry::FeatureParam kWhatsNewModuleLayout[] = {
211 {kWhatsNewModuleBasedLayoutParam, "true"}};
212
213const FeatureEntry::FeatureVariation kWhatsNewLayoutVariations[] = {
214 {"Display module layout", kWhatsNewModuleLayout,
215 std::size(kWhatsNewModuleLayout), nullptr},
216};
217
Caitlin Fischer37e01232019-05-24 13:05:45218const FeatureEntry::FeatureParam
219 kAutofillUseMobileLabelDisambiguationShowAll[] = {
220 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
221 autofill::features::
222 kAutofillUseMobileLabelDisambiguationParameterShowAll}};
223const FeatureEntry::FeatureParam
224 kAutofillUseMobileLabelDisambiguationShowOne[] = {
225 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
226 autofill::features::
227 kAutofillUseMobileLabelDisambiguationParameterShowOne}};
228
229const FeatureEntry::FeatureVariation
230 kAutofillUseMobileLabelDisambiguationVariations[] = {
231 {"(show all)", kAutofillUseMobileLabelDisambiguationShowAll,
Daniel Cheng1f047a82022-02-26 10:04:53232 std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr},
Caitlin Fischer37e01232019-05-24 13:05:45233 {"(show one)", kAutofillUseMobileLabelDisambiguationShowOne,
Daniel Cheng1f047a82022-02-26 10:04:53234 std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}};
Caitlin Fischer37e01232019-05-24 13:05:45235
Javier Ernesto Flores Roblese85f4a12021-02-23 18:10:10236const FeatureEntry::FeatureParam
Javier Ernesto Flores Robles159414232021-06-16 14:29:59237 kDefaultBrowserFullscreenPromoExperimentRemindMeLater[] = {
238 {kDefaultBrowserFullscreenPromoExperimentRemindMeGroupParam, "true"}};
239const FeatureEntry::FeatureVariation
240 kDefaultBrowserFullscreenPromoExperimentVariations[] = {
241 {"Remind me later",
242 kDefaultBrowserFullscreenPromoExperimentRemindMeLater,
Daniel Cheng1f047a82022-02-26 10:04:53243 std::size(kDefaultBrowserFullscreenPromoExperimentRemindMeLater),
Javier Ernesto Flores Robles159414232021-06-16 14:29:59244 nullptr}};
245
adamta37c6b832023-03-10 20:04:09246// Uses int values from SigninPromoViewStyle enum.
247const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = {
248 {kDiscoverFeedTopSyncPromoStyle, "0"}};
249const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactTitled[] = {
250 {kDiscoverFeedTopSyncPromoStyle, "1"}};
251const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] =
252 {{kDiscoverFeedTopSyncPromoStyle, "2"}};
253const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = {
254 {kDiscoverFeedTopSyncPromoStyle, "3"}};
adamtadb0bfc62022-08-01 17:37:47255
Mohammad Refaatab6bee62022-05-16 16:31:15256const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = {
adamta37c6b832023-03-10 20:04:09257 {"Standard", kDiscoverFeedTopSyncPromoStandard,
258 std::size(kDiscoverFeedTopSyncPromoStandard), nullptr},
259 {"Compact Titled (Unpersonalized)", kDiscoverFeedTopSyncPromoCompactTitled,
260 std::size(kDiscoverFeedTopSyncPromoCompactTitled), nullptr},
261 {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal,
262 std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr},
263 {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical,
264 std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}};
Mohammad Refaatab6bee62022-05-16 16:31:15265
adamta4a6f2fd22023-02-13 17:37:14266const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = {
267 {kDisableStickyHeaderForFollowingFeed, "true"}};
268const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = {
269 {kOverrideFeedHeaderHeight, "43"}};
270const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = {
271 {kDisableStickyHeaderForFollowingFeed, "true"},
272 {kOverrideFeedHeaderHeight, "43"}};
273
274const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = {
275 {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader,
276 std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr},
277 {"Reduced header height", kFeedHeaderSettingReducedHeight,
278 std::size(kFeedHeaderSettingReducedHeight), nullptr},
279 {"All improvements", kFeedHeaderSettingAllImprovements,
280 std::size(kFeedHeaderSettingAllImprovements), nullptr}};
281
gogerald53c6e7a2021-04-15 22:07:35282const FeatureEntry::FeatureParam kStartSurfaceTenSecondsShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08283 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35284 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
285const FeatureEntry::FeatureParam kStartSurfaceTenSecondsHideShortcuts[] = {
Chris Lu5470417c2021-03-03 18:43:08286 {kStartSurfaceHideShortcutsParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35287 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
288const FeatureEntry::FeatureParam kStartSurfaceTenSecondsReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08289 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35290 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
291const FeatureEntry::FeatureParam
292 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab[] = {
293 {kStartSurfaceShrinkLogoParam, "true"},
294 {kStartSurfaceReturnToRecentTabParam, "true"},
295 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
296const FeatureEntry::FeatureParam
297 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab[] = {
298 {kStartSurfaceHideShortcutsParam, "true"},
299 {kStartSurfaceReturnToRecentTabParam, "true"},
300 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
301const FeatureEntry::FeatureParam kStartSurfaceOneHourShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08302 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35303 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
304const FeatureEntry::FeatureParam kStartSurfaceOneHourHideShortcuts[] = {
305 {kStartSurfaceHideShortcutsParam, "true"},
306 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
307const FeatureEntry::FeatureParam kStartSurfaceOneHourReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08308 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35309 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
310const FeatureEntry::FeatureParam
311 kStartSurfaceOneHourShrinkLogoReturnToRecentTab[] = {
312 {kStartSurfaceShrinkLogoParam, "true"},
313 {kStartSurfaceReturnToRecentTabParam, "true"},
314 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
315const FeatureEntry::FeatureParam
316 kStartSurfaceOneHourHideShortcutsReturnToRecentTab[] = {
317 {kStartSurfaceHideShortcutsParam, "true"},
318 {kStartSurfaceReturnToRecentTabParam, "true"},
319 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08320
gogerald0e39e3aa2021-02-10 18:41:23321const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
gogerald53c6e7a2021-04-15 22:07:35322 {"10s:Show Return to Recent Tab tile",
323 kStartSurfaceTenSecondsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53324 std::size(kStartSurfaceTenSecondsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35325 {"10s:Shrink Logo", kStartSurfaceTenSecondsShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53326 std::size(kStartSurfaceTenSecondsShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35327 {"10s:Hide Shortcuts", kStartSurfaceTenSecondsHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53328 std::size(kStartSurfaceTenSecondsHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35329 {"10s:Shrink Logo and show Return to Recent Tab tile",
330 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53331 std::size(kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35332 {"10s:Hide Shortcuts and show Return to Recent Tab tile",
333 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53334 std::size(kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35335 {"1h:Show Return to Recent Tab tile", kStartSurfaceOneHourReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53336 std::size(kStartSurfaceOneHourReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35337 {"1h:Shrink Logo", kStartSurfaceOneHourShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53338 std::size(kStartSurfaceOneHourShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35339 {"1h:Hide Shortcuts", kStartSurfaceOneHourHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53340 std::size(kStartSurfaceOneHourHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35341 {"1h:Shrink Logo and show Return to Recent Tab tile",
342 kStartSurfaceOneHourShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53343 std::size(kStartSurfaceOneHourShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35344 {"1h:Hide Shortcuts and show Return to Recent Tab tile",
345 kStartSurfaceOneHourHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53346 std::size(kStartSurfaceOneHourHideShortcutsReturnToRecentTab), nullptr},
Chris Lu5470417c2021-03-03 18:43:08347};
gogerald0e39e3aa2021-02-10 18:41:23348
Chris Lu8e308dc2022-09-06 16:59:40349const FeatureEntry::FeatureParam kModuleRefreshMinimizeSpacing[] = {
350 {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"}};
351const FeatureEntry::FeatureParam kModuleRefreshNoHeaders[] = {
Chris Lu264e2372022-09-08 13:12:57352 {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"},
Chris Lu8e308dc2022-09-06 16:59:40353 {kContentSuggestionsUIModuleRefreshRemoveHeadersParam, "true"}};
354
355const FeatureEntry::FeatureVariation kModuleRefreshVariations[] = {
356 {"Enabled with minimized spacing", kModuleRefreshMinimizeSpacing,
357 std::size(kModuleRefreshMinimizeSpacing), nullptr},
Chris Lu264e2372022-09-08 13:12:57358 {"Enabled with no headers and minimized spacing", kModuleRefreshNoHeaders,
Chris Lu8e308dc2022-09-06 16:59:40359 std::size(kModuleRefreshNoHeaders), nullptr},
360};
361
Ed Chin91e44992022-07-27 13:42:34362#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26363// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01364const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04365 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
366 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01367 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04368 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01369const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04370 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
371 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01372 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04373 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01374const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04375 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
376 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01377 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04378 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01379const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04380 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
381 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01382 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04383 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01384const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04385 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
386 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01387 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
388 {kBackgroundRefreshIntervalInSeconds, "0"}};
389const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04390 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
391 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01392 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
393 {kBackgroundRefreshIntervalInSeconds, "0"}};
394const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
395 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
396 {kEnableRecurringBackgroundRefreshSchedule, "false"},
397 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
398 {kBackgroundRefreshIntervalInSeconds, "0"}};
399const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
400 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
401 {kEnableRecurringBackgroundRefreshSchedule, "true"},
402 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
403 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04404
Ed Chin178ec2a2023-02-10 22:21:26405// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04406const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01407 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
408 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
409 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
410 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
411 {"1hr Interval 1hr Max Age Recurring",
412 kOneHourIntervalOneHourMaxAgeRecurring,
413 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
414 {"4hr Interval 6hr Max Age Recurring",
415 kFourHourIntervalSixHourMaxAgeRecurring,
416 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
417 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
418 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
419 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
420 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
421 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
422 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
423 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
424 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04425};
Ed Chin91e44992022-07-27 13:42:34426#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04427
Ed Chin178ec2a2023-02-10 22:21:26428// Feed Foreground Refresh Feature Params.
429const FeatureEntry::FeatureParam kFeedRefreshPostFeedSessionOnly[] = {
430 {kEnableFeedRefreshPostFeedSession, "true"},
431 {kEnableFeedRefreshOnAppBackgrounding, "false"}};
432const FeatureEntry::FeatureParam kFeedRefreshOnAppBackgroundingOnly[] = {
433 {kEnableFeedRefreshPostFeedSession, "false"},
434 {kEnableFeedRefreshOnAppBackgrounding, "true"}};
435const FeatureEntry::FeatureParam kFeedForegroundRefreshAll[] = {
436 {kEnableFeedRefreshPostFeedSession, "true"},
437 {kEnableFeedRefreshOnAppBackgrounding, "true"}};
438
439// Feed Foreground Refresh Feature Variations.
440const FeatureEntry::FeatureVariation kFeedForegroundRefreshVariations[] = {
441 {"Post Feed session", kFeedRefreshPostFeedSessionOnly,
442 std::size(kFeedRefreshPostFeedSessionOnly), nullptr},
443 {"On app backgrounding", kFeedRefreshOnAppBackgroundingOnly,
444 std::size(kFeedRefreshOnAppBackgroundingOnly), nullptr},
445 {"All foreground refresh methods", kFeedForegroundRefreshAll,
446 std::size(kFeedForegroundRefreshAll), nullptr},
447};
448
Chris Luc9a5cb12022-07-20 16:11:39449const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsers[] = {
Chris Lu85e8cc642022-09-23 20:27:58450 {kTrendingQueriesHideShortcutsParam, "false"}};
Chris Luc9a5cb12022-07-20 16:11:39451const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsersHideShortcuts[] =
Chris Lu85e8cc642022-09-23 20:27:58452 {{kTrendingQueriesHideShortcutsParam, "true"}};
Chris Luc9a5cb12022-07-20 16:11:39453const FeatureEntry::FeatureParam kTrendingQueriesEnableFeedDisabled[] = {
454 {kTrendingQueriesHideShortcutsParam, "false"},
455 {kTrendingQueriesDisabledFeedParam, "true"},
Chris Lu85e8cc642022-09-23 20:27:58456};
Chris Luc9a5cb12022-07-20 16:11:39457
458const FeatureEntry::FeatureVariation kTrendingQueriesModuleVariations[] = {
459 {"Enabled All Users", kTrendingQueriesEnableAllUsers,
460 std::size(kTrendingQueriesEnableAllUsers), nullptr},
461 {"Enabled All Users Hide Shortcuts",
462 kTrendingQueriesEnableAllUsersHideShortcuts,
463 std::size(kTrendingQueriesEnableAllUsersHideShortcuts), nullptr},
464 {"Enabled Disabled Feed", kTrendingQueriesEnableFeedDisabled,
465 std::size(kTrendingQueriesEnableFeedDisabled), nullptr},
Chris Luc9a5cb12022-07-20 16:11:39466};
467
Igor Ruvinov44fed9f2022-06-10 22:51:42468const FeatureEntry::FeatureParam kDmTokenDeletionParam[] = {{"forced", "true"}};
469const FeatureEntry::FeatureVariation kDmTokenDeletionVariation[] = {
470 {"(Forced)", kDmTokenDeletionParam, std::size(kDmTokenDeletionParam),
471 nullptr}};
472
Aliona DANGLA00ae7db2022-10-04 16:58:50473const FeatureEntry::FeatureParam kOpenInDownloadInShareButton[] = {
Ewann Pelleec8ef892022-10-20 13:13:58474 {kOpenInDownloadParameterName, kOpenInDownloadInShareButtonParam}};
Aliona DANGLAa5257ccc2022-08-29 14:01:49475const FeatureEntry::FeatureParam kOpenInDownloadWithWKDownload[] = {
Ewann Pelleec8ef892022-10-20 13:13:58476 {kOpenInDownloadParameterName, kOpenInDownloadWithWKDownloadParam}};
Aliona DANGLAa5257ccc2022-08-29 14:01:49477const FeatureEntry::FeatureParam kOpenInDownloadWithV2[] = {
Ewann Pelleec8ef892022-10-20 13:13:58478 {kOpenInDownloadParameterName, kOpenInDownloadWithV2Param}};
479
Aliona DANGLAa5257ccc2022-08-29 14:01:49480const FeatureEntry::FeatureVariation kOpenInDownloadVariations[] = {
Aliona DANGLA00ae7db2022-10-04 16:58:50481 {"With legacy download", kOpenInDownloadInShareButton,
482 std::size(kOpenInDownloadInShareButton), nullptr},
Aliona DANGLAa5257ccc2022-08-29 14:01:49483 {"With WKDownload", kOpenInDownloadWithWKDownload,
484 std::size(kOpenInDownloadWithWKDownload), nullptr},
485 {"With V2", kOpenInDownloadWithV2, std::size(kOpenInDownloadWithV2),
486 nullptr},
487};
488
Ewann Pelle87019cdf2023-02-17 14:28:16489const FeatureEntry::FeatureParam kEnablePinnedTabsOverflow[] = {
490 {kEnablePinnedTabsOverflowParam, "true"}};
Ewann Pelle3774cac532022-11-15 10:12:37491
492const FeatureEntry::FeatureVariation kEnablePinnedTabsVariations[] = {
Ewann Pelle87019cdf2023-02-17 14:28:16493 {"+ overflow entry", kEnablePinnedTabsOverflow,
494 std::size(kEnablePinnedTabsOverflow), nullptr},
Ewann Pelle3774cac532022-11-15 10:12:37495};
496
ginnnnnnny591a4972022-09-01 16:10:27497const FeatureEntry::FeatureParam kAutofillBrandingIOSMonotone[] = {
498 {autofill::features::kAutofillBrandingIOSParam, "true"}};
499const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = {
500 {"(Monotone)", kAutofillBrandingIOSMonotone,
501 std::size(kAutofillBrandingIOSMonotone), nullptr}};
502
Scott Yodercb2fe632022-09-12 15:28:35503const FeatureEntry::FeatureParam kIOSNewPostRestoreExperienceMinimal[] = {
Benjamin Williams3d3a2ec2022-09-13 20:01:26504 {post_restore_signin::features::kIOSNewPostRestoreExperienceParam, "true"}};
Scott Yodercb2fe632022-09-12 15:28:35505const FeatureEntry::FeatureVariation kIOSNewPostRestoreExperienceVariations[] =
506 {{"minimal", kIOSNewPostRestoreExperienceMinimal,
507 std::size(kIOSNewPostRestoreExperienceMinimal), nullptr}};
508
adamta8886def42023-03-07 19:45:23509const FeatureEntry::FeatureParam
510 kNewTabPageRetentionPopularSitesIncludePopularApps[] = {
511 {ntp_tiles::kNewTabPageRetentionParam, "1"}};
512const FeatureEntry::FeatureParam
513 kNewTabPageRetentionPopularSitesExcludePopularApps[] = {
514 {ntp_tiles::kNewTabPageRetentionParam, "2"}};
515const FeatureEntry::FeatureParam kNewTabPageRetentionTileAblationHideAll[] = {
516 {ntp_tiles::kNewTabPageRetentionParam, "4"}};
517const FeatureEntry::FeatureParam kNewTabPageRetentionTileAblationHideMVTOnly[] =
518 {{ntp_tiles::kNewTabPageRetentionParam, "5"}};
519const FeatureEntry::FeatureVariation kNewTabPageRetentionVariations[] = {
520 {"- Improved popular sites, Include popular apps",
521 kNewTabPageRetentionPopularSitesIncludePopularApps,
522 std::size(kNewTabPageRetentionPopularSitesIncludePopularApps), nullptr},
523 {"- Improved popular sites, Exclude popular apps",
524 kNewTabPageRetentionPopularSitesExcludePopularApps,
525 std::size(kNewTabPageRetentionPopularSitesExcludePopularApps), nullptr},
526 {"- Tile ablation, Hide all", kNewTabPageRetentionTileAblationHideAll,
527 std::size(kNewTabPageRetentionTileAblationHideAll), nullptr},
528 {"- Tile ablation, Hide MVT only",
529 kNewTabPageRetentionTileAblationHideMVTOnly,
530 std::size(kNewTabPageRetentionTileAblationHideMVTOnly), nullptr}};
Benjamin Williamsaa8da8142022-11-14 19:51:03531
Elmehdi Rahmaoui3d549fc2022-10-20 14:31:28532const FeatureEntry::FeatureParam kEnableExperienceKitMapsWithSrp[] = {
533 {kExperienceKitMapsVariationName, kEnableExperienceKitMapsVariationSrp}};
534const FeatureEntry::FeatureVariation kEnableExperienceKitMapsVariations[] = {
535 {"with search result page", kEnableExperienceKitMapsWithSrp,
536 std::size(kEnableExperienceKitMapsWithSrp), nullptr}};
537
adamta3811f9182022-10-24 17:49:33538const FeatureEntry::FeatureParam kFollowingFeedSortTypeGroupedByPublisher[] = {
539 {kFollowingFeedDefaultSortTypeGroupedByPublisher, "true"},
540 {kFollowingFeedDefaultSortTypeSortByLatest, "false"}};
541const FeatureEntry::FeatureParam kFollowingFeedSortTypeSortByLatest[] = {
542 {kFollowingFeedDefaultSortTypeGroupedByPublisher, "false"},
543 {kFollowingFeedDefaultSortTypeSortByLatest, "true"}};
544
545const FeatureEntry::FeatureVariation kFollowingFeedDefaultSortTypeVariations[] =
546 {{"Grouped by Publisher", kFollowingFeedSortTypeGroupedByPublisher,
547 std::size(kFollowingFeedSortTypeGroupedByPublisher), nullptr},
548 {"Sort by Latest", kFollowingFeedSortTypeSortByLatest,
549 std::size(kFollowingFeedSortTypeSortByLatest), nullptr}};
550
Quentin Pubert154fc6a2023-01-09 15:58:58551const FeatureEntry::FeatureParam kNativeFindInPageWithChromeFindBar[] = {
552 {kNativeFindInPageParameterName, kNativeFindInPageWithChromeFindBarParam}};
553const FeatureEntry::FeatureVariation kNativeFindInPageVariations[] = {
554 {"With Chrome Find Bar", kNativeFindInPageWithChromeFindBar,
555 std::size(kNativeFindInPageWithChromeFindBar), nullptr}};
556
Louis Romero93e9b50a2023-01-26 01:46:12557const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
558 {kTabInactivityThresholdParameterName,
559 kTabInactivityThresholdOneWeekParam}};
560const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
561 {kTabInactivityThresholdParameterName,
562 kTabInactivityThresholdTwoWeeksParam}};
563const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
564 {kTabInactivityThresholdParameterName,
565 kTabInactivityThresholdThreeWeeksParam}};
566
567const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
568 {"One week", kTabInactivityThresholdOneWeek,
569 std::size(kTabInactivityThresholdOneWeek), nullptr},
570 {"Two weeks", kTabInactivityThresholdTwoWeeks,
571 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
572 {"Three weeks", kTabInactivityThresholdThreeWeeks,
573 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
574};
575
Huiting Yud7d2a5322023-02-09 21:14:22576const FeatureEntry::FeatureParam
577 kCredentialProviderExtensionPromoOnPasswordSaved[] = {
578 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
579const FeatureEntry::FeatureParam
580 kCredentialProviderExtensionPromoOnPasswordCopied[] = {
581 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}};
582const FeatureEntry::FeatureParam
583 kCredentialProviderExtensionPromoOnLoginWithAutofill[] = {
584 {kCredentialProviderExtensionPromoOnLoginWithAutofillParam, "true"}};
585
586const FeatureEntry::FeatureVariation
587 kCredentialProviderExtensionPromoVariations[] = {
588 {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved,
589 std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr},
590 {"On password copied",
591 kCredentialProviderExtensionPromoOnPasswordCopied,
592 std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr},
593 {"On successful login with autofill",
594 kCredentialProviderExtensionPromoOnLoginWithAutofill,
595 std::size(kCredentialProviderExtensionPromoOnLoginWithAutofill),
596 nullptr},
597};
598
Olivier ROBINfd3887b72023-02-23 14:45:42599const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
600 {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
601const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
602 {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
603 std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr}};
604
Olivier ROBIN2ca64952023-02-23 17:11:48605const FeatureEntry::FeatureParam kAddToHomeScreenDisableIncognito[] = {
606 {kAddToHomeScreenDisableIncognitoParam, "true"}};
607const FeatureEntry::FeatureVariation kAddToHomeScreenVariations[] = {
608 {"Disable on incognito", kAddToHomeScreenDisableIncognito,
609 std::size(kAddToHomeScreenDisableIncognito), nullptr}};
610
ginnnnnnny75903622023-03-01 18:00:00611const FeatureEntry::FeatureParam kBringYourOwnTabsIOSBottomMessage[] = {
612 {kBringYourOwnTabsIOSParam, "true"}};
613const FeatureEntry::FeatureVariation kBringYourOwnTabsIOSVariations[] = {
614 {"with bottom message on tab grid", kBringYourOwnTabsIOSBottomMessage,
615 std::size(kBringYourOwnTabsIOSBottomMessage), nullptr}};
616
Cooper Knaak1e026562017-07-26 05:22:28617// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21618// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28619// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
620// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21621// macro for this type supplying the command line to the macro.
622// . MULTI_VALUE: a list of choices, the first of which should correspond to a
623// deactivated state for this lab (i.e. no command line option). To specify
624// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
625// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28626// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
627// either enabled, disabled, or uses the default value of the associated
628// base::Feature instance. To specify this type of entry use the macro
629// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
630// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
631// base::Feature instance. Choices corresponding to the default state, a
632// universally enabled state, and a universally disabled state are
633// automatically included. To specify this type of entry use the macro
634// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
635// the array of choices.
636//
sdefresne14900ee2015-11-27 14:43:21637// See the documentation of FeatureEntry for details on the fields.
638//
639// When adding a new choice, add it to the end of the list.
640const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28641 {"in-product-help-demo-mode-choice",
642 flag_descriptions::kInProductHelpDemoModeName,
643 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
644 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23645 feature_engagement::kIPHDemoMode,
646 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09647 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22648 {"enable-autofill-credit-card-upload",
649 flag_descriptions::kAutofillCreditCardUploadName,
650 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24651 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23652 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
653 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
654 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51655 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:23656 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
657 {"wallet-service-use-sandbox",
658 flag_descriptions::kWalletServiceUseSandboxName,
659 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
660 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
661 autofill::switches::kWalletServiceUseSandbox,
662 "1",
663 autofill::switches::kWalletServiceUseSandbox,
664 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:59665 {"show-autofill-type-predictions",
666 flag_descriptions::kShowAutofillTypePredictionsName,
667 flag_descriptions::kShowAutofillTypePredictionsDescription,
668 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:50669 FEATURE_VALUE_TYPE(
670 autofill::features::test::kAutofillShowTypePredictions)},
Vidhan Jaincbb3d53f2023-01-23 19:13:26671 {"autofill-account-profiles-union-view",
672 flag_descriptions::kAutofillAccountProfilesUnionViewName,
673 flag_descriptions::kAutofillAccountProfilesUnionViewDescription,
674 flags_ui::kOsIos,
675 FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfilesUnionView)},
Olivier Robin3d60411622018-02-23 10:03:22676 {"autofill-ios-delay-between-fields",
677 flag_descriptions::kAutofillIOSDelayBetweenFieldsName,
678 flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription,
679 flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)},
Benjamin Williamsdf18e7e2022-10-03 18:46:05680 {"fullscreen-promos-manager-skip-internal-limits",
681 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
682 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
683 flags_ui::kOsIos,
684 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:14685 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:53686 flag_descriptions::kFullscreenSmoothScrollingName,
687 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
688 FEATURE_VALUE_TYPE(fullscreen::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:06689 {"webpage-default-zoom-from-dynamic-type",
690 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
691 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
692 flags_ui::kOsIos,
693 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:56694 {"webpage-alternative-text-zoom",
695 flag_descriptions::kWebPageAlternativeTextZoomName,
696 flag_descriptions::kWebPageAlternativeTextZoomDescription,
697 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:34698 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
699 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
700 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Kurt Horimoto79d590b2018-09-12 19:09:28701 {"toolbar-container", flag_descriptions::kToolbarContainerName,
702 flag_descriptions::kToolbarContainerDescription, flags_ui::kOsIos,
703 FEATURE_VALUE_TYPE(toolbar_container::kToolbarContainerEnabled)},
Stepan Khapugincc4e9842019-01-23 13:38:13704 {"omnibox-ui-max-autocomplete-matches",
705 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
706 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
707 flags_ui::kOsIos,
708 FEATURE_WITH_PARAMS_VALUE_TYPE(
709 omnibox::kUIExperimentMaxAutocompleteMatches,
710 kOmniboxUIMaxAutocompleteMatchesVariations,
711 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:35712 {"omnibox-local-history-zero-suggest-beyond-ntp",
713 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
714 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
715 flags_ui::kOsIos,
716 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:54717 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
718 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
719 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
720 kOmniboxMaxZPSMatchesVariations,
721 "OmniboxMaxZPSVariations")},
Stepan Khapugind9876842023-01-27 17:59:45722
723 {"omnibox-most-visited-tiles-on-srp",
724 flag_descriptions::kOmniboxMostVisitedTilesOnSrpName,
725 flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription,
726 flags_ui::kOsIos,
727 FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)},
Caitlin Fischer43edd90a2019-05-01 13:24:30728 {"autofill-use-mobile-label-disambiguation",
729 flag_descriptions::kAutofillUseMobileLabelDisambiguationName,
730 flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription,
731 flags_ui::kOsIos,
Caitlin Fischer37e01232019-05-24 13:05:45732 FEATURE_WITH_PARAMS_VALUE_TYPE(
733 autofill::features::kAutofillUseMobileLabelDisambiguation,
734 kAutofillUseMobileLabelDisambiguationVariations,
735 "AutofillUseMobileLabelDisambiguation")},
Mike Doughertyb6c770d2019-09-13 22:56:46736 {"ios-breadcrumbs", flag_descriptions::kLogBreadcrumbsName,
737 flag_descriptions::kLogBreadcrumbsDescription, flags_ui::kOsIos,
Jesse McKenna85c1a59f2021-05-05 19:08:30738 FEATURE_VALUE_TYPE(breadcrumbs::kLogBreadcrumbs)},
Jérôme Lebelc374fdd2019-09-27 10:36:48739 {"force-startup-signin-promo",
740 flag_descriptions::kForceStartupSigninPromoName,
741 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:29742 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tanmoy Mollik429d21a2022-11-28 15:42:06743 {"identity-status-consistency",
744 flag_descriptions::kIdentityStatusConsistencyName,
745 flag_descriptions::kIdentityStatusConsistencyDescription, flags_ui::kOsIos,
746 FEATURE_VALUE_TYPE(switches::kIdentityStatusConsistency)},
Yoichi Osato7ae11752021-03-16 03:27:22747 {"restore-session-from-cache",
748 flag_descriptions::kRestoreSessionFromCacheName,
749 flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos,
Justin Cohen3ec2522c2021-04-23 18:23:49750 FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)},
Roberto Mourab87b9722020-06-17 17:12:09751 {"expanded-tab-strip", flag_descriptions::kExpandedTabStripName,
752 flag_descriptions::kExpandedTabStripDescription, flags_ui::kOsIos,
753 FEATURE_VALUE_TYPE(kExpandedTabStrip)},
Tommy Martino6b4eb7e2020-06-25 18:25:41754 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
755 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
756 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:13757#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:45758 {"screen-time-integration-ios",
759 flag_descriptions::kScreenTimeIntegrationName,
760 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
761 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:13762#endif
Nazerke3e993f72020-09-21 13:00:06763 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
764 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
765 FEATURE_VALUE_TYPE(kModernTabStrip)},
Eugene Butf869bff2020-12-10 01:16:55766 {"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName,
767 flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos,
768 FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)},
Chris Lub17195f2020-12-10 20:49:14769 {"default-browser-fullscreen-promo-experiment",
770 flag_descriptions::kDefaultBrowserFullscreenPromoExperimentName,
771 flag_descriptions::kDefaultBrowserFullscreenPromoExperimentDescription,
772 flags_ui::kOsIos,
Javier Ernesto Flores Robles159414232021-06-16 14:29:59773 FEATURE_WITH_PARAMS_VALUE_TYPE(
774 kDefaultBrowserFullscreenPromoExperiment,
775 kDefaultBrowserFullscreenPromoExperimentVariations,
776 "IOSDefaultBrowserFullscreenPromoExperiment")},
Cheick Cisse76ade3d2020-12-16 00:15:11777 {"ios-shared-highlighting-color-change",
778 flag_descriptions::kIOSSharedHighlightingColorChangeName,
779 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:07780 flags_ui::kOsIos,
781 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:34782 {"ios-shared-highlighting-v2",
783 flag_descriptions::kIOSSharedHighlightingV2Name,
784 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
785 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Stepan Khapugin04341202021-01-07 12:22:45786 {"omnibox-new-textfield-implementation",
787 flag_descriptions::kOmniboxNewImplementationName,
788 flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos,
789 FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)},
Stepan Khapugin0be8f6d2022-09-21 20:22:26790 {"omnibox-on-focus-suggestions-contextual-web",
791 flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName,
792 flag_descriptions::
793 kOmniboxFocusTriggersContextualWebZeroSuggestDescription,
794 flags_ui::kOsIos,
795 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)},
796 {"omnibox-on-focus-suggestions-srp",
797 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName,
798 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription,
799 flags_ui::kOsIos,
800 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)},
Stepan Khapugin0da12382023-01-24 16:08:12801 {"omnibox-report-assisted-query-stats",
802 flag_descriptions::kOmniboxReportAssistedQueryStatsName,
803 flag_descriptions::kOmniboxReportAssistedQueryStatsDescription,
804 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)},
805 {"omnibox-report-searchbox-stats",
806 flag_descriptions::kOmniboxReportSearchboxStatsName,
807 flag_descriptions::kOmniboxReportSearchboxStatsDescription,
808 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)},
Stepan Khapuginecf128a92022-08-30 11:23:15809 {"omnibox-fuzzy-url-suggestions",
810 flag_descriptions::kOmniboxFuzzyUrlSuggestionsName,
811 flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription,
812 flags_ui::kOsIos,
813 FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)},
gogerald0ff29e52021-02-03 18:56:19814 {"start-surface", flag_descriptions::kStartSurfaceName,
815 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:23816 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
817 kStartSurfaceVariations,
818 "StartSurface")},
Vidhan Jain451b4752021-07-15 10:16:42819 {"autofill-address-verification-in-save-prompt",
820 flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName,
821 flag_descriptions::
822 kEnableAutofillAddressSavePromptAddressVerificationDescription,
823 flags_ui::kOsIos,
824 FEATURE_VALUE_TYPE(
825 autofill::features::
826 kAutofillAddressProfileSavePromptAddressVerificationSupport)},
Viktor Semeniuk68e794a2021-03-24 10:23:25827 {"filling-across-affiliated-websites",
828 flag_descriptions::kFillingAcrossAffiliatedWebsitesName,
829 flag_descriptions::kFillingAcrossAffiliatedWebsitesDescription,
830 flags_ui::kOsIos,
831 FEATURE_VALUE_TYPE(
832 password_manager::features::kFillingAcrossAffiliatedWebsites)},
Side Yilmaz6c53f7102021-09-07 13:26:19833 {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName,
834 flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos,
835 FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)},
Nohemi Fernandezc00842a2021-07-26 11:47:34836 {"wait-threshold-seconds-for-capabilities-api",
837 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
838 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
839 flags_ui::kOsIos,
840 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Jared Saul2188f762021-08-02 21:22:23841 {"autofill-fill-merchant-promo-code-fields",
842 flag_descriptions::kAutofillFillMerchantPromoCodeFieldsName,
843 flag_descriptions::kAutofillFillMerchantPromoCodeFieldsDescription,
844 flags_ui::kOsIos,
845 FEATURE_VALUE_TYPE(
846 autofill::features::kAutofillFillMerchantPromoCodeFields)},
Sylvain Defresnedff67e42021-09-24 09:43:03847 {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName,
848 flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos,
849 FEATURE_VALUE_TYPE(kNewOverflowMenu)},
Robbie Gibsondf097a72022-09-05 08:17:18850 {"new-overflow-menu-alternate-iph",
851 flag_descriptions::kNewOverflowMenuAlternateIPHName,
852 flag_descriptions::kNewOverflowMenuAlternateIPHDescription,
853 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuAlternateIPH)},
Evan Bernstein0a85f332021-09-29 19:07:24854 {"use-lens-to-search-for-image",
855 flag_descriptions::kUseLensToSearchForImageName,
856 flag_descriptions::kUseLensToSearchForImageDescription, flags_ui::kOsIos,
Ali Juma02a9b7b2021-10-01 13:44:44857 FEATURE_VALUE_TYPE(kUseLensToSearchForImage)},
Jason Hu3830a072022-08-19 20:56:22858 {"enable-lens-in-home-screen-widget",
859 flag_descriptions::kEnableLensInHomeScreenWidgetName,
860 flag_descriptions::kEnableLensInHomeScreenWidgetDescription,
861 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)},
862 {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName,
863 flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos,
864 FEATURE_VALUE_TYPE(kEnableLensInKeyboard)},
865 {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName,
866 flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos,
867 FEATURE_VALUE_TYPE(kEnableLensInNTP)},
Anudeep Palanki403c907a2023-01-25 20:30:03868 {"enable-lens-context-menu-alt-text",
869 flag_descriptions::kEnableLensContextMenuAltTextName,
870 flag_descriptions::kEnableLensContextMenuAltTextDescription,
871 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)},
Jason Hu67cfb0f2022-11-14 20:21:44872 {"enable-lens-in-omnibox-copied-image",
873 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
874 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
875 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Benjamin Williamsbee6ab62022-02-28 18:09:40876 {"use-load-simulated-request-for-error-page-navigation",
Gauthier Ambard33cceaf2022-05-05 14:00:23877 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName,
878 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription,
Benjamin Williamsbee6ab62022-02-28 18:09:40879 flags_ui::kOsIos,
Gauthier Ambard33cceaf2022-05-05 14:00:23880 FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)},
Sergio Collazos9fcc6ed2021-10-06 00:58:03881 {"enable-disco-feed-endpoint",
882 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
883 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
884 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:11885 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Mohammad Refaatab6bee62022-05-16 16:31:15886 {"enable-discover-feed-top-sync-promo",
887 flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
888 flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
889 flags_ui::kOsIos,
890 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
891 kDiscoverFeedTopSyncPromoVariations,
892 "EnableDiscoverFeedTopSyncPromo")},
adamta4a6f2fd22023-02-13 17:37:14893 {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
894 flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
895 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
896 kFeedHeaderSettingsVariations,
897 "FeedHeaderSettings")},
Tommy Martino7393d762021-10-12 17:59:28898 {"shared-highlighting-amp",
899 flag_descriptions::kIOSSharedHighlightingAmpName,
900 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
901 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:28902 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:42903 commerce::flag_descriptions::kCommercePriceTrackingName,
904 commerce::flag_descriptions::kCommercePriceTrackingDescription,
905 flags_ui::kOsIos,
906 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
907 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:15908 "CommercePriceTracking")},
Tina Wang8058d5f2021-11-04 20:06:06909 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
910 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
911 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:54912 {"ntp-view-hierarchy-repair",
913 flag_descriptions::kNTPViewHierarchyRepairName,
914 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:20915 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Justin Cohen69cec682021-11-04 20:10:26916 {"synthesized-restore-session",
917 flag_descriptions::kSynthesizedRestoreSessionName,
918 flag_descriptions::kSynthesizedRestoreSessionDescription, flags_ui::kOsIos,
919 FEATURE_VALUE_TYPE(web::features::kSynthesizedRestoreSession)},
ginnnnnnnyee3036e2022-08-12 18:01:18920 {"ios-media-permissions-control",
921 flag_descriptions::kMediaPermissionsControlName,
922 flag_descriptions::kMediaPermissionsControlDescription, flags_ui::kOsIos,
923 FEATURE_VALUE_TYPE(web::features::kMediaPermissionsControl)},
Ewann8c7aadc2022-05-19 15:41:05924 {"use-sf-symbols", flag_descriptions::kUseSFSymbolsName,
925 flag_descriptions::kUseSFSymbolsDescription, flags_ui::kOsIos,
926 FEATURE_VALUE_TYPE(kUseSFSymbols)},
Veronique Nguyen11f8c9f2022-09-12 16:51:26927 {"enable-password-grouping", flag_descriptions::kPasswordsGroupingName,
928 flag_descriptions::kPasswordsGroupingDescription, flags_ui::kOsIos,
929 FEATURE_VALUE_TYPE(password_manager::features::kPasswordsGrouping)},
Ali Juma1429cf8a2022-02-09 15:31:01930 {"enable-fullscreen-api", flag_descriptions::kEnableFullscreenAPIName,
931 flag_descriptions::kEnableFullscreenAPIDescription, flags_ui::kOsIos,
932 FEATURE_VALUE_TYPE(web::features::kEnableFullscreenAPI)},
Joemer Ramosc34a30a02022-09-22 15:18:43933 {"enable-tailored-security-integration",
934 flag_descriptions::kTailoredSecurityIntegrationName,
935 flag_descriptions::kTailoredSecurityIntegrationDescription,
936 flags_ui::kOsIos,
937 FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)},
Vishwas Uppoor89303a92022-08-03 00:56:26938 {"autofill-enable-card-product-name",
939 flag_descriptions::kAutofillEnableCardProductNameName,
940 flag_descriptions::kAutofillEnableCardProductNameDescription,
941 flags_ui::kOsIos,
942 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Victor Hugo Vianna Silvaf0a44002022-02-16 10:38:00943 {"send-tab-to-self-signin-promo",
944 flag_descriptions::kSendTabToSelfSigninPromoName,
945 flag_descriptions::kSendTabToSelfSigninPromoDescription, flags_ui::kOsIos,
946 FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfSigninPromo)},
Siyu Anff02e742022-04-07 19:08:22947 {"autofill-enforce-delays-in-strike-database",
948 flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseName,
949 flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseDescription,
950 flags_ui::kOsIos,
951 FEATURE_VALUE_TYPE(
952 autofill::features::kAutofillEnforceDelaysInStrikeDatabase)},
Jared Saulb0473bd2022-04-20 00:03:41953 {"autofill-upstream-allow-additional-email-domains",
954 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName,
955 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription,
956 flags_ui::kOsIos,
957 FEATURE_VALUE_TYPE(
958 autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)},
959 {"autofill-upstream-allow-all-email-domains",
960 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName,
961 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription,
962 flags_ui::kOsIos,
963 FEATURE_VALUE_TYPE(
964 autofill::features::kAutofillUpstreamAllowAllEmailDomains)},
Raj Tb95d813542022-11-16 21:27:52965 {"enable-download-service-foreground-session",
966 flag_descriptions::kDownloadServiceForegroundSessionName,
967 flag_descriptions::kDownloadServiceForegroundSessionDescription,
968 flags_ui::kOsIos,
969 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:23970 {"enable-tflite-language-detection",
971 flag_descriptions::kTFLiteLanguageDetectionName,
972 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
973 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:20974 {"optimization-guide-debug-logs",
975 flag_descriptions::kOptimizationGuideDebugLogsName,
976 flag_descriptions::kOptimizationGuideDebugLogsDescription,
977 flags_ui::kOsIos,
978 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:55979 {"optimization-guide-push-notifications",
980 flag_descriptions::kOptimizationGuidePushNotificationClientName,
981 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
982 flags_ui::kOsIos,
983 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
Olivier Robinffe767c2022-04-21 13:13:23984 {"optimization-guide-model-downloading",
985 flag_descriptions::kOptimizationGuideModelDownloadingName,
986 flag_descriptions::kOptimizationGuideModelDownloadingDescription,
987 flags_ui::kOsIos,
988 FEATURE_VALUE_TYPE(
989 optimization_guide::features::kOptimizationGuideModelDownloading)},
990 {"optimization-target-prediction",
991 flag_descriptions::kOptimizationTargetPredictionName,
992 flag_descriptions::kOptimizationTargetPredictionDescription,
993 flags_ui::kOsIos,
994 FEATURE_VALUE_TYPE(
995 optimization_guide::features::kOptimizationTargetPrediction)},
Rushan Suleymanov727309602022-04-28 20:08:54996 {"sync-standalone-invalidations", flag_descriptions::kSyncInvalidationsName,
997 flag_descriptions::kSyncInvalidationsDescription, flags_ui::kOsIos,
998 FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidations)},
999 {"sync-standalone-invalidations-wallet-and-offer",
1000 flag_descriptions::kSyncInvalidationsWalletAndOfferName,
1001 flag_descriptions::kSyncInvalidationsWalletAndOfferDescription,
1002 flags_ui::kOsIos,
1003 FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidationsForWalletAndOffer)},
Christian Xub8c06cd2022-04-29 20:55:011004 {"suggestions-scrolling-ipad",
1005 flag_descriptions::kEnableSuggestionsScrollingOnIPadName,
1006 flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription,
1007 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)},
Stepan Khapuginfee136c62022-11-28 13:24:001008 {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName,
1009 flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos,
1010 FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)},
David Jean7a8fa702022-05-02 15:21:221011 {"experience-kit-calendar", flag_descriptions::kCalendarExperienceKitName,
1012 flag_descriptions::kCalendarExperienceKitDescription, flags_ui::kOsIos,
1013 FEATURE_VALUE_TYPE(kCalendarExperienceKit)},
Elmehdi Rahmaoui5a6273a22022-11-28 16:19:251014 {"intents-on-phone-number", flag_descriptions::kPhoneNumberName,
1015 flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331016 FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)},
Elmehdi Rahmaoui21e87d52022-11-09 15:00:551017 {"experience-kit-apple-calendar",
1018 flag_descriptions::kAppleCalendarExperienceKitName,
1019 flag_descriptions::kAppleCalendarExperienceKitDescription,
1020 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)},
Zhixiang Teoh82d17bb2022-06-16 21:00:391021 {"enable-expkit-calendar-text-classifier",
1022 flag_descriptions::kEnableExpKitCalendarTextClassifierName,
1023 flag_descriptions::kEnableExpKitCalendarTextClassifierDescription,
1024 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitCalendarTextClassifier)},
Raj T7db7a0e2022-11-17 16:33:081025 {"enable-expkit-text-classifier",
1026 flag_descriptions::kEnableExpKitTextClassifierName,
1027 flag_descriptions::kEnableExpKitTextClassifierDescription,
1028 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifier)},
Elmehdi Rahmaoui9d4ce40c62022-08-05 15:31:181029 {"experience-kit-maps", flag_descriptions::kMapsExperienceKitName,
1030 flag_descriptions::kMapsExperienceKitDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui3d549fc2022-10-20 14:31:281031 FEATURE_WITH_PARAMS_VALUE_TYPE(kMapsExperienceKit,
1032 kEnableExperienceKitMapsVariations,
1033 "IOSExperienceKitMaps")},
Elmehdi Rahmaouic699dc12022-10-12 11:17:051034 {"enable-long-press-surrounding-text",
1035 flag_descriptions::kLongPressSurroundingTextName,
1036 flag_descriptions::kLongPressSurroundingTextDescription, flags_ui::kOsIos,
1037 FEATURE_VALUE_TYPE(web::features::kLongPressSurroundingText)},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331038 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1039 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
1040 FEATURE_VALUE_TYPE(web::features::kOneTapForMaps)},
Mustafa Emre Acer4de8863a2022-05-03 22:17:011041 {"https-only-mode", flag_descriptions::kHttpsOnlyModeName,
1042 flag_descriptions::kHttpsOnlyModeDescription, flags_ui::kOsIos,
1043 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsOnlyMode)},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251044 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1045 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1046 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Benjamin Williams419c81e2022-05-04 18:33:221047 {"smart-sorting-new-overflow-menu",
1048 flag_descriptions::kSmartSortingNewOverflowMenuName,
1049 flag_descriptions::kSmartSortingNewOverflowMenuDescription,
1050 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSmartSortingNewOverflowMenu)},
Benjamin Williamsf721fc22023-01-10 23:28:251051 {"smart-sorting-price-tracking-destination",
1052 flag_descriptions::kSmartSortingPriceTrackingDestinationName,
1053 flag_descriptions::kSmartSortingPriceTrackingDestinationDescription,
1054 flags_ui::kOsIos,
1055 FEATURE_VALUE_TYPE(kSmartSortingPriceTrackingDestination)},
Scott Yoder10493562022-06-28 17:37:441056 {"new-overflow-menu-share-chrome-action",
1057 flag_descriptions::kNewOverflowMenuShareChromeActionName,
1058 flag_descriptions::kNewOverflowMenuShareChromeActionDescription,
1059 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuShareChromeAction)},
Alexander Tekleb4643812023-01-06 23:12:301060 {"autofill-enable-ranking-formula-address-profiles",
1061 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1062 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1063 flags_ui::kOsIos,
1064 FEATURE_VALUE_TYPE(
1065 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391066 {"autofill-enable-ranking-formula-credit-cards",
1067 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1068 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1069 flags_ui::kOsIos,
1070 FEATURE_VALUE_TYPE(
1071 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021072 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1073 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1074 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Tina Wang30df7172022-12-09 22:02:021075 {"enable-feed-bottom-sign-in-promo",
1076 flag_descriptions::kEnableFeedBottomSignInPromoName,
1077 flag_descriptions::kEnableFeedBottomSignInPromoDescription,
1078 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedBottomSignInPromo)},
1079 {"enable-feed-card-menu-sign-in-promo",
1080 flag_descriptions::kEnableFeedCardMenuSignInPromoName,
1081 flag_descriptions::kEnableFeedCardMenuSignInPromoDescription,
1082 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)},
Chris Lu7f024ed2c2022-05-27 23:11:271083 {"content-suggestions-ui-module-refresh",
1084 flag_descriptions::kContentSuggestionsUIModuleRefreshName,
1085 flag_descriptions::kContentSuggestionsUIModuleRefreshDescription,
Chris Lu8e308dc2022-09-06 16:59:401086 flags_ui::kOsIos,
Chris Lu85e8cc642022-09-23 20:27:581087 FEATURE_WITH_PARAMS_VALUE_TYPE(
1088 kContentSuggestionsUIModuleRefresh,
1089 kModuleRefreshVariations,
1090 kContentSuggestionsUIModuleRefreshFlagOverrideFieldTrialName)},
Olivier Robin058c1fad2022-05-31 18:24:061091 {"default-browser-intents-show-settings",
1092 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1093 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1094 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Igor Ruvinova43a66dc2022-06-09 21:57:451095 {"dm-token-deletion", flag_descriptions::kDmTokenDeletionName,
1096 flag_descriptions::kDmTokenDeletionDescription, flags_ui::kOsIos,
Igor Ruvinov44fed9f2022-06-10 22:51:421097 FEATURE_WITH_PARAMS_VALUE_TYPE(policy::features::kDmTokenDeletion,
1098 kDmTokenDeletionVariation,
1099 "DmTokenDeletion")},
Tommy Martinoad42be52022-06-13 11:51:191100 {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName,
1101 flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos,
1102 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)},
Theodor-Stefan Cristea6d087b82022-07-26 15:25:291103 {"ios-password-manager-cross-origin-iframe-support",
1104 flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportName,
1105 flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportDescription,
1106 flags_ui::kOsIos,
1107 FEATURE_VALUE_TYPE(password_manager::features::
1108 kIOSPasswordManagerCrossOriginIframeSupport)},
Veronique Nguyenc3d7db52023-03-08 22:52:321109 {"ios-password-bottom-sheet",
1110 flag_descriptions::kIOSPasswordBottomSheetName,
1111 flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos,
1112 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)},
adamta8886def42023-03-07 19:45:231113 {"ios-new-tab-page-retention", flag_descriptions::kNewTabPageRetentionName,
1114 flag_descriptions::kNewTabPageRetentionDescription, flags_ui::kOsIos,
1115 FEATURE_WITH_PARAMS_VALUE_TYPE(ntp_tiles::kNewTabPageRetention,
1116 kNewTabPageRetentionVariations,
1117 ntp_tiles::kNewTabPageRetentionName)},
Christian Xud105a1352022-06-17 19:54:141118 {"omnibox-adaptive-suggestions-count",
1119 flag_descriptions::kAdaptiveSuggestionsCountName,
1120 flag_descriptions::kAdaptiveSuggestionsCountDescription, flags_ui::kOsIos,
1121 FEATURE_VALUE_TYPE(omnibox::kAdaptiveSuggestionsCount)},
Chris Lu2fd473f2022-06-28 13:38:201122 {"trending-queries-module", flag_descriptions::kTrendingQueriesModuleName,
1123 flag_descriptions::kTrendingQueriesModuleDescription, flags_ui::kOsIos,
Chris Lu85e8cc642022-09-23 20:27:581124 FEATURE_WITH_PARAMS_VALUE_TYPE(
1125 kTrendingQueriesModule,
1126 kTrendingQueriesModuleVariations,
1127 kTrendingQueriesFlagOverrideFieldTrialName)},
Nakul Vaidyaddfdfbc2022-06-28 23:43:321128 {"autofill-parse-iban-fields",
Nakul Vaidya876210f2022-08-08 17:47:191129 flag_descriptions::kAutofillParseIBANFieldsName,
1130 flag_descriptions::kAutofillParseIBANFieldsDescription, flags_ui::kOsIos,
1131 FEATURE_VALUE_TYPE(autofill::features::kAutofillParseIBANFields)},
Moe Ahmadi098519d82022-07-27 18:34:241132 {"omnibox-zero-suggest-prefetching",
1133 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1134 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1135 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451136 {"omnibox-zero-suggest-prefetching-on-srp",
1137 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1138 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1139 flags_ui::kOsIos,
1140 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1141 {"omnibox-zero-suggest-prefetching-on-web",
1142 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1143 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1144 flags_ui::kOsIos,
1145 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471146 {"omnibox-zero-suggest-in-memory-caching",
1147 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1148 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1149 flags_ui::kOsIos,
1150 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351151 {"omnibox-on-device-tail-suggestions",
1152 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1153 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1154 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Joemer Ramosada1e852023-03-10 19:14:411155 {"enable-button-configuration-usage",
1156 flag_descriptions::kEnableUIButtonConfigurationName,
1157 flag_descriptions::kEnableUIButtonConfigurationDescription,
1158 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableUIButtonConfiguration)},
Vincent Boissellead6cbe22022-07-04 19:32:391159 {"enable-user-policy", flag_descriptions::kEnableUserPolicyName,
1160 flag_descriptions::kEnableUserPolicyDescription, flags_ui::kOsIos,
Vincent Boisselle88fef222022-09-23 18:54:501161 FEATURE_VALUE_TYPE(policy::kUserPolicy)},
Marc Treibb9d8ed802022-07-05 15:15:491162 {"enable-sync-history-datatype",
1163 flag_descriptions::kSyncEnableHistoryDataTypeName,
1164 flag_descriptions::kSyncEnableHistoryDataTypeDescription, flags_ui::kOsIos,
1165 FEATURE_VALUE_TYPE(syncer::kSyncEnableHistoryDataType)},
Christian Xucf26d562022-07-06 09:28:361166 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1167 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1168 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1169 kOmniboxMaxURLMatchesVariations,
1170 "OmniboxMaxURLMatches")},
Olivier Robin60d3a062022-07-06 17:34:061171 {"metrickit-non-crash-reports",
1172 flag_descriptions::kMetrickitNonCrashReportName,
1173 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1174 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Siyu An3194bda2022-07-13 19:30:371175 {"autofill-enable-remade-downstream-metrics",
1176 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName,
1177 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription,
1178 flags_ui::kOsIos,
1179 FEATURE_VALUE_TYPE(
1180 autofill::features::kAutofillEnableRemadeDownstreamMetrics)},
Nakul Vaidya13ca2042022-07-27 01:59:551181 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1182 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1183 flag_descriptions::
1184 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1185 flags_ui::kOsIos,
1186 FEATURE_VALUE_TYPE(
1187 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Ed Chin91e44992022-07-27 13:42:341188#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1189 {"feed-background-refresh-ios",
1190 flag_descriptions::kFeedBackgroundRefreshName,
1191 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1192 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1193 kFeedBackgroundRefreshVariations,
1194 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261195#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1196 {"feed-foreground-refresh-ios",
1197 flag_descriptions::kFeedForegroundRefreshName,
1198 flag_descriptions::kFeedForegroundRefreshDescription, flags_ui::kOsIos,
1199 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedForegroundRefresh,
1200 kFeedForegroundRefreshVariations,
1201 "FeedForegroundRefresh")},
Christian Xu164a2e512022-08-01 20:38:191202 {"omnibox-keyboard-paste-button",
1203 flag_descriptions::kOmniboxKeyboardPasteButtonName,
1204 flag_descriptions::kOmniboxKeyboardPasteButtonDescription,
1205 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)},
Ed Chin178ec2a2023-02-10 22:21:261206
Aliona DANGLAa5257ccc2022-08-29 14:01:491207 {"enable-open-in-download", flag_descriptions::kEnableOpenInDownloadName,
1208 flag_descriptions::kEnableOpenInDownloadDescription, flags_ui::kOsIos,
1209 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableOpenInDownload,
1210 kOpenInDownloadVariations,
1211 "EnableOpenInDownload")},
Cheick Cisse87a51cb2022-09-08 21:29:171212 {"whats-new-ios", flag_descriptions::kWhatsNewIOSName,
1213 flag_descriptions::kWhatsNewIOSDescription, flags_ui::kOsIos,
Cheick Cissef37087902022-10-07 19:01:411214 FEATURE_WITH_PARAMS_VALUE_TYPE(kWhatsNewIOS,
1215 kWhatsNewLayoutVariations,
1216 "WhatsNewLayoutVariations")},
ginnnnnnny591a4972022-09-01 16:10:271217 {"ios-autofill-branding", flag_descriptions::kAutofillBrandingIOSName,
1218 flag_descriptions::kAutofillBrandingIOSDescription, flags_ui::kOsIos,
1219 FEATURE_WITH_PARAMS_VALUE_TYPE(autofill::features::kAutofillBrandingIOS,
1220 kAutofillBrandingIOSVariations,
Hira Mahmoodb0e5f412022-09-01 19:41:051221 "AutofillBrandingIOS")},
1222 {"app-store-rating", flag_descriptions::kAppStoreRatingName,
1223 flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos,
1224 FEATURE_VALUE_TYPE(kAppStoreRating)},
Scott Yodercb2fe632022-09-12 15:28:351225 {"ios-new-post-restore-experience",
1226 flag_descriptions::kIOSNewPostRestoreExperienceName,
1227 flag_descriptions::kIOSNewPostRestoreExperienceDescription,
1228 flags_ui::kOsIos,
Benjamin Williams3d3a2ec2022-09-13 20:01:261229 FEATURE_WITH_PARAMS_VALUE_TYPE(
1230 post_restore_signin::features::kIOSNewPostRestoreExperience,
1231 kIOSNewPostRestoreExperienceVariations,
1232 "IOSNewPostRestoreExperience")},
Christian Xu6b90c2a32022-09-13 18:17:021233 {"most-visited-tiles", flag_descriptions::kMostVisitedTilesName,
1234 flag_descriptions::kMostVisitedTilesDescription, flags_ui::kOsIos,
1235 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTiles)},
Olivier ROBINf05518782022-09-14 23:55:501236 {"enable-tflite-language-detection-ignore",
1237 flag_descriptions::kTFLiteLanguageDetectionIgnoreName,
1238 flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription,
1239 flags_ui::kOsIos,
1240 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)},
Louis Romeroc18612b962022-10-07 12:08:141241 {"keyboard-shortcuts-menu", flag_descriptions::kKeyboardShortcutsMenuName,
1242 flag_descriptions::kKeyboardShortcutsMenuDescription, flags_ui::kOsIos,
1243 FEATURE_VALUE_TYPE(kKeyboardShortcutsMenu)},
Tina Wang89ae4252022-10-14 00:39:471244 {"enable-check-visibility-on-attention-log-start",
1245 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartName,
1246 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartDescription,
1247 flags_ui::kOsIos,
1248 FEATURE_VALUE_TYPE(kEnableCheckVisibilityOnAttentionLogStart)},
1249 {"enable-refine-data-source-reload-reporting",
1250 flag_descriptions::kEnableRefineDataSourceReloadReportingName,
1251 flag_descriptions::kEnableRefineDataSourceReloadReportingDescription,
1252 flags_ui::kOsIos,
1253 FEATURE_VALUE_TYPE(kEnableRefineDataSourceReloadReporting)},
Victor Hugo Vianna Silvabb878dea2022-10-18 10:19:041254 {"enable-passwords-account-storage",
1255 flag_descriptions::kEnablePasswordsAccountStorageName,
1256 flag_descriptions::kEnablePasswordsAccountStorageDescription,
1257 flags_ui::kOsIos,
1258 FEATURE_VALUE_TYPE(
1259 password_manager::features::kEnablePasswordsAccountStorage)},
adamta3811f9182022-10-24 17:49:331260 {"enable-default-following-feed-sort-type",
1261 flag_descriptions::kFollowingFeedDefaultSortTypeName,
1262 flag_descriptions::kFollowingFeedDefaultSortTypeDescription,
1263 flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201264 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFollowingFeedDefaultSortType,
adamta3811f9182022-10-24 17:49:331265 kFollowingFeedDefaultSortTypeVariations,
adamta8da8dce2022-11-17 18:03:201266 "EnableFollowingFeedDefaultSortType")},
Gauthier Ambardd0187592022-11-03 16:31:131267 {"use-sf-symbols-omnibox", flag_descriptions::kUseSFSymbolsInOmniboxName,
1268 flag_descriptions::kUseSFSymbolsInOmniboxDescription, flags_ui::kOsIos,
1269 FEATURE_VALUE_TYPE(kUseSFSymbolsInOmnibox)},
Louis Romero1e2a88e92023-01-18 17:08:201270 {"tab-grid-recency-sort", flag_descriptions::kTabGridRecencySortName,
Gauthier Ambard9898eb882022-11-07 18:12:011271 flag_descriptions::kTabGridRecencySortDescription, flags_ui::kOsIos,
1272 FEATURE_VALUE_TYPE(kTabGridRecencySort)},
Ewann Pelle3774cac532022-11-15 10:12:371273 {"enable-pinned-tabs", flag_descriptions::kEnablePinnedTabsName,
1274 flag_descriptions::kEnablePinnedTabsDescription, flags_ui::kOsIos,
1275 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnablePinnedTabs,
1276 kEnablePinnedTabsVariations,
1277 "EnablePinnedTabs")},
Ewann Pelledb88a5462023-02-17 14:34:591278 {"enable-pinned-tabs-ipad", flag_descriptions::kEnablePinnedTabsIpadName,
1279 flag_descriptions::kEnablePinnedTabsIpadDescription, flags_ui::kOsIos,
1280 FEATURE_VALUE_TYPE(kEnablePinnedTabsIpad)},
Justin Cohen726a70bc42022-11-15 23:15:031281 {"remove-crash-infobar", flag_descriptions::kRemoveCrashInfobarName,
1282 flag_descriptions::kRemoveCrashInfobarDescription, flags_ui::kOsIos,
1283 FEATURE_VALUE_TYPE(kRemoveCrashInfobar)},
Hira Mahmoodea109752022-11-17 17:45:411284 {"credential-provider-extension-promo",
1285 flag_descriptions::kCredentialProviderExtensionPromoName,
1286 flag_descriptions::kCredentialProviderExtensionPromoDescription,
Huiting Yud7d2a5322023-02-09 21:14:221287 flags_ui::kOsIos,
1288 FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo,
1289 kCredentialProviderExtensionPromoVariations,
1290 "CredentialProviderExtensionPromo")},
Nicolas MacBethfb43e152022-11-28 19:31:521291 {"default-browser-blue-dot-promo",
1292 flag_descriptions::kDefaultBrowserBlueDotPromoName,
1293 flag_descriptions::kDefaultBrowserBlueDotPromoDescription,
1294 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserBlueDotPromo)},
Olivier ROBINa8838c12022-12-05 17:50:271295 {"ios-force-translate-enabled",
1296 flag_descriptions::kIOSForceTranslateEnabledName,
1297 flag_descriptions::kIOSForceTranslateEnabledDescription, flags_ui::kOsIos,
1298 FEATURE_VALUE_TYPE(translate::kIOSForceTranslateEnabled)},
Daniel Whiteae1cb672022-12-14 18:25:251299 {"iph-price-notifications-while-browsing",
1300 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1301 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1302 flags_ui::kOsIos,
1303 FEATURE_VALUE_TYPE(
1304 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Qihui Zhao72836c62022-12-16 04:31:411305 {"autofill-offer-to-save-card-with-same-last-four",
1306 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourName,
1307 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourDescription,
1308 flags_ui::kOsIos,
1309 FEATURE_VALUE_TYPE(
1310 autofill::features::kAutofillOfferToSaveCardWithSameLastFour)},
Christian Xu588330f32023-01-05 10:51:041311 {"omnibox-multiline-search-suggest",
1312 flag_descriptions::kOmniboxMultilineSearchSuggestName,
1313 flag_descriptions::kOmniboxMultilineSearchSuggestDescription,
1314 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxMultilineSearchSuggest)},
Vipul Vinod Koulaebbcb3a2023-01-05 19:50:501315 {"autofill-suggest-server-card-instead-of-local-card",
1316 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName,
1317 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription,
1318 flags_ui::kOsIos,
1319 FEATURE_VALUE_TYPE(
1320 autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)},
Quentin Pubert154fc6a2023-01-09 15:58:581321 {"native-find-in-page", flag_descriptions::kNativeFindInPageName,
1322 flag_descriptions::kNativeFindInPageDescription, flags_ui::kOsIos,
1323 FEATURE_WITH_PARAMS_VALUE_TYPE(kNativeFindInPage,
1324 kNativeFindInPageVariations,
1325 "NativeFindInPage")},
Elmehdi Rahmaoui5d8ba8e2023-01-11 14:53:551326 {"intents-on-email", flag_descriptions::kEmailName,
1327 flag_descriptions::kEmailDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331328 FEATURE_VALUE_TYPE(web::features::kEnableEmails)},
Ernesto Izquierdo Clua023bb52352023-01-12 19:33:341329 {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName,
1330 flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos,
1331 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)},
Christian Xu7e5234c12023-01-16 09:26:351332 {"multiline-fade-truncating-label",
1333 flag_descriptions::kMultilineFadeTruncatingLabelName,
1334 flag_descriptions::kMultilineFadeTruncatingLabelDescription,
1335 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kMultilineFadeTruncatingLabel)},
Robbie Gibson88f680a2023-01-19 16:47:301336 {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName,
1337 flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos,
1338 FEATURE_VALUE_TYPE(kPromosManagerUsesFET)},
Ewann Pelledec2d042023-01-25 15:28:391339 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1340 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1341 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Louis Romero93e9b50a2023-01-26 01:46:121342 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1343 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1344 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1345 kTabInactivityThresholdVariations,
1346 "TabInactivityThreshold")},
Sergio Collazos8d2ac27942023-01-26 19:03:411347 {"enable-feed-image-caching",
1348 flag_descriptions::kEnableFeedImageCachingName,
1349 flag_descriptions::kEnableFeedImageCachingDescription, flags_ui::kOsIos,
1350 FEATURE_VALUE_TYPE(kEnableFeedImageCaching)},
1351 {"enable-feed-synthetic-capabilities",
1352 flag_descriptions::kEnableFeedSyntheticCapabilitiesName,
1353 flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription,
1354 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)},
Victor Hugo Vianna Silvabf1a43c2023-02-06 14:06:561355 {"ios-show-password-storage-in-save-infobar",
1356 flag_descriptions::kIOSShowPasswordStorageInSaveInfobarName,
1357 flag_descriptions::kIOSShowPasswordStorageInSaveInfobarDescription,
1358 flags_ui::kOsIos,
1359 FEATURE_VALUE_TYPE(
1360 password_manager::features::kIOSShowPasswordStorageInSaveInfobar)},
Louis Romero58f355022023-02-13 19:04:311361 {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName,
1362 flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos,
1363 FEATURE_VALUE_TYPE(kShowInactiveTabsCount)},
Olivier ROBIN52eddbf32023-02-15 10:33:421364 {"ios-edit-menu-partial-translate",
1365 flag_descriptions::kIOSEditMenuPartialTranslateName,
1366 flag_descriptions::kIOSEditMenuPartialTranslateDescription,
Olivier ROBINfd3887b72023-02-23 14:45:421367 flags_ui::kOsIos,
1368 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate,
1369 kIOSEditMenuPartialTranslateVariations,
1370 "IOSEditMenuPartialTranslate")},
Olivier Robin7057bd72023-02-16 18:35:201371 {"ios-custom-browser-edit-menu",
1372 flag_descriptions::kIOSCustomBrowserEditMenuName,
1373 flag_descriptions::kIOSCustomBrowserEditMenuDescription, flags_ui::kOsIos,
1374 FEATURE_VALUE_TYPE(kIOSCustomBrowserEditMenu)},
Ali Juma57849c42023-02-21 22:53:431375 {"notification-settings-menu-item",
1376 flag_descriptions::kNotificationSettingsMenuItemName,
1377 flag_descriptions::kNotificationSettingsMenuItemDescription,
1378 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
rgodba72acf82023-02-20 10:29:351379 {"password-notes", flag_descriptions::kPasswordNotesWithBackupName,
1380 flag_descriptions::kPasswordNotesWithBackupDescription, flags_ui::kOsIos,
1381 FEATURE_VALUE_TYPE(syncer::kPasswordNotesWithBackup)},
Ed Chin97560fc42023-02-20 16:48:321382 {"feed-experiment-tagging-ios",
1383 flag_descriptions::kFeedExperimentTaggingName,
1384 flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos,
1385 FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)},
Stepan Khapugin551917f82023-02-21 18:00:061386 {"spotlight-reading-list-source",
1387 flag_descriptions::kSpotlightReadingListSourceName,
1388 flag_descriptions::kSpotlightReadingListSourceDescription,
1389 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)},
kalettuced6ba72cb2023-02-22 00:55:381390 {"consistency-new-account-interface",
1391 flag_descriptions::kConsistencyNewAccountInterfaceName,
1392 flag_descriptions::kConsistencyNewAccountInterfaceDescription,
1393 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kConsistencyNewAccountInterface)},
Olivier ROBINabcb8ce2023-02-22 13:55:201394 {"add-to-home-screen", flag_descriptions::kAddToHomeScreenName,
1395 flag_descriptions::kAddToHomeScreenDescription, flags_ui::kOsIos,
Olivier ROBIN2ca64952023-02-23 17:11:481396 FEATURE_WITH_PARAMS_VALUE_TYPE(kAddToHomeScreen,
1397 kAddToHomeScreenVariations,
1398 "IOSEditMenuPartialTranslate")},
Salma Elmahallawy72c5d34d2023-02-27 23:44:421399 {"policy-logs-page-ios", flag_descriptions::kPolicyLogsPageIOSName,
1400 flag_descriptions::kPolicyLogsPageIOSDescription, flags_ui::kOsIos,
1401 FEATURE_VALUE_TYPE(policy::features::kPolicyLogsPageIOS)},
Vincent Boisselle6e9780c2023-02-25 01:05:341402 {"indicate-account-storage-error-in-account-cell",
1403 flag_descriptions::kIndicateAccountStorageErrorInAccountCellName,
1404 flag_descriptions::kIndicateAccountStorageErrorInAccountCellDescription,
1405 flags_ui::kOsIos,
1406 FEATURE_VALUE_TYPE(kIndicateAccountStorageErrorInAccountCell)},
Menghan YANGf3fe2de52023-02-27 16:38:501407 {"enable-bookmarks-account-storage",
1408 flag_descriptions::kEnableBookmarksAccountStorageName,
1409 flag_descriptions::kEnableBookmarksAccountStorageDescription,
1410 flags_ui::kOsIos,
1411 FEATURE_VALUE_TYPE(bookmarks::kEnableBookmarksAccountStorage)},
kalettucefb09e402023-02-27 18:35:531412 {"web-feed-feedback-reroute",
1413 flag_descriptions::kWebFeedFeedbackRerouteName,
1414 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1415 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Jason Huac58fea2023-02-28 20:25:551416 {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName,
1417 flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos,
1418 FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)},
ginnnnnnny75903622023-03-01 18:00:001419 {"bring-your-own-tabs-ios", flag_descriptions::kBringYourOwnTabsIOSName,
1420 flag_descriptions::kBringYourOwnTabsIOSDescription, flags_ui::kOsIos,
1421 FEATURE_WITH_PARAMS_VALUE_TYPE(kBringYourOwnTabsIOS,
1422 kBringYourOwnTabsIOSVariations,
1423 "BringYourOwnTabsIOS")},
Tina Wange81e24d2023-03-08 21:10:031424 {"enable-follow-management-instant-reload",
1425 flag_descriptions::kEnableFollowManagementInstantReloadName,
1426 flag_descriptions::kEnableFollowManagementInstantReloadDescription,
1427 flags_ui::kOsIos,
1428 FEATURE_VALUE_TYPE(kEnableFollowManagementInstantReload)},
Mustafa Acerc8c0b152023-03-09 02:41:441429 {"mixed-content-autoupgrade-ios",
1430 flag_descriptions::kMixedContentAutoupgradeName,
1431 flag_descriptions::kMixedContentAutoupgradeDescription, flags_ui::kOsIos,
1432 FEATURE_VALUE_TYPE(
1433 security_interstitials::features::kMixedContentAutoupgrade)},
Menghan YANGc4c94ea22023-03-09 12:48:241434 {"enable-email-in-bookmarks-reading-list-snackbar",
1435 flag_descriptions::kEnableEmailInBookmarksReadingListSnackbarName,
1436 flag_descriptions::kEnableEmailInBookmarksReadingListSnackbarDescription,
1437 flags_ui::kOsIos,
1438 FEATURE_VALUE_TYPE(kEnableEmailInBookmarksReadingListSnackbar)},
Jared Saul5363f3962023-03-10 23:03:511439 {"autofill-upstream-authenticate-preflight-call",
1440 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallName,
1441 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallDescription,
1442 flags_ui::kOsIos,
1443 FEATURE_VALUE_TYPE(
1444 autofill::features::kAutofillUpstreamAuthenticatePreflightCall)},
Marc Treibe9f79ea72023-03-14 10:25:421445 {"enable-preferences-account-storage",
1446 flag_descriptions::kEnablePreferencesAccountStorageName,
1447 flag_descriptions::kEnablePreferencesAccountStorageDescription,
1448 flags_ui::kOsIos,
1449 FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)},
Louis Romero93e9b50a2023-01-26 01:46:121450};
sdefresne14900ee2015-11-27 14:43:211451
Rohit Raobed794c2020-04-27 15:27:451452bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1453 return false;
1454}
1455
1456flags_ui::FlagsState& GetGlobalFlagsState() {
1457 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1458 nullptr);
1459 return *flags_state;
1460}
David Jean5ca263c2021-08-18 09:19:301461// Creates the experimental test policies map, used by AsyncPolicyLoader and
1462// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341463NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211464 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1465
Guillaume Jenkins25e9bd72020-08-27 17:39:061466 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551467 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061468 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551469
Guillaume Jenkins25e9bd72020-08-27 17:39:061470 // Set some sample policy values for testing if EnableSamplePolicies is set to
1471 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401472 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551473 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011474 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1475
Guillaume Jenkinseeb7007c2020-06-25 22:55:401476 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1477
1478 // 2 = Disable all variations
1479 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1480
1481 // 2 = Do not allow any site to show popups
1482 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1483
Tina Wang5abee802020-07-29 23:09:521484 // Set default search engine.
1485 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1486 @YES,
1487 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1488 @"http://www.google.com/search?q={searchTerms}",
1489 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021490 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521491
Tina Wang89068c82020-10-29 15:51:501492 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1493
Gauthier Ambard21b23702021-04-16 16:11:271494 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1495
Tina Wang59d0b7e2020-08-11 04:41:011496 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531497
1498 // 2 = Enhanced safe browsing protection
1499 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1500
1501 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291502
1503 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551504 }];
1505 }
1506
Ewann227a3c02021-04-19 12:04:541507 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041508 NSString* sync_policy_key =
1509 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301510 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541511 }
Ewann227a3c02021-04-19 12:04:541512
Ewann570a6302021-08-17 07:22:421513 // SyncTypesListDisabled policy.
1514 NSString* Sync_types_list_disabled_key =
1515 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1516 NSMutableArray* Sync_types_list_disabled_values =
1517 [[NSMutableArray alloc] init];
1518 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
1519 [Sync_types_list_disabled_values addObject:@"bookmarks"];
1520 }
1521 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
1522 [Sync_types_list_disabled_values addObject:@"readingList"];
1523 }
1524 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
1525 [Sync_types_list_disabled_values addObject:@"preferences"];
1526 }
1527 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
1528 [Sync_types_list_disabled_values addObject:@"passwords"];
1529 }
1530 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
1531 [Sync_types_list_disabled_values addObject:@"autofill"];
1532 }
1533 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
1534 [Sync_types_list_disabled_values addObject:@"typedUrls"];
1535 }
1536 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
1537 [Sync_types_list_disabled_values addObject:@"tabs"];
1538 }
1539 if ([Sync_types_list_disabled_values count]) {
1540 [testing_policies addEntriesFromDictionary:@{
1541 Sync_types_list_disabled_key : Sync_types_list_disabled_values
1542 }];
Ewann570a6302021-08-17 07:22:421543 }
1544
Gauthier Ambard073eaa92021-11-22 15:24:131545 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:521546 NSString* incognito_policy_key =
1547 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
1548 NSInteger incognito_mode_availability =
1549 [defaults integerForKey:incognito_policy_key];
1550 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:521551 [testing_policies addEntriesFromDictionary:@{
1552 incognito_policy_key : @(incognito_mode_availability),
1553 }];
1554 }
1555
Ewann40a8f8a2021-07-29 10:01:201556 NSString* restriction_pattern =
1557 [defaults stringForKey:@"RestrictAccountsToPatterns"];
1558 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:291559 NSString* restrict_key =
1560 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:201561 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:291562 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:201563 }];
1564 }
1565
Vincent Boisselle19200bc2021-09-01 17:58:251566 // If the sign-in policy is set (not "None"), add the policy key to the list
1567 // of enabled experimental policies, and set the value.
1568 NSString* const kSigninPolicyKey = @"BrowserSignin";
1569 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
1570 if (signin_policy_mode) {
1571 // Remove the mode offset that was used to represent the unset policy.
1572 --signin_policy_mode;
1573 DCHECK(signin_policy_mode >= 0);
1574
Vincent Boisselle19200bc2021-09-01 17:58:251575 [testing_policies addEntriesFromDictionary:@{
1576 kSigninPolicyKey : @(signin_policy_mode),
1577 }];
1578 }
1579
Veronique Nguyen9b1044f2022-01-11 14:41:131580 // If the New Tab Page URL is set (not empty) add the value to the list of
1581 // test policies.
1582 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
1583 if ([ntp_location length] > 0) {
1584 NSString* ntp_location_key =
1585 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
1586 [testing_policies
1587 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:571588 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:131589 }
1590
Ali Juma9ec36d22022-03-28 14:53:121591 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
1592 NSString* allow_backups_key =
1593 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
1594 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
1595 [allowed_experimental_policies addObject:allow_backups_key];
1596 }
1597
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241598 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
1599 NSString* password_manager_key =
1600 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
1601 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
1602 [allowed_experimental_policies addObject:password_manager_key];
1603 }
1604
Guillaume Jenkins25e9bd72020-08-27 17:39:061605 // If any experimental policy was allowed, set the EnableExperimentalPolicies
1606 // policy.
1607 if ([allowed_experimental_policies count] > 0) {
1608 [testing_policies setValue:allowed_experimental_policies
1609 forKey:base::SysUTF8ToNSString(
1610 policy::key::kEnableExperimentalPolicies)];
1611 }
1612
jlebel2eb40222022-05-06 11:15:421613 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
1614 switch ([defaults integerForKey:metrics_reporting_key]) {
1615 case 1:
1616 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:131617 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421618 break;
1619 case 2:
1620 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:131621 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421622 break;
1623 default:
1624 // Metrics reporting not managed.
1625 break;
1626 }
1627
David Jean6f85d44f2021-08-19 08:08:451628 // Warning: Add new flags to TestingPoliciesHash() below.
1629
David Jean5ca263c2021-08-18 09:19:301630 return testing_policies;
1631}
David Jean6f85d44f2021-08-19 08:08:451632
David Jean5ca263c2021-08-18 09:19:301633} // namespace
1634
Gauthier Ambard02dbf022022-08-23 08:28:471635// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:301636void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
1637 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1638
1639 // Set the UA flag if UseMobileSafariUA is enabled.
1640 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
1641 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
1642 // Chrome puts its product token.
1643 int32_t major = 0;
1644 int32_t minor = 0;
1645 int32_t bugfix = 0;
1646 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
1647 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
1648
1649 command_line->AppendSwitchASCII(switches::kUserAgent,
1650 web::BuildMobileUserAgent(product));
1651 }
1652
1653 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341654 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:301655
1656 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
1657 // Management to enabled and add the token to the list of policies.
1658 NSString* token_key =
1659 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
1660 NSString* token = [defaults stringForKey:token_key];
1661
1662 if ([token length] > 0) {
1663 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
1664 [testing_policies setValue:token forKey:token_key];
1665 }
1666
Guillaume Jenkins57606d72020-08-13 17:32:551667 // If some policies were set, commit them to the app's registration defaults.
1668 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:401669 NSDictionary* registration_defaults =
1670 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
1671 [defaults registerDefaults:registration_defaults];
1672 }
1673
sdefresne14900ee2015-11-27 14:43:211674 // Freeform commandline flags. These are added last, so that any flags added
1675 // earlier in this function take precedence.
1676 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
1677 base::CommandLine::StringVector flags;
1678 // Append an empty "program" argument.
1679 flags.push_back("");
1680
1681 // The number of flags corresponds to the number of text fields in
1682 // Experimental.plist.
1683 const int kNumFreeformFlags = 5;
1684 for (int i = 1; i <= kNumFreeformFlags; ++i) {
1685 NSString* key =
1686 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
1687 NSString* flag = [defaults stringForKey:key];
1688 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:331689 // iOS keyboard replaces -- with —, so undo that.
1690 flag = [flag stringByReplacingOccurrencesOfString:@"—"
1691 withString:@"--"
1692 options:0
1693 range:NSMakeRange(0, 1)];
1694 // To make things easier, allow flags with no dashes by prepending them
1695 // here. This also allows for flags that just have one dash if they
1696 // exist.
1697 if (![flag hasPrefix:@"-"]) {
1698 flag = [@"--" stringByAppendingString:flag];
1699 }
sdefresne14900ee2015-11-27 14:43:211700 flags.push_back(base::SysNSStringToUTF8(flag));
1701 }
1702 }
1703
1704 base::CommandLine temp_command_line(flags);
1705 command_line->AppendArguments(temp_command_line, false);
1706 }
msardafc76f662017-02-24 12:46:281707
justincohendacc85d2017-06-28 23:34:101708 // Populate command line flag for 3rd party keyboard omnibox workaround.
1709 NSString* enableThirdPartyKeyboardWorkaround =
1710 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
1711 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
1712 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
1713 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
1714 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
1715 }
1716
Sylvain Defresned3cd8d92022-01-18 13:35:081717 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:211718}
1719
sdefresne14900ee2015-11-27 14:43:211720void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
1721 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:181722 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:111723 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:531724 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:211725}
1726
jkrcalbf073372016-07-29 07:21:311727std::vector<std::string> RegisterAllFeatureVariationParameters(
1728 flags_ui::FlagsStorage* flags_storage,
1729 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:181730 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
1731 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:311732}
1733
sdefresne14900ee2015-11-27 14:43:211734void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
1735 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:501736 base::Value::List& supported_entries,
1737 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:181738 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:211739 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:511740 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:211741}
1742
1743void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
1744 const std::string& internal_name,
1745 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:181746 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
1747 enable);
sdefresne14900ee2015-11-27 14:43:211748}
1749
1750void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:181751 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:211752}
1753
Nicolas MacBeth972e2592023-02-23 15:22:091754bool IsRestartNeededToCommitChanges() {
1755 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
1756}
1757
sdefresne14900ee2015-11-27 14:43:211758namespace testing {
1759
Elly Fong-Jones323ab1092021-08-23 22:36:311760base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
1761 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:531762 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:211763}
1764
1765} // namespace testing