blob: 84c5c8d17f33d062e6f31ebeecbd33965569bf6e [file] [log] [blame]
Avi Drissmanea1be232022-09-14 23:29:061// Copyright 2012 The Chromium Authors
sdefresne14900ee2015-11-27 14:43:212// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Implementation of about_flags for iOS that sets flags based on experimental
6// settings.
7
Gauthier Ambard999088c2022-09-13 08:36:578#import "ios/chrome/browser/flags/about_flags.h"
sdefresne14900ee2015-11-27 14:43:219
Nazerke9c259052019-06-26 15:30:1010#import <UIKit/UIKit.h>
Gauthier Ambard999088c2022-09-13 08:36:5711#import <stddef.h>
12#import <stdint.h>
sdefresne14900ee2015-11-27 14:43:2113
Gauthier Ambard999088c2022-09-13 08:36:5714#import "base/base_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5715#import "base/check_op.h"
Peter Boström3f798572022-07-26 23:44:3616#import "base/debug/debugging_buildflags.h"
Avi Drissmancac43f22023-01-12 00:58:4117#import "base/functional/bind.h"
18#import "base/functional/callback_helpers.h"
David Jean5ca263c2021-08-18 09:19:3019#import "base/mac/foundation_util.h"
Gauthier Ambard999088c2022-09-13 08:36:5720#import "base/no_destructor.h"
21#import "base/strings/stringprintf.h"
22#import "base/strings/sys_string_conversions.h"
23#import "base/system/sys_info.h"
24#import "components/autofill/core/common/autofill_features.h"
25#import "components/autofill/core/common/autofill_payments_features.h"
26#import "components/autofill/core/common/autofill_switches.h"
27#import "components/autofill/ios/browser/autofill_switches.h"
Menghan YANGf3fe2de52023-02-27 16:38:5028#import "components/bookmarks/common/bookmark_features.h"
Gauthier Ambard999088c2022-09-13 08:36:5729#import "components/breadcrumbs/core/features.h"
30#import "components/commerce/core/commerce_feature_list.h"
31#import "components/commerce/core/flag_descriptions.h"
32#import "components/content_settings/core/common/features.h"
33#import "components/dom_distiller/core/dom_distiller_switches.h"
Raj Tb95d813542022-11-16 21:27:5234#import "components/download/public/background_service/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5735#import "components/enterprise/browser/enterprise_switches.h"
36#import "components/feature_engagement/public/feature_constants.h"
37#import "components/feature_engagement/public/feature_list.h"
38#import "components/feed/feed_feature_list.h"
39#import "components/flags_ui/feature_entry.h"
40#import "components/flags_ui/feature_entry_macros.h"
41#import "components/flags_ui/flags_storage.h"
42#import "components/flags_ui/flags_ui_switches.h"
43#import "components/invalidation/impl/invalidation_switches.h"
Benjamin Williamsaa8da8142022-11-14 19:51:0344#import "components/ntp_tiles/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5745#import "components/ntp_tiles/switches.h"
46#import "components/omnibox/browser/omnibox_field_trial.h"
47#import "components/omnibox/common/omnibox_features.h"
48#import "components/optimization_guide/core/optimization_guide_features.h"
Raj Ta921ffc2022-08-25 19:00:2049#import "components/optimization_guide/core/optimization_guide_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5750#import "components/password_manager/core/common/password_manager_features.h"
51#import "components/payments/core/features.h"
52#import "components/policy/core/common/features.h"
Guillaume Jenkinseeb7007c2020-06-25 22:55:4053#import "components/policy/core/common/policy_loader_ios_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5754#import "components/policy/policy_constants.h"
55#import "components/safe_browsing/core/common/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2556#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5757#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
58#import "components/signin/core/browser/account_reconcilor.h"
59#import "components/signin/ios/browser/features.h"
60#import "components/signin/public/base/signin_switches.h"
61#import "components/strings/grit/components_strings.h"
62#import "components/sync/base/command_line_switches.h"
63#import "components/sync/base/features.h"
64#import "components/sync/base/pref_names.h"
65#import "components/translate/core/browser/translate_prefs.h"
66#import "components/translate/core/common/translate_util.h"
Ed Chin91e44992022-07-27 13:42:3467#import "ios/chrome/app/background_mode_buildflags.h"
Gauthier Ambard999088c2022-09-13 08:36:5768#import "ios/chrome/browser/browsing_data/browsing_data_features.h"
69#import "ios/chrome/browser/crash_report/features.h"
Huiting Yua68998d2022-12-14 17:47:5470#import "ios/chrome/browser/credential_provider_promo/features.h"
Quentin Pubert154fc6a2023-01-09 15:58:5871#import "ios/chrome/browser/find_in_page/features.h"
Gauthier Ambard92605132022-08-26 13:25:1772#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5773#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Gauthier Ambard92605132022-08-26 13:25:1774#import "ios/chrome/browser/flags/system_flags.h"
Ed Chin100660bf2022-04-26 16:59:1375#import "ios/chrome/browser/ntp/features.h"
Vincent Boisselle88fef222022-09-23 18:54:5076#import "ios/chrome/browser/policy/cloud/user_policy_constants.h"
Vincent Boissellead6cbe22022-07-04 19:32:3977#import "ios/chrome/browser/policy/cloud/user_policy_switch.h"
Gauthier Ambard999088c2022-09-13 08:36:5778#import "ios/chrome/browser/policy/policy_util.h"
Benjamin Williams14233d72022-07-26 18:32:2079#import "ios/chrome/browser/promos_manager/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5780#import "ios/chrome/browser/screen_time/screen_time_buildflags.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:4681#import "ios/chrome/browser/shared/public/features/features.h"
Ewann Pelle903a05e62023-02-01 17:51:0682#import "ios/chrome/browser/tabs/features.h"
Aliona DANGLA3de5d242023-02-15 16:52:3083#import "ios/chrome/browser/tabs/inactive_tabs/features.h"
Zhixiang Teoh40027a22022-07-28 03:24:3484#import "ios/chrome/browser/text_selection/text_selection_util.h"
Hira Mahmoodb0e5f412022-09-01 19:41:0585#import "ios/chrome/browser/ui/app_store_rating/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5786#import "ios/chrome/browser/ui/autofill/features.h"
adamta22a4d502020-05-21 03:12:2187#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h"
Javier Ernesto Flores Robles209b2822021-03-25 19:16:5088#import "ios/chrome/browser/ui/default_promo/default_browser_utils.h"
Ewann1a9d33d2021-06-14 11:12:2489#import "ios/chrome/browser/ui/download/features.h"
Chris Lu438e1c052022-08-17 02:57:0090#import "ios/chrome/browser/ui/first_run/trending_queries_field_trial.h"
adamta273568472020-12-04 23:53:5791#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
adamta8886def42023-03-07 19:45:2392#import "ios/chrome/browser/ui/ntp/new_tab_page_retention_field_trial_constants.h"
Christian Xub8c06cd2022-04-29 20:55:0193#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Aliona DANGLAa5257ccc2022-08-29 14:01:4994#import "ios/chrome/browser/ui/open_in/features.h"
Robbie Gibson686c56732021-10-04 17:11:4595#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Benjamin Williams3d3a2ec2022-09-13 20:01:2696#import "ios/chrome/browser/ui/post_restore_signin/features.h"
gogerald0ff29e52021-02-03 18:56:1997#import "ios/chrome/browser/ui/start_surface/start_surface_features.h"
Kurt Horimoto79d590b2018-09-12 19:09:2898#import "ios/chrome/browser/ui/toolbar_container/toolbar_container_features.h"
Cheick Cisse87a51cb2022-09-08 21:29:1799#import "ios/chrome/browser/ui/whats_new/feature_flags.h"
Gauthier Ambard999088c2022-09-13 08:36:57100#import "ios/chrome/browser/web/features.h"
101#import "ios/chrome/grit/ios_strings.h"
102#import "ios/components/security_interstitials/https_only_mode/feature.h"
103#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
104#import "ios/web/common/features.h"
105#import "ios/web/common/user_agent.h"
106#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21107
Sylvain Defresne9c107082020-10-27 16:39:13108#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
Gauthier Ambard999088c2022-09-13 08:36:57109#import "ios/chrome/browser/screen_time/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13110#endif
111
sdefresne14900ee2015-11-27 14:43:21112#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57113#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22114#endif
stkhapuginc1be1792016-12-13 14:30:53115
116#if !defined(__has_feature) || !__has_feature(objc_arc)
117#error "This file requires ARC support."
118#endif
sdefresne14900ee2015-11-27 14:43:21119
elawrence816f6790e2017-06-16 18:19:28120using flags_ui::FeatureEntry;
121
sdefresne14900ee2015-11-27 14:43:21122namespace {
Emily Starkbafa9062017-12-27 15:22:46123
Olivier Robin3d60411622018-02-23 10:03:22124const FeatureEntry::Choice kAutofillIOSDelayBetweenFieldsChoices[] = {
125 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
126 {"0", autofill::switches::kAutofillIOSDelayBetweenFields, "0"},
127 {"10", autofill::switches::kAutofillIOSDelayBetweenFields, "10"},
128 {"20", autofill::switches::kAutofillIOSDelayBetweenFields, "20"},
129 {"50", autofill::switches::kAutofillIOSDelayBetweenFields, "50"},
130 {"100", autofill::switches::kAutofillIOSDelayBetweenFields, "100"},
131 {"200", autofill::switches::kAutofillIOSDelayBetweenFields, "200"},
132 {"500", autofill::switches::kAutofillIOSDelayBetweenFields, "500"},
133 {"1000", autofill::switches::kAutofillIOSDelayBetweenFields, "1000"},
134};
135
Nohemi Fernandezc00842a2021-07-26 11:47:34136const FeatureEntry::Choice
137 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
138 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
139 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
140 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
141 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
142};
143
Stepan Khapugincc4e9842019-01-23 13:38:13144const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
145 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
146const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
147 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
148const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
149 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
150const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
151 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
152const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
153 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
154const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
155 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
156const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
157 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
158
159const FeatureEntry::FeatureVariation
160 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
161 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53162 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13163 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53164 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13165 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53166 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13167 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53168 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13169 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53170 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13171 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53172 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13173 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53174 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13175
Stepan Khapuginbac467e2022-05-06 21:11:54176const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
177 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
178const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
179 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
180const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
181 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
182
183const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
184 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
185 nullptr},
186 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
187 nullptr},
188 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
189 nullptr},
190};
191
Christian Xucf26d562022-07-06 09:28:36192const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
193 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
194const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
195 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
196const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
197 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
198
199const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
200 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
201 nullptr},
202 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
203 nullptr},
204 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
205 nullptr},
206};
207
Cheick Cissef37087902022-10-07 19:01:41208const FeatureEntry::FeatureParam kWhatsNewModuleLayout[] = {
209 {kWhatsNewModuleBasedLayoutParam, "true"}};
210
211const FeatureEntry::FeatureVariation kWhatsNewLayoutVariations[] = {
212 {"Display module layout", kWhatsNewModuleLayout,
213 std::size(kWhatsNewModuleLayout), nullptr},
214};
215
Caitlin Fischer37e01232019-05-24 13:05:45216const FeatureEntry::FeatureParam
217 kAutofillUseMobileLabelDisambiguationShowAll[] = {
218 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
219 autofill::features::
220 kAutofillUseMobileLabelDisambiguationParameterShowAll}};
221const FeatureEntry::FeatureParam
222 kAutofillUseMobileLabelDisambiguationShowOne[] = {
223 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
224 autofill::features::
225 kAutofillUseMobileLabelDisambiguationParameterShowOne}};
226
227const FeatureEntry::FeatureVariation
228 kAutofillUseMobileLabelDisambiguationVariations[] = {
229 {"(show all)", kAutofillUseMobileLabelDisambiguationShowAll,
Daniel Cheng1f047a82022-02-26 10:04:53230 std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr},
Caitlin Fischer37e01232019-05-24 13:05:45231 {"(show one)", kAutofillUseMobileLabelDisambiguationShowOne,
Daniel Cheng1f047a82022-02-26 10:04:53232 std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}};
Caitlin Fischer37e01232019-05-24 13:05:45233
Javier Ernesto Flores Roblese85f4a12021-02-23 18:10:10234const FeatureEntry::FeatureParam
Javier Ernesto Flores Robles159414232021-06-16 14:29:59235 kDefaultBrowserFullscreenPromoExperimentRemindMeLater[] = {
236 {kDefaultBrowserFullscreenPromoExperimentRemindMeGroupParam, "true"}};
237const FeatureEntry::FeatureVariation
238 kDefaultBrowserFullscreenPromoExperimentVariations[] = {
239 {"Remind me later",
240 kDefaultBrowserFullscreenPromoExperimentRemindMeLater,
Daniel Cheng1f047a82022-02-26 10:04:53241 std::size(kDefaultBrowserFullscreenPromoExperimentRemindMeLater),
Javier Ernesto Flores Robles159414232021-06-16 14:29:59242 nullptr}};
243
adamta37c6b832023-03-10 20:04:09244// Uses int values from SigninPromoViewStyle enum.
245const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = {
246 {kDiscoverFeedTopSyncPromoStyle, "0"}};
247const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactTitled[] = {
248 {kDiscoverFeedTopSyncPromoStyle, "1"}};
249const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] =
250 {{kDiscoverFeedTopSyncPromoStyle, "2"}};
251const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = {
252 {kDiscoverFeedTopSyncPromoStyle, "3"}};
adamtadb0bfc62022-08-01 17:37:47253
Mohammad Refaatab6bee62022-05-16 16:31:15254const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = {
adamta37c6b832023-03-10 20:04:09255 {"Standard", kDiscoverFeedTopSyncPromoStandard,
256 std::size(kDiscoverFeedTopSyncPromoStandard), nullptr},
257 {"Compact Titled (Unpersonalized)", kDiscoverFeedTopSyncPromoCompactTitled,
258 std::size(kDiscoverFeedTopSyncPromoCompactTitled), nullptr},
259 {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal,
260 std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr},
261 {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical,
262 std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}};
Mohammad Refaatab6bee62022-05-16 16:31:15263
adamta4a6f2fd22023-02-13 17:37:14264const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = {
265 {kDisableStickyHeaderForFollowingFeed, "true"}};
266const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = {
adamtabc048042023-03-15 22:42:18267 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14268const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = {
269 {kDisableStickyHeaderForFollowingFeed, "true"},
adamtabc048042023-03-15 22:42:18270 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14271
272const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = {
273 {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader,
274 std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr},
275 {"Reduced header height", kFeedHeaderSettingReducedHeight,
276 std::size(kFeedHeaderSettingReducedHeight), nullptr},
277 {"All improvements", kFeedHeaderSettingAllImprovements,
278 std::size(kFeedHeaderSettingAllImprovements), nullptr}};
279
gogerald53c6e7a2021-04-15 22:07:35280const FeatureEntry::FeatureParam kStartSurfaceTenSecondsShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08281 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35282 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
283const FeatureEntry::FeatureParam kStartSurfaceTenSecondsHideShortcuts[] = {
Chris Lu5470417c2021-03-03 18:43:08284 {kStartSurfaceHideShortcutsParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35285 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
286const FeatureEntry::FeatureParam kStartSurfaceTenSecondsReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08287 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35288 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
289const FeatureEntry::FeatureParam
290 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab[] = {
291 {kStartSurfaceShrinkLogoParam, "true"},
292 {kStartSurfaceReturnToRecentTabParam, "true"},
293 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
294const FeatureEntry::FeatureParam
295 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab[] = {
296 {kStartSurfaceHideShortcutsParam, "true"},
297 {kStartSurfaceReturnToRecentTabParam, "true"},
298 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
299const FeatureEntry::FeatureParam kStartSurfaceOneHourShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08300 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35301 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
302const FeatureEntry::FeatureParam kStartSurfaceOneHourHideShortcuts[] = {
303 {kStartSurfaceHideShortcutsParam, "true"},
304 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
305const FeatureEntry::FeatureParam kStartSurfaceOneHourReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08306 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35307 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
308const FeatureEntry::FeatureParam
309 kStartSurfaceOneHourShrinkLogoReturnToRecentTab[] = {
310 {kStartSurfaceShrinkLogoParam, "true"},
311 {kStartSurfaceReturnToRecentTabParam, "true"},
312 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
313const FeatureEntry::FeatureParam
314 kStartSurfaceOneHourHideShortcutsReturnToRecentTab[] = {
315 {kStartSurfaceHideShortcutsParam, "true"},
316 {kStartSurfaceReturnToRecentTabParam, "true"},
317 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08318
gogerald0e39e3aa2021-02-10 18:41:23319const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
gogerald53c6e7a2021-04-15 22:07:35320 {"10s:Show Return to Recent Tab tile",
321 kStartSurfaceTenSecondsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53322 std::size(kStartSurfaceTenSecondsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35323 {"10s:Shrink Logo", kStartSurfaceTenSecondsShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53324 std::size(kStartSurfaceTenSecondsShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35325 {"10s:Hide Shortcuts", kStartSurfaceTenSecondsHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53326 std::size(kStartSurfaceTenSecondsHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35327 {"10s:Shrink Logo and show Return to Recent Tab tile",
328 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53329 std::size(kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35330 {"10s:Hide Shortcuts and show Return to Recent Tab tile",
331 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53332 std::size(kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35333 {"1h:Show Return to Recent Tab tile", kStartSurfaceOneHourReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53334 std::size(kStartSurfaceOneHourReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35335 {"1h:Shrink Logo", kStartSurfaceOneHourShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53336 std::size(kStartSurfaceOneHourShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35337 {"1h:Hide Shortcuts", kStartSurfaceOneHourHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53338 std::size(kStartSurfaceOneHourHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35339 {"1h:Shrink Logo and show Return to Recent Tab tile",
340 kStartSurfaceOneHourShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53341 std::size(kStartSurfaceOneHourShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35342 {"1h:Hide Shortcuts and show Return to Recent Tab tile",
343 kStartSurfaceOneHourHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53344 std::size(kStartSurfaceOneHourHideShortcutsReturnToRecentTab), nullptr},
Chris Lu5470417c2021-03-03 18:43:08345};
gogerald0e39e3aa2021-02-10 18:41:23346
Chris Lu8e308dc2022-09-06 16:59:40347const FeatureEntry::FeatureParam kModuleRefreshMinimizeSpacing[] = {
348 {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"}};
349const FeatureEntry::FeatureParam kModuleRefreshNoHeaders[] = {
Chris Lu264e2372022-09-08 13:12:57350 {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"},
Chris Lu8e308dc2022-09-06 16:59:40351 {kContentSuggestionsUIModuleRefreshRemoveHeadersParam, "true"}};
352
353const FeatureEntry::FeatureVariation kModuleRefreshVariations[] = {
354 {"Enabled with minimized spacing", kModuleRefreshMinimizeSpacing,
355 std::size(kModuleRefreshMinimizeSpacing), nullptr},
Chris Lu264e2372022-09-08 13:12:57356 {"Enabled with no headers and minimized spacing", kModuleRefreshNoHeaders,
Chris Lu8e308dc2022-09-06 16:59:40357 std::size(kModuleRefreshNoHeaders), nullptr},
358};
359
Ed Chin91e44992022-07-27 13:42:34360#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26361// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01362const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04363 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
364 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01365 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04366 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01367const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04368 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
369 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01370 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04371 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01372const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04373 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
374 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01375 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04376 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01377const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04378 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
379 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01380 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04381 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01382const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04383 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
384 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01385 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
386 {kBackgroundRefreshIntervalInSeconds, "0"}};
387const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04388 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
389 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01390 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
391 {kBackgroundRefreshIntervalInSeconds, "0"}};
392const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
393 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
394 {kEnableRecurringBackgroundRefreshSchedule, "false"},
395 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
396 {kBackgroundRefreshIntervalInSeconds, "0"}};
397const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
398 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
399 {kEnableRecurringBackgroundRefreshSchedule, "true"},
400 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
401 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04402
Ed Chin178ec2a2023-02-10 22:21:26403// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04404const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01405 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
406 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
407 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
408 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
409 {"1hr Interval 1hr Max Age Recurring",
410 kOneHourIntervalOneHourMaxAgeRecurring,
411 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
412 {"4hr Interval 6hr Max Age Recurring",
413 kFourHourIntervalSixHourMaxAgeRecurring,
414 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
415 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
416 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
417 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
418 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
419 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
420 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
421 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
422 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04423};
Ed Chin91e44992022-07-27 13:42:34424#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04425
Ed Chin178ec2a2023-02-10 22:21:26426// Feed Foreground Refresh Feature Params.
Ed Chin5c1fd532023-03-20 17:43:29427const FeatureEntry::FeatureParam kFeedSessionCloseForegroundRefresh[] = {
428 {kEnableFeedSessionCloseForegroundRefresh, "true"},
Ed Chin44e6c7e2023-03-22 00:32:54429 {kEnableFeedAppCloseForegroundRefresh, "false"},
430 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
Ed Chin5c1fd532023-03-20 17:43:29431const FeatureEntry::FeatureParam kFeedAppCloseForegroundRefresh[] = {
432 {kEnableFeedSessionCloseForegroundRefresh, "false"},
Ed Chin44e6c7e2023-03-22 00:32:54433 {kEnableFeedAppCloseForegroundRefresh, "true"},
434 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
435const FeatureEntry::FeatureParam kFeedAppCloseBackgroundRefresh[] = {
436 {kEnableFeedSessionCloseForegroundRefresh, "false"},
437 {kEnableFeedAppCloseForegroundRefresh, "false"},
438 {kEnableFeedAppCloseBackgroundRefresh, "true"}};
Ed Chin178ec2a2023-02-10 22:21:26439
Ed Chin5c1fd532023-03-20 17:43:29440// Feed Invisible Foreground Refresh Feature Variations.
441const FeatureEntry::FeatureVariation
442 kFeedInvisibleForegroundRefreshVariations[] = {
443 {"session close foreground refresh", kFeedSessionCloseForegroundRefresh,
444 std::size(kFeedSessionCloseForegroundRefresh), nullptr},
445 {"app close foreground refresh", kFeedAppCloseForegroundRefresh,
446 std::size(kFeedAppCloseForegroundRefresh), nullptr},
Ed Chin44e6c7e2023-03-22 00:32:54447 {"app close background refresh", kFeedAppCloseBackgroundRefresh,
448 std::size(kFeedAppCloseBackgroundRefresh), nullptr},
Ed Chin178ec2a2023-02-10 22:21:26449};
450
Chris Luc9a5cb12022-07-20 16:11:39451const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsers[] = {
Chris Lu85e8cc642022-09-23 20:27:58452 {kTrendingQueriesHideShortcutsParam, "false"}};
Chris Luc9a5cb12022-07-20 16:11:39453const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsersHideShortcuts[] =
Chris Lu85e8cc642022-09-23 20:27:58454 {{kTrendingQueriesHideShortcutsParam, "true"}};
Chris Luc9a5cb12022-07-20 16:11:39455const FeatureEntry::FeatureParam kTrendingQueriesEnableFeedDisabled[] = {
456 {kTrendingQueriesHideShortcutsParam, "false"},
457 {kTrendingQueriesDisabledFeedParam, "true"},
Chris Lu85e8cc642022-09-23 20:27:58458};
Chris Luc9a5cb12022-07-20 16:11:39459
460const FeatureEntry::FeatureVariation kTrendingQueriesModuleVariations[] = {
461 {"Enabled All Users", kTrendingQueriesEnableAllUsers,
462 std::size(kTrendingQueriesEnableAllUsers), nullptr},
463 {"Enabled All Users Hide Shortcuts",
464 kTrendingQueriesEnableAllUsersHideShortcuts,
465 std::size(kTrendingQueriesEnableAllUsersHideShortcuts), nullptr},
466 {"Enabled Disabled Feed", kTrendingQueriesEnableFeedDisabled,
467 std::size(kTrendingQueriesEnableFeedDisabled), nullptr},
Chris Luc9a5cb12022-07-20 16:11:39468};
469
Igor Ruvinov44fed9f2022-06-10 22:51:42470const FeatureEntry::FeatureParam kDmTokenDeletionParam[] = {{"forced", "true"}};
471const FeatureEntry::FeatureVariation kDmTokenDeletionVariation[] = {
472 {"(Forced)", kDmTokenDeletionParam, std::size(kDmTokenDeletionParam),
473 nullptr}};
474
Aliona DANGLA00ae7db2022-10-04 16:58:50475const FeatureEntry::FeatureParam kOpenInDownloadInShareButton[] = {
Ewann Pelleec8ef892022-10-20 13:13:58476 {kOpenInDownloadParameterName, kOpenInDownloadInShareButtonParam}};
Aliona DANGLAa5257ccc2022-08-29 14:01:49477const FeatureEntry::FeatureParam kOpenInDownloadWithWKDownload[] = {
Ewann Pelleec8ef892022-10-20 13:13:58478 {kOpenInDownloadParameterName, kOpenInDownloadWithWKDownloadParam}};
Aliona DANGLAa5257ccc2022-08-29 14:01:49479const FeatureEntry::FeatureParam kOpenInDownloadWithV2[] = {
Ewann Pelleec8ef892022-10-20 13:13:58480 {kOpenInDownloadParameterName, kOpenInDownloadWithV2Param}};
481
Aliona DANGLAa5257ccc2022-08-29 14:01:49482const FeatureEntry::FeatureVariation kOpenInDownloadVariations[] = {
Aliona DANGLA00ae7db2022-10-04 16:58:50483 {"With legacy download", kOpenInDownloadInShareButton,
484 std::size(kOpenInDownloadInShareButton), nullptr},
Aliona DANGLAa5257ccc2022-08-29 14:01:49485 {"With WKDownload", kOpenInDownloadWithWKDownload,
486 std::size(kOpenInDownloadWithWKDownload), nullptr},
487 {"With V2", kOpenInDownloadWithV2, std::size(kOpenInDownloadWithV2),
488 nullptr},
489};
490
Ewann Pelle87019cdf2023-02-17 14:28:16491const FeatureEntry::FeatureParam kEnablePinnedTabsOverflow[] = {
492 {kEnablePinnedTabsOverflowParam, "true"}};
Ewann Pelle3774cac532022-11-15 10:12:37493
494const FeatureEntry::FeatureVariation kEnablePinnedTabsVariations[] = {
Ewann Pelle87019cdf2023-02-17 14:28:16495 {"+ overflow entry", kEnablePinnedTabsOverflow,
496 std::size(kEnablePinnedTabsOverflow), nullptr},
Ewann Pelle3774cac532022-11-15 10:12:37497};
498
ginnnnnnny591a4972022-09-01 16:10:27499const FeatureEntry::FeatureParam kAutofillBrandingIOSMonotone[] = {
500 {autofill::features::kAutofillBrandingIOSParam, "true"}};
501const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = {
502 {"(Monotone)", kAutofillBrandingIOSMonotone,
503 std::size(kAutofillBrandingIOSMonotone), nullptr}};
504
Scott Yodercb2fe632022-09-12 15:28:35505const FeatureEntry::FeatureParam kIOSNewPostRestoreExperienceMinimal[] = {
Benjamin Williams3d3a2ec2022-09-13 20:01:26506 {post_restore_signin::features::kIOSNewPostRestoreExperienceParam, "true"}};
Scott Yodercb2fe632022-09-12 15:28:35507const FeatureEntry::FeatureVariation kIOSNewPostRestoreExperienceVariations[] =
508 {{"minimal", kIOSNewPostRestoreExperienceMinimal,
509 std::size(kIOSNewPostRestoreExperienceMinimal), nullptr}};
510
adamta8886def42023-03-07 19:45:23511const FeatureEntry::FeatureParam
512 kNewTabPageRetentionPopularSitesIncludePopularApps[] = {
513 {ntp_tiles::kNewTabPageRetentionParam, "1"}};
514const FeatureEntry::FeatureParam
515 kNewTabPageRetentionPopularSitesExcludePopularApps[] = {
516 {ntp_tiles::kNewTabPageRetentionParam, "2"}};
517const FeatureEntry::FeatureParam kNewTabPageRetentionTileAblationHideAll[] = {
518 {ntp_tiles::kNewTabPageRetentionParam, "4"}};
519const FeatureEntry::FeatureParam kNewTabPageRetentionTileAblationHideMVTOnly[] =
520 {{ntp_tiles::kNewTabPageRetentionParam, "5"}};
521const FeatureEntry::FeatureVariation kNewTabPageRetentionVariations[] = {
522 {"- Improved popular sites, Include popular apps",
523 kNewTabPageRetentionPopularSitesIncludePopularApps,
524 std::size(kNewTabPageRetentionPopularSitesIncludePopularApps), nullptr},
525 {"- Improved popular sites, Exclude popular apps",
526 kNewTabPageRetentionPopularSitesExcludePopularApps,
527 std::size(kNewTabPageRetentionPopularSitesExcludePopularApps), nullptr},
528 {"- Tile ablation, Hide all", kNewTabPageRetentionTileAblationHideAll,
529 std::size(kNewTabPageRetentionTileAblationHideAll), nullptr},
530 {"- Tile ablation, Hide MVT only",
531 kNewTabPageRetentionTileAblationHideMVTOnly,
532 std::size(kNewTabPageRetentionTileAblationHideMVTOnly), nullptr}};
Benjamin Williamsaa8da8142022-11-14 19:51:03533
Raj T18a2c8c2023-03-15 17:20:15534const FeatureEntry::FeatureParam kEnableExpKitTextClassifierDate[] = {
535 {"date", "true"}};
536const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddress[] = {
537 {"address", "true"}};
538const FeatureEntry::FeatureParam kEnableExpKitTextClassifierPhoneNumber[] = {
539 {"phonenumber", "true"}};
540const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmail[] = {
541 {"email", "true"}};
542const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAll[] = {
543 {"date", "true"},
544 {"address", "true"},
545 {"phonenumber", "true"},
546 {"email", "true"}};
547const FeatureEntry::FeatureVariation kEnableExpKitTextClassifierVariations[] = {
548 {"Enabled for all entities", kEnableExpKitTextClassifierAll,
549 std::size(kEnableExpKitTextClassifierAll), nullptr},
550 {"Enabled for date", kEnableExpKitTextClassifierDate,
551 std::size(kEnableExpKitTextClassifierDate), nullptr},
552 {"Enabled for address", kEnableExpKitTextClassifierAddress,
553 std::size(kEnableExpKitTextClassifierAddress), nullptr},
554 {"Enabled for phonenumber", kEnableExpKitTextClassifierPhoneNumber,
555 std::size(kEnableExpKitTextClassifierPhoneNumber), nullptr},
556 {"Enabled for email", kEnableExpKitTextClassifierEmail,
557 std::size(kEnableExpKitTextClassifierEmail), nullptr}};
558
Elmehdi Rahmaoui3d549fc2022-10-20 14:31:28559const FeatureEntry::FeatureParam kEnableExperienceKitMapsWithSrp[] = {
560 {kExperienceKitMapsVariationName, kEnableExperienceKitMapsVariationSrp}};
561const FeatureEntry::FeatureVariation kEnableExperienceKitMapsVariations[] = {
562 {"with search result page", kEnableExperienceKitMapsWithSrp,
563 std::size(kEnableExperienceKitMapsWithSrp), nullptr}};
564
adamta3811f9182022-10-24 17:49:33565const FeatureEntry::FeatureParam kFollowingFeedSortTypeGroupedByPublisher[] = {
566 {kFollowingFeedDefaultSortTypeGroupedByPublisher, "true"},
567 {kFollowingFeedDefaultSortTypeSortByLatest, "false"}};
568const FeatureEntry::FeatureParam kFollowingFeedSortTypeSortByLatest[] = {
569 {kFollowingFeedDefaultSortTypeGroupedByPublisher, "false"},
570 {kFollowingFeedDefaultSortTypeSortByLatest, "true"}};
571
572const FeatureEntry::FeatureVariation kFollowingFeedDefaultSortTypeVariations[] =
573 {{"Grouped by Publisher", kFollowingFeedSortTypeGroupedByPublisher,
574 std::size(kFollowingFeedSortTypeGroupedByPublisher), nullptr},
575 {"Sort by Latest", kFollowingFeedSortTypeSortByLatest,
576 std::size(kFollowingFeedSortTypeSortByLatest), nullptr}};
577
Quentin Pubert154fc6a2023-01-09 15:58:58578const FeatureEntry::FeatureParam kNativeFindInPageWithChromeFindBar[] = {
579 {kNativeFindInPageParameterName, kNativeFindInPageWithChromeFindBarParam}};
580const FeatureEntry::FeatureVariation kNativeFindInPageVariations[] = {
581 {"With Chrome Find Bar", kNativeFindInPageWithChromeFindBar,
582 std::size(kNativeFindInPageWithChromeFindBar), nullptr}};
583
Louis Romero93e9b50a2023-01-26 01:46:12584const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
585 {kTabInactivityThresholdParameterName,
586 kTabInactivityThresholdOneWeekParam}};
587const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
588 {kTabInactivityThresholdParameterName,
589 kTabInactivityThresholdTwoWeeksParam}};
590const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
591 {kTabInactivityThresholdParameterName,
592 kTabInactivityThresholdThreeWeeksParam}};
Louis Romero56abd902023-03-15 16:21:58593const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = {
594 {kTabInactivityThresholdParameterName,
595 kTabInactivityThresholdOneMinuteDemoParam}};
Louis Romero93e9b50a2023-01-26 01:46:12596
597const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
598 {"One week", kTabInactivityThresholdOneWeek,
599 std::size(kTabInactivityThresholdOneWeek), nullptr},
600 {"Two weeks", kTabInactivityThresholdTwoWeeks,
601 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
602 {"Three weeks", kTabInactivityThresholdThreeWeeks,
603 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
Louis Romero56abd902023-03-15 16:21:58604 {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo,
605 std::size(kTabInactivityThresholdOneMinuteDemo), nullptr},
Louis Romero93e9b50a2023-01-26 01:46:12606};
607
Huiting Yud7d2a5322023-02-09 21:14:22608const FeatureEntry::FeatureParam
609 kCredentialProviderExtensionPromoOnPasswordSaved[] = {
610 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
611const FeatureEntry::FeatureParam
612 kCredentialProviderExtensionPromoOnPasswordCopied[] = {
613 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}};
614const FeatureEntry::FeatureParam
615 kCredentialProviderExtensionPromoOnLoginWithAutofill[] = {
616 {kCredentialProviderExtensionPromoOnLoginWithAutofillParam, "true"}};
617
618const FeatureEntry::FeatureVariation
619 kCredentialProviderExtensionPromoVariations[] = {
620 {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved,
621 std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr},
622 {"On password copied",
623 kCredentialProviderExtensionPromoOnPasswordCopied,
624 std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr},
625 {"On successful login with autofill",
626 kCredentialProviderExtensionPromoOnLoginWithAutofill,
627 std::size(kCredentialProviderExtensionPromoOnLoginWithAutofill),
628 nullptr},
629};
630
Olivier ROBINfd3887b72023-02-23 14:45:42631const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
632 {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
633const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
634 {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
635 std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr}};
636
Olivier ROBIN2ca64952023-02-23 17:11:48637const FeatureEntry::FeatureParam kAddToHomeScreenDisableIncognito[] = {
638 {kAddToHomeScreenDisableIncognitoParam, "true"}};
639const FeatureEntry::FeatureVariation kAddToHomeScreenVariations[] = {
640 {"Disable on incognito", kAddToHomeScreenDisableIncognito,
641 std::size(kAddToHomeScreenDisableIncognito), nullptr}};
642
ginnnnnnny75903622023-03-01 18:00:00643const FeatureEntry::FeatureParam kBringYourOwnTabsIOSBottomMessage[] = {
644 {kBringYourOwnTabsIOSParam, "true"}};
645const FeatureEntry::FeatureVariation kBringYourOwnTabsIOSVariations[] = {
646 {"with bottom message on tab grid", kBringYourOwnTabsIOSBottomMessage,
647 std::size(kBringYourOwnTabsIOSBottomMessage), nullptr}};
648
Cooper Knaak1e026562017-07-26 05:22:28649// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21650// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28651// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
652// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21653// macro for this type supplying the command line to the macro.
654// . MULTI_VALUE: a list of choices, the first of which should correspond to a
655// deactivated state for this lab (i.e. no command line option). To specify
656// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
657// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28658// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
659// either enabled, disabled, or uses the default value of the associated
660// base::Feature instance. To specify this type of entry use the macro
661// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
662// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
663// base::Feature instance. Choices corresponding to the default state, a
664// universally enabled state, and a universally disabled state are
665// automatically included. To specify this type of entry use the macro
666// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
667// the array of choices.
668//
sdefresne14900ee2015-11-27 14:43:21669// See the documentation of FeatureEntry for details on the fields.
670//
671// When adding a new choice, add it to the end of the list.
672const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28673 {"in-product-help-demo-mode-choice",
674 flag_descriptions::kInProductHelpDemoModeName,
675 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
676 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23677 feature_engagement::kIPHDemoMode,
678 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09679 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22680 {"enable-autofill-credit-card-upload",
681 flag_descriptions::kAutofillCreditCardUploadName,
682 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24683 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23684 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
685 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
686 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51687 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:23688 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
689 {"wallet-service-use-sandbox",
690 flag_descriptions::kWalletServiceUseSandboxName,
691 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
692 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
693 autofill::switches::kWalletServiceUseSandbox,
694 "1",
695 autofill::switches::kWalletServiceUseSandbox,
696 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:59697 {"show-autofill-type-predictions",
698 flag_descriptions::kShowAutofillTypePredictionsName,
699 flag_descriptions::kShowAutofillTypePredictionsDescription,
700 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:50701 FEATURE_VALUE_TYPE(
702 autofill::features::test::kAutofillShowTypePredictions)},
Vidhan Jaincbb3d53f2023-01-23 19:13:26703 {"autofill-account-profiles-union-view",
704 flag_descriptions::kAutofillAccountProfilesUnionViewName,
705 flag_descriptions::kAutofillAccountProfilesUnionViewDescription,
706 flags_ui::kOsIos,
707 FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfilesUnionView)},
Olivier Robin3d60411622018-02-23 10:03:22708 {"autofill-ios-delay-between-fields",
709 flag_descriptions::kAutofillIOSDelayBetweenFieldsName,
710 flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription,
711 flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)},
Benjamin Williamsdf18e7e2022-10-03 18:46:05712 {"fullscreen-promos-manager-skip-internal-limits",
713 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
714 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
715 flags_ui::kOsIos,
716 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:14717 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:53718 flag_descriptions::kFullscreenSmoothScrollingName,
719 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:19720 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:06721 {"webpage-default-zoom-from-dynamic-type",
722 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
723 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
724 flags_ui::kOsIos,
725 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:56726 {"webpage-alternative-text-zoom",
727 flag_descriptions::kWebPageAlternativeTextZoomName,
728 flag_descriptions::kWebPageAlternativeTextZoomDescription,
729 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:34730 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
731 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
732 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Kurt Horimoto79d590b2018-09-12 19:09:28733 {"toolbar-container", flag_descriptions::kToolbarContainerName,
734 flag_descriptions::kToolbarContainerDescription, flags_ui::kOsIos,
735 FEATURE_VALUE_TYPE(toolbar_container::kToolbarContainerEnabled)},
Stepan Khapugincc4e9842019-01-23 13:38:13736 {"omnibox-ui-max-autocomplete-matches",
737 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
738 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
739 flags_ui::kOsIos,
740 FEATURE_WITH_PARAMS_VALUE_TYPE(
741 omnibox::kUIExperimentMaxAutocompleteMatches,
742 kOmniboxUIMaxAutocompleteMatchesVariations,
743 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:35744 {"omnibox-local-history-zero-suggest-beyond-ntp",
745 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
746 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
747 flags_ui::kOsIos,
748 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:54749 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
750 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
751 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
752 kOmniboxMaxZPSMatchesVariations,
753 "OmniboxMaxZPSVariations")},
Stepan Khapugind9876842023-01-27 17:59:45754
755 {"omnibox-most-visited-tiles-on-srp",
756 flag_descriptions::kOmniboxMostVisitedTilesOnSrpName,
757 flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription,
758 flags_ui::kOsIos,
759 FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)},
Caitlin Fischer43edd90a2019-05-01 13:24:30760 {"autofill-use-mobile-label-disambiguation",
761 flag_descriptions::kAutofillUseMobileLabelDisambiguationName,
762 flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription,
763 flags_ui::kOsIos,
Caitlin Fischer37e01232019-05-24 13:05:45764 FEATURE_WITH_PARAMS_VALUE_TYPE(
765 autofill::features::kAutofillUseMobileLabelDisambiguation,
766 kAutofillUseMobileLabelDisambiguationVariations,
767 "AutofillUseMobileLabelDisambiguation")},
Mike Doughertyb6c770d2019-09-13 22:56:46768 {"ios-breadcrumbs", flag_descriptions::kLogBreadcrumbsName,
769 flag_descriptions::kLogBreadcrumbsDescription, flags_ui::kOsIos,
Jesse McKenna85c1a59f2021-05-05 19:08:30770 FEATURE_VALUE_TYPE(breadcrumbs::kLogBreadcrumbs)},
Jérôme Lebelc374fdd2019-09-27 10:36:48771 {"force-startup-signin-promo",
772 flag_descriptions::kForceStartupSigninPromoName,
773 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:29774 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tanmoy Mollik429d21a2022-11-28 15:42:06775 {"identity-status-consistency",
776 flag_descriptions::kIdentityStatusConsistencyName,
777 flag_descriptions::kIdentityStatusConsistencyDescription, flags_ui::kOsIos,
778 FEATURE_VALUE_TYPE(switches::kIdentityStatusConsistency)},
Yoichi Osato7ae11752021-03-16 03:27:22779 {"restore-session-from-cache",
780 flag_descriptions::kRestoreSessionFromCacheName,
781 flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos,
Justin Cohen3ec2522c2021-04-23 18:23:49782 FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)},
Roberto Mourab87b9722020-06-17 17:12:09783 {"expanded-tab-strip", flag_descriptions::kExpandedTabStripName,
784 flag_descriptions::kExpandedTabStripDescription, flags_ui::kOsIos,
785 FEATURE_VALUE_TYPE(kExpandedTabStrip)},
Tommy Martino6b4eb7e2020-06-25 18:25:41786 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
787 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
788 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:13789#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:45790 {"screen-time-integration-ios",
791 flag_descriptions::kScreenTimeIntegrationName,
792 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
793 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:13794#endif
Nazerke3e993f72020-09-21 13:00:06795 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
796 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
797 FEATURE_VALUE_TYPE(kModernTabStrip)},
Eugene Butf869bff2020-12-10 01:16:55798 {"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName,
799 flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos,
800 FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)},
Chris Lub17195f2020-12-10 20:49:14801 {"default-browser-fullscreen-promo-experiment",
802 flag_descriptions::kDefaultBrowserFullscreenPromoExperimentName,
803 flag_descriptions::kDefaultBrowserFullscreenPromoExperimentDescription,
804 flags_ui::kOsIos,
Javier Ernesto Flores Robles159414232021-06-16 14:29:59805 FEATURE_WITH_PARAMS_VALUE_TYPE(
806 kDefaultBrowserFullscreenPromoExperiment,
807 kDefaultBrowserFullscreenPromoExperimentVariations,
808 "IOSDefaultBrowserFullscreenPromoExperiment")},
Cheick Cisse76ade3d2020-12-16 00:15:11809 {"ios-shared-highlighting-color-change",
810 flag_descriptions::kIOSSharedHighlightingColorChangeName,
811 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:07812 flags_ui::kOsIos,
813 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:34814 {"ios-shared-highlighting-v2",
815 flag_descriptions::kIOSSharedHighlightingV2Name,
816 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
817 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Stepan Khapugin04341202021-01-07 12:22:45818 {"omnibox-new-textfield-implementation",
819 flag_descriptions::kOmniboxNewImplementationName,
820 flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos,
821 FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)},
Stepan Khapugin0be8f6d2022-09-21 20:22:26822 {"omnibox-on-focus-suggestions-contextual-web",
823 flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName,
824 flag_descriptions::
825 kOmniboxFocusTriggersContextualWebZeroSuggestDescription,
826 flags_ui::kOsIos,
827 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)},
828 {"omnibox-on-focus-suggestions-srp",
829 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName,
830 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription,
831 flags_ui::kOsIos,
832 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)},
Stepan Khapugin0da12382023-01-24 16:08:12833 {"omnibox-report-assisted-query-stats",
834 flag_descriptions::kOmniboxReportAssistedQueryStatsName,
835 flag_descriptions::kOmniboxReportAssistedQueryStatsDescription,
836 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)},
837 {"omnibox-report-searchbox-stats",
838 flag_descriptions::kOmniboxReportSearchboxStatsName,
839 flag_descriptions::kOmniboxReportSearchboxStatsDescription,
840 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)},
Stepan Khapuginecf128a92022-08-30 11:23:15841 {"omnibox-fuzzy-url-suggestions",
842 flag_descriptions::kOmniboxFuzzyUrlSuggestionsName,
843 flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription,
844 flags_ui::kOsIos,
845 FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)},
gogerald0ff29e52021-02-03 18:56:19846 {"start-surface", flag_descriptions::kStartSurfaceName,
847 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:23848 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
849 kStartSurfaceVariations,
850 "StartSurface")},
Vidhan Jain451b4752021-07-15 10:16:42851 {"autofill-address-verification-in-save-prompt",
852 flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName,
853 flag_descriptions::
854 kEnableAutofillAddressSavePromptAddressVerificationDescription,
855 flags_ui::kOsIos,
856 FEATURE_VALUE_TYPE(
857 autofill::features::
858 kAutofillAddressProfileSavePromptAddressVerificationSupport)},
Viktor Semeniuk68e794a2021-03-24 10:23:25859 {"filling-across-affiliated-websites",
860 flag_descriptions::kFillingAcrossAffiliatedWebsitesName,
861 flag_descriptions::kFillingAcrossAffiliatedWebsitesDescription,
862 flags_ui::kOsIos,
863 FEATURE_VALUE_TYPE(
864 password_manager::features::kFillingAcrossAffiliatedWebsites)},
Side Yilmaz6c53f7102021-09-07 13:26:19865 {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName,
866 flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos,
867 FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)},
Nohemi Fernandezc00842a2021-07-26 11:47:34868 {"wait-threshold-seconds-for-capabilities-api",
869 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
870 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
871 flags_ui::kOsIos,
872 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Jared Saul2188f762021-08-02 21:22:23873 {"autofill-fill-merchant-promo-code-fields",
874 flag_descriptions::kAutofillFillMerchantPromoCodeFieldsName,
875 flag_descriptions::kAutofillFillMerchantPromoCodeFieldsDescription,
876 flags_ui::kOsIos,
877 FEATURE_VALUE_TYPE(
878 autofill::features::kAutofillFillMerchantPromoCodeFields)},
Sylvain Defresnedff67e42021-09-24 09:43:03879 {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName,
880 flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos,
881 FEATURE_VALUE_TYPE(kNewOverflowMenu)},
Robbie Gibsondf097a72022-09-05 08:17:18882 {"new-overflow-menu-alternate-iph",
883 flag_descriptions::kNewOverflowMenuAlternateIPHName,
884 flag_descriptions::kNewOverflowMenuAlternateIPHDescription,
885 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuAlternateIPH)},
Evan Bernstein0a85f332021-09-29 19:07:24886 {"use-lens-to-search-for-image",
887 flag_descriptions::kUseLensToSearchForImageName,
888 flag_descriptions::kUseLensToSearchForImageDescription, flags_ui::kOsIos,
Ali Juma02a9b7b2021-10-01 13:44:44889 FEATURE_VALUE_TYPE(kUseLensToSearchForImage)},
Jason Hu3830a072022-08-19 20:56:22890 {"enable-lens-in-home-screen-widget",
891 flag_descriptions::kEnableLensInHomeScreenWidgetName,
892 flag_descriptions::kEnableLensInHomeScreenWidgetDescription,
893 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)},
894 {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName,
895 flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos,
896 FEATURE_VALUE_TYPE(kEnableLensInKeyboard)},
897 {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName,
898 flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos,
899 FEATURE_VALUE_TYPE(kEnableLensInNTP)},
Anudeep Palanki403c907a2023-01-25 20:30:03900 {"enable-lens-context-menu-alt-text",
901 flag_descriptions::kEnableLensContextMenuAltTextName,
902 flag_descriptions::kEnableLensContextMenuAltTextDescription,
903 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)},
Jason Hu67cfb0f2022-11-14 20:21:44904 {"enable-lens-in-omnibox-copied-image",
905 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
906 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
907 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Benjamin Williamsbee6ab62022-02-28 18:09:40908 {"use-load-simulated-request-for-error-page-navigation",
Gauthier Ambard33cceaf2022-05-05 14:00:23909 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName,
910 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription,
Benjamin Williamsbee6ab62022-02-28 18:09:40911 flags_ui::kOsIos,
Gauthier Ambard33cceaf2022-05-05 14:00:23912 FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)},
Sergio Collazos9fcc6ed2021-10-06 00:58:03913 {"enable-disco-feed-endpoint",
914 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
915 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
916 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:11917 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Mohammad Refaatab6bee62022-05-16 16:31:15918 {"enable-discover-feed-top-sync-promo",
919 flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
920 flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
921 flags_ui::kOsIos,
922 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
923 kDiscoverFeedTopSyncPromoVariations,
924 "EnableDiscoverFeedTopSyncPromo")},
adamta4a6f2fd22023-02-13 17:37:14925 {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
926 flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
927 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
928 kFeedHeaderSettingsVariations,
929 "FeedHeaderSettings")},
Tommy Martino7393d762021-10-12 17:59:28930 {"shared-highlighting-amp",
931 flag_descriptions::kIOSSharedHighlightingAmpName,
932 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
933 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:28934 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:42935 commerce::flag_descriptions::kCommercePriceTrackingName,
936 commerce::flag_descriptions::kCommercePriceTrackingDescription,
937 flags_ui::kOsIos,
938 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
939 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:15940 "CommercePriceTracking")},
Tina Wang8058d5f2021-11-04 20:06:06941 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
942 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
943 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:54944 {"ntp-view-hierarchy-repair",
945 flag_descriptions::kNTPViewHierarchyRepairName,
946 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:20947 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Justin Cohen69cec682021-11-04 20:10:26948 {"synthesized-restore-session",
949 flag_descriptions::kSynthesizedRestoreSessionName,
950 flag_descriptions::kSynthesizedRestoreSessionDescription, flags_ui::kOsIos,
951 FEATURE_VALUE_TYPE(web::features::kSynthesizedRestoreSession)},
ginnnnnnnyee3036e2022-08-12 18:01:18952 {"ios-media-permissions-control",
953 flag_descriptions::kMediaPermissionsControlName,
954 flag_descriptions::kMediaPermissionsControlDescription, flags_ui::kOsIos,
955 FEATURE_VALUE_TYPE(web::features::kMediaPermissionsControl)},
Veronique Nguyen11f8c9f2022-09-12 16:51:26956 {"enable-password-grouping", flag_descriptions::kPasswordsGroupingName,
957 flag_descriptions::kPasswordsGroupingDescription, flags_ui::kOsIos,
958 FEATURE_VALUE_TYPE(password_manager::features::kPasswordsGrouping)},
Ali Juma1429cf8a2022-02-09 15:31:01959 {"enable-fullscreen-api", flag_descriptions::kEnableFullscreenAPIName,
960 flag_descriptions::kEnableFullscreenAPIDescription, flags_ui::kOsIos,
961 FEATURE_VALUE_TYPE(web::features::kEnableFullscreenAPI)},
Joemer Ramosc34a30a02022-09-22 15:18:43962 {"enable-tailored-security-integration",
963 flag_descriptions::kTailoredSecurityIntegrationName,
964 flag_descriptions::kTailoredSecurityIntegrationDescription,
965 flags_ui::kOsIos,
966 FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)},
Vishwas Uppoor89303a92022-08-03 00:56:26967 {"autofill-enable-card-product-name",
968 flag_descriptions::kAutofillEnableCardProductNameName,
969 flag_descriptions::kAutofillEnableCardProductNameDescription,
970 flags_ui::kOsIos,
971 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Victor Hugo Vianna Silvaf0a44002022-02-16 10:38:00972 {"send-tab-to-self-signin-promo",
973 flag_descriptions::kSendTabToSelfSigninPromoName,
974 flag_descriptions::kSendTabToSelfSigninPromoDescription, flags_ui::kOsIos,
975 FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfSigninPromo)},
Siyu Anff02e742022-04-07 19:08:22976 {"autofill-enforce-delays-in-strike-database",
977 flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseName,
978 flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseDescription,
979 flags_ui::kOsIos,
980 FEATURE_VALUE_TYPE(
981 autofill::features::kAutofillEnforceDelaysInStrikeDatabase)},
Jared Saulb0473bd2022-04-20 00:03:41982 {"autofill-upstream-allow-additional-email-domains",
983 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName,
984 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription,
985 flags_ui::kOsIos,
986 FEATURE_VALUE_TYPE(
987 autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)},
988 {"autofill-upstream-allow-all-email-domains",
989 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName,
990 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription,
991 flags_ui::kOsIos,
992 FEATURE_VALUE_TYPE(
993 autofill::features::kAutofillUpstreamAllowAllEmailDomains)},
Raj Tb95d813542022-11-16 21:27:52994 {"enable-download-service-foreground-session",
995 flag_descriptions::kDownloadServiceForegroundSessionName,
996 flag_descriptions::kDownloadServiceForegroundSessionDescription,
997 flags_ui::kOsIos,
998 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:23999 {"enable-tflite-language-detection",
1000 flag_descriptions::kTFLiteLanguageDetectionName,
1001 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1002 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201003 {"optimization-guide-debug-logs",
1004 flag_descriptions::kOptimizationGuideDebugLogsName,
1005 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1006 flags_ui::kOsIos,
1007 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551008 {"optimization-guide-push-notifications",
1009 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1010 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1011 flags_ui::kOsIos,
1012 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
Olivier Robinffe767c2022-04-21 13:13:231013 {"optimization-guide-model-downloading",
1014 flag_descriptions::kOptimizationGuideModelDownloadingName,
1015 flag_descriptions::kOptimizationGuideModelDownloadingDescription,
1016 flags_ui::kOsIos,
1017 FEATURE_VALUE_TYPE(
1018 optimization_guide::features::kOptimizationGuideModelDownloading)},
1019 {"optimization-target-prediction",
1020 flag_descriptions::kOptimizationTargetPredictionName,
1021 flag_descriptions::kOptimizationTargetPredictionDescription,
1022 flags_ui::kOsIos,
1023 FEATURE_VALUE_TYPE(
1024 optimization_guide::features::kOptimizationTargetPrediction)},
Rushan Suleymanov727309602022-04-28 20:08:541025 {"sync-standalone-invalidations", flag_descriptions::kSyncInvalidationsName,
1026 flag_descriptions::kSyncInvalidationsDescription, flags_ui::kOsIos,
1027 FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidations)},
1028 {"sync-standalone-invalidations-wallet-and-offer",
1029 flag_descriptions::kSyncInvalidationsWalletAndOfferName,
1030 flag_descriptions::kSyncInvalidationsWalletAndOfferDescription,
1031 flags_ui::kOsIos,
1032 FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidationsForWalletAndOffer)},
Christian Xub8c06cd2022-04-29 20:55:011033 {"suggestions-scrolling-ipad",
1034 flag_descriptions::kEnableSuggestionsScrollingOnIPadName,
1035 flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription,
1036 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)},
Stepan Khapuginfee136c62022-11-28 13:24:001037 {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName,
1038 flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos,
1039 FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)},
David Jean7a8fa702022-05-02 15:21:221040 {"experience-kit-calendar", flag_descriptions::kCalendarExperienceKitName,
1041 flag_descriptions::kCalendarExperienceKitDescription, flags_ui::kOsIos,
1042 FEATURE_VALUE_TYPE(kCalendarExperienceKit)},
Elmehdi Rahmaoui5a6273a22022-11-28 16:19:251043 {"intents-on-phone-number", flag_descriptions::kPhoneNumberName,
1044 flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331045 FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)},
Elmehdi Rahmaoui21e87d52022-11-09 15:00:551046 {"experience-kit-apple-calendar",
1047 flag_descriptions::kAppleCalendarExperienceKitName,
1048 flag_descriptions::kAppleCalendarExperienceKitDescription,
1049 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)},
Raj T7db7a0e2022-11-17 16:33:081050 {"enable-expkit-text-classifier",
1051 flag_descriptions::kEnableExpKitTextClassifierName,
1052 flag_descriptions::kEnableExpKitTextClassifierDescription,
Raj T18a2c8c2023-03-15 17:20:151053 flags_ui::kOsIos,
1054 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifier,
1055 kEnableExpKitTextClassifierVariations,
1056 "ExpKitTextClassifier")},
Elmehdi Rahmaoui9d4ce40c62022-08-05 15:31:181057 {"experience-kit-maps", flag_descriptions::kMapsExperienceKitName,
1058 flag_descriptions::kMapsExperienceKitDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui3d549fc2022-10-20 14:31:281059 FEATURE_WITH_PARAMS_VALUE_TYPE(kMapsExperienceKit,
1060 kEnableExperienceKitMapsVariations,
1061 "IOSExperienceKitMaps")},
Elmehdi Rahmaouic699dc12022-10-12 11:17:051062 {"enable-long-press-surrounding-text",
1063 flag_descriptions::kLongPressSurroundingTextName,
1064 flag_descriptions::kLongPressSurroundingTextDescription, flags_ui::kOsIos,
1065 FEATURE_VALUE_TYPE(web::features::kLongPressSurroundingText)},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331066 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1067 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
1068 FEATURE_VALUE_TYPE(web::features::kOneTapForMaps)},
Mustafa Emre Acer4de8863a2022-05-03 22:17:011069 {"https-only-mode", flag_descriptions::kHttpsOnlyModeName,
1070 flag_descriptions::kHttpsOnlyModeDescription, flags_ui::kOsIos,
1071 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsOnlyMode)},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251072 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1073 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1074 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Benjamin Williams419c81e2022-05-04 18:33:221075 {"smart-sorting-new-overflow-menu",
1076 flag_descriptions::kSmartSortingNewOverflowMenuName,
1077 flag_descriptions::kSmartSortingNewOverflowMenuDescription,
1078 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSmartSortingNewOverflowMenu)},
Benjamin Williamsf721fc22023-01-10 23:28:251079 {"smart-sorting-price-tracking-destination",
1080 flag_descriptions::kSmartSortingPriceTrackingDestinationName,
1081 flag_descriptions::kSmartSortingPriceTrackingDestinationDescription,
1082 flags_ui::kOsIos,
1083 FEATURE_VALUE_TYPE(kSmartSortingPriceTrackingDestination)},
Scott Yoder10493562022-06-28 17:37:441084 {"new-overflow-menu-share-chrome-action",
1085 flag_descriptions::kNewOverflowMenuShareChromeActionName,
1086 flag_descriptions::kNewOverflowMenuShareChromeActionDescription,
1087 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuShareChromeAction)},
Alexander Tekleb4643812023-01-06 23:12:301088 {"autofill-enable-ranking-formula-address-profiles",
1089 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1090 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1091 flags_ui::kOsIos,
1092 FEATURE_VALUE_TYPE(
1093 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391094 {"autofill-enable-ranking-formula-credit-cards",
1095 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1096 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1097 flags_ui::kOsIos,
1098 FEATURE_VALUE_TYPE(
1099 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021100 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1101 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1102 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Tina Wang30df7172022-12-09 22:02:021103 {"enable-feed-bottom-sign-in-promo",
1104 flag_descriptions::kEnableFeedBottomSignInPromoName,
1105 flag_descriptions::kEnableFeedBottomSignInPromoDescription,
1106 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedBottomSignInPromo)},
1107 {"enable-feed-card-menu-sign-in-promo",
1108 flag_descriptions::kEnableFeedCardMenuSignInPromoName,
1109 flag_descriptions::kEnableFeedCardMenuSignInPromoDescription,
1110 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)},
Chris Lu7f024ed2c2022-05-27 23:11:271111 {"content-suggestions-ui-module-refresh",
1112 flag_descriptions::kContentSuggestionsUIModuleRefreshName,
1113 flag_descriptions::kContentSuggestionsUIModuleRefreshDescription,
Chris Lu8e308dc2022-09-06 16:59:401114 flags_ui::kOsIos,
Chris Lu85e8cc642022-09-23 20:27:581115 FEATURE_WITH_PARAMS_VALUE_TYPE(
1116 kContentSuggestionsUIModuleRefresh,
1117 kModuleRefreshVariations,
1118 kContentSuggestionsUIModuleRefreshFlagOverrideFieldTrialName)},
Olivier Robin058c1fad2022-05-31 18:24:061119 {"default-browser-intents-show-settings",
1120 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1121 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1122 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Igor Ruvinova43a66dc2022-06-09 21:57:451123 {"dm-token-deletion", flag_descriptions::kDmTokenDeletionName,
1124 flag_descriptions::kDmTokenDeletionDescription, flags_ui::kOsIos,
Igor Ruvinov44fed9f2022-06-10 22:51:421125 FEATURE_WITH_PARAMS_VALUE_TYPE(policy::features::kDmTokenDeletion,
1126 kDmTokenDeletionVariation,
1127 "DmTokenDeletion")},
Tommy Martinoad42be52022-06-13 11:51:191128 {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName,
1129 flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos,
1130 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)},
Scott Yoder16bff3c2023-03-24 16:00:551131 {"ios-set-up-list", flag_descriptions::kIOSSetUpListName,
1132 flag_descriptions::kIOSSetUpListDescription, flags_ui::kOsIos,
1133 FEATURE_VALUE_TYPE(kIOSSetUpList)},
Theodor-Stefan Cristea6d087b82022-07-26 15:25:291134 {"ios-password-manager-cross-origin-iframe-support",
1135 flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportName,
1136 flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportDescription,
1137 flags_ui::kOsIos,
1138 FEATURE_VALUE_TYPE(password_manager::features::
1139 kIOSPasswordManagerCrossOriginIframeSupport)},
Veronique Nguyenc3d7db52023-03-08 22:52:321140 {"ios-password-bottom-sheet",
1141 flag_descriptions::kIOSPasswordBottomSheetName,
1142 flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos,
1143 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)},
adamta8886def42023-03-07 19:45:231144 {"ios-new-tab-page-retention", flag_descriptions::kNewTabPageRetentionName,
1145 flag_descriptions::kNewTabPageRetentionDescription, flags_ui::kOsIos,
1146 FEATURE_WITH_PARAMS_VALUE_TYPE(ntp_tiles::kNewTabPageRetention,
1147 kNewTabPageRetentionVariations,
1148 ntp_tiles::kNewTabPageRetentionName)},
Christian Xud105a1352022-06-17 19:54:141149 {"omnibox-adaptive-suggestions-count",
1150 flag_descriptions::kAdaptiveSuggestionsCountName,
1151 flag_descriptions::kAdaptiveSuggestionsCountDescription, flags_ui::kOsIos,
1152 FEATURE_VALUE_TYPE(omnibox::kAdaptiveSuggestionsCount)},
Chris Lu2fd473f2022-06-28 13:38:201153 {"trending-queries-module", flag_descriptions::kTrendingQueriesModuleName,
1154 flag_descriptions::kTrendingQueriesModuleDescription, flags_ui::kOsIos,
Chris Lu85e8cc642022-09-23 20:27:581155 FEATURE_WITH_PARAMS_VALUE_TYPE(
1156 kTrendingQueriesModule,
1157 kTrendingQueriesModuleVariations,
1158 kTrendingQueriesFlagOverrideFieldTrialName)},
Nakul Vaidyaddfdfbc2022-06-28 23:43:321159 {"autofill-parse-iban-fields",
Nakul Vaidya876210f2022-08-08 17:47:191160 flag_descriptions::kAutofillParseIBANFieldsName,
1161 flag_descriptions::kAutofillParseIBANFieldsDescription, flags_ui::kOsIos,
1162 FEATURE_VALUE_TYPE(autofill::features::kAutofillParseIBANFields)},
Moe Ahmadi098519d82022-07-27 18:34:241163 {"omnibox-zero-suggest-prefetching",
1164 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1165 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1166 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451167 {"omnibox-zero-suggest-prefetching-on-srp",
1168 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1169 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1170 flags_ui::kOsIos,
1171 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1172 {"omnibox-zero-suggest-prefetching-on-web",
1173 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1174 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1175 flags_ui::kOsIos,
1176 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471177 {"omnibox-zero-suggest-in-memory-caching",
1178 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1179 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1180 flags_ui::kOsIos,
1181 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351182 {"omnibox-on-device-tail-suggestions",
1183 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1184 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1185 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Joemer Ramosada1e852023-03-10 19:14:411186 {"enable-button-configuration-usage",
1187 flag_descriptions::kEnableUIButtonConfigurationName,
1188 flag_descriptions::kEnableUIButtonConfigurationDescription,
1189 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableUIButtonConfiguration)},
Vincent Boissellead6cbe22022-07-04 19:32:391190 {"enable-user-policy", flag_descriptions::kEnableUserPolicyName,
1191 flag_descriptions::kEnableUserPolicyDescription, flags_ui::kOsIos,
Vincent Boisselle88fef222022-09-23 18:54:501192 FEATURE_VALUE_TYPE(policy::kUserPolicy)},
Marc Treibb9d8ed802022-07-05 15:15:491193 {"enable-sync-history-datatype",
1194 flag_descriptions::kSyncEnableHistoryDataTypeName,
1195 flag_descriptions::kSyncEnableHistoryDataTypeDescription, flags_ui::kOsIos,
1196 FEATURE_VALUE_TYPE(syncer::kSyncEnableHistoryDataType)},
Christian Xucf26d562022-07-06 09:28:361197 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1198 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1199 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1200 kOmniboxMaxURLMatchesVariations,
1201 "OmniboxMaxURLMatches")},
Olivier Robin60d3a062022-07-06 17:34:061202 {"metrickit-non-crash-reports",
1203 flag_descriptions::kMetrickitNonCrashReportName,
1204 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1205 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Siyu An3194bda2022-07-13 19:30:371206 {"autofill-enable-remade-downstream-metrics",
1207 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName,
1208 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription,
1209 flags_ui::kOsIos,
1210 FEATURE_VALUE_TYPE(
1211 autofill::features::kAutofillEnableRemadeDownstreamMetrics)},
Nakul Vaidya13ca2042022-07-27 01:59:551212 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1213 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1214 flag_descriptions::
1215 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1216 flags_ui::kOsIos,
1217 FEATURE_VALUE_TYPE(
1218 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Cheick Cisse1a168ef2023-03-24 10:39:531219 {"default-browser-refactoring-promo-manager",
1220 flag_descriptions::kDefaultBrowserRefactoringPromoManagerName,
1221 flag_descriptions::kDefaultBrowserRefactoringPromoManagerDescription,
1222 flags_ui::kOsIos,
1223 FEATURE_VALUE_TYPE(kDefaultBrowserRefactoringPromoManager)},
Ed Chin91e44992022-07-27 13:42:341224#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1225 {"feed-background-refresh-ios",
1226 flag_descriptions::kFeedBackgroundRefreshName,
1227 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1228 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1229 kFeedBackgroundRefreshVariations,
1230 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261231#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin5c1fd532023-03-20 17:43:291232 {"feed-invisible-foreground-refresh-ios",
1233 flag_descriptions::kFeedInvisibleForegroundRefreshName,
1234 flag_descriptions::kFeedInvisibleForegroundRefreshDescription,
1235 flags_ui::kOsIos,
1236 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedInvisibleForegroundRefresh,
1237 kFeedInvisibleForegroundRefreshVariations,
1238 "FeedInvisibleForegroundRefresh")},
Christian Xu164a2e512022-08-01 20:38:191239 {"omnibox-keyboard-paste-button",
1240 flag_descriptions::kOmniboxKeyboardPasteButtonName,
1241 flag_descriptions::kOmniboxKeyboardPasteButtonDescription,
1242 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)},
Ed Chin178ec2a2023-02-10 22:21:261243
Aliona DANGLAa5257ccc2022-08-29 14:01:491244 {"enable-open-in-download", flag_descriptions::kEnableOpenInDownloadName,
1245 flag_descriptions::kEnableOpenInDownloadDescription, flags_ui::kOsIos,
1246 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableOpenInDownload,
1247 kOpenInDownloadVariations,
1248 "EnableOpenInDownload")},
Cheick Cisse87a51cb2022-09-08 21:29:171249 {"whats-new-ios", flag_descriptions::kWhatsNewIOSName,
1250 flag_descriptions::kWhatsNewIOSDescription, flags_ui::kOsIos,
Cheick Cissef37087902022-10-07 19:01:411251 FEATURE_WITH_PARAMS_VALUE_TYPE(kWhatsNewIOS,
1252 kWhatsNewLayoutVariations,
1253 "WhatsNewLayoutVariations")},
ginnnnnnny591a4972022-09-01 16:10:271254 {"ios-autofill-branding", flag_descriptions::kAutofillBrandingIOSName,
1255 flag_descriptions::kAutofillBrandingIOSDescription, flags_ui::kOsIos,
1256 FEATURE_WITH_PARAMS_VALUE_TYPE(autofill::features::kAutofillBrandingIOS,
1257 kAutofillBrandingIOSVariations,
Hira Mahmoodb0e5f412022-09-01 19:41:051258 "AutofillBrandingIOS")},
1259 {"app-store-rating", flag_descriptions::kAppStoreRatingName,
1260 flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos,
1261 FEATURE_VALUE_TYPE(kAppStoreRating)},
Scott Yodercb2fe632022-09-12 15:28:351262 {"ios-new-post-restore-experience",
1263 flag_descriptions::kIOSNewPostRestoreExperienceName,
1264 flag_descriptions::kIOSNewPostRestoreExperienceDescription,
1265 flags_ui::kOsIos,
Benjamin Williams3d3a2ec2022-09-13 20:01:261266 FEATURE_WITH_PARAMS_VALUE_TYPE(
1267 post_restore_signin::features::kIOSNewPostRestoreExperience,
1268 kIOSNewPostRestoreExperienceVariations,
1269 "IOSNewPostRestoreExperience")},
Christian Xu6b90c2a32022-09-13 18:17:021270 {"most-visited-tiles", flag_descriptions::kMostVisitedTilesName,
1271 flag_descriptions::kMostVisitedTilesDescription, flags_ui::kOsIos,
1272 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTiles)},
Olivier ROBINf05518782022-09-14 23:55:501273 {"enable-tflite-language-detection-ignore",
1274 flag_descriptions::kTFLiteLanguageDetectionIgnoreName,
1275 flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription,
1276 flags_ui::kOsIos,
1277 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)},
Tina Wang89ae4252022-10-14 00:39:471278 {"enable-check-visibility-on-attention-log-start",
1279 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartName,
1280 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartDescription,
1281 flags_ui::kOsIos,
1282 FEATURE_VALUE_TYPE(kEnableCheckVisibilityOnAttentionLogStart)},
1283 {"enable-refine-data-source-reload-reporting",
1284 flag_descriptions::kEnableRefineDataSourceReloadReportingName,
1285 flag_descriptions::kEnableRefineDataSourceReloadReportingDescription,
1286 flags_ui::kOsIos,
1287 FEATURE_VALUE_TYPE(kEnableRefineDataSourceReloadReporting)},
Victor Hugo Vianna Silvabb878dea2022-10-18 10:19:041288 {"enable-passwords-account-storage",
1289 flag_descriptions::kEnablePasswordsAccountStorageName,
1290 flag_descriptions::kEnablePasswordsAccountStorageDescription,
1291 flags_ui::kOsIos,
1292 FEATURE_VALUE_TYPE(
1293 password_manager::features::kEnablePasswordsAccountStorage)},
adamta3811f9182022-10-24 17:49:331294 {"enable-default-following-feed-sort-type",
1295 flag_descriptions::kFollowingFeedDefaultSortTypeName,
1296 flag_descriptions::kFollowingFeedDefaultSortTypeDescription,
1297 flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201298 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFollowingFeedDefaultSortType,
adamta3811f9182022-10-24 17:49:331299 kFollowingFeedDefaultSortTypeVariations,
adamta8da8dce2022-11-17 18:03:201300 "EnableFollowingFeedDefaultSortType")},
Gauthier Ambardd0187592022-11-03 16:31:131301 {"use-sf-symbols-omnibox", flag_descriptions::kUseSFSymbolsInOmniboxName,
1302 flag_descriptions::kUseSFSymbolsInOmniboxDescription, flags_ui::kOsIos,
1303 FEATURE_VALUE_TYPE(kUseSFSymbolsInOmnibox)},
Louis Romero1e2a88e92023-01-18 17:08:201304 {"tab-grid-recency-sort", flag_descriptions::kTabGridRecencySortName,
Gauthier Ambard9898eb882022-11-07 18:12:011305 flag_descriptions::kTabGridRecencySortDescription, flags_ui::kOsIos,
1306 FEATURE_VALUE_TYPE(kTabGridRecencySort)},
Ewann Pelle3774cac532022-11-15 10:12:371307 {"enable-pinned-tabs", flag_descriptions::kEnablePinnedTabsName,
1308 flag_descriptions::kEnablePinnedTabsDescription, flags_ui::kOsIos,
1309 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnablePinnedTabs,
1310 kEnablePinnedTabsVariations,
1311 "EnablePinnedTabs")},
Ewann Pelledb88a5462023-02-17 14:34:591312 {"enable-pinned-tabs-ipad", flag_descriptions::kEnablePinnedTabsIpadName,
1313 flag_descriptions::kEnablePinnedTabsIpadDescription, flags_ui::kOsIos,
1314 FEATURE_VALUE_TYPE(kEnablePinnedTabsIpad)},
Justin Cohen726a70bc42022-11-15 23:15:031315 {"remove-crash-infobar", flag_descriptions::kRemoveCrashInfobarName,
1316 flag_descriptions::kRemoveCrashInfobarDescription, flags_ui::kOsIos,
1317 FEATURE_VALUE_TYPE(kRemoveCrashInfobar)},
Hira Mahmoodea109752022-11-17 17:45:411318 {"credential-provider-extension-promo",
1319 flag_descriptions::kCredentialProviderExtensionPromoName,
1320 flag_descriptions::kCredentialProviderExtensionPromoDescription,
Huiting Yud7d2a5322023-02-09 21:14:221321 flags_ui::kOsIos,
1322 FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo,
1323 kCredentialProviderExtensionPromoVariations,
1324 "CredentialProviderExtensionPromo")},
Nicolas MacBethfb43e152022-11-28 19:31:521325 {"default-browser-blue-dot-promo",
1326 flag_descriptions::kDefaultBrowserBlueDotPromoName,
1327 flag_descriptions::kDefaultBrowserBlueDotPromoDescription,
1328 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserBlueDotPromo)},
Olivier ROBINa8838c12022-12-05 17:50:271329 {"ios-force-translate-enabled",
1330 flag_descriptions::kIOSForceTranslateEnabledName,
1331 flag_descriptions::kIOSForceTranslateEnabledDescription, flags_ui::kOsIos,
1332 FEATURE_VALUE_TYPE(translate::kIOSForceTranslateEnabled)},
Daniel Whiteae1cb672022-12-14 18:25:251333 {"iph-price-notifications-while-browsing",
1334 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1335 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1336 flags_ui::kOsIos,
1337 FEATURE_VALUE_TYPE(
1338 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Qihui Zhao72836c62022-12-16 04:31:411339 {"autofill-offer-to-save-card-with-same-last-four",
1340 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourName,
1341 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourDescription,
1342 flags_ui::kOsIos,
1343 FEATURE_VALUE_TYPE(
1344 autofill::features::kAutofillOfferToSaveCardWithSameLastFour)},
Christian Xu588330f32023-01-05 10:51:041345 {"omnibox-multiline-search-suggest",
1346 flag_descriptions::kOmniboxMultilineSearchSuggestName,
1347 flag_descriptions::kOmniboxMultilineSearchSuggestDescription,
1348 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxMultilineSearchSuggest)},
Vipul Vinod Koulaebbcb3a2023-01-05 19:50:501349 {"autofill-suggest-server-card-instead-of-local-card",
1350 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName,
1351 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription,
1352 flags_ui::kOsIos,
1353 FEATURE_VALUE_TYPE(
1354 autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)},
Quentin Pubert154fc6a2023-01-09 15:58:581355 {"native-find-in-page", flag_descriptions::kNativeFindInPageName,
1356 flag_descriptions::kNativeFindInPageDescription, flags_ui::kOsIos,
1357 FEATURE_WITH_PARAMS_VALUE_TYPE(kNativeFindInPage,
1358 kNativeFindInPageVariations,
1359 "NativeFindInPage")},
Elmehdi Rahmaoui5d8ba8e2023-01-11 14:53:551360 {"intents-on-email", flag_descriptions::kEmailName,
1361 flag_descriptions::kEmailDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331362 FEATURE_VALUE_TYPE(web::features::kEnableEmails)},
Ernesto Izquierdo Clua023bb52352023-01-12 19:33:341363 {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName,
1364 flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos,
1365 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)},
Christian Xu7e5234c12023-01-16 09:26:351366 {"multiline-fade-truncating-label",
1367 flag_descriptions::kMultilineFadeTruncatingLabelName,
1368 flag_descriptions::kMultilineFadeTruncatingLabelDescription,
1369 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kMultilineFadeTruncatingLabel)},
Robbie Gibson88f680a2023-01-19 16:47:301370 {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName,
1371 flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos,
1372 FEATURE_VALUE_TYPE(kPromosManagerUsesFET)},
Ewann Pelledec2d042023-01-25 15:28:391373 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1374 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1375 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Louis Romero93e9b50a2023-01-26 01:46:121376 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1377 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1378 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1379 kTabInactivityThresholdVariations,
1380 "TabInactivityThreshold")},
Sergio Collazos8d2ac27942023-01-26 19:03:411381 {"enable-feed-image-caching",
1382 flag_descriptions::kEnableFeedImageCachingName,
1383 flag_descriptions::kEnableFeedImageCachingDescription, flags_ui::kOsIos,
1384 FEATURE_VALUE_TYPE(kEnableFeedImageCaching)},
1385 {"enable-feed-synthetic-capabilities",
1386 flag_descriptions::kEnableFeedSyntheticCapabilitiesName,
1387 flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription,
1388 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)},
Victor Hugo Vianna Silvabf1a43c2023-02-06 14:06:561389 {"ios-show-password-storage-in-save-infobar",
1390 flag_descriptions::kIOSShowPasswordStorageInSaveInfobarName,
1391 flag_descriptions::kIOSShowPasswordStorageInSaveInfobarDescription,
1392 flags_ui::kOsIos,
1393 FEATURE_VALUE_TYPE(
1394 password_manager::features::kIOSShowPasswordStorageInSaveInfobar)},
Louis Romero58f355022023-02-13 19:04:311395 {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName,
1396 flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos,
1397 FEATURE_VALUE_TYPE(kShowInactiveTabsCount)},
Olivier ROBIN52eddbf32023-02-15 10:33:421398 {"ios-edit-menu-partial-translate",
1399 flag_descriptions::kIOSEditMenuPartialTranslateName,
1400 flag_descriptions::kIOSEditMenuPartialTranslateDescription,
Olivier ROBINfd3887b72023-02-23 14:45:421401 flags_ui::kOsIos,
1402 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate,
1403 kIOSEditMenuPartialTranslateVariations,
1404 "IOSEditMenuPartialTranslate")},
Olivier Robin7057bd72023-02-16 18:35:201405 {"ios-custom-browser-edit-menu",
1406 flag_descriptions::kIOSCustomBrowserEditMenuName,
1407 flag_descriptions::kIOSCustomBrowserEditMenuDescription, flags_ui::kOsIos,
1408 FEATURE_VALUE_TYPE(kIOSCustomBrowserEditMenu)},
Ali Juma57849c42023-02-21 22:53:431409 {"notification-settings-menu-item",
1410 flag_descriptions::kNotificationSettingsMenuItemName,
1411 flag_descriptions::kNotificationSettingsMenuItemDescription,
1412 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
rgodba72acf82023-02-20 10:29:351413 {"password-notes", flag_descriptions::kPasswordNotesWithBackupName,
1414 flag_descriptions::kPasswordNotesWithBackupDescription, flags_ui::kOsIos,
1415 FEATURE_VALUE_TYPE(syncer::kPasswordNotesWithBackup)},
Ed Chin97560fc42023-02-20 16:48:321416 {"feed-experiment-tagging-ios",
1417 flag_descriptions::kFeedExperimentTaggingName,
1418 flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos,
1419 FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)},
Stepan Khapugin551917f82023-02-21 18:00:061420 {"spotlight-reading-list-source",
1421 flag_descriptions::kSpotlightReadingListSourceName,
1422 flag_descriptions::kSpotlightReadingListSourceDescription,
1423 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)},
kalettuced6ba72cb2023-02-22 00:55:381424 {"consistency-new-account-interface",
1425 flag_descriptions::kConsistencyNewAccountInterfaceName,
1426 flag_descriptions::kConsistencyNewAccountInterfaceDescription,
1427 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kConsistencyNewAccountInterface)},
Olivier ROBINabcb8ce2023-02-22 13:55:201428 {"add-to-home-screen", flag_descriptions::kAddToHomeScreenName,
1429 flag_descriptions::kAddToHomeScreenDescription, flags_ui::kOsIos,
Olivier ROBIN2ca64952023-02-23 17:11:481430 FEATURE_WITH_PARAMS_VALUE_TYPE(kAddToHomeScreen,
1431 kAddToHomeScreenVariations,
1432 "IOSEditMenuPartialTranslate")},
Salma Elmahallawy72c5d34d2023-02-27 23:44:421433 {"policy-logs-page-ios", flag_descriptions::kPolicyLogsPageIOSName,
1434 flag_descriptions::kPolicyLogsPageIOSDescription, flags_ui::kOsIos,
1435 FEATURE_VALUE_TYPE(policy::features::kPolicyLogsPageIOS)},
Vincent Boisselle6e9780c2023-02-25 01:05:341436 {"indicate-account-storage-error-in-account-cell",
1437 flag_descriptions::kIndicateAccountStorageErrorInAccountCellName,
1438 flag_descriptions::kIndicateAccountStorageErrorInAccountCellDescription,
1439 flags_ui::kOsIos,
Mikel Astize597fc82023-03-22 01:39:491440 FEATURE_VALUE_TYPE(syncer::kIndicateAccountStorageErrorInAccountCell)},
Menghan YANGf3fe2de52023-02-27 16:38:501441 {"enable-bookmarks-account-storage",
1442 flag_descriptions::kEnableBookmarksAccountStorageName,
1443 flag_descriptions::kEnableBookmarksAccountStorageDescription,
1444 flags_ui::kOsIos,
1445 FEATURE_VALUE_TYPE(bookmarks::kEnableBookmarksAccountStorage)},
kalettucefb09e402023-02-27 18:35:531446 {"web-feed-feedback-reroute",
1447 flag_descriptions::kWebFeedFeedbackRerouteName,
1448 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1449 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Jason Huac58fea2023-02-28 20:25:551450 {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName,
1451 flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos,
1452 FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)},
ginnnnnnny75903622023-03-01 18:00:001453 {"bring-your-own-tabs-ios", flag_descriptions::kBringYourOwnTabsIOSName,
1454 flag_descriptions::kBringYourOwnTabsIOSDescription, flags_ui::kOsIos,
1455 FEATURE_WITH_PARAMS_VALUE_TYPE(kBringYourOwnTabsIOS,
1456 kBringYourOwnTabsIOSVariations,
1457 "BringYourOwnTabsIOS")},
Tina Wange81e24d2023-03-08 21:10:031458 {"enable-follow-management-instant-reload",
1459 flag_descriptions::kEnableFollowManagementInstantReloadName,
1460 flag_descriptions::kEnableFollowManagementInstantReloadDescription,
1461 flags_ui::kOsIos,
1462 FEATURE_VALUE_TYPE(kEnableFollowManagementInstantReload)},
Mustafa Acerc8c0b152023-03-09 02:41:441463 {"mixed-content-autoupgrade-ios",
1464 flag_descriptions::kMixedContentAutoupgradeName,
1465 flag_descriptions::kMixedContentAutoupgradeDescription, flags_ui::kOsIos,
1466 FEATURE_VALUE_TYPE(
1467 security_interstitials::features::kMixedContentAutoupgrade)},
Menghan YANGc4c94ea22023-03-09 12:48:241468 {"enable-email-in-bookmarks-reading-list-snackbar",
1469 flag_descriptions::kEnableEmailInBookmarksReadingListSnackbarName,
1470 flag_descriptions::kEnableEmailInBookmarksReadingListSnackbarDescription,
1471 flags_ui::kOsIos,
1472 FEATURE_VALUE_TYPE(kEnableEmailInBookmarksReadingListSnackbar)},
Jared Saul5363f3962023-03-10 23:03:511473 {"autofill-upstream-authenticate-preflight-call",
1474 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallName,
1475 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallDescription,
1476 flags_ui::kOsIos,
1477 FEATURE_VALUE_TYPE(
1478 autofill::features::kAutofillUpstreamAuthenticatePreflightCall)},
Marc Treibe9f79ea72023-03-14 10:25:421479 {"enable-preferences-account-storage",
1480 flag_descriptions::kEnablePreferencesAccountStorageName,
1481 flag_descriptions::kEnablePreferencesAccountStorageDescription,
1482 flags_ui::kOsIos,
1483 FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)},
Vincent Boisselle92fa8c472023-03-20 21:35:511484 {"indicate-identity-error-overflow-menu",
1485 flag_descriptions::kIndicateIdentityErrorInOverflowMenuName,
1486 flag_descriptions::kIndicateIdentityErrorInOverflowMenuDescription,
1487 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIndicateSyncErrorInOverflowMenu)},
Olivier ROBINa229d2132023-03-21 12:44:201488 {"ios-browser-edit-menu-metrics",
1489 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1490 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1491 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Louis Romero93e9b50a2023-01-26 01:46:121492};
sdefresne14900ee2015-11-27 14:43:211493
Rohit Raobed794c2020-04-27 15:27:451494bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1495 return false;
1496}
1497
1498flags_ui::FlagsState& GetGlobalFlagsState() {
1499 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1500 nullptr);
1501 return *flags_state;
1502}
David Jean5ca263c2021-08-18 09:19:301503// Creates the experimental test policies map, used by AsyncPolicyLoader and
1504// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341505NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211506 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1507
Guillaume Jenkins25e9bd72020-08-27 17:39:061508 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551509 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061510 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551511
Guillaume Jenkins25e9bd72020-08-27 17:39:061512 // Set some sample policy values for testing if EnableSamplePolicies is set to
1513 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401514 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551515 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011516 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1517
Guillaume Jenkinseeb7007c2020-06-25 22:55:401518 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1519
1520 // 2 = Disable all variations
1521 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1522
1523 // 2 = Do not allow any site to show popups
1524 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1525
Tina Wang5abee802020-07-29 23:09:521526 // Set default search engine.
1527 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1528 @YES,
1529 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1530 @"http://www.google.com/search?q={searchTerms}",
1531 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021532 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521533
Tina Wang89068c82020-10-29 15:51:501534 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1535
Gauthier Ambard21b23702021-04-16 16:11:271536 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1537
Tina Wang59d0b7e2020-08-11 04:41:011538 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531539
1540 // 2 = Enhanced safe browsing protection
1541 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1542
1543 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291544
1545 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551546 }];
1547 }
1548
Ewann227a3c02021-04-19 12:04:541549 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041550 NSString* sync_policy_key =
1551 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301552 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541553 }
Ewann227a3c02021-04-19 12:04:541554
Ewann570a6302021-08-17 07:22:421555 // SyncTypesListDisabled policy.
1556 NSString* Sync_types_list_disabled_key =
1557 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1558 NSMutableArray* Sync_types_list_disabled_values =
1559 [[NSMutableArray alloc] init];
1560 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
1561 [Sync_types_list_disabled_values addObject:@"bookmarks"];
1562 }
1563 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
1564 [Sync_types_list_disabled_values addObject:@"readingList"];
1565 }
1566 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
1567 [Sync_types_list_disabled_values addObject:@"preferences"];
1568 }
1569 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
1570 [Sync_types_list_disabled_values addObject:@"passwords"];
1571 }
1572 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
1573 [Sync_types_list_disabled_values addObject:@"autofill"];
1574 }
1575 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
1576 [Sync_types_list_disabled_values addObject:@"typedUrls"];
1577 }
1578 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
1579 [Sync_types_list_disabled_values addObject:@"tabs"];
1580 }
1581 if ([Sync_types_list_disabled_values count]) {
1582 [testing_policies addEntriesFromDictionary:@{
1583 Sync_types_list_disabled_key : Sync_types_list_disabled_values
1584 }];
Ewann570a6302021-08-17 07:22:421585 }
1586
Gauthier Ambard073eaa92021-11-22 15:24:131587 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:521588 NSString* incognito_policy_key =
1589 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
1590 NSInteger incognito_mode_availability =
1591 [defaults integerForKey:incognito_policy_key];
1592 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:521593 [testing_policies addEntriesFromDictionary:@{
1594 incognito_policy_key : @(incognito_mode_availability),
1595 }];
1596 }
1597
Ewann40a8f8a2021-07-29 10:01:201598 NSString* restriction_pattern =
1599 [defaults stringForKey:@"RestrictAccountsToPatterns"];
1600 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:291601 NSString* restrict_key =
1602 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:201603 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:291604 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:201605 }];
1606 }
1607
Vincent Boisselle19200bc2021-09-01 17:58:251608 // If the sign-in policy is set (not "None"), add the policy key to the list
1609 // of enabled experimental policies, and set the value.
1610 NSString* const kSigninPolicyKey = @"BrowserSignin";
1611 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
1612 if (signin_policy_mode) {
1613 // Remove the mode offset that was used to represent the unset policy.
1614 --signin_policy_mode;
1615 DCHECK(signin_policy_mode >= 0);
1616
Vincent Boisselle19200bc2021-09-01 17:58:251617 [testing_policies addEntriesFromDictionary:@{
1618 kSigninPolicyKey : @(signin_policy_mode),
1619 }];
1620 }
1621
Veronique Nguyen9b1044f2022-01-11 14:41:131622 // If the New Tab Page URL is set (not empty) add the value to the list of
1623 // test policies.
1624 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
1625 if ([ntp_location length] > 0) {
1626 NSString* ntp_location_key =
1627 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
1628 [testing_policies
1629 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:571630 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:131631 }
1632
Ali Juma9ec36d22022-03-28 14:53:121633 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
1634 NSString* allow_backups_key =
1635 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
1636 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
1637 [allowed_experimental_policies addObject:allow_backups_key];
1638 }
1639
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241640 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
1641 NSString* password_manager_key =
1642 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
1643 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
1644 [allowed_experimental_policies addObject:password_manager_key];
1645 }
Arthur Milchiorbb44f5c82023-03-14 16:14:461646 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
1647 NSString* managed_bookmarks_key =
1648 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
1649 NSString* managed_bookmarks_value =
1650 base::SysUTF8ToNSString("["
1651 // The following gets filtered out from
1652 // the JSON string when parsed.
1653 " {"
Jérôme Lebelaaf24de2023-03-15 22:00:111654 " \"toplevel_name\": \"Managed Bookmarks\""
Arthur Milchiorbb44f5c82023-03-14 16:14:461655 " },"
1656 " {"
1657 " \"name\": \"Google\","
1658 " \"url\": \"google.com\""
1659 " },"
1660 " {"
1661 " \"name\": \"Empty Folder\","
1662 " \"children\": []"
1663 " },"
1664 " {"
1665 " \"name\": \"Big Folder\","
1666 " \"children\": ["
1667 " {"
1668 " \"name\": \"Youtube\","
1669 " \"url\": \"youtube.com\""
1670 " },"
1671 " {"
1672 " \"name\": \"Chromium\","
1673 " \"url\": \"chromium.org\""
1674 " },"
1675 " {"
1676 " \"name\": \"More Stuff\","
1677 " \"children\": ["
1678 " {"
1679 " \"name\": \"Bugs\","
1680 " \"url\": \"crbug.com\""
1681 " }"
1682 " ]"
1683 " }"
1684 " ]"
1685 " }"
1686 "]");
1687 [testing_policies addEntriesFromDictionary:@{
1688 managed_bookmarks_key : managed_bookmarks_value
1689 }];
1690 [allowed_experimental_policies addObject:managed_bookmarks_key];
1691 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241692
Guillaume Jenkins25e9bd72020-08-27 17:39:061693 // If any experimental policy was allowed, set the EnableExperimentalPolicies
1694 // policy.
1695 if ([allowed_experimental_policies count] > 0) {
1696 [testing_policies setValue:allowed_experimental_policies
1697 forKey:base::SysUTF8ToNSString(
1698 policy::key::kEnableExperimentalPolicies)];
1699 }
1700
jlebel2eb40222022-05-06 11:15:421701 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
1702 switch ([defaults integerForKey:metrics_reporting_key]) {
1703 case 1:
1704 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:131705 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421706 break;
1707 case 2:
1708 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:131709 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421710 break;
1711 default:
1712 // Metrics reporting not managed.
1713 break;
1714 }
1715
David Jean6f85d44f2021-08-19 08:08:451716 // Warning: Add new flags to TestingPoliciesHash() below.
1717
David Jean5ca263c2021-08-18 09:19:301718 return testing_policies;
1719}
David Jean6f85d44f2021-08-19 08:08:451720
David Jean5ca263c2021-08-18 09:19:301721} // namespace
1722
Gauthier Ambard02dbf022022-08-23 08:28:471723// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:301724void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
1725 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1726
1727 // Set the UA flag if UseMobileSafariUA is enabled.
1728 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
1729 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
1730 // Chrome puts its product token.
1731 int32_t major = 0;
1732 int32_t minor = 0;
1733 int32_t bugfix = 0;
1734 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
1735 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
1736
1737 command_line->AppendSwitchASCII(switches::kUserAgent,
1738 web::BuildMobileUserAgent(product));
1739 }
1740
1741 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341742 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:301743
1744 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
1745 // Management to enabled and add the token to the list of policies.
1746 NSString* token_key =
1747 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
1748 NSString* token = [defaults stringForKey:token_key];
1749
1750 if ([token length] > 0) {
1751 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
1752 [testing_policies setValue:token forKey:token_key];
1753 }
1754
Guillaume Jenkins57606d72020-08-13 17:32:551755 // If some policies were set, commit them to the app's registration defaults.
1756 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:401757 NSDictionary* registration_defaults =
1758 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
1759 [defaults registerDefaults:registration_defaults];
1760 }
1761
sdefresne14900ee2015-11-27 14:43:211762 // Freeform commandline flags. These are added last, so that any flags added
1763 // earlier in this function take precedence.
1764 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
1765 base::CommandLine::StringVector flags;
1766 // Append an empty "program" argument.
1767 flags.push_back("");
1768
1769 // The number of flags corresponds to the number of text fields in
1770 // Experimental.plist.
1771 const int kNumFreeformFlags = 5;
1772 for (int i = 1; i <= kNumFreeformFlags; ++i) {
1773 NSString* key =
1774 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
1775 NSString* flag = [defaults stringForKey:key];
1776 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:331777 // iOS keyboard replaces -- with —, so undo that.
1778 flag = [flag stringByReplacingOccurrencesOfString:@"—"
1779 withString:@"--"
1780 options:0
1781 range:NSMakeRange(0, 1)];
1782 // To make things easier, allow flags with no dashes by prepending them
1783 // here. This also allows for flags that just have one dash if they
1784 // exist.
1785 if (![flag hasPrefix:@"-"]) {
1786 flag = [@"--" stringByAppendingString:flag];
1787 }
sdefresne14900ee2015-11-27 14:43:211788 flags.push_back(base::SysNSStringToUTF8(flag));
1789 }
1790 }
1791
1792 base::CommandLine temp_command_line(flags);
1793 command_line->AppendArguments(temp_command_line, false);
1794 }
msardafc76f662017-02-24 12:46:281795
justincohendacc85d2017-06-28 23:34:101796 // Populate command line flag for 3rd party keyboard omnibox workaround.
1797 NSString* enableThirdPartyKeyboardWorkaround =
1798 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
1799 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
1800 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
1801 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
1802 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
1803 }
1804
Sylvain Defresned3cd8d92022-01-18 13:35:081805 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:211806}
1807
sdefresne14900ee2015-11-27 14:43:211808void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
1809 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:181810 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:111811 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:531812 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:211813}
1814
jkrcalbf073372016-07-29 07:21:311815std::vector<std::string> RegisterAllFeatureVariationParameters(
1816 flags_ui::FlagsStorage* flags_storage,
1817 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:181818 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
1819 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:311820}
1821
sdefresne14900ee2015-11-27 14:43:211822void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
1823 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:501824 base::Value::List& supported_entries,
1825 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:181826 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:211827 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:511828 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:211829}
1830
1831void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
1832 const std::string& internal_name,
1833 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:181834 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
1835 enable);
sdefresne14900ee2015-11-27 14:43:211836}
1837
1838void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:181839 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:211840}
1841
Nicolas MacBeth972e2592023-02-23 15:22:091842bool IsRestartNeededToCommitChanges() {
1843 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
1844}
1845
sdefresne14900ee2015-11-27 14:43:211846namespace testing {
1847
Elly Fong-Jones323ab1092021-08-23 22:36:311848base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
1849 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:531850 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:211851}
1852
1853} // namespace testing