blob: e247ccd4c9657ddf092c2b801b3df4e3bab54186 [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"
Ewann Pelle903a05e62023-02-01 17:51:0681#import "ios/chrome/browser/tabs/features.h"
Aliona DANGLA3de5d242023-02-15 16:52:3082#import "ios/chrome/browser/tabs/inactive_tabs/features.h"
Zhixiang Teoh40027a22022-07-28 03:24:3483#import "ios/chrome/browser/text_selection/text_selection_util.h"
Hira Mahmoodb0e5f412022-09-01 19:41:0584#import "ios/chrome/browser/ui/app_store_rating/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5785#import "ios/chrome/browser/ui/autofill/features.h"
adamta22a4d502020-05-21 03:12:2186#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h"
Javier Ernesto Flores Robles209b2822021-03-25 19:16:5087#import "ios/chrome/browser/ui/default_promo/default_browser_utils.h"
Ewann1a9d33d2021-06-14 11:12:2488#import "ios/chrome/browser/ui/download/features.h"
Chris Lu438e1c052022-08-17 02:57:0089#import "ios/chrome/browser/ui/first_run/trending_queries_field_trial.h"
Kurt Horimoto4da682b022018-04-12 07:43:3590#import "ios/chrome/browser/ui/fullscreen/fullscreen_features.h"
Louis Romeroc18612b962022-10-07 12:08:1491#import "ios/chrome/browser/ui/keyboard/features.h"
adamta273568472020-12-04 23:53:5792#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
adamta8886def42023-03-07 19:45:2393#import "ios/chrome/browser/ui/ntp/new_tab_page_retention_field_trial_constants.h"
Christian Xub8c06cd2022-04-29 20:55:0194#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Aliona DANGLAa5257ccc2022-08-29 14:01:4995#import "ios/chrome/browser/ui/open_in/features.h"
Robbie Gibson686c56732021-10-04 17:11:4596#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Benjamin Williams3d3a2ec2022-09-13 20:01:2697#import "ios/chrome/browser/ui/post_restore_signin/features.h"
gogerald0ff29e52021-02-03 18:56:1998#import "ios/chrome/browser/ui/start_surface/start_surface_features.h"
Kurt Horimoto79d590b2018-09-12 19:09:2899#import "ios/chrome/browser/ui/toolbar_container/toolbar_container_features.h"
Gauthier Ambard999088c2022-09-13 08:36:57100#import "ios/chrome/browser/ui/ui_feature_flags.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
Mohammad Refaatab6bee62022-05-16 16:31:15246const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoFullWithTitle[] = {
adamtadb0bfc62022-08-01 17:37:47247 {kDiscoverFeedTopSyncPromoStyleFullWithTitle, "true"},
248 {kDiscoverFeedTopSyncPromoStyleCompact, "false"}};
Mohammad Refaatab6bee62022-05-16 16:31:15249const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompact[] = {
adamtadb0bfc62022-08-01 17:37:47250 {kDiscoverFeedTopSyncPromoStyleFullWithTitle, "false"},
251 {kDiscoverFeedTopSyncPromoStyleCompact, "true"}};
252
Mohammad Refaatab6bee62022-05-16 16:31:15253const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = {
254 {"Full with title", kDiscoverFeedTopSyncPromoFullWithTitle,
255 std::size(kDiscoverFeedTopSyncPromoFullWithTitle), nullptr},
256 {"Compact", kDiscoverFeedTopSyncPromoCompact,
257 std::size(kDiscoverFeedTopSyncPromoCompact), nullptr}};
258
adamta4a6f2fd22023-02-13 17:37:14259const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = {
260 {kDisableStickyHeaderForFollowingFeed, "true"}};
261const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = {
262 {kOverrideFeedHeaderHeight, "43"}};
263const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = {
264 {kDisableStickyHeaderForFollowingFeed, "true"},
265 {kOverrideFeedHeaderHeight, "43"}};
266
267const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = {
268 {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader,
269 std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr},
270 {"Reduced header height", kFeedHeaderSettingReducedHeight,
271 std::size(kFeedHeaderSettingReducedHeight), nullptr},
272 {"All improvements", kFeedHeaderSettingAllImprovements,
273 std::size(kFeedHeaderSettingAllImprovements), nullptr}};
274
gogerald53c6e7a2021-04-15 22:07:35275const FeatureEntry::FeatureParam kStartSurfaceTenSecondsShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08276 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35277 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
278const FeatureEntry::FeatureParam kStartSurfaceTenSecondsHideShortcuts[] = {
Chris Lu5470417c2021-03-03 18:43:08279 {kStartSurfaceHideShortcutsParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35280 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
281const FeatureEntry::FeatureParam kStartSurfaceTenSecondsReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08282 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35283 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
284const FeatureEntry::FeatureParam
285 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab[] = {
286 {kStartSurfaceShrinkLogoParam, "true"},
287 {kStartSurfaceReturnToRecentTabParam, "true"},
288 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
289const FeatureEntry::FeatureParam
290 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab[] = {
291 {kStartSurfaceHideShortcutsParam, "true"},
292 {kStartSurfaceReturnToRecentTabParam, "true"},
293 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
294const FeatureEntry::FeatureParam kStartSurfaceOneHourShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08295 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35296 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
297const FeatureEntry::FeatureParam kStartSurfaceOneHourHideShortcuts[] = {
298 {kStartSurfaceHideShortcutsParam, "true"},
299 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
300const FeatureEntry::FeatureParam kStartSurfaceOneHourReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08301 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35302 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
303const FeatureEntry::FeatureParam
304 kStartSurfaceOneHourShrinkLogoReturnToRecentTab[] = {
305 {kStartSurfaceShrinkLogoParam, "true"},
306 {kStartSurfaceReturnToRecentTabParam, "true"},
307 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
308const FeatureEntry::FeatureParam
309 kStartSurfaceOneHourHideShortcutsReturnToRecentTab[] = {
310 {kStartSurfaceHideShortcutsParam, "true"},
311 {kStartSurfaceReturnToRecentTabParam, "true"},
312 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08313
gogerald0e39e3aa2021-02-10 18:41:23314const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
gogerald53c6e7a2021-04-15 22:07:35315 {"10s:Show Return to Recent Tab tile",
316 kStartSurfaceTenSecondsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53317 std::size(kStartSurfaceTenSecondsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35318 {"10s:Shrink Logo", kStartSurfaceTenSecondsShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53319 std::size(kStartSurfaceTenSecondsShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35320 {"10s:Hide Shortcuts", kStartSurfaceTenSecondsHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53321 std::size(kStartSurfaceTenSecondsHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35322 {"10s:Shrink Logo and show Return to Recent Tab tile",
323 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53324 std::size(kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35325 {"10s:Hide Shortcuts and show Return to Recent Tab tile",
326 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53327 std::size(kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35328 {"1h:Show Return to Recent Tab tile", kStartSurfaceOneHourReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53329 std::size(kStartSurfaceOneHourReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35330 {"1h:Shrink Logo", kStartSurfaceOneHourShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53331 std::size(kStartSurfaceOneHourShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35332 {"1h:Hide Shortcuts", kStartSurfaceOneHourHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53333 std::size(kStartSurfaceOneHourHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35334 {"1h:Shrink Logo and show Return to Recent Tab tile",
335 kStartSurfaceOneHourShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53336 std::size(kStartSurfaceOneHourShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35337 {"1h:Hide Shortcuts and show Return to Recent Tab tile",
338 kStartSurfaceOneHourHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53339 std::size(kStartSurfaceOneHourHideShortcutsReturnToRecentTab), nullptr},
Chris Lu5470417c2021-03-03 18:43:08340};
gogerald0e39e3aa2021-02-10 18:41:23341
Chris Lu8e308dc2022-09-06 16:59:40342const FeatureEntry::FeatureParam kModuleRefreshMinimizeSpacing[] = {
343 {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"}};
344const FeatureEntry::FeatureParam kModuleRefreshNoHeaders[] = {
Chris Lu264e2372022-09-08 13:12:57345 {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"},
Chris Lu8e308dc2022-09-06 16:59:40346 {kContentSuggestionsUIModuleRefreshRemoveHeadersParam, "true"}};
347
348const FeatureEntry::FeatureVariation kModuleRefreshVariations[] = {
349 {"Enabled with minimized spacing", kModuleRefreshMinimizeSpacing,
350 std::size(kModuleRefreshMinimizeSpacing), nullptr},
Chris Lu264e2372022-09-08 13:12:57351 {"Enabled with no headers and minimized spacing", kModuleRefreshNoHeaders,
Chris Lu8e308dc2022-09-06 16:59:40352 std::size(kModuleRefreshNoHeaders), nullptr},
353};
354
Ed Chin91e44992022-07-27 13:42:34355#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26356// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01357const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04358 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
359 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01360 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04361 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01362const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04363 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
364 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01365 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04366 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01367const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04368 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
369 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01370 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04371 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01372const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04373 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
374 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01375 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04376 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01377const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04378 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
379 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01380 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
381 {kBackgroundRefreshIntervalInSeconds, "0"}};
382const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04383 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
384 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01385 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
386 {kBackgroundRefreshIntervalInSeconds, "0"}};
387const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
388 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
389 {kEnableRecurringBackgroundRefreshSchedule, "false"},
390 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
391 {kBackgroundRefreshIntervalInSeconds, "0"}};
392const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
393 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
394 {kEnableRecurringBackgroundRefreshSchedule, "true"},
395 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
396 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04397
Ed Chin178ec2a2023-02-10 22:21:26398// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04399const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01400 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
401 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
402 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
403 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
404 {"1hr Interval 1hr Max Age Recurring",
405 kOneHourIntervalOneHourMaxAgeRecurring,
406 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
407 {"4hr Interval 6hr Max Age Recurring",
408 kFourHourIntervalSixHourMaxAgeRecurring,
409 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
410 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
411 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
412 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
413 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
414 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
415 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
416 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
417 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04418};
Ed Chin91e44992022-07-27 13:42:34419#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04420
Ed Chin178ec2a2023-02-10 22:21:26421// Feed Foreground Refresh Feature Params.
422const FeatureEntry::FeatureParam kFeedRefreshPostFeedSessionOnly[] = {
423 {kEnableFeedRefreshPostFeedSession, "true"},
424 {kEnableFeedRefreshOnAppBackgrounding, "false"}};
425const FeatureEntry::FeatureParam kFeedRefreshOnAppBackgroundingOnly[] = {
426 {kEnableFeedRefreshPostFeedSession, "false"},
427 {kEnableFeedRefreshOnAppBackgrounding, "true"}};
428const FeatureEntry::FeatureParam kFeedForegroundRefreshAll[] = {
429 {kEnableFeedRefreshPostFeedSession, "true"},
430 {kEnableFeedRefreshOnAppBackgrounding, "true"}};
431
432// Feed Foreground Refresh Feature Variations.
433const FeatureEntry::FeatureVariation kFeedForegroundRefreshVariations[] = {
434 {"Post Feed session", kFeedRefreshPostFeedSessionOnly,
435 std::size(kFeedRefreshPostFeedSessionOnly), nullptr},
436 {"On app backgrounding", kFeedRefreshOnAppBackgroundingOnly,
437 std::size(kFeedRefreshOnAppBackgroundingOnly), nullptr},
438 {"All foreground refresh methods", kFeedForegroundRefreshAll,
439 std::size(kFeedForegroundRefreshAll), nullptr},
440};
441
Chris Luc9a5cb12022-07-20 16:11:39442const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsers[] = {
Chris Lu85e8cc642022-09-23 20:27:58443 {kTrendingQueriesHideShortcutsParam, "false"}};
Chris Luc9a5cb12022-07-20 16:11:39444const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsersHideShortcuts[] =
Chris Lu85e8cc642022-09-23 20:27:58445 {{kTrendingQueriesHideShortcutsParam, "true"}};
Chris Luc9a5cb12022-07-20 16:11:39446const FeatureEntry::FeatureParam kTrendingQueriesEnableFeedDisabled[] = {
447 {kTrendingQueriesHideShortcutsParam, "false"},
448 {kTrendingQueriesDisabledFeedParam, "true"},
Chris Lu85e8cc642022-09-23 20:27:58449};
Chris Luc9a5cb12022-07-20 16:11:39450
451const FeatureEntry::FeatureVariation kTrendingQueriesModuleVariations[] = {
452 {"Enabled All Users", kTrendingQueriesEnableAllUsers,
453 std::size(kTrendingQueriesEnableAllUsers), nullptr},
454 {"Enabled All Users Hide Shortcuts",
455 kTrendingQueriesEnableAllUsersHideShortcuts,
456 std::size(kTrendingQueriesEnableAllUsersHideShortcuts), nullptr},
457 {"Enabled Disabled Feed", kTrendingQueriesEnableFeedDisabled,
458 std::size(kTrendingQueriesEnableFeedDisabled), nullptr},
Chris Luc9a5cb12022-07-20 16:11:39459};
460
Igor Ruvinov44fed9f2022-06-10 22:51:42461const FeatureEntry::FeatureParam kDmTokenDeletionParam[] = {{"forced", "true"}};
462const FeatureEntry::FeatureVariation kDmTokenDeletionVariation[] = {
463 {"(Forced)", kDmTokenDeletionParam, std::size(kDmTokenDeletionParam),
464 nullptr}};
465
Aliona DANGLA00ae7db2022-10-04 16:58:50466const FeatureEntry::FeatureParam kOpenInDownloadInShareButton[] = {
Ewann Pelleec8ef892022-10-20 13:13:58467 {kOpenInDownloadParameterName, kOpenInDownloadInShareButtonParam}};
Aliona DANGLAa5257ccc2022-08-29 14:01:49468const FeatureEntry::FeatureParam kOpenInDownloadWithWKDownload[] = {
Ewann Pelleec8ef892022-10-20 13:13:58469 {kOpenInDownloadParameterName, kOpenInDownloadWithWKDownloadParam}};
Aliona DANGLAa5257ccc2022-08-29 14:01:49470const FeatureEntry::FeatureParam kOpenInDownloadWithV2[] = {
Ewann Pelleec8ef892022-10-20 13:13:58471 {kOpenInDownloadParameterName, kOpenInDownloadWithV2Param}};
472
Aliona DANGLAa5257ccc2022-08-29 14:01:49473const FeatureEntry::FeatureVariation kOpenInDownloadVariations[] = {
Aliona DANGLA00ae7db2022-10-04 16:58:50474 {"With legacy download", kOpenInDownloadInShareButton,
475 std::size(kOpenInDownloadInShareButton), nullptr},
Aliona DANGLAa5257ccc2022-08-29 14:01:49476 {"With WKDownload", kOpenInDownloadWithWKDownload,
477 std::size(kOpenInDownloadWithWKDownload), nullptr},
478 {"With V2", kOpenInDownloadWithV2, std::size(kOpenInDownloadWithV2),
479 nullptr},
480};
481
Ewann Pelle87019cdf2023-02-17 14:28:16482const FeatureEntry::FeatureParam kEnablePinnedTabsOverflow[] = {
483 {kEnablePinnedTabsOverflowParam, "true"}};
Ewann Pelle3774cac532022-11-15 10:12:37484
485const FeatureEntry::FeatureVariation kEnablePinnedTabsVariations[] = {
Ewann Pelle87019cdf2023-02-17 14:28:16486 {"+ overflow entry", kEnablePinnedTabsOverflow,
487 std::size(kEnablePinnedTabsOverflow), nullptr},
Ewann Pelle3774cac532022-11-15 10:12:37488};
489
ginnnnnnny591a4972022-09-01 16:10:27490const FeatureEntry::FeatureParam kAutofillBrandingIOSMonotone[] = {
491 {autofill::features::kAutofillBrandingIOSParam, "true"}};
492const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = {
493 {"(Monotone)", kAutofillBrandingIOSMonotone,
494 std::size(kAutofillBrandingIOSMonotone), nullptr}};
495
Scott Yodercb2fe632022-09-12 15:28:35496const FeatureEntry::FeatureParam kIOSNewPostRestoreExperienceMinimal[] = {
Benjamin Williams3d3a2ec2022-09-13 20:01:26497 {post_restore_signin::features::kIOSNewPostRestoreExperienceParam, "true"}};
Scott Yodercb2fe632022-09-12 15:28:35498const FeatureEntry::FeatureVariation kIOSNewPostRestoreExperienceVariations[] =
499 {{"minimal", kIOSNewPostRestoreExperienceMinimal,
500 std::size(kIOSNewPostRestoreExperienceMinimal), nullptr}};
501
adamta8886def42023-03-07 19:45:23502const FeatureEntry::FeatureParam
503 kNewTabPageRetentionPopularSitesIncludePopularApps[] = {
504 {ntp_tiles::kNewTabPageRetentionParam, "1"}};
505const FeatureEntry::FeatureParam
506 kNewTabPageRetentionPopularSitesExcludePopularApps[] = {
507 {ntp_tiles::kNewTabPageRetentionParam, "2"}};
508const FeatureEntry::FeatureParam kNewTabPageRetentionTileAblationHideAll[] = {
509 {ntp_tiles::kNewTabPageRetentionParam, "4"}};
510const FeatureEntry::FeatureParam kNewTabPageRetentionTileAblationHideMVTOnly[] =
511 {{ntp_tiles::kNewTabPageRetentionParam, "5"}};
512const FeatureEntry::FeatureVariation kNewTabPageRetentionVariations[] = {
513 {"- Improved popular sites, Include popular apps",
514 kNewTabPageRetentionPopularSitesIncludePopularApps,
515 std::size(kNewTabPageRetentionPopularSitesIncludePopularApps), nullptr},
516 {"- Improved popular sites, Exclude popular apps",
517 kNewTabPageRetentionPopularSitesExcludePopularApps,
518 std::size(kNewTabPageRetentionPopularSitesExcludePopularApps), nullptr},
519 {"- Tile ablation, Hide all", kNewTabPageRetentionTileAblationHideAll,
520 std::size(kNewTabPageRetentionTileAblationHideAll), nullptr},
521 {"- Tile ablation, Hide MVT only",
522 kNewTabPageRetentionTileAblationHideMVTOnly,
523 std::size(kNewTabPageRetentionTileAblationHideMVTOnly), nullptr}};
Benjamin Williamsaa8da8142022-11-14 19:51:03524
Elmehdi Rahmaoui3d549fc2022-10-20 14:31:28525const FeatureEntry::FeatureParam kEnableExperienceKitMapsWithSrp[] = {
526 {kExperienceKitMapsVariationName, kEnableExperienceKitMapsVariationSrp}};
527const FeatureEntry::FeatureVariation kEnableExperienceKitMapsVariations[] = {
528 {"with search result page", kEnableExperienceKitMapsWithSrp,
529 std::size(kEnableExperienceKitMapsWithSrp), nullptr}};
530
adamta3811f9182022-10-24 17:49:33531const FeatureEntry::FeatureParam kFollowingFeedSortTypeGroupedByPublisher[] = {
532 {kFollowingFeedDefaultSortTypeGroupedByPublisher, "true"},
533 {kFollowingFeedDefaultSortTypeSortByLatest, "false"}};
534const FeatureEntry::FeatureParam kFollowingFeedSortTypeSortByLatest[] = {
535 {kFollowingFeedDefaultSortTypeGroupedByPublisher, "false"},
536 {kFollowingFeedDefaultSortTypeSortByLatest, "true"}};
537
538const FeatureEntry::FeatureVariation kFollowingFeedDefaultSortTypeVariations[] =
539 {{"Grouped by Publisher", kFollowingFeedSortTypeGroupedByPublisher,
540 std::size(kFollowingFeedSortTypeGroupedByPublisher), nullptr},
541 {"Sort by Latest", kFollowingFeedSortTypeSortByLatest,
542 std::size(kFollowingFeedSortTypeSortByLatest), nullptr}};
543
Quentin Pubert154fc6a2023-01-09 15:58:58544const FeatureEntry::FeatureParam kNativeFindInPageWithChromeFindBar[] = {
545 {kNativeFindInPageParameterName, kNativeFindInPageWithChromeFindBarParam}};
546const FeatureEntry::FeatureVariation kNativeFindInPageVariations[] = {
547 {"With Chrome Find Bar", kNativeFindInPageWithChromeFindBar,
548 std::size(kNativeFindInPageWithChromeFindBar), nullptr}};
549
Louis Romero93e9b50a2023-01-26 01:46:12550const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
551 {kTabInactivityThresholdParameterName,
552 kTabInactivityThresholdOneWeekParam}};
553const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
554 {kTabInactivityThresholdParameterName,
555 kTabInactivityThresholdTwoWeeksParam}};
556const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
557 {kTabInactivityThresholdParameterName,
558 kTabInactivityThresholdThreeWeeksParam}};
559
560const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
561 {"One week", kTabInactivityThresholdOneWeek,
562 std::size(kTabInactivityThresholdOneWeek), nullptr},
563 {"Two weeks", kTabInactivityThresholdTwoWeeks,
564 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
565 {"Three weeks", kTabInactivityThresholdThreeWeeks,
566 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
567};
568
Huiting Yud7d2a5322023-02-09 21:14:22569const FeatureEntry::FeatureParam
570 kCredentialProviderExtensionPromoOnPasswordSaved[] = {
571 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
572const FeatureEntry::FeatureParam
573 kCredentialProviderExtensionPromoOnPasswordCopied[] = {
574 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}};
575const FeatureEntry::FeatureParam
576 kCredentialProviderExtensionPromoOnLoginWithAutofill[] = {
577 {kCredentialProviderExtensionPromoOnLoginWithAutofillParam, "true"}};
578
579const FeatureEntry::FeatureVariation
580 kCredentialProviderExtensionPromoVariations[] = {
581 {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved,
582 std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr},
583 {"On password copied",
584 kCredentialProviderExtensionPromoOnPasswordCopied,
585 std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr},
586 {"On successful login with autofill",
587 kCredentialProviderExtensionPromoOnLoginWithAutofill,
588 std::size(kCredentialProviderExtensionPromoOnLoginWithAutofill),
589 nullptr},
590};
591
Olivier ROBINfd3887b72023-02-23 14:45:42592const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
593 {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
594const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
595 {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
596 std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr}};
597
Olivier ROBIN2ca64952023-02-23 17:11:48598const FeatureEntry::FeatureParam kAddToHomeScreenDisableIncognito[] = {
599 {kAddToHomeScreenDisableIncognitoParam, "true"}};
600const FeatureEntry::FeatureVariation kAddToHomeScreenVariations[] = {
601 {"Disable on incognito", kAddToHomeScreenDisableIncognito,
602 std::size(kAddToHomeScreenDisableIncognito), nullptr}};
603
ginnnnnnny75903622023-03-01 18:00:00604const FeatureEntry::FeatureParam kBringYourOwnTabsIOSBottomMessage[] = {
605 {kBringYourOwnTabsIOSParam, "true"}};
606const FeatureEntry::FeatureVariation kBringYourOwnTabsIOSVariations[] = {
607 {"with bottom message on tab grid", kBringYourOwnTabsIOSBottomMessage,
608 std::size(kBringYourOwnTabsIOSBottomMessage), nullptr}};
609
Cooper Knaak1e026562017-07-26 05:22:28610// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21611// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28612// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
613// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21614// macro for this type supplying the command line to the macro.
615// . MULTI_VALUE: a list of choices, the first of which should correspond to a
616// deactivated state for this lab (i.e. no command line option). To specify
617// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
618// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28619// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
620// either enabled, disabled, or uses the default value of the associated
621// base::Feature instance. To specify this type of entry use the macro
622// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
623// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
624// base::Feature instance. Choices corresponding to the default state, a
625// universally enabled state, and a universally disabled state are
626// automatically included. To specify this type of entry use the macro
627// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
628// the array of choices.
629//
sdefresne14900ee2015-11-27 14:43:21630// See the documentation of FeatureEntry for details on the fields.
631//
632// When adding a new choice, add it to the end of the list.
633const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28634 {"in-product-help-demo-mode-choice",
635 flag_descriptions::kInProductHelpDemoModeName,
636 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
637 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23638 feature_engagement::kIPHDemoMode,
639 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09640 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22641 {"enable-autofill-credit-card-upload",
642 flag_descriptions::kAutofillCreditCardUploadName,
643 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24644 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23645 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
646 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
647 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51648 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:23649 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
650 {"wallet-service-use-sandbox",
651 flag_descriptions::kWalletServiceUseSandboxName,
652 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
653 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
654 autofill::switches::kWalletServiceUseSandbox,
655 "1",
656 autofill::switches::kWalletServiceUseSandbox,
657 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:59658 {"show-autofill-type-predictions",
659 flag_descriptions::kShowAutofillTypePredictionsName,
660 flag_descriptions::kShowAutofillTypePredictionsDescription,
661 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:50662 FEATURE_VALUE_TYPE(
663 autofill::features::test::kAutofillShowTypePredictions)},
Vidhan Jaincbb3d53f2023-01-23 19:13:26664 {"autofill-account-profiles-union-view",
665 flag_descriptions::kAutofillAccountProfilesUnionViewName,
666 flag_descriptions::kAutofillAccountProfilesUnionViewDescription,
667 flags_ui::kOsIos,
668 FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfilesUnionView)},
Olivier Robin3d60411622018-02-23 10:03:22669 {"autofill-ios-delay-between-fields",
670 flag_descriptions::kAutofillIOSDelayBetweenFieldsName,
671 flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription,
672 flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)},
Benjamin Williamsdf18e7e2022-10-03 18:46:05673 {"fullscreen-promos-manager-skip-internal-limits",
674 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
675 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
676 flags_ui::kOsIos,
677 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:14678 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:53679 flag_descriptions::kFullscreenSmoothScrollingName,
680 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
681 FEATURE_VALUE_TYPE(fullscreen::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:06682 {"webpage-default-zoom-from-dynamic-type",
683 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
684 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
685 flags_ui::kOsIos,
686 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:56687 {"webpage-alternative-text-zoom",
688 flag_descriptions::kWebPageAlternativeTextZoomName,
689 flag_descriptions::kWebPageAlternativeTextZoomDescription,
690 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:34691 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
692 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
693 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Kurt Horimoto79d590b2018-09-12 19:09:28694 {"toolbar-container", flag_descriptions::kToolbarContainerName,
695 flag_descriptions::kToolbarContainerDescription, flags_ui::kOsIos,
696 FEATURE_VALUE_TYPE(toolbar_container::kToolbarContainerEnabled)},
Stepan Khapugincc4e9842019-01-23 13:38:13697 {"omnibox-ui-max-autocomplete-matches",
698 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
699 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
700 flags_ui::kOsIos,
701 FEATURE_WITH_PARAMS_VALUE_TYPE(
702 omnibox::kUIExperimentMaxAutocompleteMatches,
703 kOmniboxUIMaxAutocompleteMatchesVariations,
704 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:35705 {"omnibox-local-history-zero-suggest-beyond-ntp",
706 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
707 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
708 flags_ui::kOsIos,
709 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:54710 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
711 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
712 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
713 kOmniboxMaxZPSMatchesVariations,
714 "OmniboxMaxZPSVariations")},
Stepan Khapugind9876842023-01-27 17:59:45715
716 {"omnibox-most-visited-tiles-on-srp",
717 flag_descriptions::kOmniboxMostVisitedTilesOnSrpName,
718 flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription,
719 flags_ui::kOsIos,
720 FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)},
Caitlin Fischer43edd90a2019-05-01 13:24:30721 {"autofill-use-mobile-label-disambiguation",
722 flag_descriptions::kAutofillUseMobileLabelDisambiguationName,
723 flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription,
724 flags_ui::kOsIos,
Caitlin Fischer37e01232019-05-24 13:05:45725 FEATURE_WITH_PARAMS_VALUE_TYPE(
726 autofill::features::kAutofillUseMobileLabelDisambiguation,
727 kAutofillUseMobileLabelDisambiguationVariations,
728 "AutofillUseMobileLabelDisambiguation")},
Mike Doughertyb6c770d2019-09-13 22:56:46729 {"ios-breadcrumbs", flag_descriptions::kLogBreadcrumbsName,
730 flag_descriptions::kLogBreadcrumbsDescription, flags_ui::kOsIos,
Jesse McKenna85c1a59f2021-05-05 19:08:30731 FEATURE_VALUE_TYPE(breadcrumbs::kLogBreadcrumbs)},
Jérôme Lebelc374fdd2019-09-27 10:36:48732 {"force-startup-signin-promo",
733 flag_descriptions::kForceStartupSigninPromoName,
734 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:29735 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tanmoy Mollik429d21a2022-11-28 15:42:06736 {"identity-status-consistency",
737 flag_descriptions::kIdentityStatusConsistencyName,
738 flag_descriptions::kIdentityStatusConsistencyDescription, flags_ui::kOsIos,
739 FEATURE_VALUE_TYPE(switches::kIdentityStatusConsistency)},
Yoichi Osato7ae11752021-03-16 03:27:22740 {"restore-session-from-cache",
741 flag_descriptions::kRestoreSessionFromCacheName,
742 flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos,
Justin Cohen3ec2522c2021-04-23 18:23:49743 FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)},
Roberto Mourab87b9722020-06-17 17:12:09744 {"expanded-tab-strip", flag_descriptions::kExpandedTabStripName,
745 flag_descriptions::kExpandedTabStripDescription, flags_ui::kOsIos,
746 FEATURE_VALUE_TYPE(kExpandedTabStrip)},
Tommy Martino6b4eb7e2020-06-25 18:25:41747 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
748 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
749 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:13750#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:45751 {"screen-time-integration-ios",
752 flag_descriptions::kScreenTimeIntegrationName,
753 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
754 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:13755#endif
Nazerke3e993f72020-09-21 13:00:06756 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
757 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
758 FEATURE_VALUE_TYPE(kModernTabStrip)},
Eugene Butf869bff2020-12-10 01:16:55759 {"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName,
760 flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos,
761 FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)},
Chris Lub17195f2020-12-10 20:49:14762 {"default-browser-fullscreen-promo-experiment",
763 flag_descriptions::kDefaultBrowserFullscreenPromoExperimentName,
764 flag_descriptions::kDefaultBrowserFullscreenPromoExperimentDescription,
765 flags_ui::kOsIos,
Javier Ernesto Flores Robles159414232021-06-16 14:29:59766 FEATURE_WITH_PARAMS_VALUE_TYPE(
767 kDefaultBrowserFullscreenPromoExperiment,
768 kDefaultBrowserFullscreenPromoExperimentVariations,
769 "IOSDefaultBrowserFullscreenPromoExperiment")},
Cheick Cisse76ade3d2020-12-16 00:15:11770 {"ios-shared-highlighting-color-change",
771 flag_descriptions::kIOSSharedHighlightingColorChangeName,
772 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:07773 flags_ui::kOsIos,
774 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:34775 {"ios-shared-highlighting-v2",
776 flag_descriptions::kIOSSharedHighlightingV2Name,
777 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
778 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Stepan Khapugin04341202021-01-07 12:22:45779 {"omnibox-new-textfield-implementation",
780 flag_descriptions::kOmniboxNewImplementationName,
781 flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos,
782 FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)},
Stepan Khapugin0be8f6d2022-09-21 20:22:26783 {"omnibox-on-focus-suggestions-contextual-web",
784 flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName,
785 flag_descriptions::
786 kOmniboxFocusTriggersContextualWebZeroSuggestDescription,
787 flags_ui::kOsIos,
788 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)},
789 {"omnibox-on-focus-suggestions-srp",
790 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName,
791 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription,
792 flags_ui::kOsIos,
793 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)},
Stepan Khapugin0da12382023-01-24 16:08:12794 {"omnibox-report-assisted-query-stats",
795 flag_descriptions::kOmniboxReportAssistedQueryStatsName,
796 flag_descriptions::kOmniboxReportAssistedQueryStatsDescription,
797 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)},
798 {"omnibox-report-searchbox-stats",
799 flag_descriptions::kOmniboxReportSearchboxStatsName,
800 flag_descriptions::kOmniboxReportSearchboxStatsDescription,
801 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)},
Stepan Khapuginecf128a92022-08-30 11:23:15802 {"omnibox-fuzzy-url-suggestions",
803 flag_descriptions::kOmniboxFuzzyUrlSuggestionsName,
804 flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription,
805 flags_ui::kOsIos,
806 FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)},
gogerald0ff29e52021-02-03 18:56:19807 {"start-surface", flag_descriptions::kStartSurfaceName,
808 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:23809 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
810 kStartSurfaceVariations,
811 "StartSurface")},
Vidhan Jain451b4752021-07-15 10:16:42812 {"autofill-address-verification-in-save-prompt",
813 flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName,
814 flag_descriptions::
815 kEnableAutofillAddressSavePromptAddressVerificationDescription,
816 flags_ui::kOsIos,
817 FEATURE_VALUE_TYPE(
818 autofill::features::
819 kAutofillAddressProfileSavePromptAddressVerificationSupport)},
Viktor Semeniuk68e794a2021-03-24 10:23:25820 {"filling-across-affiliated-websites",
821 flag_descriptions::kFillingAcrossAffiliatedWebsitesName,
822 flag_descriptions::kFillingAcrossAffiliatedWebsitesDescription,
823 flags_ui::kOsIos,
824 FEATURE_VALUE_TYPE(
825 password_manager::features::kFillingAcrossAffiliatedWebsites)},
Side Yilmaz6c53f7102021-09-07 13:26:19826 {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName,
827 flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos,
828 FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)},
Nohemi Fernandezc00842a2021-07-26 11:47:34829 {"wait-threshold-seconds-for-capabilities-api",
830 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
831 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
832 flags_ui::kOsIos,
833 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Jared Saul2188f762021-08-02 21:22:23834 {"autofill-fill-merchant-promo-code-fields",
835 flag_descriptions::kAutofillFillMerchantPromoCodeFieldsName,
836 flag_descriptions::kAutofillFillMerchantPromoCodeFieldsDescription,
837 flags_ui::kOsIos,
838 FEATURE_VALUE_TYPE(
839 autofill::features::kAutofillFillMerchantPromoCodeFields)},
Sylvain Defresnedff67e42021-09-24 09:43:03840 {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName,
841 flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos,
842 FEATURE_VALUE_TYPE(kNewOverflowMenu)},
Robbie Gibsondf097a72022-09-05 08:17:18843 {"new-overflow-menu-alternate-iph",
844 flag_descriptions::kNewOverflowMenuAlternateIPHName,
845 flag_descriptions::kNewOverflowMenuAlternateIPHDescription,
846 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuAlternateIPH)},
Evan Bernstein0a85f332021-09-29 19:07:24847 {"use-lens-to-search-for-image",
848 flag_descriptions::kUseLensToSearchForImageName,
849 flag_descriptions::kUseLensToSearchForImageDescription, flags_ui::kOsIos,
Ali Juma02a9b7b2021-10-01 13:44:44850 FEATURE_VALUE_TYPE(kUseLensToSearchForImage)},
Jason Hu3830a072022-08-19 20:56:22851 {"enable-lens-in-home-screen-widget",
852 flag_descriptions::kEnableLensInHomeScreenWidgetName,
853 flag_descriptions::kEnableLensInHomeScreenWidgetDescription,
854 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)},
855 {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName,
856 flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos,
857 FEATURE_VALUE_TYPE(kEnableLensInKeyboard)},
858 {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName,
859 flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos,
860 FEATURE_VALUE_TYPE(kEnableLensInNTP)},
Anudeep Palanki403c907a2023-01-25 20:30:03861 {"enable-lens-context-menu-alt-text",
862 flag_descriptions::kEnableLensContextMenuAltTextName,
863 flag_descriptions::kEnableLensContextMenuAltTextDescription,
864 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)},
Jason Hu67cfb0f2022-11-14 20:21:44865 {"enable-lens-in-omnibox-copied-image",
866 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
867 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
868 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Benjamin Williamsbee6ab62022-02-28 18:09:40869 {"use-load-simulated-request-for-error-page-navigation",
Gauthier Ambard33cceaf2022-05-05 14:00:23870 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName,
871 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription,
Benjamin Williamsbee6ab62022-02-28 18:09:40872 flags_ui::kOsIos,
Gauthier Ambard33cceaf2022-05-05 14:00:23873 FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)},
Sergio Collazos9fcc6ed2021-10-06 00:58:03874 {"enable-disco-feed-endpoint",
875 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
876 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
877 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:11878 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Mohammad Refaatab6bee62022-05-16 16:31:15879 {"enable-discover-feed-top-sync-promo",
880 flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
881 flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
882 flags_ui::kOsIos,
883 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
884 kDiscoverFeedTopSyncPromoVariations,
885 "EnableDiscoverFeedTopSyncPromo")},
adamta4a6f2fd22023-02-13 17:37:14886 {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
887 flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
888 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
889 kFeedHeaderSettingsVariations,
890 "FeedHeaderSettings")},
Tommy Martino7393d762021-10-12 17:59:28891 {"shared-highlighting-amp",
892 flag_descriptions::kIOSSharedHighlightingAmpName,
893 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
894 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:28895 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:42896 commerce::flag_descriptions::kCommercePriceTrackingName,
897 commerce::flag_descriptions::kCommercePriceTrackingDescription,
898 flags_ui::kOsIos,
899 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
900 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:15901 "CommercePriceTracking")},
Tina Wang8058d5f2021-11-04 20:06:06902 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
903 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
904 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:54905 {"ntp-view-hierarchy-repair",
906 flag_descriptions::kNTPViewHierarchyRepairName,
907 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:20908 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Justin Cohen69cec682021-11-04 20:10:26909 {"synthesized-restore-session",
910 flag_descriptions::kSynthesizedRestoreSessionName,
911 flag_descriptions::kSynthesizedRestoreSessionDescription, flags_ui::kOsIos,
912 FEATURE_VALUE_TYPE(web::features::kSynthesizedRestoreSession)},
ginnnnnnnyee3036e2022-08-12 18:01:18913 {"ios-media-permissions-control",
914 flag_descriptions::kMediaPermissionsControlName,
915 flag_descriptions::kMediaPermissionsControlDescription, flags_ui::kOsIos,
916 FEATURE_VALUE_TYPE(web::features::kMediaPermissionsControl)},
Ewann8c7aadc2022-05-19 15:41:05917 {"use-sf-symbols", flag_descriptions::kUseSFSymbolsName,
918 flag_descriptions::kUseSFSymbolsDescription, flags_ui::kOsIos,
919 FEATURE_VALUE_TYPE(kUseSFSymbols)},
Veronique Nguyen11f8c9f2022-09-12 16:51:26920 {"enable-password-grouping", flag_descriptions::kPasswordsGroupingName,
921 flag_descriptions::kPasswordsGroupingDescription, flags_ui::kOsIos,
922 FEATURE_VALUE_TYPE(password_manager::features::kPasswordsGrouping)},
Ali Juma1429cf8a2022-02-09 15:31:01923 {"enable-fullscreen-api", flag_descriptions::kEnableFullscreenAPIName,
924 flag_descriptions::kEnableFullscreenAPIDescription, flags_ui::kOsIos,
925 FEATURE_VALUE_TYPE(web::features::kEnableFullscreenAPI)},
Joemer Ramosc34a30a02022-09-22 15:18:43926 {"enable-tailored-security-integration",
927 flag_descriptions::kTailoredSecurityIntegrationName,
928 flag_descriptions::kTailoredSecurityIntegrationDescription,
929 flags_ui::kOsIos,
930 FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)},
Vishwas Uppoor89303a92022-08-03 00:56:26931 {"autofill-enable-card-product-name",
932 flag_descriptions::kAutofillEnableCardProductNameName,
933 flag_descriptions::kAutofillEnableCardProductNameDescription,
934 flags_ui::kOsIos,
935 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Victor Hugo Vianna Silvaf0a44002022-02-16 10:38:00936 {"send-tab-to-self-signin-promo",
937 flag_descriptions::kSendTabToSelfSigninPromoName,
938 flag_descriptions::kSendTabToSelfSigninPromoDescription, flags_ui::kOsIos,
939 FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfSigninPromo)},
Siyu Anff02e742022-04-07 19:08:22940 {"autofill-enforce-delays-in-strike-database",
941 flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseName,
942 flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseDescription,
943 flags_ui::kOsIos,
944 FEATURE_VALUE_TYPE(
945 autofill::features::kAutofillEnforceDelaysInStrikeDatabase)},
Jared Saulb0473bd2022-04-20 00:03:41946 {"autofill-upstream-allow-additional-email-domains",
947 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName,
948 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription,
949 flags_ui::kOsIos,
950 FEATURE_VALUE_TYPE(
951 autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)},
952 {"autofill-upstream-allow-all-email-domains",
953 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName,
954 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription,
955 flags_ui::kOsIos,
956 FEATURE_VALUE_TYPE(
957 autofill::features::kAutofillUpstreamAllowAllEmailDomains)},
Raj Tb95d813542022-11-16 21:27:52958 {"enable-download-service-foreground-session",
959 flag_descriptions::kDownloadServiceForegroundSessionName,
960 flag_descriptions::kDownloadServiceForegroundSessionDescription,
961 flags_ui::kOsIos,
962 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:23963 {"enable-tflite-language-detection",
964 flag_descriptions::kTFLiteLanguageDetectionName,
965 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
966 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:20967 {"optimization-guide-debug-logs",
968 flag_descriptions::kOptimizationGuideDebugLogsName,
969 flag_descriptions::kOptimizationGuideDebugLogsDescription,
970 flags_ui::kOsIos,
971 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:55972 {"optimization-guide-push-notifications",
973 flag_descriptions::kOptimizationGuidePushNotificationClientName,
974 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
975 flags_ui::kOsIos,
976 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
Olivier Robinffe767c2022-04-21 13:13:23977 {"optimization-guide-model-downloading",
978 flag_descriptions::kOptimizationGuideModelDownloadingName,
979 flag_descriptions::kOptimizationGuideModelDownloadingDescription,
980 flags_ui::kOsIos,
981 FEATURE_VALUE_TYPE(
982 optimization_guide::features::kOptimizationGuideModelDownloading)},
983 {"optimization-target-prediction",
984 flag_descriptions::kOptimizationTargetPredictionName,
985 flag_descriptions::kOptimizationTargetPredictionDescription,
986 flags_ui::kOsIos,
987 FEATURE_VALUE_TYPE(
988 optimization_guide::features::kOptimizationTargetPrediction)},
Rushan Suleymanov727309602022-04-28 20:08:54989 {"sync-standalone-invalidations", flag_descriptions::kSyncInvalidationsName,
990 flag_descriptions::kSyncInvalidationsDescription, flags_ui::kOsIos,
991 FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidations)},
992 {"sync-standalone-invalidations-wallet-and-offer",
993 flag_descriptions::kSyncInvalidationsWalletAndOfferName,
994 flag_descriptions::kSyncInvalidationsWalletAndOfferDescription,
995 flags_ui::kOsIos,
996 FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidationsForWalletAndOffer)},
Christian Xub8c06cd2022-04-29 20:55:01997 {"suggestions-scrolling-ipad",
998 flag_descriptions::kEnableSuggestionsScrollingOnIPadName,
999 flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription,
1000 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)},
Stepan Khapuginfee136c62022-11-28 13:24:001001 {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName,
1002 flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos,
1003 FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)},
David Jean7a8fa702022-05-02 15:21:221004 {"experience-kit-calendar", flag_descriptions::kCalendarExperienceKitName,
1005 flag_descriptions::kCalendarExperienceKitDescription, flags_ui::kOsIos,
1006 FEATURE_VALUE_TYPE(kCalendarExperienceKit)},
Elmehdi Rahmaoui5a6273a22022-11-28 16:19:251007 {"intents-on-phone-number", flag_descriptions::kPhoneNumberName,
1008 flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331009 FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)},
Elmehdi Rahmaoui21e87d52022-11-09 15:00:551010 {"experience-kit-apple-calendar",
1011 flag_descriptions::kAppleCalendarExperienceKitName,
1012 flag_descriptions::kAppleCalendarExperienceKitDescription,
1013 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)},
Zhixiang Teoh82d17bb2022-06-16 21:00:391014 {"enable-expkit-calendar-text-classifier",
1015 flag_descriptions::kEnableExpKitCalendarTextClassifierName,
1016 flag_descriptions::kEnableExpKitCalendarTextClassifierDescription,
1017 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitCalendarTextClassifier)},
Raj T7db7a0e2022-11-17 16:33:081018 {"enable-expkit-text-classifier",
1019 flag_descriptions::kEnableExpKitTextClassifierName,
1020 flag_descriptions::kEnableExpKitTextClassifierDescription,
1021 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifier)},
Elmehdi Rahmaoui9d4ce40c62022-08-05 15:31:181022 {"experience-kit-maps", flag_descriptions::kMapsExperienceKitName,
1023 flag_descriptions::kMapsExperienceKitDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui3d549fc2022-10-20 14:31:281024 FEATURE_WITH_PARAMS_VALUE_TYPE(kMapsExperienceKit,
1025 kEnableExperienceKitMapsVariations,
1026 "IOSExperienceKitMaps")},
Elmehdi Rahmaouic699dc12022-10-12 11:17:051027 {"enable-long-press-surrounding-text",
1028 flag_descriptions::kLongPressSurroundingTextName,
1029 flag_descriptions::kLongPressSurroundingTextDescription, flags_ui::kOsIos,
1030 FEATURE_VALUE_TYPE(web::features::kLongPressSurroundingText)},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331031 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1032 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
1033 FEATURE_VALUE_TYPE(web::features::kOneTapForMaps)},
Mustafa Emre Acer4de8863a2022-05-03 22:17:011034 {"https-only-mode", flag_descriptions::kHttpsOnlyModeName,
1035 flag_descriptions::kHttpsOnlyModeDescription, flags_ui::kOsIos,
1036 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsOnlyMode)},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251037 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1038 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1039 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Benjamin Williams419c81e2022-05-04 18:33:221040 {"smart-sorting-new-overflow-menu",
1041 flag_descriptions::kSmartSortingNewOverflowMenuName,
1042 flag_descriptions::kSmartSortingNewOverflowMenuDescription,
1043 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSmartSortingNewOverflowMenu)},
Benjamin Williamsf721fc22023-01-10 23:28:251044 {"smart-sorting-price-tracking-destination",
1045 flag_descriptions::kSmartSortingPriceTrackingDestinationName,
1046 flag_descriptions::kSmartSortingPriceTrackingDestinationDescription,
1047 flags_ui::kOsIos,
1048 FEATURE_VALUE_TYPE(kSmartSortingPriceTrackingDestination)},
Scott Yoder10493562022-06-28 17:37:441049 {"new-overflow-menu-share-chrome-action",
1050 flag_descriptions::kNewOverflowMenuShareChromeActionName,
1051 flag_descriptions::kNewOverflowMenuShareChromeActionDescription,
1052 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuShareChromeAction)},
Alexander Tekleb4643812023-01-06 23:12:301053 {"autofill-enable-ranking-formula-address-profiles",
1054 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1055 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1056 flags_ui::kOsIos,
1057 FEATURE_VALUE_TYPE(
1058 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391059 {"autofill-enable-ranking-formula-credit-cards",
1060 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1061 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1062 flags_ui::kOsIos,
1063 FEATURE_VALUE_TYPE(
1064 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021065 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1066 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1067 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Tina Wang30df7172022-12-09 22:02:021068 {"enable-feed-bottom-sign-in-promo",
1069 flag_descriptions::kEnableFeedBottomSignInPromoName,
1070 flag_descriptions::kEnableFeedBottomSignInPromoDescription,
1071 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedBottomSignInPromo)},
1072 {"enable-feed-card-menu-sign-in-promo",
1073 flag_descriptions::kEnableFeedCardMenuSignInPromoName,
1074 flag_descriptions::kEnableFeedCardMenuSignInPromoDescription,
1075 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)},
Chris Lu7f024ed2c2022-05-27 23:11:271076 {"content-suggestions-ui-module-refresh",
1077 flag_descriptions::kContentSuggestionsUIModuleRefreshName,
1078 flag_descriptions::kContentSuggestionsUIModuleRefreshDescription,
Chris Lu8e308dc2022-09-06 16:59:401079 flags_ui::kOsIos,
Chris Lu85e8cc642022-09-23 20:27:581080 FEATURE_WITH_PARAMS_VALUE_TYPE(
1081 kContentSuggestionsUIModuleRefresh,
1082 kModuleRefreshVariations,
1083 kContentSuggestionsUIModuleRefreshFlagOverrideFieldTrialName)},
Olivier Robin058c1fad2022-05-31 18:24:061084 {"default-browser-intents-show-settings",
1085 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1086 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1087 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Igor Ruvinova43a66dc2022-06-09 21:57:451088 {"dm-token-deletion", flag_descriptions::kDmTokenDeletionName,
1089 flag_descriptions::kDmTokenDeletionDescription, flags_ui::kOsIos,
Igor Ruvinov44fed9f2022-06-10 22:51:421090 FEATURE_WITH_PARAMS_VALUE_TYPE(policy::features::kDmTokenDeletion,
1091 kDmTokenDeletionVariation,
1092 "DmTokenDeletion")},
Tommy Martinoad42be52022-06-13 11:51:191093 {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName,
1094 flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos,
1095 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)},
Theodor-Stefan Cristea6d087b82022-07-26 15:25:291096 {"ios-password-manager-cross-origin-iframe-support",
1097 flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportName,
1098 flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportDescription,
1099 flags_ui::kOsIos,
1100 FEATURE_VALUE_TYPE(password_manager::features::
1101 kIOSPasswordManagerCrossOriginIframeSupport)},
adamta8886def42023-03-07 19:45:231102 {"ios-new-tab-page-retention", flag_descriptions::kNewTabPageRetentionName,
1103 flag_descriptions::kNewTabPageRetentionDescription, flags_ui::kOsIos,
1104 FEATURE_WITH_PARAMS_VALUE_TYPE(ntp_tiles::kNewTabPageRetention,
1105 kNewTabPageRetentionVariations,
1106 ntp_tiles::kNewTabPageRetentionName)},
Christian Xud105a1352022-06-17 19:54:141107 {"omnibox-adaptive-suggestions-count",
1108 flag_descriptions::kAdaptiveSuggestionsCountName,
1109 flag_descriptions::kAdaptiveSuggestionsCountDescription, flags_ui::kOsIos,
1110 FEATURE_VALUE_TYPE(omnibox::kAdaptiveSuggestionsCount)},
Chris Lu2fd473f2022-06-28 13:38:201111 {"trending-queries-module", flag_descriptions::kTrendingQueriesModuleName,
1112 flag_descriptions::kTrendingQueriesModuleDescription, flags_ui::kOsIos,
Chris Lu85e8cc642022-09-23 20:27:581113 FEATURE_WITH_PARAMS_VALUE_TYPE(
1114 kTrendingQueriesModule,
1115 kTrendingQueriesModuleVariations,
1116 kTrendingQueriesFlagOverrideFieldTrialName)},
Nakul Vaidyaddfdfbc2022-06-28 23:43:321117 {"autofill-parse-iban-fields",
Nakul Vaidya876210f2022-08-08 17:47:191118 flag_descriptions::kAutofillParseIBANFieldsName,
1119 flag_descriptions::kAutofillParseIBANFieldsDescription, flags_ui::kOsIos,
1120 FEATURE_VALUE_TYPE(autofill::features::kAutofillParseIBANFields)},
Ernesto Izquierdo Clua7f4e36e22022-07-01 09:38:361121 {"autofill-enable-new-card-unmask-prompt-view",
1122 flag_descriptions::kAutofillEnableNewCardUnmaskPromptViewName,
1123 flag_descriptions::kAutofillEnableNewCardUnmaskPromptViewDescription,
1124 flags_ui::kOsIos,
ginnnnnnny591a4972022-09-01 16:10:271125 FEATURE_VALUE_TYPE(
1126 autofill::features::kAutofillEnableNewCardUnmaskPromptView)},
Moe Ahmadi098519d82022-07-27 18:34:241127 {"omnibox-zero-suggest-prefetching",
1128 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1129 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1130 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451131 {"omnibox-zero-suggest-prefetching-on-srp",
1132 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1133 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1134 flags_ui::kOsIos,
1135 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1136 {"omnibox-zero-suggest-prefetching-on-web",
1137 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1138 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1139 flags_ui::kOsIos,
1140 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471141 {"omnibox-zero-suggest-in-memory-caching",
1142 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1143 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1144 flags_ui::kOsIos,
1145 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351146 {"omnibox-on-device-tail-suggestions",
1147 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1148 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1149 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Vincent Boissellead6cbe22022-07-04 19:32:391150 {"enable-user-policy", flag_descriptions::kEnableUserPolicyName,
1151 flag_descriptions::kEnableUserPolicyDescription, flags_ui::kOsIos,
Vincent Boisselle88fef222022-09-23 18:54:501152 FEATURE_VALUE_TYPE(policy::kUserPolicy)},
Marc Treibb9d8ed802022-07-05 15:15:491153 {"enable-sync-history-datatype",
1154 flag_descriptions::kSyncEnableHistoryDataTypeName,
1155 flag_descriptions::kSyncEnableHistoryDataTypeDescription, flags_ui::kOsIos,
1156 FEATURE_VALUE_TYPE(syncer::kSyncEnableHistoryDataType)},
Christian Xucf26d562022-07-06 09:28:361157 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1158 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1159 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1160 kOmniboxMaxURLMatchesVariations,
1161 "OmniboxMaxURLMatches")},
Olivier Robin60d3a062022-07-06 17:34:061162 {"metrickit-non-crash-reports",
1163 flag_descriptions::kMetrickitNonCrashReportName,
1164 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1165 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Siyu An3194bda2022-07-13 19:30:371166 {"autofill-enable-remade-downstream-metrics",
1167 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName,
1168 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription,
1169 flags_ui::kOsIos,
1170 FEATURE_VALUE_TYPE(
1171 autofill::features::kAutofillEnableRemadeDownstreamMetrics)},
Nakul Vaidya13ca2042022-07-27 01:59:551172 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1173 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1174 flag_descriptions::
1175 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1176 flags_ui::kOsIos,
1177 FEATURE_VALUE_TYPE(
1178 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Ed Chin91e44992022-07-27 13:42:341179#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1180 {"feed-background-refresh-ios",
1181 flag_descriptions::kFeedBackgroundRefreshName,
1182 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1183 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1184 kFeedBackgroundRefreshVariations,
1185 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261186#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1187 {"feed-foreground-refresh-ios",
1188 flag_descriptions::kFeedForegroundRefreshName,
1189 flag_descriptions::kFeedForegroundRefreshDescription, flags_ui::kOsIos,
1190 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedForegroundRefresh,
1191 kFeedForegroundRefreshVariations,
1192 "FeedForegroundRefresh")},
Christian Xu164a2e512022-08-01 20:38:191193 {"omnibox-keyboard-paste-button",
1194 flag_descriptions::kOmniboxKeyboardPasteButtonName,
1195 flag_descriptions::kOmniboxKeyboardPasteButtonDescription,
1196 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)},
Ed Chin178ec2a2023-02-10 22:21:261197
Aliona DANGLAa5257ccc2022-08-29 14:01:491198 {"enable-open-in-download", flag_descriptions::kEnableOpenInDownloadName,
1199 flag_descriptions::kEnableOpenInDownloadDescription, flags_ui::kOsIos,
1200 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableOpenInDownload,
1201 kOpenInDownloadVariations,
1202 "EnableOpenInDownload")},
Cheick Cisse87a51cb2022-09-08 21:29:171203 {"whats-new-ios", flag_descriptions::kWhatsNewIOSName,
1204 flag_descriptions::kWhatsNewIOSDescription, flags_ui::kOsIos,
Cheick Cissef37087902022-10-07 19:01:411205 FEATURE_WITH_PARAMS_VALUE_TYPE(kWhatsNewIOS,
1206 kWhatsNewLayoutVariations,
1207 "WhatsNewLayoutVariations")},
ginnnnnnny591a4972022-09-01 16:10:271208 {"ios-autofill-branding", flag_descriptions::kAutofillBrandingIOSName,
1209 flag_descriptions::kAutofillBrandingIOSDescription, flags_ui::kOsIos,
1210 FEATURE_WITH_PARAMS_VALUE_TYPE(autofill::features::kAutofillBrandingIOS,
1211 kAutofillBrandingIOSVariations,
Hira Mahmoodb0e5f412022-09-01 19:41:051212 "AutofillBrandingIOS")},
1213 {"app-store-rating", flag_descriptions::kAppStoreRatingName,
1214 flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos,
1215 FEATURE_VALUE_TYPE(kAppStoreRating)},
Scott Yodercb2fe632022-09-12 15:28:351216 {"ios-new-post-restore-experience",
1217 flag_descriptions::kIOSNewPostRestoreExperienceName,
1218 flag_descriptions::kIOSNewPostRestoreExperienceDescription,
1219 flags_ui::kOsIos,
Benjamin Williams3d3a2ec2022-09-13 20:01:261220 FEATURE_WITH_PARAMS_VALUE_TYPE(
1221 post_restore_signin::features::kIOSNewPostRestoreExperience,
1222 kIOSNewPostRestoreExperienceVariations,
1223 "IOSNewPostRestoreExperience")},
Christian Xu6b90c2a32022-09-13 18:17:021224 {"most-visited-tiles", flag_descriptions::kMostVisitedTilesName,
1225 flag_descriptions::kMostVisitedTilesDescription, flags_ui::kOsIos,
1226 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTiles)},
Olivier ROBINf05518782022-09-14 23:55:501227 {"enable-tflite-language-detection-ignore",
1228 flag_descriptions::kTFLiteLanguageDetectionIgnoreName,
1229 flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription,
1230 flags_ui::kOsIos,
1231 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)},
Louis Romeroc18612b962022-10-07 12:08:141232 {"keyboard-shortcuts-menu", flag_descriptions::kKeyboardShortcutsMenuName,
1233 flag_descriptions::kKeyboardShortcutsMenuDescription, flags_ui::kOsIos,
1234 FEATURE_VALUE_TYPE(kKeyboardShortcutsMenu)},
Tina Wang89ae4252022-10-14 00:39:471235 {"enable-check-visibility-on-attention-log-start",
1236 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartName,
1237 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartDescription,
1238 flags_ui::kOsIos,
1239 FEATURE_VALUE_TYPE(kEnableCheckVisibilityOnAttentionLogStart)},
1240 {"enable-refine-data-source-reload-reporting",
1241 flag_descriptions::kEnableRefineDataSourceReloadReportingName,
1242 flag_descriptions::kEnableRefineDataSourceReloadReportingDescription,
1243 flags_ui::kOsIos,
1244 FEATURE_VALUE_TYPE(kEnableRefineDataSourceReloadReporting)},
Victor Hugo Vianna Silvabb878dea2022-10-18 10:19:041245 {"enable-passwords-account-storage",
1246 flag_descriptions::kEnablePasswordsAccountStorageName,
1247 flag_descriptions::kEnablePasswordsAccountStorageDescription,
1248 flags_ui::kOsIos,
1249 FEATURE_VALUE_TYPE(
1250 password_manager::features::kEnablePasswordsAccountStorage)},
adamta3811f9182022-10-24 17:49:331251 {"enable-default-following-feed-sort-type",
1252 flag_descriptions::kFollowingFeedDefaultSortTypeName,
1253 flag_descriptions::kFollowingFeedDefaultSortTypeDescription,
1254 flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201255 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFollowingFeedDefaultSortType,
adamta3811f9182022-10-24 17:49:331256 kFollowingFeedDefaultSortTypeVariations,
adamta8da8dce2022-11-17 18:03:201257 "EnableFollowingFeedDefaultSortType")},
Gauthier Ambardd0187592022-11-03 16:31:131258 {"use-sf-symbols-omnibox", flag_descriptions::kUseSFSymbolsInOmniboxName,
1259 flag_descriptions::kUseSFSymbolsInOmniboxDescription, flags_ui::kOsIos,
1260 FEATURE_VALUE_TYPE(kUseSFSymbolsInOmnibox)},
Louis Romero1e2a88e92023-01-18 17:08:201261 {"tab-grid-recency-sort", flag_descriptions::kTabGridRecencySortName,
Gauthier Ambard9898eb882022-11-07 18:12:011262 flag_descriptions::kTabGridRecencySortDescription, flags_ui::kOsIos,
1263 FEATURE_VALUE_TYPE(kTabGridRecencySort)},
Ewann Pelle3774cac532022-11-15 10:12:371264 {"enable-pinned-tabs", flag_descriptions::kEnablePinnedTabsName,
1265 flag_descriptions::kEnablePinnedTabsDescription, flags_ui::kOsIos,
1266 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnablePinnedTabs,
1267 kEnablePinnedTabsVariations,
1268 "EnablePinnedTabs")},
Ewann Pelledb88a5462023-02-17 14:34:591269 {"enable-pinned-tabs-ipad", flag_descriptions::kEnablePinnedTabsIpadName,
1270 flag_descriptions::kEnablePinnedTabsIpadDescription, flags_ui::kOsIos,
1271 FEATURE_VALUE_TYPE(kEnablePinnedTabsIpad)},
Justin Cohen726a70bc42022-11-15 23:15:031272 {"remove-crash-infobar", flag_descriptions::kRemoveCrashInfobarName,
1273 flag_descriptions::kRemoveCrashInfobarDescription, flags_ui::kOsIos,
1274 FEATURE_VALUE_TYPE(kRemoveCrashInfobar)},
Hira Mahmoodea109752022-11-17 17:45:411275 {"credential-provider-extension-promo",
1276 flag_descriptions::kCredentialProviderExtensionPromoName,
1277 flag_descriptions::kCredentialProviderExtensionPromoDescription,
Huiting Yud7d2a5322023-02-09 21:14:221278 flags_ui::kOsIos,
1279 FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo,
1280 kCredentialProviderExtensionPromoVariations,
1281 "CredentialProviderExtensionPromo")},
Nicolas MacBethfb43e152022-11-28 19:31:521282 {"default-browser-blue-dot-promo",
1283 flag_descriptions::kDefaultBrowserBlueDotPromoName,
1284 flag_descriptions::kDefaultBrowserBlueDotPromoDescription,
1285 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserBlueDotPromo)},
Olivier ROBINa8838c12022-12-05 17:50:271286 {"ios-force-translate-enabled",
1287 flag_descriptions::kIOSForceTranslateEnabledName,
1288 flag_descriptions::kIOSForceTranslateEnabledDescription, flags_ui::kOsIos,
1289 FEATURE_VALUE_TYPE(translate::kIOSForceTranslateEnabled)},
Daniel Whiteae1cb672022-12-14 18:25:251290 {"iph-price-notifications-while-browsing",
1291 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1292 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1293 flags_ui::kOsIos,
1294 FEATURE_VALUE_TYPE(
1295 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Qihui Zhao72836c62022-12-16 04:31:411296 {"autofill-offer-to-save-card-with-same-last-four",
1297 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourName,
1298 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourDescription,
1299 flags_ui::kOsIos,
1300 FEATURE_VALUE_TYPE(
1301 autofill::features::kAutofillOfferToSaveCardWithSameLastFour)},
Christian Xu588330f32023-01-05 10:51:041302 {"omnibox-multiline-search-suggest",
1303 flag_descriptions::kOmniboxMultilineSearchSuggestName,
1304 flag_descriptions::kOmniboxMultilineSearchSuggestDescription,
1305 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxMultilineSearchSuggest)},
Vipul Vinod Koulaebbcb3a2023-01-05 19:50:501306 {"autofill-suggest-server-card-instead-of-local-card",
1307 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName,
1308 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription,
1309 flags_ui::kOsIos,
1310 FEATURE_VALUE_TYPE(
1311 autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)},
Quentin Pubert154fc6a2023-01-09 15:58:581312 {"native-find-in-page", flag_descriptions::kNativeFindInPageName,
1313 flag_descriptions::kNativeFindInPageDescription, flags_ui::kOsIos,
1314 FEATURE_WITH_PARAMS_VALUE_TYPE(kNativeFindInPage,
1315 kNativeFindInPageVariations,
1316 "NativeFindInPage")},
Elmehdi Rahmaoui5d8ba8e2023-01-11 14:53:551317 {"intents-on-email", flag_descriptions::kEmailName,
1318 flag_descriptions::kEmailDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331319 FEATURE_VALUE_TYPE(web::features::kEnableEmails)},
Ernesto Izquierdo Clua023bb52352023-01-12 19:33:341320 {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName,
1321 flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos,
1322 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)},
Christian Xu7e5234c12023-01-16 09:26:351323 {"multiline-fade-truncating-label",
1324 flag_descriptions::kMultilineFadeTruncatingLabelName,
1325 flag_descriptions::kMultilineFadeTruncatingLabelDescription,
1326 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kMultilineFadeTruncatingLabel)},
Robbie Gibson88f680a2023-01-19 16:47:301327 {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName,
1328 flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos,
1329 FEATURE_VALUE_TYPE(kPromosManagerUsesFET)},
Ewann Pelledec2d042023-01-25 15:28:391330 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1331 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1332 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Louis Romero93e9b50a2023-01-26 01:46:121333 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1334 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1335 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1336 kTabInactivityThresholdVariations,
1337 "TabInactivityThreshold")},
Sergio Collazos8d2ac27942023-01-26 19:03:411338 {"enable-feed-image-caching",
1339 flag_descriptions::kEnableFeedImageCachingName,
1340 flag_descriptions::kEnableFeedImageCachingDescription, flags_ui::kOsIos,
1341 FEATURE_VALUE_TYPE(kEnableFeedImageCaching)},
1342 {"enable-feed-synthetic-capabilities",
1343 flag_descriptions::kEnableFeedSyntheticCapabilitiesName,
1344 flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription,
1345 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)},
Victor Hugo Vianna Silvabf1a43c2023-02-06 14:06:561346 {"ios-show-password-storage-in-save-infobar",
1347 flag_descriptions::kIOSShowPasswordStorageInSaveInfobarName,
1348 flag_descriptions::kIOSShowPasswordStorageInSaveInfobarDescription,
1349 flags_ui::kOsIos,
1350 FEATURE_VALUE_TYPE(
1351 password_manager::features::kIOSShowPasswordStorageInSaveInfobar)},
Louis Romero58f355022023-02-13 19:04:311352 {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName,
1353 flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos,
1354 FEATURE_VALUE_TYPE(kShowInactiveTabsCount)},
Olivier ROBIN52eddbf32023-02-15 10:33:421355 {"ios-edit-menu-partial-translate",
1356 flag_descriptions::kIOSEditMenuPartialTranslateName,
1357 flag_descriptions::kIOSEditMenuPartialTranslateDescription,
Olivier ROBINfd3887b72023-02-23 14:45:421358 flags_ui::kOsIos,
1359 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate,
1360 kIOSEditMenuPartialTranslateVariations,
1361 "IOSEditMenuPartialTranslate")},
Olivier Robin7057bd72023-02-16 18:35:201362 {"ios-custom-browser-edit-menu",
1363 flag_descriptions::kIOSCustomBrowserEditMenuName,
1364 flag_descriptions::kIOSCustomBrowserEditMenuDescription, flags_ui::kOsIos,
1365 FEATURE_VALUE_TYPE(kIOSCustomBrowserEditMenu)},
Ali Juma57849c42023-02-21 22:53:431366 {"notification-settings-menu-item",
1367 flag_descriptions::kNotificationSettingsMenuItemName,
1368 flag_descriptions::kNotificationSettingsMenuItemDescription,
1369 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
rgodba72acf82023-02-20 10:29:351370 {"password-notes", flag_descriptions::kPasswordNotesWithBackupName,
1371 flag_descriptions::kPasswordNotesWithBackupDescription, flags_ui::kOsIos,
1372 FEATURE_VALUE_TYPE(syncer::kPasswordNotesWithBackup)},
Ed Chin97560fc42023-02-20 16:48:321373 {"feed-experiment-tagging-ios",
1374 flag_descriptions::kFeedExperimentTaggingName,
1375 flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos,
1376 FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)},
Stepan Khapugin551917f82023-02-21 18:00:061377 {"spotlight-reading-list-source",
1378 flag_descriptions::kSpotlightReadingListSourceName,
1379 flag_descriptions::kSpotlightReadingListSourceDescription,
1380 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)},
kalettuced6ba72cb2023-02-22 00:55:381381 {"consistency-new-account-interface",
1382 flag_descriptions::kConsistencyNewAccountInterfaceName,
1383 flag_descriptions::kConsistencyNewAccountInterfaceDescription,
1384 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kConsistencyNewAccountInterface)},
Olivier ROBINabcb8ce2023-02-22 13:55:201385 {"add-to-home-screen", flag_descriptions::kAddToHomeScreenName,
1386 flag_descriptions::kAddToHomeScreenDescription, flags_ui::kOsIos,
Olivier ROBIN2ca64952023-02-23 17:11:481387 FEATURE_WITH_PARAMS_VALUE_TYPE(kAddToHomeScreen,
1388 kAddToHomeScreenVariations,
1389 "IOSEditMenuPartialTranslate")},
Salma Elmahallawy72c5d34d2023-02-27 23:44:421390 {"policy-logs-page-ios", flag_descriptions::kPolicyLogsPageIOSName,
1391 flag_descriptions::kPolicyLogsPageIOSDescription, flags_ui::kOsIos,
1392 FEATURE_VALUE_TYPE(policy::features::kPolicyLogsPageIOS)},
Vincent Boisselle6e9780c2023-02-25 01:05:341393 {"indicate-account-storage-error-in-account-cell",
1394 flag_descriptions::kIndicateAccountStorageErrorInAccountCellName,
1395 flag_descriptions::kIndicateAccountStorageErrorInAccountCellDescription,
1396 flags_ui::kOsIos,
1397 FEATURE_VALUE_TYPE(kIndicateAccountStorageErrorInAccountCell)},
Menghan YANGf3fe2de52023-02-27 16:38:501398 {"enable-bookmarks-account-storage",
1399 flag_descriptions::kEnableBookmarksAccountStorageName,
1400 flag_descriptions::kEnableBookmarksAccountStorageDescription,
1401 flags_ui::kOsIos,
1402 FEATURE_VALUE_TYPE(bookmarks::kEnableBookmarksAccountStorage)},
kalettucefb09e402023-02-27 18:35:531403 {"web-feed-feedback-reroute",
1404 flag_descriptions::kWebFeedFeedbackRerouteName,
1405 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1406 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Jason Huac58fea2023-02-28 20:25:551407 {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName,
1408 flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos,
1409 FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)},
ginnnnnnny75903622023-03-01 18:00:001410 {"bring-your-own-tabs-ios", flag_descriptions::kBringYourOwnTabsIOSName,
1411 flag_descriptions::kBringYourOwnTabsIOSDescription, flags_ui::kOsIos,
1412 FEATURE_WITH_PARAMS_VALUE_TYPE(kBringYourOwnTabsIOS,
1413 kBringYourOwnTabsIOSVariations,
1414 "BringYourOwnTabsIOS")},
Louis Romero93e9b50a2023-01-26 01:46:121415};
sdefresne14900ee2015-11-27 14:43:211416
Rohit Raobed794c2020-04-27 15:27:451417bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1418 return false;
1419}
1420
1421flags_ui::FlagsState& GetGlobalFlagsState() {
1422 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1423 nullptr);
1424 return *flags_state;
1425}
David Jean5ca263c2021-08-18 09:19:301426// Creates the experimental test policies map, used by AsyncPolicyLoader and
1427// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341428NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211429 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1430
Guillaume Jenkins25e9bd72020-08-27 17:39:061431 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551432 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061433 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551434
Guillaume Jenkins25e9bd72020-08-27 17:39:061435 // Set some sample policy values for testing if EnableSamplePolicies is set to
1436 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401437 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551438 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011439 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1440
Guillaume Jenkinseeb7007c2020-06-25 22:55:401441 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1442
1443 // 2 = Disable all variations
1444 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1445
1446 // 2 = Do not allow any site to show popups
1447 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1448
Tina Wang5abee802020-07-29 23:09:521449 // Set default search engine.
1450 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1451 @YES,
1452 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1453 @"http://www.google.com/search?q={searchTerms}",
1454 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021455 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521456
Tina Wang89068c82020-10-29 15:51:501457 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1458
Gauthier Ambard21b23702021-04-16 16:11:271459 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1460
Tina Wang59d0b7e2020-08-11 04:41:011461 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531462
1463 // 2 = Enhanced safe browsing protection
1464 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1465
1466 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291467
1468 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551469 }];
1470 }
1471
Ewann227a3c02021-04-19 12:04:541472 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041473 NSString* sync_policy_key =
1474 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301475 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541476 }
Ewann227a3c02021-04-19 12:04:541477
Ewann570a6302021-08-17 07:22:421478 // SyncTypesListDisabled policy.
1479 NSString* Sync_types_list_disabled_key =
1480 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1481 NSMutableArray* Sync_types_list_disabled_values =
1482 [[NSMutableArray alloc] init];
1483 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
1484 [Sync_types_list_disabled_values addObject:@"bookmarks"];
1485 }
1486 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
1487 [Sync_types_list_disabled_values addObject:@"readingList"];
1488 }
1489 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
1490 [Sync_types_list_disabled_values addObject:@"preferences"];
1491 }
1492 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
1493 [Sync_types_list_disabled_values addObject:@"passwords"];
1494 }
1495 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
1496 [Sync_types_list_disabled_values addObject:@"autofill"];
1497 }
1498 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
1499 [Sync_types_list_disabled_values addObject:@"typedUrls"];
1500 }
1501 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
1502 [Sync_types_list_disabled_values addObject:@"tabs"];
1503 }
1504 if ([Sync_types_list_disabled_values count]) {
1505 [testing_policies addEntriesFromDictionary:@{
1506 Sync_types_list_disabled_key : Sync_types_list_disabled_values
1507 }];
Ewann570a6302021-08-17 07:22:421508 }
1509
Gauthier Ambard073eaa92021-11-22 15:24:131510 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:521511 NSString* incognito_policy_key =
1512 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
1513 NSInteger incognito_mode_availability =
1514 [defaults integerForKey:incognito_policy_key];
1515 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:521516 [testing_policies addEntriesFromDictionary:@{
1517 incognito_policy_key : @(incognito_mode_availability),
1518 }];
1519 }
1520
Ewann40a8f8a2021-07-29 10:01:201521 NSString* restriction_pattern =
1522 [defaults stringForKey:@"RestrictAccountsToPatterns"];
1523 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:291524 NSString* restrict_key =
1525 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:201526 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:291527 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:201528 }];
1529 }
1530
Vincent Boisselle19200bc2021-09-01 17:58:251531 // If the sign-in policy is set (not "None"), add the policy key to the list
1532 // of enabled experimental policies, and set the value.
1533 NSString* const kSigninPolicyKey = @"BrowserSignin";
1534 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
1535 if (signin_policy_mode) {
1536 // Remove the mode offset that was used to represent the unset policy.
1537 --signin_policy_mode;
1538 DCHECK(signin_policy_mode >= 0);
1539
Vincent Boisselle19200bc2021-09-01 17:58:251540 [testing_policies addEntriesFromDictionary:@{
1541 kSigninPolicyKey : @(signin_policy_mode),
1542 }];
1543 }
1544
Veronique Nguyen9b1044f2022-01-11 14:41:131545 // If the New Tab Page URL is set (not empty) add the value to the list of
1546 // test policies.
1547 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
1548 if ([ntp_location length] > 0) {
1549 NSString* ntp_location_key =
1550 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
1551 [testing_policies
1552 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:571553 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:131554 }
1555
Ali Juma9ec36d22022-03-28 14:53:121556 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
1557 NSString* allow_backups_key =
1558 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
1559 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
1560 [allowed_experimental_policies addObject:allow_backups_key];
1561 }
1562
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241563 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
1564 NSString* password_manager_key =
1565 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
1566 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
1567 [allowed_experimental_policies addObject:password_manager_key];
1568 }
1569
Guillaume Jenkins25e9bd72020-08-27 17:39:061570 // If any experimental policy was allowed, set the EnableExperimentalPolicies
1571 // policy.
1572 if ([allowed_experimental_policies count] > 0) {
1573 [testing_policies setValue:allowed_experimental_policies
1574 forKey:base::SysUTF8ToNSString(
1575 policy::key::kEnableExperimentalPolicies)];
1576 }
1577
jlebel2eb40222022-05-06 11:15:421578 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
1579 switch ([defaults integerForKey:metrics_reporting_key]) {
1580 case 1:
1581 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:131582 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421583 break;
1584 case 2:
1585 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:131586 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421587 break;
1588 default:
1589 // Metrics reporting not managed.
1590 break;
1591 }
1592
David Jean6f85d44f2021-08-19 08:08:451593 // Warning: Add new flags to TestingPoliciesHash() below.
1594
David Jean5ca263c2021-08-18 09:19:301595 return testing_policies;
1596}
David Jean6f85d44f2021-08-19 08:08:451597
David Jean5ca263c2021-08-18 09:19:301598} // namespace
1599
Gauthier Ambard02dbf022022-08-23 08:28:471600// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:301601void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
1602 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1603
1604 // Set the UA flag if UseMobileSafariUA is enabled.
1605 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
1606 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
1607 // Chrome puts its product token.
1608 int32_t major = 0;
1609 int32_t minor = 0;
1610 int32_t bugfix = 0;
1611 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
1612 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
1613
1614 command_line->AppendSwitchASCII(switches::kUserAgent,
1615 web::BuildMobileUserAgent(product));
1616 }
1617
1618 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341619 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:301620
1621 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
1622 // Management to enabled and add the token to the list of policies.
1623 NSString* token_key =
1624 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
1625 NSString* token = [defaults stringForKey:token_key];
1626
1627 if ([token length] > 0) {
1628 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
1629 [testing_policies setValue:token forKey:token_key];
1630 }
1631
Guillaume Jenkins57606d72020-08-13 17:32:551632 // If some policies were set, commit them to the app's registration defaults.
1633 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:401634 NSDictionary* registration_defaults =
1635 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
1636 [defaults registerDefaults:registration_defaults];
1637 }
1638
sdefresne14900ee2015-11-27 14:43:211639 // Freeform commandline flags. These are added last, so that any flags added
1640 // earlier in this function take precedence.
1641 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
1642 base::CommandLine::StringVector flags;
1643 // Append an empty "program" argument.
1644 flags.push_back("");
1645
1646 // The number of flags corresponds to the number of text fields in
1647 // Experimental.plist.
1648 const int kNumFreeformFlags = 5;
1649 for (int i = 1; i <= kNumFreeformFlags; ++i) {
1650 NSString* key =
1651 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
1652 NSString* flag = [defaults stringForKey:key];
1653 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:331654 // iOS keyboard replaces -- with —, so undo that.
1655 flag = [flag stringByReplacingOccurrencesOfString:@"—"
1656 withString:@"--"
1657 options:0
1658 range:NSMakeRange(0, 1)];
1659 // To make things easier, allow flags with no dashes by prepending them
1660 // here. This also allows for flags that just have one dash if they
1661 // exist.
1662 if (![flag hasPrefix:@"-"]) {
1663 flag = [@"--" stringByAppendingString:flag];
1664 }
sdefresne14900ee2015-11-27 14:43:211665 flags.push_back(base::SysNSStringToUTF8(flag));
1666 }
1667 }
1668
1669 base::CommandLine temp_command_line(flags);
1670 command_line->AppendArguments(temp_command_line, false);
1671 }
msardafc76f662017-02-24 12:46:281672
justincohendacc85d2017-06-28 23:34:101673 // Populate command line flag for 3rd party keyboard omnibox workaround.
1674 NSString* enableThirdPartyKeyboardWorkaround =
1675 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
1676 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
1677 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
1678 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
1679 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
1680 }
1681
Sylvain Defresned3cd8d92022-01-18 13:35:081682 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:211683}
1684
sdefresne14900ee2015-11-27 14:43:211685void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
1686 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:181687 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:111688 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:531689 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:211690}
1691
jkrcalbf073372016-07-29 07:21:311692std::vector<std::string> RegisterAllFeatureVariationParameters(
1693 flags_ui::FlagsStorage* flags_storage,
1694 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:181695 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
1696 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:311697}
1698
sdefresne14900ee2015-11-27 14:43:211699void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
1700 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:501701 base::Value::List& supported_entries,
1702 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:181703 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:211704 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:511705 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:211706}
1707
1708void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
1709 const std::string& internal_name,
1710 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:181711 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
1712 enable);
sdefresne14900ee2015-11-27 14:43:211713}
1714
1715void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:181716 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:211717}
1718
Nicolas MacBeth972e2592023-02-23 15:22:091719bool IsRestartNeededToCommitChanges() {
1720 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
1721}
1722
sdefresne14900ee2015-11-27 14:43:211723namespace testing {
1724
Elly Fong-Jones323ab1092021-08-23 22:36:311725base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
1726 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:531727 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:211728}
1729
1730} // namespace testing