blob: 45d8124a918afcda38c7a6040d6feeb50753f953 [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"
Menghan YANG5b3a78a2023-03-24 17:38:2655#import "components/reading_list/features/reading_list_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5756#import "components/safe_browsing/core/common/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2557#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5758#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
59#import "components/signin/core/browser/account_reconcilor.h"
60#import "components/signin/ios/browser/features.h"
61#import "components/signin/public/base/signin_switches.h"
62#import "components/strings/grit/components_strings.h"
63#import "components/sync/base/command_line_switches.h"
64#import "components/sync/base/features.h"
65#import "components/sync/base/pref_names.h"
66#import "components/translate/core/browser/translate_prefs.h"
67#import "components/translate/core/common/translate_util.h"
Ed Chin91e44992022-07-27 13:42:3468#import "ios/chrome/app/background_mode_buildflags.h"
ginnnnnnnya81c7192023-03-24 18:05:2069#import "ios/chrome/browser/bring_android_tabs/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5770#import "ios/chrome/browser/browsing_data/browsing_data_features.h"
71#import "ios/chrome/browser/crash_report/features.h"
Huiting Yua68998d2022-12-14 17:47:5472#import "ios/chrome/browser/credential_provider_promo/features.h"
Scott Yoder663a2262023-03-29 14:27:0473#import "ios/chrome/browser/default_browser/utils.h"
Quentin Pubert154fc6a2023-01-09 15:58:5874#import "ios/chrome/browser/find_in_page/features.h"
Gauthier Ambard92605132022-08-26 13:25:1775#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5776#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Gauthier Ambard92605132022-08-26 13:25:1777#import "ios/chrome/browser/flags/system_flags.h"
Ed Chin100660bf2022-04-26 16:59:1378#import "ios/chrome/browser/ntp/features.h"
Vincent Boisselle88fef222022-09-23 18:54:5079#import "ios/chrome/browser/policy/cloud/user_policy_constants.h"
Vincent Boissellead6cbe22022-07-04 19:32:3980#import "ios/chrome/browser/policy/cloud/user_policy_switch.h"
Gauthier Ambard999088c2022-09-13 08:36:5781#import "ios/chrome/browser/policy/policy_util.h"
Benjamin Williams14233d72022-07-26 18:32:2082#import "ios/chrome/browser/promos_manager/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5783#import "ios/chrome/browser/screen_time/screen_time_buildflags.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:4684#import "ios/chrome/browser/shared/public/features/features.h"
Asami Doi2f2d6dc2023-03-30 12:31:1985#import "ios/chrome/browser/snapshots/features.h"
Ewann Pelle903a05e62023-02-01 17:51:0686#import "ios/chrome/browser/tabs/features.h"
Aliona DANGLA3de5d242023-02-15 16:52:3087#import "ios/chrome/browser/tabs/inactive_tabs/features.h"
Zhixiang Teoh40027a22022-07-28 03:24:3488#import "ios/chrome/browser/text_selection/text_selection_util.h"
Hira Mahmoodb0e5f412022-09-01 19:41:0589#import "ios/chrome/browser/ui/app_store_rating/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5790#import "ios/chrome/browser/ui/autofill/features.h"
adamta22a4d502020-05-21 03:12:2191#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h"
Ewann1a9d33d2021-06-14 11:12:2492#import "ios/chrome/browser/ui/download/features.h"
Chris Lu438e1c052022-08-17 02:57:0093#import "ios/chrome/browser/ui/first_run/trending_queries_field_trial.h"
adamta273568472020-12-04 23:53:5794#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
adamta8886def42023-03-07 19:45:2395#import "ios/chrome/browser/ui/ntp/new_tab_page_retention_field_trial_constants.h"
Christian Xub8c06cd2022-04-29 20:55:0196#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Aliona DANGLAa5257ccc2022-08-29 14:01:4997#import "ios/chrome/browser/ui/open_in/features.h"
Robbie Gibson686c56732021-10-04 17:11:4598#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Benjamin Williams3d3a2ec2022-09-13 20:01:2699#import "ios/chrome/browser/ui/post_restore_signin/features.h"
gogerald0ff29e52021-02-03 18:56:19100#import "ios/chrome/browser/ui/start_surface/start_surface_features.h"
Kurt Horimoto79d590b2018-09-12 19:09:28101#import "ios/chrome/browser/ui/toolbar_container/toolbar_container_features.h"
Cheick Cisse87a51cb2022-09-08 21:29:17102#import "ios/chrome/browser/ui/whats_new/feature_flags.h"
Gauthier Ambard999088c2022-09-13 08:36:57103#import "ios/chrome/browser/web/features.h"
104#import "ios/chrome/grit/ios_strings.h"
105#import "ios/components/security_interstitials/https_only_mode/feature.h"
106#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
107#import "ios/web/common/features.h"
108#import "ios/web/common/user_agent.h"
109#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21110
Sylvain Defresne9c107082020-10-27 16:39:13111#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
Gauthier Ambard999088c2022-09-13 08:36:57112#import "ios/chrome/browser/screen_time/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13113#endif
114
sdefresne14900ee2015-11-27 14:43:21115#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57116#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22117#endif
stkhapuginc1be1792016-12-13 14:30:53118
119#if !defined(__has_feature) || !__has_feature(objc_arc)
120#error "This file requires ARC support."
121#endif
sdefresne14900ee2015-11-27 14:43:21122
elawrence816f6790e2017-06-16 18:19:28123using flags_ui::FeatureEntry;
124
sdefresne14900ee2015-11-27 14:43:21125namespace {
Emily Starkbafa9062017-12-27 15:22:46126
Olivier Robin3d60411622018-02-23 10:03:22127const FeatureEntry::Choice kAutofillIOSDelayBetweenFieldsChoices[] = {
128 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
129 {"0", autofill::switches::kAutofillIOSDelayBetweenFields, "0"},
130 {"10", autofill::switches::kAutofillIOSDelayBetweenFields, "10"},
131 {"20", autofill::switches::kAutofillIOSDelayBetweenFields, "20"},
132 {"50", autofill::switches::kAutofillIOSDelayBetweenFields, "50"},
133 {"100", autofill::switches::kAutofillIOSDelayBetweenFields, "100"},
134 {"200", autofill::switches::kAutofillIOSDelayBetweenFields, "200"},
135 {"500", autofill::switches::kAutofillIOSDelayBetweenFields, "500"},
136 {"1000", autofill::switches::kAutofillIOSDelayBetweenFields, "1000"},
137};
138
Nohemi Fernandezc00842a2021-07-26 11:47:34139const FeatureEntry::Choice
140 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
141 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
142 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
143 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
144 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
145};
146
Stepan Khapugincc4e9842019-01-23 13:38:13147const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
148 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
149const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
150 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
151const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
152 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
153const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
154 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
155const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
156 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
157const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
158 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
159const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
160 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
161
162const FeatureEntry::FeatureVariation
163 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
164 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53165 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13166 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53167 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13168 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53169 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13170 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53171 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13172 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53173 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13174 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53175 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13176 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53177 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13178
Stepan Khapuginbac467e2022-05-06 21:11:54179const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
180 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
181const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
182 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
183const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
184 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
185
186const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
187 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
188 nullptr},
189 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
190 nullptr},
191 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
192 nullptr},
193};
194
Christian Xucf26d562022-07-06 09:28:36195const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
196 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
197const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
198 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
199const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
200 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
201
202const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
203 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
204 nullptr},
205 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
206 nullptr},
207 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
208 nullptr},
209};
210
Cheick Cissef37087902022-10-07 19:01:41211const FeatureEntry::FeatureParam kWhatsNewModuleLayout[] = {
212 {kWhatsNewModuleBasedLayoutParam, "true"}};
213
214const FeatureEntry::FeatureVariation kWhatsNewLayoutVariations[] = {
215 {"Display module layout", kWhatsNewModuleLayout,
216 std::size(kWhatsNewModuleLayout), nullptr},
217};
218
Caitlin Fischer37e01232019-05-24 13:05:45219const FeatureEntry::FeatureParam
220 kAutofillUseMobileLabelDisambiguationShowAll[] = {
221 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
222 autofill::features::
223 kAutofillUseMobileLabelDisambiguationParameterShowAll}};
224const FeatureEntry::FeatureParam
225 kAutofillUseMobileLabelDisambiguationShowOne[] = {
226 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
227 autofill::features::
228 kAutofillUseMobileLabelDisambiguationParameterShowOne}};
229
230const FeatureEntry::FeatureVariation
231 kAutofillUseMobileLabelDisambiguationVariations[] = {
232 {"(show all)", kAutofillUseMobileLabelDisambiguationShowAll,
Daniel Cheng1f047a82022-02-26 10:04:53233 std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr},
Caitlin Fischer37e01232019-05-24 13:05:45234 {"(show one)", kAutofillUseMobileLabelDisambiguationShowOne,
Daniel Cheng1f047a82022-02-26 10:04:53235 std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}};
Caitlin Fischer37e01232019-05-24 13:05:45236
Javier Ernesto Flores Roblese85f4a12021-02-23 18:10:10237const FeatureEntry::FeatureParam
Javier Ernesto Flores Robles159414232021-06-16 14:29:59238 kDefaultBrowserFullscreenPromoExperimentRemindMeLater[] = {
239 {kDefaultBrowserFullscreenPromoExperimentRemindMeGroupParam, "true"}};
240const FeatureEntry::FeatureVariation
241 kDefaultBrowserFullscreenPromoExperimentVariations[] = {
242 {"Remind me later",
243 kDefaultBrowserFullscreenPromoExperimentRemindMeLater,
Daniel Cheng1f047a82022-02-26 10:04:53244 std::size(kDefaultBrowserFullscreenPromoExperimentRemindMeLater),
Javier Ernesto Flores Robles159414232021-06-16 14:29:59245 nullptr}};
246
adamta37c6b832023-03-10 20:04:09247// Uses int values from SigninPromoViewStyle enum.
248const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = {
249 {kDiscoverFeedTopSyncPromoStyle, "0"}};
250const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactTitled[] = {
251 {kDiscoverFeedTopSyncPromoStyle, "1"}};
252const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] =
253 {{kDiscoverFeedTopSyncPromoStyle, "2"}};
254const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = {
255 {kDiscoverFeedTopSyncPromoStyle, "3"}};
adamtadb0bfc62022-08-01 17:37:47256
Mohammad Refaatab6bee62022-05-16 16:31:15257const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = {
adamta37c6b832023-03-10 20:04:09258 {"Standard", kDiscoverFeedTopSyncPromoStandard,
259 std::size(kDiscoverFeedTopSyncPromoStandard), nullptr},
260 {"Compact Titled (Unpersonalized)", kDiscoverFeedTopSyncPromoCompactTitled,
261 std::size(kDiscoverFeedTopSyncPromoCompactTitled), nullptr},
262 {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal,
263 std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr},
264 {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical,
265 std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}};
Mohammad Refaatab6bee62022-05-16 16:31:15266
adamta4a6f2fd22023-02-13 17:37:14267const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = {
268 {kDisableStickyHeaderForFollowingFeed, "true"}};
269const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = {
adamtabc048042023-03-15 22:42:18270 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14271const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = {
272 {kDisableStickyHeaderForFollowingFeed, "true"},
adamtabc048042023-03-15 22:42:18273 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14274
275const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = {
276 {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader,
277 std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr},
278 {"Reduced header height", kFeedHeaderSettingReducedHeight,
279 std::size(kFeedHeaderSettingReducedHeight), nullptr},
280 {"All improvements", kFeedHeaderSettingAllImprovements,
281 std::size(kFeedHeaderSettingAllImprovements), nullptr}};
282
gogerald53c6e7a2021-04-15 22:07:35283const FeatureEntry::FeatureParam kStartSurfaceTenSecondsShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08284 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35285 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
286const FeatureEntry::FeatureParam kStartSurfaceTenSecondsHideShortcuts[] = {
Chris Lu5470417c2021-03-03 18:43:08287 {kStartSurfaceHideShortcutsParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35288 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
289const FeatureEntry::FeatureParam kStartSurfaceTenSecondsReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08290 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35291 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
292const FeatureEntry::FeatureParam
293 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab[] = {
294 {kStartSurfaceShrinkLogoParam, "true"},
295 {kStartSurfaceReturnToRecentTabParam, "true"},
296 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
297const FeatureEntry::FeatureParam
298 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab[] = {
299 {kStartSurfaceHideShortcutsParam, "true"},
300 {kStartSurfaceReturnToRecentTabParam, "true"},
301 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
302const FeatureEntry::FeatureParam kStartSurfaceOneHourShrinkLogo[] = {
Chris Lu5470417c2021-03-03 18:43:08303 {kStartSurfaceShrinkLogoParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35304 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
305const FeatureEntry::FeatureParam kStartSurfaceOneHourHideShortcuts[] = {
306 {kStartSurfaceHideShortcutsParam, "true"},
307 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
308const FeatureEntry::FeatureParam kStartSurfaceOneHourReturnToRecentTab[] = {
Chris Lu5470417c2021-03-03 18:43:08309 {kStartSurfaceReturnToRecentTabParam, "true"},
gogerald53c6e7a2021-04-15 22:07:35310 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
311const FeatureEntry::FeatureParam
312 kStartSurfaceOneHourShrinkLogoReturnToRecentTab[] = {
313 {kStartSurfaceShrinkLogoParam, "true"},
314 {kStartSurfaceReturnToRecentTabParam, "true"},
315 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
316const FeatureEntry::FeatureParam
317 kStartSurfaceOneHourHideShortcutsReturnToRecentTab[] = {
318 {kStartSurfaceHideShortcutsParam, "true"},
319 {kStartSurfaceReturnToRecentTabParam, "true"},
320 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08321
gogerald0e39e3aa2021-02-10 18:41:23322const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
gogerald53c6e7a2021-04-15 22:07:35323 {"10s:Show Return to Recent Tab tile",
324 kStartSurfaceTenSecondsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53325 std::size(kStartSurfaceTenSecondsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35326 {"10s:Shrink Logo", kStartSurfaceTenSecondsShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53327 std::size(kStartSurfaceTenSecondsShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35328 {"10s:Hide Shortcuts", kStartSurfaceTenSecondsHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53329 std::size(kStartSurfaceTenSecondsHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35330 {"10s:Shrink Logo and show Return to Recent Tab tile",
331 kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53332 std::size(kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35333 {"10s:Hide Shortcuts and show Return to Recent Tab tile",
334 kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53335 std::size(kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35336 {"1h:Show Return to Recent Tab tile", kStartSurfaceOneHourReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53337 std::size(kStartSurfaceOneHourReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35338 {"1h:Shrink Logo", kStartSurfaceOneHourShrinkLogo,
Daniel Cheng1f047a82022-02-26 10:04:53339 std::size(kStartSurfaceOneHourShrinkLogo), nullptr},
gogerald53c6e7a2021-04-15 22:07:35340 {"1h:Hide Shortcuts", kStartSurfaceOneHourHideShortcuts,
Daniel Cheng1f047a82022-02-26 10:04:53341 std::size(kStartSurfaceOneHourHideShortcuts), nullptr},
gogerald53c6e7a2021-04-15 22:07:35342 {"1h:Shrink Logo and show Return to Recent Tab tile",
343 kStartSurfaceOneHourShrinkLogoReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53344 std::size(kStartSurfaceOneHourShrinkLogoReturnToRecentTab), nullptr},
gogerald53c6e7a2021-04-15 22:07:35345 {"1h:Hide Shortcuts and show Return to Recent Tab tile",
346 kStartSurfaceOneHourHideShortcutsReturnToRecentTab,
Daniel Cheng1f047a82022-02-26 10:04:53347 std::size(kStartSurfaceOneHourHideShortcutsReturnToRecentTab), nullptr},
Chris Lu5470417c2021-03-03 18:43:08348};
gogerald0e39e3aa2021-02-10 18:41:23349
Chris Lu8e308dc2022-09-06 16:59:40350const FeatureEntry::FeatureParam kModuleRefreshMinimizeSpacing[] = {
351 {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"}};
352const FeatureEntry::FeatureParam kModuleRefreshNoHeaders[] = {
Chris Lu264e2372022-09-08 13:12:57353 {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"},
Chris Lu8e308dc2022-09-06 16:59:40354 {kContentSuggestionsUIModuleRefreshRemoveHeadersParam, "true"}};
355
356const FeatureEntry::FeatureVariation kModuleRefreshVariations[] = {
357 {"Enabled with minimized spacing", kModuleRefreshMinimizeSpacing,
358 std::size(kModuleRefreshMinimizeSpacing), nullptr},
Chris Lu264e2372022-09-08 13:12:57359 {"Enabled with no headers and minimized spacing", kModuleRefreshNoHeaders,
Chris Lu8e308dc2022-09-06 16:59:40360 std::size(kModuleRefreshNoHeaders), nullptr},
361};
362
Ed Chin91e44992022-07-27 13:42:34363#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26364// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01365const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04366 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
367 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01368 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04369 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01370const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04371 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
372 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01373 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04374 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01375const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04376 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
377 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01378 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04379 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01380const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04381 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
382 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01383 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04384 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01385const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04386 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
387 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01388 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
389 {kBackgroundRefreshIntervalInSeconds, "0"}};
390const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04391 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
392 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01393 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
394 {kBackgroundRefreshIntervalInSeconds, "0"}};
395const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
396 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
397 {kEnableRecurringBackgroundRefreshSchedule, "false"},
398 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
399 {kBackgroundRefreshIntervalInSeconds, "0"}};
400const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
401 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
402 {kEnableRecurringBackgroundRefreshSchedule, "true"},
403 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
404 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04405
Ed Chin178ec2a2023-02-10 22:21:26406// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04407const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01408 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
409 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
410 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
411 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
412 {"1hr Interval 1hr Max Age Recurring",
413 kOneHourIntervalOneHourMaxAgeRecurring,
414 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
415 {"4hr Interval 6hr Max Age Recurring",
416 kFourHourIntervalSixHourMaxAgeRecurring,
417 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
418 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
419 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
420 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
421 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
422 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
423 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
424 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
425 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04426};
Ed Chin91e44992022-07-27 13:42:34427#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04428
Ed Chin178ec2a2023-02-10 22:21:26429// Feed Foreground Refresh Feature Params.
Ed Chin5c1fd532023-03-20 17:43:29430const FeatureEntry::FeatureParam kFeedSessionCloseForegroundRefresh[] = {
431 {kEnableFeedSessionCloseForegroundRefresh, "true"},
Ed Chin44e6c7e2023-03-22 00:32:54432 {kEnableFeedAppCloseForegroundRefresh, "false"},
433 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
Ed Chin5c1fd532023-03-20 17:43:29434const FeatureEntry::FeatureParam kFeedAppCloseForegroundRefresh[] = {
435 {kEnableFeedSessionCloseForegroundRefresh, "false"},
Ed Chin44e6c7e2023-03-22 00:32:54436 {kEnableFeedAppCloseForegroundRefresh, "true"},
437 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
438const FeatureEntry::FeatureParam kFeedAppCloseBackgroundRefresh[] = {
439 {kEnableFeedSessionCloseForegroundRefresh, "false"},
440 {kEnableFeedAppCloseForegroundRefresh, "false"},
441 {kEnableFeedAppCloseBackgroundRefresh, "true"}};
Ed Chin178ec2a2023-02-10 22:21:26442
Ed Chin5c1fd532023-03-20 17:43:29443// Feed Invisible Foreground Refresh Feature Variations.
444const FeatureEntry::FeatureVariation
445 kFeedInvisibleForegroundRefreshVariations[] = {
446 {"session close foreground refresh", kFeedSessionCloseForegroundRefresh,
447 std::size(kFeedSessionCloseForegroundRefresh), nullptr},
448 {"app close foreground refresh", kFeedAppCloseForegroundRefresh,
449 std::size(kFeedAppCloseForegroundRefresh), nullptr},
Ed Chin44e6c7e2023-03-22 00:32:54450 {"app close background refresh", kFeedAppCloseBackgroundRefresh,
451 std::size(kFeedAppCloseBackgroundRefresh), nullptr},
Ed Chin178ec2a2023-02-10 22:21:26452};
453
Chris Luc9a5cb12022-07-20 16:11:39454const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsers[] = {
Chris Lu85e8cc642022-09-23 20:27:58455 {kTrendingQueriesHideShortcutsParam, "false"}};
Chris Luc9a5cb12022-07-20 16:11:39456const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsersHideShortcuts[] =
Chris Lu85e8cc642022-09-23 20:27:58457 {{kTrendingQueriesHideShortcutsParam, "true"}};
Chris Luc9a5cb12022-07-20 16:11:39458const FeatureEntry::FeatureParam kTrendingQueriesEnableFeedDisabled[] = {
459 {kTrendingQueriesHideShortcutsParam, "false"},
460 {kTrendingQueriesDisabledFeedParam, "true"},
Chris Lu85e8cc642022-09-23 20:27:58461};
Chris Luc9a5cb12022-07-20 16:11:39462
463const FeatureEntry::FeatureVariation kTrendingQueriesModuleVariations[] = {
464 {"Enabled All Users", kTrendingQueriesEnableAllUsers,
465 std::size(kTrendingQueriesEnableAllUsers), nullptr},
466 {"Enabled All Users Hide Shortcuts",
467 kTrendingQueriesEnableAllUsersHideShortcuts,
468 std::size(kTrendingQueriesEnableAllUsersHideShortcuts), nullptr},
469 {"Enabled Disabled Feed", kTrendingQueriesEnableFeedDisabled,
470 std::size(kTrendingQueriesEnableFeedDisabled), nullptr},
Chris Luc9a5cb12022-07-20 16:11:39471};
472
Igor Ruvinov44fed9f2022-06-10 22:51:42473const FeatureEntry::FeatureParam kDmTokenDeletionParam[] = {{"forced", "true"}};
474const FeatureEntry::FeatureVariation kDmTokenDeletionVariation[] = {
475 {"(Forced)", kDmTokenDeletionParam, std::size(kDmTokenDeletionParam),
476 nullptr}};
477
Aliona DANGLA00ae7db2022-10-04 16:58:50478const FeatureEntry::FeatureParam kOpenInDownloadInShareButton[] = {
Ewann Pelleec8ef892022-10-20 13:13:58479 {kOpenInDownloadParameterName, kOpenInDownloadInShareButtonParam}};
Aliona DANGLAa5257ccc2022-08-29 14:01:49480const FeatureEntry::FeatureParam kOpenInDownloadWithWKDownload[] = {
Ewann Pelleec8ef892022-10-20 13:13:58481 {kOpenInDownloadParameterName, kOpenInDownloadWithWKDownloadParam}};
Aliona DANGLAa5257ccc2022-08-29 14:01:49482const FeatureEntry::FeatureParam kOpenInDownloadWithV2[] = {
Ewann Pelleec8ef892022-10-20 13:13:58483 {kOpenInDownloadParameterName, kOpenInDownloadWithV2Param}};
484
Aliona DANGLAa5257ccc2022-08-29 14:01:49485const FeatureEntry::FeatureVariation kOpenInDownloadVariations[] = {
Aliona DANGLA00ae7db2022-10-04 16:58:50486 {"With legacy download", kOpenInDownloadInShareButton,
487 std::size(kOpenInDownloadInShareButton), nullptr},
Aliona DANGLAa5257ccc2022-08-29 14:01:49488 {"With WKDownload", kOpenInDownloadWithWKDownload,
489 std::size(kOpenInDownloadWithWKDownload), nullptr},
490 {"With V2", kOpenInDownloadWithV2, std::size(kOpenInDownloadWithV2),
491 nullptr},
492};
493
Ewann Pelle87019cdf2023-02-17 14:28:16494const FeatureEntry::FeatureParam kEnablePinnedTabsOverflow[] = {
495 {kEnablePinnedTabsOverflowParam, "true"}};
Ewann Pelle3774cac532022-11-15 10:12:37496
497const FeatureEntry::FeatureVariation kEnablePinnedTabsVariations[] = {
Ewann Pelle87019cdf2023-02-17 14:28:16498 {"+ overflow entry", kEnablePinnedTabsOverflow,
499 std::size(kEnablePinnedTabsOverflow), nullptr},
Ewann Pelle3774cac532022-11-15 10:12:37500};
501
ginnnnnnny591a4972022-09-01 16:10:27502const FeatureEntry::FeatureParam kAutofillBrandingIOSMonotone[] = {
503 {autofill::features::kAutofillBrandingIOSParam, "true"}};
504const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = {
505 {"(Monotone)", kAutofillBrandingIOSMonotone,
506 std::size(kAutofillBrandingIOSMonotone), nullptr}};
507
Scott Yodercb2fe632022-09-12 15:28:35508const FeatureEntry::FeatureParam kIOSNewPostRestoreExperienceMinimal[] = {
Benjamin Williams3d3a2ec2022-09-13 20:01:26509 {post_restore_signin::features::kIOSNewPostRestoreExperienceParam, "true"}};
Scott Yodercb2fe632022-09-12 15:28:35510const FeatureEntry::FeatureVariation kIOSNewPostRestoreExperienceVariations[] =
511 {{"minimal", kIOSNewPostRestoreExperienceMinimal,
512 std::size(kIOSNewPostRestoreExperienceMinimal), nullptr}};
513
adamta8886def42023-03-07 19:45:23514const FeatureEntry::FeatureParam
515 kNewTabPageRetentionPopularSitesIncludePopularApps[] = {
516 {ntp_tiles::kNewTabPageRetentionParam, "1"}};
517const FeatureEntry::FeatureParam
518 kNewTabPageRetentionPopularSitesExcludePopularApps[] = {
519 {ntp_tiles::kNewTabPageRetentionParam, "2"}};
520const FeatureEntry::FeatureParam kNewTabPageRetentionTileAblationHideAll[] = {
521 {ntp_tiles::kNewTabPageRetentionParam, "4"}};
522const FeatureEntry::FeatureParam kNewTabPageRetentionTileAblationHideMVTOnly[] =
523 {{ntp_tiles::kNewTabPageRetentionParam, "5"}};
524const FeatureEntry::FeatureVariation kNewTabPageRetentionVariations[] = {
525 {"- Improved popular sites, Include popular apps",
526 kNewTabPageRetentionPopularSitesIncludePopularApps,
527 std::size(kNewTabPageRetentionPopularSitesIncludePopularApps), nullptr},
528 {"- Improved popular sites, Exclude popular apps",
529 kNewTabPageRetentionPopularSitesExcludePopularApps,
530 std::size(kNewTabPageRetentionPopularSitesExcludePopularApps), nullptr},
531 {"- Tile ablation, Hide all", kNewTabPageRetentionTileAblationHideAll,
532 std::size(kNewTabPageRetentionTileAblationHideAll), nullptr},
533 {"- Tile ablation, Hide MVT only",
534 kNewTabPageRetentionTileAblationHideMVTOnly,
535 std::size(kNewTabPageRetentionTileAblationHideMVTOnly), nullptr}};
Benjamin Williamsaa8da8142022-11-14 19:51:03536
Raj T18a2c8c2023-03-15 17:20:15537const FeatureEntry::FeatureParam kEnableExpKitTextClassifierDate[] = {
538 {"date", "true"}};
539const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddress[] = {
540 {"address", "true"}};
541const FeatureEntry::FeatureParam kEnableExpKitTextClassifierPhoneNumber[] = {
542 {"phonenumber", "true"}};
543const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmail[] = {
544 {"email", "true"}};
545const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAll[] = {
546 {"date", "true"},
547 {"address", "true"},
548 {"phonenumber", "true"},
549 {"email", "true"}};
550const FeatureEntry::FeatureVariation kEnableExpKitTextClassifierVariations[] = {
551 {"Enabled for all entities", kEnableExpKitTextClassifierAll,
552 std::size(kEnableExpKitTextClassifierAll), nullptr},
553 {"Enabled for date", kEnableExpKitTextClassifierDate,
554 std::size(kEnableExpKitTextClassifierDate), nullptr},
555 {"Enabled for address", kEnableExpKitTextClassifierAddress,
556 std::size(kEnableExpKitTextClassifierAddress), nullptr},
557 {"Enabled for phonenumber", kEnableExpKitTextClassifierPhoneNumber,
558 std::size(kEnableExpKitTextClassifierPhoneNumber), nullptr},
559 {"Enabled for email", kEnableExpKitTextClassifierEmail,
560 std::size(kEnableExpKitTextClassifierEmail), nullptr}};
561
Elmehdi Rahmaoui3d549fc2022-10-20 14:31:28562const FeatureEntry::FeatureParam kEnableExperienceKitMapsWithSrp[] = {
563 {kExperienceKitMapsVariationName, kEnableExperienceKitMapsVariationSrp}};
564const FeatureEntry::FeatureVariation kEnableExperienceKitMapsVariations[] = {
565 {"with search result page", kEnableExperienceKitMapsWithSrp,
566 std::size(kEnableExperienceKitMapsWithSrp), nullptr}};
567
adamta3811f9182022-10-24 17:49:33568const FeatureEntry::FeatureParam kFollowingFeedSortTypeGroupedByPublisher[] = {
569 {kFollowingFeedDefaultSortTypeGroupedByPublisher, "true"},
570 {kFollowingFeedDefaultSortTypeSortByLatest, "false"}};
571const FeatureEntry::FeatureParam kFollowingFeedSortTypeSortByLatest[] = {
572 {kFollowingFeedDefaultSortTypeGroupedByPublisher, "false"},
573 {kFollowingFeedDefaultSortTypeSortByLatest, "true"}};
574
575const FeatureEntry::FeatureVariation kFollowingFeedDefaultSortTypeVariations[] =
576 {{"Grouped by Publisher", kFollowingFeedSortTypeGroupedByPublisher,
577 std::size(kFollowingFeedSortTypeGroupedByPublisher), nullptr},
578 {"Sort by Latest", kFollowingFeedSortTypeSortByLatest,
579 std::size(kFollowingFeedSortTypeSortByLatest), nullptr}};
580
Quentin Pubert154fc6a2023-01-09 15:58:58581const FeatureEntry::FeatureParam kNativeFindInPageWithChromeFindBar[] = {
582 {kNativeFindInPageParameterName, kNativeFindInPageWithChromeFindBarParam}};
583const FeatureEntry::FeatureVariation kNativeFindInPageVariations[] = {
584 {"With Chrome Find Bar", kNativeFindInPageWithChromeFindBar,
585 std::size(kNativeFindInPageWithChromeFindBar), nullptr}};
586
Louis Romero93e9b50a2023-01-26 01:46:12587const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
588 {kTabInactivityThresholdParameterName,
589 kTabInactivityThresholdOneWeekParam}};
590const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
591 {kTabInactivityThresholdParameterName,
592 kTabInactivityThresholdTwoWeeksParam}};
593const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
594 {kTabInactivityThresholdParameterName,
595 kTabInactivityThresholdThreeWeeksParam}};
Louis Romero56abd902023-03-15 16:21:58596const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = {
597 {kTabInactivityThresholdParameterName,
598 kTabInactivityThresholdOneMinuteDemoParam}};
Louis Romero93e9b50a2023-01-26 01:46:12599
600const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
601 {"One week", kTabInactivityThresholdOneWeek,
602 std::size(kTabInactivityThresholdOneWeek), nullptr},
603 {"Two weeks", kTabInactivityThresholdTwoWeeks,
604 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
605 {"Three weeks", kTabInactivityThresholdThreeWeeks,
606 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
Louis Romero56abd902023-03-15 16:21:58607 {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo,
608 std::size(kTabInactivityThresholdOneMinuteDemo), nullptr},
Louis Romero93e9b50a2023-01-26 01:46:12609};
610
Huiting Yud7d2a5322023-02-09 21:14:22611const FeatureEntry::FeatureParam
612 kCredentialProviderExtensionPromoOnPasswordSaved[] = {
613 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
614const FeatureEntry::FeatureParam
615 kCredentialProviderExtensionPromoOnPasswordCopied[] = {
616 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}};
617const FeatureEntry::FeatureParam
618 kCredentialProviderExtensionPromoOnLoginWithAutofill[] = {
619 {kCredentialProviderExtensionPromoOnLoginWithAutofillParam, "true"}};
620
621const FeatureEntry::FeatureVariation
622 kCredentialProviderExtensionPromoVariations[] = {
623 {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved,
624 std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr},
625 {"On password copied",
626 kCredentialProviderExtensionPromoOnPasswordCopied,
627 std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr},
628 {"On successful login with autofill",
629 kCredentialProviderExtensionPromoOnLoginWithAutofill,
630 std::size(kCredentialProviderExtensionPromoOnLoginWithAutofill),
631 nullptr},
632};
633
Olivier ROBINfd3887b72023-02-23 14:45:42634const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
635 {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
636const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
637 {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
638 std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr}};
639
Olivier ROBIN2ca64952023-02-23 17:11:48640const FeatureEntry::FeatureParam kAddToHomeScreenDisableIncognito[] = {
641 {kAddToHomeScreenDisableIncognitoParam, "true"}};
642const FeatureEntry::FeatureVariation kAddToHomeScreenVariations[] = {
643 {"Disable on incognito", kAddToHomeScreenDisableIncognito,
644 std::size(kAddToHomeScreenDisableIncognito), nullptr}};
645
ginnnnnnny75903622023-03-01 18:00:00646const FeatureEntry::FeatureParam kBringYourOwnTabsIOSBottomMessage[] = {
647 {kBringYourOwnTabsIOSParam, "true"}};
648const FeatureEntry::FeatureVariation kBringYourOwnTabsIOSVariations[] = {
649 {"with bottom message on tab grid", kBringYourOwnTabsIOSBottomMessage,
650 std::size(kBringYourOwnTabsIOSBottomMessage), nullptr}};
651
Cooper Knaak1e026562017-07-26 05:22:28652// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21653// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28654// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
655// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21656// macro for this type supplying the command line to the macro.
657// . MULTI_VALUE: a list of choices, the first of which should correspond to a
658// deactivated state for this lab (i.e. no command line option). To specify
659// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
660// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28661// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
662// either enabled, disabled, or uses the default value of the associated
663// base::Feature instance. To specify this type of entry use the macro
664// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
665// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
666// base::Feature instance. Choices corresponding to the default state, a
667// universally enabled state, and a universally disabled state are
668// automatically included. To specify this type of entry use the macro
669// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
670// the array of choices.
671//
sdefresne14900ee2015-11-27 14:43:21672// See the documentation of FeatureEntry for details on the fields.
673//
674// When adding a new choice, add it to the end of the list.
675const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28676 {"in-product-help-demo-mode-choice",
677 flag_descriptions::kInProductHelpDemoModeName,
678 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
679 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23680 feature_engagement::kIPHDemoMode,
681 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09682 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22683 {"enable-autofill-credit-card-upload",
684 flag_descriptions::kAutofillCreditCardUploadName,
685 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24686 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23687 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
688 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
689 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51690 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:23691 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
692 {"wallet-service-use-sandbox",
693 flag_descriptions::kWalletServiceUseSandboxName,
694 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
695 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
696 autofill::switches::kWalletServiceUseSandbox,
697 "1",
698 autofill::switches::kWalletServiceUseSandbox,
699 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:59700 {"show-autofill-type-predictions",
701 flag_descriptions::kShowAutofillTypePredictionsName,
702 flag_descriptions::kShowAutofillTypePredictionsDescription,
703 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:50704 FEATURE_VALUE_TYPE(
705 autofill::features::test::kAutofillShowTypePredictions)},
Vidhan Jaincbb3d53f2023-01-23 19:13:26706 {"autofill-account-profiles-union-view",
707 flag_descriptions::kAutofillAccountProfilesUnionViewName,
708 flag_descriptions::kAutofillAccountProfilesUnionViewDescription,
709 flags_ui::kOsIos,
710 FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfilesUnionView)},
Olivier Robin3d60411622018-02-23 10:03:22711 {"autofill-ios-delay-between-fields",
712 flag_descriptions::kAutofillIOSDelayBetweenFieldsName,
713 flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription,
714 flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)},
Benjamin Williamsdf18e7e2022-10-03 18:46:05715 {"fullscreen-promos-manager-skip-internal-limits",
716 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
717 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
718 flags_ui::kOsIos,
719 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:14720 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:53721 flag_descriptions::kFullscreenSmoothScrollingName,
722 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:19723 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:06724 {"webpage-default-zoom-from-dynamic-type",
725 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
726 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
727 flags_ui::kOsIos,
728 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:56729 {"webpage-alternative-text-zoom",
730 flag_descriptions::kWebPageAlternativeTextZoomName,
731 flag_descriptions::kWebPageAlternativeTextZoomDescription,
732 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:34733 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
734 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
735 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Kurt Horimoto79d590b2018-09-12 19:09:28736 {"toolbar-container", flag_descriptions::kToolbarContainerName,
737 flag_descriptions::kToolbarContainerDescription, flags_ui::kOsIos,
738 FEATURE_VALUE_TYPE(toolbar_container::kToolbarContainerEnabled)},
Stepan Khapugincc4e9842019-01-23 13:38:13739 {"omnibox-ui-max-autocomplete-matches",
740 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
741 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
742 flags_ui::kOsIos,
743 FEATURE_WITH_PARAMS_VALUE_TYPE(
744 omnibox::kUIExperimentMaxAutocompleteMatches,
745 kOmniboxUIMaxAutocompleteMatchesVariations,
746 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:35747 {"omnibox-local-history-zero-suggest-beyond-ntp",
748 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
749 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
750 flags_ui::kOsIos,
751 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:54752 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
753 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
754 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
755 kOmniboxMaxZPSMatchesVariations,
756 "OmniboxMaxZPSVariations")},
Stepan Khapugind9876842023-01-27 17:59:45757
758 {"omnibox-most-visited-tiles-on-srp",
759 flag_descriptions::kOmniboxMostVisitedTilesOnSrpName,
760 flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription,
761 flags_ui::kOsIos,
762 FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)},
Caitlin Fischer43edd90a2019-05-01 13:24:30763 {"autofill-use-mobile-label-disambiguation",
764 flag_descriptions::kAutofillUseMobileLabelDisambiguationName,
765 flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription,
766 flags_ui::kOsIos,
Caitlin Fischer37e01232019-05-24 13:05:45767 FEATURE_WITH_PARAMS_VALUE_TYPE(
768 autofill::features::kAutofillUseMobileLabelDisambiguation,
769 kAutofillUseMobileLabelDisambiguationVariations,
770 "AutofillUseMobileLabelDisambiguation")},
Mike Doughertyb6c770d2019-09-13 22:56:46771 {"ios-breadcrumbs", flag_descriptions::kLogBreadcrumbsName,
772 flag_descriptions::kLogBreadcrumbsDescription, flags_ui::kOsIos,
Jesse McKenna85c1a59f2021-05-05 19:08:30773 FEATURE_VALUE_TYPE(breadcrumbs::kLogBreadcrumbs)},
Jérôme Lebelc374fdd2019-09-27 10:36:48774 {"force-startup-signin-promo",
775 flag_descriptions::kForceStartupSigninPromoName,
776 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:29777 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tanmoy Mollik429d21a2022-11-28 15:42:06778 {"identity-status-consistency",
779 flag_descriptions::kIdentityStatusConsistencyName,
780 flag_descriptions::kIdentityStatusConsistencyDescription, flags_ui::kOsIos,
781 FEATURE_VALUE_TYPE(switches::kIdentityStatusConsistency)},
Yoichi Osato7ae11752021-03-16 03:27:22782 {"restore-session-from-cache",
783 flag_descriptions::kRestoreSessionFromCacheName,
784 flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos,
Justin Cohen3ec2522c2021-04-23 18:23:49785 FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)},
Roberto Mourab87b9722020-06-17 17:12:09786 {"expanded-tab-strip", flag_descriptions::kExpandedTabStripName,
787 flag_descriptions::kExpandedTabStripDescription, flags_ui::kOsIos,
788 FEATURE_VALUE_TYPE(kExpandedTabStrip)},
Tommy Martino6b4eb7e2020-06-25 18:25:41789 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
790 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
791 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:13792#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:45793 {"screen-time-integration-ios",
794 flag_descriptions::kScreenTimeIntegrationName,
795 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
796 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:13797#endif
Nazerke3e993f72020-09-21 13:00:06798 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
799 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
800 FEATURE_VALUE_TYPE(kModernTabStrip)},
Eugene Butf869bff2020-12-10 01:16:55801 {"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName,
802 flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos,
803 FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)},
Chris Lub17195f2020-12-10 20:49:14804 {"default-browser-fullscreen-promo-experiment",
805 flag_descriptions::kDefaultBrowserFullscreenPromoExperimentName,
806 flag_descriptions::kDefaultBrowserFullscreenPromoExperimentDescription,
807 flags_ui::kOsIos,
Javier Ernesto Flores Robles159414232021-06-16 14:29:59808 FEATURE_WITH_PARAMS_VALUE_TYPE(
809 kDefaultBrowserFullscreenPromoExperiment,
810 kDefaultBrowserFullscreenPromoExperimentVariations,
811 "IOSDefaultBrowserFullscreenPromoExperiment")},
Cheick Cisse76ade3d2020-12-16 00:15:11812 {"ios-shared-highlighting-color-change",
813 flag_descriptions::kIOSSharedHighlightingColorChangeName,
814 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:07815 flags_ui::kOsIos,
816 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:34817 {"ios-shared-highlighting-v2",
818 flag_descriptions::kIOSSharedHighlightingV2Name,
819 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
820 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Stepan Khapugin04341202021-01-07 12:22:45821 {"omnibox-new-textfield-implementation",
822 flag_descriptions::kOmniboxNewImplementationName,
823 flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos,
824 FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)},
Stepan Khapugin0be8f6d2022-09-21 20:22:26825 {"omnibox-on-focus-suggestions-contextual-web",
826 flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName,
827 flag_descriptions::
828 kOmniboxFocusTriggersContextualWebZeroSuggestDescription,
829 flags_ui::kOsIos,
830 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)},
831 {"omnibox-on-focus-suggestions-srp",
832 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName,
833 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription,
834 flags_ui::kOsIos,
835 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)},
Stepan Khapugin0da12382023-01-24 16:08:12836 {"omnibox-report-assisted-query-stats",
837 flag_descriptions::kOmniboxReportAssistedQueryStatsName,
838 flag_descriptions::kOmniboxReportAssistedQueryStatsDescription,
839 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)},
840 {"omnibox-report-searchbox-stats",
841 flag_descriptions::kOmniboxReportSearchboxStatsName,
842 flag_descriptions::kOmniboxReportSearchboxStatsDescription,
843 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)},
Stepan Khapuginecf128a92022-08-30 11:23:15844 {"omnibox-fuzzy-url-suggestions",
845 flag_descriptions::kOmniboxFuzzyUrlSuggestionsName,
846 flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription,
847 flags_ui::kOsIos,
848 FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)},
gogerald0ff29e52021-02-03 18:56:19849 {"start-surface", flag_descriptions::kStartSurfaceName,
850 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:23851 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
852 kStartSurfaceVariations,
853 "StartSurface")},
Vidhan Jain451b4752021-07-15 10:16:42854 {"autofill-address-verification-in-save-prompt",
855 flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName,
856 flag_descriptions::
857 kEnableAutofillAddressSavePromptAddressVerificationDescription,
858 flags_ui::kOsIos,
859 FEATURE_VALUE_TYPE(
860 autofill::features::
861 kAutofillAddressProfileSavePromptAddressVerificationSupport)},
Viktor Semeniuk68e794a2021-03-24 10:23:25862 {"filling-across-affiliated-websites",
863 flag_descriptions::kFillingAcrossAffiliatedWebsitesName,
864 flag_descriptions::kFillingAcrossAffiliatedWebsitesDescription,
865 flags_ui::kOsIos,
866 FEATURE_VALUE_TYPE(
867 password_manager::features::kFillingAcrossAffiliatedWebsites)},
Side Yilmaz6c53f7102021-09-07 13:26:19868 {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName,
869 flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos,
870 FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)},
Nohemi Fernandezc00842a2021-07-26 11:47:34871 {"wait-threshold-seconds-for-capabilities-api",
872 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
873 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
874 flags_ui::kOsIos,
875 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Jared Saul2188f762021-08-02 21:22:23876 {"autofill-fill-merchant-promo-code-fields",
877 flag_descriptions::kAutofillFillMerchantPromoCodeFieldsName,
878 flag_descriptions::kAutofillFillMerchantPromoCodeFieldsDescription,
879 flags_ui::kOsIos,
880 FEATURE_VALUE_TYPE(
881 autofill::features::kAutofillFillMerchantPromoCodeFields)},
Sylvain Defresnedff67e42021-09-24 09:43:03882 {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName,
883 flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos,
884 FEATURE_VALUE_TYPE(kNewOverflowMenu)},
Robbie Gibsondf097a72022-09-05 08:17:18885 {"new-overflow-menu-alternate-iph",
886 flag_descriptions::kNewOverflowMenuAlternateIPHName,
887 flag_descriptions::kNewOverflowMenuAlternateIPHDescription,
888 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuAlternateIPH)},
Evan Bernstein0a85f332021-09-29 19:07:24889 {"use-lens-to-search-for-image",
890 flag_descriptions::kUseLensToSearchForImageName,
891 flag_descriptions::kUseLensToSearchForImageDescription, flags_ui::kOsIos,
Ali Juma02a9b7b2021-10-01 13:44:44892 FEATURE_VALUE_TYPE(kUseLensToSearchForImage)},
Jason Hu3830a072022-08-19 20:56:22893 {"enable-lens-in-home-screen-widget",
894 flag_descriptions::kEnableLensInHomeScreenWidgetName,
895 flag_descriptions::kEnableLensInHomeScreenWidgetDescription,
896 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)},
897 {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName,
898 flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos,
899 FEATURE_VALUE_TYPE(kEnableLensInKeyboard)},
900 {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName,
901 flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos,
902 FEATURE_VALUE_TYPE(kEnableLensInNTP)},
Anudeep Palanki403c907a2023-01-25 20:30:03903 {"enable-lens-context-menu-alt-text",
904 flag_descriptions::kEnableLensContextMenuAltTextName,
905 flag_descriptions::kEnableLensContextMenuAltTextDescription,
906 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)},
Jason Hu67cfb0f2022-11-14 20:21:44907 {"enable-lens-in-omnibox-copied-image",
908 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
909 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
910 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Benjamin Williamsbee6ab62022-02-28 18:09:40911 {"use-load-simulated-request-for-error-page-navigation",
Gauthier Ambard33cceaf2022-05-05 14:00:23912 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName,
913 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription,
Benjamin Williamsbee6ab62022-02-28 18:09:40914 flags_ui::kOsIos,
Gauthier Ambard33cceaf2022-05-05 14:00:23915 FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)},
Sergio Collazos9fcc6ed2021-10-06 00:58:03916 {"enable-disco-feed-endpoint",
917 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
918 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
919 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:11920 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Mohammad Refaatab6bee62022-05-16 16:31:15921 {"enable-discover-feed-top-sync-promo",
922 flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
923 flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
924 flags_ui::kOsIos,
925 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
926 kDiscoverFeedTopSyncPromoVariations,
927 "EnableDiscoverFeedTopSyncPromo")},
adamta4a6f2fd22023-02-13 17:37:14928 {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
929 flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
930 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
931 kFeedHeaderSettingsVariations,
932 "FeedHeaderSettings")},
Tommy Martino7393d762021-10-12 17:59:28933 {"shared-highlighting-amp",
934 flag_descriptions::kIOSSharedHighlightingAmpName,
935 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
936 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:28937 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:42938 commerce::flag_descriptions::kCommercePriceTrackingName,
939 commerce::flag_descriptions::kCommercePriceTrackingDescription,
940 flags_ui::kOsIos,
941 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
942 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:15943 "CommercePriceTracking")},
Tina Wang8058d5f2021-11-04 20:06:06944 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
945 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
946 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:54947 {"ntp-view-hierarchy-repair",
948 flag_descriptions::kNTPViewHierarchyRepairName,
949 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:20950 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Justin Cohen69cec682021-11-04 20:10:26951 {"synthesized-restore-session",
952 flag_descriptions::kSynthesizedRestoreSessionName,
953 flag_descriptions::kSynthesizedRestoreSessionDescription, flags_ui::kOsIos,
954 FEATURE_VALUE_TYPE(web::features::kSynthesizedRestoreSession)},
ginnnnnnnyee3036e2022-08-12 18:01:18955 {"ios-media-permissions-control",
956 flag_descriptions::kMediaPermissionsControlName,
957 flag_descriptions::kMediaPermissionsControlDescription, flags_ui::kOsIos,
958 FEATURE_VALUE_TYPE(web::features::kMediaPermissionsControl)},
Veronique Nguyen11f8c9f2022-09-12 16:51:26959 {"enable-password-grouping", flag_descriptions::kPasswordsGroupingName,
960 flag_descriptions::kPasswordsGroupingDescription, flags_ui::kOsIos,
961 FEATURE_VALUE_TYPE(password_manager::features::kPasswordsGrouping)},
Ali Juma1429cf8a2022-02-09 15:31:01962 {"enable-fullscreen-api", flag_descriptions::kEnableFullscreenAPIName,
963 flag_descriptions::kEnableFullscreenAPIDescription, flags_ui::kOsIos,
964 FEATURE_VALUE_TYPE(web::features::kEnableFullscreenAPI)},
Joemer Ramosc34a30a02022-09-22 15:18:43965 {"enable-tailored-security-integration",
966 flag_descriptions::kTailoredSecurityIntegrationName,
967 flag_descriptions::kTailoredSecurityIntegrationDescription,
968 flags_ui::kOsIos,
969 FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)},
Vishwas Uppoor89303a92022-08-03 00:56:26970 {"autofill-enable-card-product-name",
971 flag_descriptions::kAutofillEnableCardProductNameName,
972 flag_descriptions::kAutofillEnableCardProductNameDescription,
973 flags_ui::kOsIos,
974 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Victor Hugo Vianna Silvaf0a44002022-02-16 10:38:00975 {"send-tab-to-self-signin-promo",
976 flag_descriptions::kSendTabToSelfSigninPromoName,
977 flag_descriptions::kSendTabToSelfSigninPromoDescription, flags_ui::kOsIos,
978 FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfSigninPromo)},
Siyu Anff02e742022-04-07 19:08:22979 {"autofill-enforce-delays-in-strike-database",
980 flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseName,
981 flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseDescription,
982 flags_ui::kOsIos,
983 FEATURE_VALUE_TYPE(
984 autofill::features::kAutofillEnforceDelaysInStrikeDatabase)},
Jared Saulb0473bd2022-04-20 00:03:41985 {"autofill-upstream-allow-additional-email-domains",
986 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName,
987 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription,
988 flags_ui::kOsIos,
989 FEATURE_VALUE_TYPE(
990 autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)},
991 {"autofill-upstream-allow-all-email-domains",
992 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName,
993 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription,
994 flags_ui::kOsIos,
995 FEATURE_VALUE_TYPE(
996 autofill::features::kAutofillUpstreamAllowAllEmailDomains)},
Raj Tb95d813542022-11-16 21:27:52997 {"enable-download-service-foreground-session",
998 flag_descriptions::kDownloadServiceForegroundSessionName,
999 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1000 flags_ui::kOsIos,
1001 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231002 {"enable-tflite-language-detection",
1003 flag_descriptions::kTFLiteLanguageDetectionName,
1004 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1005 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201006 {"optimization-guide-debug-logs",
1007 flag_descriptions::kOptimizationGuideDebugLogsName,
1008 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1009 flags_ui::kOsIos,
1010 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551011 {"optimization-guide-push-notifications",
1012 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1013 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1014 flags_ui::kOsIos,
1015 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
Olivier Robinffe767c2022-04-21 13:13:231016 {"optimization-guide-model-downloading",
1017 flag_descriptions::kOptimizationGuideModelDownloadingName,
1018 flag_descriptions::kOptimizationGuideModelDownloadingDescription,
1019 flags_ui::kOsIos,
1020 FEATURE_VALUE_TYPE(
1021 optimization_guide::features::kOptimizationGuideModelDownloading)},
1022 {"optimization-target-prediction",
1023 flag_descriptions::kOptimizationTargetPredictionName,
1024 flag_descriptions::kOptimizationTargetPredictionDescription,
1025 flags_ui::kOsIos,
1026 FEATURE_VALUE_TYPE(
1027 optimization_guide::features::kOptimizationTargetPrediction)},
Rushan Suleymanov727309602022-04-28 20:08:541028 {"sync-standalone-invalidations", flag_descriptions::kSyncInvalidationsName,
1029 flag_descriptions::kSyncInvalidationsDescription, flags_ui::kOsIos,
1030 FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidations)},
1031 {"sync-standalone-invalidations-wallet-and-offer",
1032 flag_descriptions::kSyncInvalidationsWalletAndOfferName,
1033 flag_descriptions::kSyncInvalidationsWalletAndOfferDescription,
1034 flags_ui::kOsIos,
1035 FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidationsForWalletAndOffer)},
Christian Xub8c06cd2022-04-29 20:55:011036 {"suggestions-scrolling-ipad",
1037 flag_descriptions::kEnableSuggestionsScrollingOnIPadName,
1038 flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription,
1039 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)},
Stepan Khapuginfee136c62022-11-28 13:24:001040 {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName,
1041 flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos,
1042 FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)},
David Jean7a8fa702022-05-02 15:21:221043 {"experience-kit-calendar", flag_descriptions::kCalendarExperienceKitName,
1044 flag_descriptions::kCalendarExperienceKitDescription, flags_ui::kOsIos,
1045 FEATURE_VALUE_TYPE(kCalendarExperienceKit)},
Elmehdi Rahmaoui5a6273a22022-11-28 16:19:251046 {"intents-on-phone-number", flag_descriptions::kPhoneNumberName,
1047 flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331048 FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)},
Elmehdi Rahmaoui21e87d52022-11-09 15:00:551049 {"experience-kit-apple-calendar",
1050 flag_descriptions::kAppleCalendarExperienceKitName,
1051 flag_descriptions::kAppleCalendarExperienceKitDescription,
1052 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)},
Raj T7db7a0e2022-11-17 16:33:081053 {"enable-expkit-text-classifier",
1054 flag_descriptions::kEnableExpKitTextClassifierName,
1055 flag_descriptions::kEnableExpKitTextClassifierDescription,
Raj T18a2c8c2023-03-15 17:20:151056 flags_ui::kOsIos,
1057 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifier,
1058 kEnableExpKitTextClassifierVariations,
1059 "ExpKitTextClassifier")},
Elmehdi Rahmaoui9d4ce40c62022-08-05 15:31:181060 {"experience-kit-maps", flag_descriptions::kMapsExperienceKitName,
1061 flag_descriptions::kMapsExperienceKitDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui3d549fc2022-10-20 14:31:281062 FEATURE_WITH_PARAMS_VALUE_TYPE(kMapsExperienceKit,
1063 kEnableExperienceKitMapsVariations,
1064 "IOSExperienceKitMaps")},
Elmehdi Rahmaouic699dc12022-10-12 11:17:051065 {"enable-long-press-surrounding-text",
1066 flag_descriptions::kLongPressSurroundingTextName,
1067 flag_descriptions::kLongPressSurroundingTextDescription, flags_ui::kOsIos,
1068 FEATURE_VALUE_TYPE(web::features::kLongPressSurroundingText)},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331069 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1070 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
1071 FEATURE_VALUE_TYPE(web::features::kOneTapForMaps)},
Mustafa Emre Acer4de8863a2022-05-03 22:17:011072 {"https-only-mode", flag_descriptions::kHttpsOnlyModeName,
1073 flag_descriptions::kHttpsOnlyModeDescription, flags_ui::kOsIos,
1074 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsOnlyMode)},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251075 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1076 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1077 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Benjamin Williams419c81e2022-05-04 18:33:221078 {"smart-sorting-new-overflow-menu",
1079 flag_descriptions::kSmartSortingNewOverflowMenuName,
1080 flag_descriptions::kSmartSortingNewOverflowMenuDescription,
1081 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSmartSortingNewOverflowMenu)},
Benjamin Williamsf721fc22023-01-10 23:28:251082 {"smart-sorting-price-tracking-destination",
1083 flag_descriptions::kSmartSortingPriceTrackingDestinationName,
1084 flag_descriptions::kSmartSortingPriceTrackingDestinationDescription,
1085 flags_ui::kOsIos,
1086 FEATURE_VALUE_TYPE(kSmartSortingPriceTrackingDestination)},
Scott Yoder10493562022-06-28 17:37:441087 {"new-overflow-menu-share-chrome-action",
1088 flag_descriptions::kNewOverflowMenuShareChromeActionName,
1089 flag_descriptions::kNewOverflowMenuShareChromeActionDescription,
1090 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuShareChromeAction)},
Alexander Tekleb4643812023-01-06 23:12:301091 {"autofill-enable-ranking-formula-address-profiles",
1092 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1093 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1094 flags_ui::kOsIos,
1095 FEATURE_VALUE_TYPE(
1096 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391097 {"autofill-enable-ranking-formula-credit-cards",
1098 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1099 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1100 flags_ui::kOsIos,
1101 FEATURE_VALUE_TYPE(
1102 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021103 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1104 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1105 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Tina Wang30df7172022-12-09 22:02:021106 {"enable-feed-bottom-sign-in-promo",
1107 flag_descriptions::kEnableFeedBottomSignInPromoName,
1108 flag_descriptions::kEnableFeedBottomSignInPromoDescription,
1109 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedBottomSignInPromo)},
1110 {"enable-feed-card-menu-sign-in-promo",
1111 flag_descriptions::kEnableFeedCardMenuSignInPromoName,
1112 flag_descriptions::kEnableFeedCardMenuSignInPromoDescription,
1113 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)},
Chris Lu7f024ed2c2022-05-27 23:11:271114 {"content-suggestions-ui-module-refresh",
1115 flag_descriptions::kContentSuggestionsUIModuleRefreshName,
1116 flag_descriptions::kContentSuggestionsUIModuleRefreshDescription,
Chris Lu8e308dc2022-09-06 16:59:401117 flags_ui::kOsIos,
Chris Lu85e8cc642022-09-23 20:27:581118 FEATURE_WITH_PARAMS_VALUE_TYPE(
1119 kContentSuggestionsUIModuleRefresh,
1120 kModuleRefreshVariations,
1121 kContentSuggestionsUIModuleRefreshFlagOverrideFieldTrialName)},
Olivier Robin058c1fad2022-05-31 18:24:061122 {"default-browser-intents-show-settings",
1123 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1124 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1125 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Igor Ruvinova43a66dc2022-06-09 21:57:451126 {"dm-token-deletion", flag_descriptions::kDmTokenDeletionName,
1127 flag_descriptions::kDmTokenDeletionDescription, flags_ui::kOsIos,
Igor Ruvinov44fed9f2022-06-10 22:51:421128 FEATURE_WITH_PARAMS_VALUE_TYPE(policy::features::kDmTokenDeletion,
1129 kDmTokenDeletionVariation,
1130 "DmTokenDeletion")},
Tommy Martinoad42be52022-06-13 11:51:191131 {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName,
1132 flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos,
1133 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)},
Scott Yoder16bff3c2023-03-24 16:00:551134 {"ios-set-up-list", flag_descriptions::kIOSSetUpListName,
1135 flag_descriptions::kIOSSetUpListDescription, flags_ui::kOsIos,
1136 FEATURE_VALUE_TYPE(kIOSSetUpList)},
Theodor-Stefan Cristea6d087b82022-07-26 15:25:291137 {"ios-password-manager-cross-origin-iframe-support",
1138 flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportName,
1139 flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportDescription,
1140 flags_ui::kOsIos,
1141 FEATURE_VALUE_TYPE(password_manager::features::
1142 kIOSPasswordManagerCrossOriginIframeSupport)},
Veronique Nguyenc3d7db52023-03-08 22:52:321143 {"ios-password-bottom-sheet",
1144 flag_descriptions::kIOSPasswordBottomSheetName,
1145 flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos,
1146 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)},
adamta8886def42023-03-07 19:45:231147 {"ios-new-tab-page-retention", flag_descriptions::kNewTabPageRetentionName,
1148 flag_descriptions::kNewTabPageRetentionDescription, flags_ui::kOsIos,
1149 FEATURE_WITH_PARAMS_VALUE_TYPE(ntp_tiles::kNewTabPageRetention,
1150 kNewTabPageRetentionVariations,
1151 ntp_tiles::kNewTabPageRetentionName)},
Christian Xud105a1352022-06-17 19:54:141152 {"omnibox-adaptive-suggestions-count",
1153 flag_descriptions::kAdaptiveSuggestionsCountName,
1154 flag_descriptions::kAdaptiveSuggestionsCountDescription, flags_ui::kOsIos,
1155 FEATURE_VALUE_TYPE(omnibox::kAdaptiveSuggestionsCount)},
Chris Lu2fd473f2022-06-28 13:38:201156 {"trending-queries-module", flag_descriptions::kTrendingQueriesModuleName,
1157 flag_descriptions::kTrendingQueriesModuleDescription, flags_ui::kOsIos,
Chris Lu85e8cc642022-09-23 20:27:581158 FEATURE_WITH_PARAMS_VALUE_TYPE(
1159 kTrendingQueriesModule,
1160 kTrendingQueriesModuleVariations,
1161 kTrendingQueriesFlagOverrideFieldTrialName)},
Nakul Vaidyaddfdfbc2022-06-28 23:43:321162 {"autofill-parse-iban-fields",
Nakul Vaidya876210f2022-08-08 17:47:191163 flag_descriptions::kAutofillParseIBANFieldsName,
1164 flag_descriptions::kAutofillParseIBANFieldsDescription, flags_ui::kOsIos,
1165 FEATURE_VALUE_TYPE(autofill::features::kAutofillParseIBANFields)},
Moe Ahmadi098519d82022-07-27 18:34:241166 {"omnibox-zero-suggest-prefetching",
1167 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1168 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1169 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451170 {"omnibox-zero-suggest-prefetching-on-srp",
1171 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1172 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1173 flags_ui::kOsIos,
1174 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1175 {"omnibox-zero-suggest-prefetching-on-web",
1176 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1177 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1178 flags_ui::kOsIos,
1179 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471180 {"omnibox-zero-suggest-in-memory-caching",
1181 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1182 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1183 flags_ui::kOsIos,
1184 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351185 {"omnibox-on-device-tail-suggestions",
1186 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1187 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1188 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Joemer Ramosada1e852023-03-10 19:14:411189 {"enable-button-configuration-usage",
1190 flag_descriptions::kEnableUIButtonConfigurationName,
1191 flag_descriptions::kEnableUIButtonConfigurationDescription,
1192 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableUIButtonConfiguration)},
Vincent Boissellead6cbe22022-07-04 19:32:391193 {"enable-user-policy", flag_descriptions::kEnableUserPolicyName,
1194 flag_descriptions::kEnableUserPolicyDescription, flags_ui::kOsIos,
Vincent Boisselle88fef222022-09-23 18:54:501195 FEATURE_VALUE_TYPE(policy::kUserPolicy)},
Marc Treibb9d8ed802022-07-05 15:15:491196 {"enable-sync-history-datatype",
1197 flag_descriptions::kSyncEnableHistoryDataTypeName,
1198 flag_descriptions::kSyncEnableHistoryDataTypeDescription, flags_ui::kOsIos,
1199 FEATURE_VALUE_TYPE(syncer::kSyncEnableHistoryDataType)},
Christian Xucf26d562022-07-06 09:28:361200 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1201 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1202 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1203 kOmniboxMaxURLMatchesVariations,
1204 "OmniboxMaxURLMatches")},
Olivier Robin60d3a062022-07-06 17:34:061205 {"metrickit-non-crash-reports",
1206 flag_descriptions::kMetrickitNonCrashReportName,
1207 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1208 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Siyu An3194bda2022-07-13 19:30:371209 {"autofill-enable-remade-downstream-metrics",
1210 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName,
1211 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription,
1212 flags_ui::kOsIos,
1213 FEATURE_VALUE_TYPE(
1214 autofill::features::kAutofillEnableRemadeDownstreamMetrics)},
Nakul Vaidya13ca2042022-07-27 01:59:551215 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1216 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1217 flag_descriptions::
1218 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1219 flags_ui::kOsIos,
1220 FEATURE_VALUE_TYPE(
1221 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Cheick Cisse1a168ef2023-03-24 10:39:531222 {"default-browser-refactoring-promo-manager",
1223 flag_descriptions::kDefaultBrowserRefactoringPromoManagerName,
1224 flag_descriptions::kDefaultBrowserRefactoringPromoManagerDescription,
1225 flags_ui::kOsIos,
1226 FEATURE_VALUE_TYPE(kDefaultBrowserRefactoringPromoManager)},
Ed Chin91e44992022-07-27 13:42:341227#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1228 {"feed-background-refresh-ios",
1229 flag_descriptions::kFeedBackgroundRefreshName,
1230 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1231 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1232 kFeedBackgroundRefreshVariations,
1233 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261234#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin5c1fd532023-03-20 17:43:291235 {"feed-invisible-foreground-refresh-ios",
1236 flag_descriptions::kFeedInvisibleForegroundRefreshName,
1237 flag_descriptions::kFeedInvisibleForegroundRefreshDescription,
1238 flags_ui::kOsIos,
1239 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedInvisibleForegroundRefresh,
1240 kFeedInvisibleForegroundRefreshVariations,
1241 "FeedInvisibleForegroundRefresh")},
Christian Xu164a2e512022-08-01 20:38:191242 {"omnibox-keyboard-paste-button",
1243 flag_descriptions::kOmniboxKeyboardPasteButtonName,
1244 flag_descriptions::kOmniboxKeyboardPasteButtonDescription,
1245 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)},
Ed Chin178ec2a2023-02-10 22:21:261246
Aliona DANGLAa5257ccc2022-08-29 14:01:491247 {"enable-open-in-download", flag_descriptions::kEnableOpenInDownloadName,
1248 flag_descriptions::kEnableOpenInDownloadDescription, flags_ui::kOsIos,
1249 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableOpenInDownload,
1250 kOpenInDownloadVariations,
1251 "EnableOpenInDownload")},
Cheick Cisse87a51cb2022-09-08 21:29:171252 {"whats-new-ios", flag_descriptions::kWhatsNewIOSName,
1253 flag_descriptions::kWhatsNewIOSDescription, flags_ui::kOsIos,
Cheick Cissef37087902022-10-07 19:01:411254 FEATURE_WITH_PARAMS_VALUE_TYPE(kWhatsNewIOS,
1255 kWhatsNewLayoutVariations,
1256 "WhatsNewLayoutVariations")},
ginnnnnnny591a4972022-09-01 16:10:271257 {"ios-autofill-branding", flag_descriptions::kAutofillBrandingIOSName,
1258 flag_descriptions::kAutofillBrandingIOSDescription, flags_ui::kOsIos,
1259 FEATURE_WITH_PARAMS_VALUE_TYPE(autofill::features::kAutofillBrandingIOS,
1260 kAutofillBrandingIOSVariations,
Hira Mahmoodb0e5f412022-09-01 19:41:051261 "AutofillBrandingIOS")},
1262 {"app-store-rating", flag_descriptions::kAppStoreRatingName,
1263 flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos,
1264 FEATURE_VALUE_TYPE(kAppStoreRating)},
Scott Yodercb2fe632022-09-12 15:28:351265 {"ios-new-post-restore-experience",
1266 flag_descriptions::kIOSNewPostRestoreExperienceName,
1267 flag_descriptions::kIOSNewPostRestoreExperienceDescription,
1268 flags_ui::kOsIos,
Benjamin Williams3d3a2ec2022-09-13 20:01:261269 FEATURE_WITH_PARAMS_VALUE_TYPE(
1270 post_restore_signin::features::kIOSNewPostRestoreExperience,
1271 kIOSNewPostRestoreExperienceVariations,
1272 "IOSNewPostRestoreExperience")},
Christian Xu6b90c2a32022-09-13 18:17:021273 {"most-visited-tiles", flag_descriptions::kMostVisitedTilesName,
1274 flag_descriptions::kMostVisitedTilesDescription, flags_ui::kOsIos,
1275 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTiles)},
Olivier ROBINf05518782022-09-14 23:55:501276 {"enable-tflite-language-detection-ignore",
1277 flag_descriptions::kTFLiteLanguageDetectionIgnoreName,
1278 flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription,
1279 flags_ui::kOsIos,
1280 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)},
Tina Wang89ae4252022-10-14 00:39:471281 {"enable-check-visibility-on-attention-log-start",
1282 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartName,
1283 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartDescription,
1284 flags_ui::kOsIos,
1285 FEATURE_VALUE_TYPE(kEnableCheckVisibilityOnAttentionLogStart)},
1286 {"enable-refine-data-source-reload-reporting",
1287 flag_descriptions::kEnableRefineDataSourceReloadReportingName,
1288 flag_descriptions::kEnableRefineDataSourceReloadReportingDescription,
1289 flags_ui::kOsIos,
1290 FEATURE_VALUE_TYPE(kEnableRefineDataSourceReloadReporting)},
Victor Hugo Vianna Silvabb878dea2022-10-18 10:19:041291 {"enable-passwords-account-storage",
1292 flag_descriptions::kEnablePasswordsAccountStorageName,
1293 flag_descriptions::kEnablePasswordsAccountStorageDescription,
1294 flags_ui::kOsIos,
1295 FEATURE_VALUE_TYPE(
1296 password_manager::features::kEnablePasswordsAccountStorage)},
adamta3811f9182022-10-24 17:49:331297 {"enable-default-following-feed-sort-type",
1298 flag_descriptions::kFollowingFeedDefaultSortTypeName,
1299 flag_descriptions::kFollowingFeedDefaultSortTypeDescription,
1300 flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201301 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFollowingFeedDefaultSortType,
adamta3811f9182022-10-24 17:49:331302 kFollowingFeedDefaultSortTypeVariations,
adamta8da8dce2022-11-17 18:03:201303 "EnableFollowingFeedDefaultSortType")},
Gauthier Ambardd0187592022-11-03 16:31:131304 {"use-sf-symbols-omnibox", flag_descriptions::kUseSFSymbolsInOmniboxName,
1305 flag_descriptions::kUseSFSymbolsInOmniboxDescription, flags_ui::kOsIos,
1306 FEATURE_VALUE_TYPE(kUseSFSymbolsInOmnibox)},
Louis Romero1e2a88e92023-01-18 17:08:201307 {"tab-grid-recency-sort", flag_descriptions::kTabGridRecencySortName,
Gauthier Ambard9898eb882022-11-07 18:12:011308 flag_descriptions::kTabGridRecencySortDescription, flags_ui::kOsIos,
1309 FEATURE_VALUE_TYPE(kTabGridRecencySort)},
Ewann Pelle3774cac532022-11-15 10:12:371310 {"enable-pinned-tabs", flag_descriptions::kEnablePinnedTabsName,
1311 flag_descriptions::kEnablePinnedTabsDescription, flags_ui::kOsIos,
1312 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnablePinnedTabs,
1313 kEnablePinnedTabsVariations,
1314 "EnablePinnedTabs")},
Hira Mahmoodea109752022-11-17 17:45:411315 {"credential-provider-extension-promo",
1316 flag_descriptions::kCredentialProviderExtensionPromoName,
1317 flag_descriptions::kCredentialProviderExtensionPromoDescription,
Huiting Yud7d2a5322023-02-09 21:14:221318 flags_ui::kOsIos,
1319 FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo,
1320 kCredentialProviderExtensionPromoVariations,
1321 "CredentialProviderExtensionPromo")},
Nicolas MacBethfb43e152022-11-28 19:31:521322 {"default-browser-blue-dot-promo",
1323 flag_descriptions::kDefaultBrowserBlueDotPromoName,
1324 flag_descriptions::kDefaultBrowserBlueDotPromoDescription,
1325 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserBlueDotPromo)},
Olivier ROBINa8838c12022-12-05 17:50:271326 {"ios-force-translate-enabled",
1327 flag_descriptions::kIOSForceTranslateEnabledName,
1328 flag_descriptions::kIOSForceTranslateEnabledDescription, flags_ui::kOsIos,
1329 FEATURE_VALUE_TYPE(translate::kIOSForceTranslateEnabled)},
Daniel Whiteae1cb672022-12-14 18:25:251330 {"iph-price-notifications-while-browsing",
1331 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1332 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1333 flags_ui::kOsIos,
1334 FEATURE_VALUE_TYPE(
1335 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Qihui Zhao72836c62022-12-16 04:31:411336 {"autofill-offer-to-save-card-with-same-last-four",
1337 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourName,
1338 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourDescription,
1339 flags_ui::kOsIos,
1340 FEATURE_VALUE_TYPE(
1341 autofill::features::kAutofillOfferToSaveCardWithSameLastFour)},
Christian Xu588330f32023-01-05 10:51:041342 {"omnibox-multiline-search-suggest",
1343 flag_descriptions::kOmniboxMultilineSearchSuggestName,
1344 flag_descriptions::kOmniboxMultilineSearchSuggestDescription,
1345 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxMultilineSearchSuggest)},
Vipul Vinod Koulaebbcb3a2023-01-05 19:50:501346 {"autofill-suggest-server-card-instead-of-local-card",
1347 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName,
1348 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription,
1349 flags_ui::kOsIos,
1350 FEATURE_VALUE_TYPE(
1351 autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)},
Quentin Pubert154fc6a2023-01-09 15:58:581352 {"native-find-in-page", flag_descriptions::kNativeFindInPageName,
1353 flag_descriptions::kNativeFindInPageDescription, flags_ui::kOsIos,
1354 FEATURE_WITH_PARAMS_VALUE_TYPE(kNativeFindInPage,
1355 kNativeFindInPageVariations,
1356 "NativeFindInPage")},
Elmehdi Rahmaoui5d8ba8e2023-01-11 14:53:551357 {"intents-on-email", flag_descriptions::kEmailName,
1358 flag_descriptions::kEmailDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331359 FEATURE_VALUE_TYPE(web::features::kEnableEmails)},
Ernesto Izquierdo Clua023bb52352023-01-12 19:33:341360 {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName,
1361 flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos,
1362 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)},
Christian Xu7e5234c12023-01-16 09:26:351363 {"multiline-fade-truncating-label",
1364 flag_descriptions::kMultilineFadeTruncatingLabelName,
1365 flag_descriptions::kMultilineFadeTruncatingLabelDescription,
1366 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kMultilineFadeTruncatingLabel)},
Robbie Gibson88f680a2023-01-19 16:47:301367 {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName,
1368 flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos,
1369 FEATURE_VALUE_TYPE(kPromosManagerUsesFET)},
Ewann Pelledec2d042023-01-25 15:28:391370 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1371 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1372 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Louis Romero93e9b50a2023-01-26 01:46:121373 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1374 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1375 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1376 kTabInactivityThresholdVariations,
1377 "TabInactivityThreshold")},
Sergio Collazos8d2ac27942023-01-26 19:03:411378 {"enable-feed-image-caching",
1379 flag_descriptions::kEnableFeedImageCachingName,
1380 flag_descriptions::kEnableFeedImageCachingDescription, flags_ui::kOsIos,
1381 FEATURE_VALUE_TYPE(kEnableFeedImageCaching)},
1382 {"enable-feed-synthetic-capabilities",
1383 flag_descriptions::kEnableFeedSyntheticCapabilitiesName,
1384 flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription,
1385 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)},
Victor Hugo Vianna Silvabf1a43c2023-02-06 14:06:561386 {"ios-show-password-storage-in-save-infobar",
1387 flag_descriptions::kIOSShowPasswordStorageInSaveInfobarName,
1388 flag_descriptions::kIOSShowPasswordStorageInSaveInfobarDescription,
1389 flags_ui::kOsIos,
1390 FEATURE_VALUE_TYPE(
1391 password_manager::features::kIOSShowPasswordStorageInSaveInfobar)},
Louis Romero58f355022023-02-13 19:04:311392 {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName,
1393 flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos,
1394 FEATURE_VALUE_TYPE(kShowInactiveTabsCount)},
Olivier ROBIN52eddbf32023-02-15 10:33:421395 {"ios-edit-menu-partial-translate",
1396 flag_descriptions::kIOSEditMenuPartialTranslateName,
1397 flag_descriptions::kIOSEditMenuPartialTranslateDescription,
Olivier ROBINfd3887b72023-02-23 14:45:421398 flags_ui::kOsIos,
1399 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate,
1400 kIOSEditMenuPartialTranslateVariations,
1401 "IOSEditMenuPartialTranslate")},
Olivier Robin7057bd72023-02-16 18:35:201402 {"ios-custom-browser-edit-menu",
1403 flag_descriptions::kIOSCustomBrowserEditMenuName,
1404 flag_descriptions::kIOSCustomBrowserEditMenuDescription, flags_ui::kOsIos,
1405 FEATURE_VALUE_TYPE(kIOSCustomBrowserEditMenu)},
Ali Juma57849c42023-02-21 22:53:431406 {"notification-settings-menu-item",
1407 flag_descriptions::kNotificationSettingsMenuItemName,
1408 flag_descriptions::kNotificationSettingsMenuItemDescription,
1409 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
rgodba72acf82023-02-20 10:29:351410 {"password-notes", flag_descriptions::kPasswordNotesWithBackupName,
1411 flag_descriptions::kPasswordNotesWithBackupDescription, flags_ui::kOsIos,
1412 FEATURE_VALUE_TYPE(syncer::kPasswordNotesWithBackup)},
Ed Chin97560fc42023-02-20 16:48:321413 {"feed-experiment-tagging-ios",
1414 flag_descriptions::kFeedExperimentTaggingName,
1415 flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos,
1416 FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)},
Stepan Khapugin551917f82023-02-21 18:00:061417 {"spotlight-reading-list-source",
1418 flag_descriptions::kSpotlightReadingListSourceName,
1419 flag_descriptions::kSpotlightReadingListSourceDescription,
1420 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)},
kalettuced6ba72cb2023-02-22 00:55:381421 {"consistency-new-account-interface",
1422 flag_descriptions::kConsistencyNewAccountInterfaceName,
1423 flag_descriptions::kConsistencyNewAccountInterfaceDescription,
1424 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kConsistencyNewAccountInterface)},
Olivier ROBINabcb8ce2023-02-22 13:55:201425 {"add-to-home-screen", flag_descriptions::kAddToHomeScreenName,
1426 flag_descriptions::kAddToHomeScreenDescription, flags_ui::kOsIos,
Olivier ROBIN2ca64952023-02-23 17:11:481427 FEATURE_WITH_PARAMS_VALUE_TYPE(kAddToHomeScreen,
1428 kAddToHomeScreenVariations,
1429 "IOSEditMenuPartialTranslate")},
Salma Elmahallawy72c5d34d2023-02-27 23:44:421430 {"policy-logs-page-ios", flag_descriptions::kPolicyLogsPageIOSName,
1431 flag_descriptions::kPolicyLogsPageIOSDescription, flags_ui::kOsIos,
1432 FEATURE_VALUE_TYPE(policy::features::kPolicyLogsPageIOS)},
Vincent Boisselle6e9780c2023-02-25 01:05:341433 {"indicate-account-storage-error-in-account-cell",
1434 flag_descriptions::kIndicateAccountStorageErrorInAccountCellName,
1435 flag_descriptions::kIndicateAccountStorageErrorInAccountCellDescription,
1436 flags_ui::kOsIos,
Mikel Astize597fc82023-03-22 01:39:491437 FEATURE_VALUE_TYPE(syncer::kIndicateAccountStorageErrorInAccountCell)},
Menghan YANGf3fe2de52023-02-27 16:38:501438 {"enable-bookmarks-account-storage",
1439 flag_descriptions::kEnableBookmarksAccountStorageName,
1440 flag_descriptions::kEnableBookmarksAccountStorageDescription,
1441 flags_ui::kOsIos,
1442 FEATURE_VALUE_TYPE(bookmarks::kEnableBookmarksAccountStorage)},
kalettucefb09e402023-02-27 18:35:531443 {"web-feed-feedback-reroute",
1444 flag_descriptions::kWebFeedFeedbackRerouteName,
1445 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1446 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Jason Huac58fea2023-02-28 20:25:551447 {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName,
1448 flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos,
1449 FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)},
ginnnnnnny75903622023-03-01 18:00:001450 {"bring-your-own-tabs-ios", flag_descriptions::kBringYourOwnTabsIOSName,
1451 flag_descriptions::kBringYourOwnTabsIOSDescription, flags_ui::kOsIos,
1452 FEATURE_WITH_PARAMS_VALUE_TYPE(kBringYourOwnTabsIOS,
1453 kBringYourOwnTabsIOSVariations,
1454 "BringYourOwnTabsIOS")},
Tina Wange81e24d2023-03-08 21:10:031455 {"enable-follow-management-instant-reload",
1456 flag_descriptions::kEnableFollowManagementInstantReloadName,
1457 flag_descriptions::kEnableFollowManagementInstantReloadDescription,
1458 flags_ui::kOsIos,
1459 FEATURE_VALUE_TYPE(kEnableFollowManagementInstantReload)},
Mustafa Acerc8c0b152023-03-09 02:41:441460 {"mixed-content-autoupgrade-ios",
1461 flag_descriptions::kMixedContentAutoupgradeName,
1462 flag_descriptions::kMixedContentAutoupgradeDescription, flags_ui::kOsIos,
1463 FEATURE_VALUE_TYPE(
1464 security_interstitials::features::kMixedContentAutoupgrade)},
Menghan YANGc4c94ea22023-03-09 12:48:241465 {"enable-email-in-bookmarks-reading-list-snackbar",
1466 flag_descriptions::kEnableEmailInBookmarksReadingListSnackbarName,
1467 flag_descriptions::kEnableEmailInBookmarksReadingListSnackbarDescription,
1468 flags_ui::kOsIos,
1469 FEATURE_VALUE_TYPE(kEnableEmailInBookmarksReadingListSnackbar)},
Jared Saul5363f3962023-03-10 23:03:511470 {"autofill-upstream-authenticate-preflight-call",
1471 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallName,
1472 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallDescription,
1473 flags_ui::kOsIos,
1474 FEATURE_VALUE_TYPE(
1475 autofill::features::kAutofillUpstreamAuthenticatePreflightCall)},
Marc Treibe9f79ea72023-03-14 10:25:421476 {"enable-preferences-account-storage",
1477 flag_descriptions::kEnablePreferencesAccountStorageName,
1478 flag_descriptions::kEnablePreferencesAccountStorageDescription,
1479 flags_ui::kOsIos,
1480 FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)},
Vincent Boisselle92fa8c472023-03-20 21:35:511481 {"indicate-identity-error-overflow-menu",
1482 flag_descriptions::kIndicateIdentityErrorInOverflowMenuName,
1483 flag_descriptions::kIndicateIdentityErrorInOverflowMenuDescription,
1484 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIndicateSyncErrorInOverflowMenu)},
Olivier ROBINa229d2132023-03-21 12:44:201485 {"ios-browser-edit-menu-metrics",
1486 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1487 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1488 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Gauthier Ambardb27b29c2023-03-29 07:43:441489 {"sf-symbols-follow-up", flag_descriptions::kSFSymbolsFollowUpName,
1490 flag_descriptions::kSFSymbolsFollowUpDescription, flags_ui::kOsIos,
1491 FEATURE_VALUE_TYPE(kSFSymbolsFollowUp)},
Menghan YANG5b3a78a2023-03-24 17:38:261492 {"enable-reading-list-account-storage",
1493 flag_descriptions::kEnableReadingListAccountStorageName,
1494 flag_descriptions::kEnableReadingListAccountStorageDescription,
1495 flags_ui::kOsIos,
1496 FEATURE_VALUE_TYPE(
1497 reading_list::switches::kReadingListEnableDualReadingListModel)},
1498 {"enable-reading-list-sign-in-promo",
1499 flag_descriptions::kEnableReadingListSignInPromoName,
1500 flag_descriptions::kEnableReadingListSignInPromoDescription,
1501 flags_ui::kOsIos,
1502 FEATURE_VALUE_TYPE(reading_list::switches::
1503 kReadingListEnableSyncTransportModeUponSignIn)},
Asami Doi2f2d6dc2023-03-30 12:31:191504 {"fix-pdf-snapshot", flag_descriptions::kPDFSnapshotName,
1505 flag_descriptions::kPDFSnapshotDescription, flags_ui::kOsIos,
1506 FEATURE_VALUE_TYPE(kPDFSnapshot)},
Louis Romero93e9b50a2023-01-26 01:46:121507};
sdefresne14900ee2015-11-27 14:43:211508
Rohit Raobed794c2020-04-27 15:27:451509bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1510 return false;
1511}
1512
1513flags_ui::FlagsState& GetGlobalFlagsState() {
1514 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1515 nullptr);
1516 return *flags_state;
1517}
David Jean5ca263c2021-08-18 09:19:301518// Creates the experimental test policies map, used by AsyncPolicyLoader and
1519// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341520NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211521 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1522
Guillaume Jenkins25e9bd72020-08-27 17:39:061523 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551524 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061525 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551526
Guillaume Jenkins25e9bd72020-08-27 17:39:061527 // Set some sample policy values for testing if EnableSamplePolicies is set to
1528 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401529 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551530 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011531 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1532
Guillaume Jenkinseeb7007c2020-06-25 22:55:401533 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1534
1535 // 2 = Disable all variations
1536 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1537
1538 // 2 = Do not allow any site to show popups
1539 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1540
Tina Wang5abee802020-07-29 23:09:521541 // Set default search engine.
1542 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1543 @YES,
1544 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1545 @"http://www.google.com/search?q={searchTerms}",
1546 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021547 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521548
Tina Wang89068c82020-10-29 15:51:501549 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1550
Gauthier Ambard21b23702021-04-16 16:11:271551 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1552
Tina Wang59d0b7e2020-08-11 04:41:011553 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531554
1555 // 2 = Enhanced safe browsing protection
1556 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1557
1558 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291559
1560 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551561 }];
1562 }
1563
Ewann227a3c02021-04-19 12:04:541564 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041565 NSString* sync_policy_key =
1566 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301567 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541568 }
Ewann227a3c02021-04-19 12:04:541569
Ewann570a6302021-08-17 07:22:421570 // SyncTypesListDisabled policy.
1571 NSString* Sync_types_list_disabled_key =
1572 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1573 NSMutableArray* Sync_types_list_disabled_values =
1574 [[NSMutableArray alloc] init];
1575 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
1576 [Sync_types_list_disabled_values addObject:@"bookmarks"];
1577 }
1578 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
1579 [Sync_types_list_disabled_values addObject:@"readingList"];
1580 }
1581 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
1582 [Sync_types_list_disabled_values addObject:@"preferences"];
1583 }
1584 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
1585 [Sync_types_list_disabled_values addObject:@"passwords"];
1586 }
1587 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
1588 [Sync_types_list_disabled_values addObject:@"autofill"];
1589 }
1590 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
1591 [Sync_types_list_disabled_values addObject:@"typedUrls"];
1592 }
1593 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
1594 [Sync_types_list_disabled_values addObject:@"tabs"];
1595 }
1596 if ([Sync_types_list_disabled_values count]) {
1597 [testing_policies addEntriesFromDictionary:@{
1598 Sync_types_list_disabled_key : Sync_types_list_disabled_values
1599 }];
Ewann570a6302021-08-17 07:22:421600 }
1601
Gauthier Ambard073eaa92021-11-22 15:24:131602 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:521603 NSString* incognito_policy_key =
1604 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
1605 NSInteger incognito_mode_availability =
1606 [defaults integerForKey:incognito_policy_key];
1607 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:521608 [testing_policies addEntriesFromDictionary:@{
1609 incognito_policy_key : @(incognito_mode_availability),
1610 }];
1611 }
1612
Ewann40a8f8a2021-07-29 10:01:201613 NSString* restriction_pattern =
1614 [defaults stringForKey:@"RestrictAccountsToPatterns"];
1615 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:291616 NSString* restrict_key =
1617 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:201618 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:291619 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:201620 }];
1621 }
1622
Vincent Boisselle19200bc2021-09-01 17:58:251623 // If the sign-in policy is set (not "None"), add the policy key to the list
1624 // of enabled experimental policies, and set the value.
1625 NSString* const kSigninPolicyKey = @"BrowserSignin";
1626 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
1627 if (signin_policy_mode) {
1628 // Remove the mode offset that was used to represent the unset policy.
1629 --signin_policy_mode;
1630 DCHECK(signin_policy_mode >= 0);
1631
Vincent Boisselle19200bc2021-09-01 17:58:251632 [testing_policies addEntriesFromDictionary:@{
1633 kSigninPolicyKey : @(signin_policy_mode),
1634 }];
1635 }
1636
Veronique Nguyen9b1044f2022-01-11 14:41:131637 // If the New Tab Page URL is set (not empty) add the value to the list of
1638 // test policies.
1639 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
1640 if ([ntp_location length] > 0) {
1641 NSString* ntp_location_key =
1642 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
1643 [testing_policies
1644 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:571645 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:131646 }
1647
Ali Juma9ec36d22022-03-28 14:53:121648 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
1649 NSString* allow_backups_key =
1650 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
1651 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
1652 [allowed_experimental_policies addObject:allow_backups_key];
1653 }
1654
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241655 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
1656 NSString* password_manager_key =
1657 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
1658 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
1659 [allowed_experimental_policies addObject:password_manager_key];
1660 }
Arthur Milchiorbb44f5c82023-03-14 16:14:461661 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
1662 NSString* managed_bookmarks_key =
1663 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
1664 NSString* managed_bookmarks_value =
1665 base::SysUTF8ToNSString("["
1666 // The following gets filtered out from
1667 // the JSON string when parsed.
1668 " {"
Jérôme Lebelaaf24de2023-03-15 22:00:111669 " \"toplevel_name\": \"Managed Bookmarks\""
Arthur Milchiorbb44f5c82023-03-14 16:14:461670 " },"
1671 " {"
1672 " \"name\": \"Google\","
1673 " \"url\": \"google.com\""
1674 " },"
1675 " {"
1676 " \"name\": \"Empty Folder\","
1677 " \"children\": []"
1678 " },"
1679 " {"
1680 " \"name\": \"Big Folder\","
1681 " \"children\": ["
1682 " {"
1683 " \"name\": \"Youtube\","
1684 " \"url\": \"youtube.com\""
1685 " },"
1686 " {"
1687 " \"name\": \"Chromium\","
1688 " \"url\": \"chromium.org\""
1689 " },"
1690 " {"
1691 " \"name\": \"More Stuff\","
1692 " \"children\": ["
1693 " {"
1694 " \"name\": \"Bugs\","
1695 " \"url\": \"crbug.com\""
1696 " }"
1697 " ]"
1698 " }"
1699 " ]"
1700 " }"
1701 "]");
1702 [testing_policies addEntriesFromDictionary:@{
1703 managed_bookmarks_key : managed_bookmarks_value
1704 }];
1705 [allowed_experimental_policies addObject:managed_bookmarks_key];
1706 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241707
Guillaume Jenkins25e9bd72020-08-27 17:39:061708 // If any experimental policy was allowed, set the EnableExperimentalPolicies
1709 // policy.
1710 if ([allowed_experimental_policies count] > 0) {
1711 [testing_policies setValue:allowed_experimental_policies
1712 forKey:base::SysUTF8ToNSString(
1713 policy::key::kEnableExperimentalPolicies)];
1714 }
1715
jlebel2eb40222022-05-06 11:15:421716 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
1717 switch ([defaults integerForKey:metrics_reporting_key]) {
1718 case 1:
1719 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:131720 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421721 break;
1722 case 2:
1723 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:131724 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421725 break;
1726 default:
1727 // Metrics reporting not managed.
1728 break;
1729 }
1730
David Jean6f85d44f2021-08-19 08:08:451731 // Warning: Add new flags to TestingPoliciesHash() below.
1732
David Jean5ca263c2021-08-18 09:19:301733 return testing_policies;
1734}
David Jean6f85d44f2021-08-19 08:08:451735
David Jean5ca263c2021-08-18 09:19:301736} // namespace
1737
Gauthier Ambard02dbf022022-08-23 08:28:471738// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:301739void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
1740 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1741
1742 // Set the UA flag if UseMobileSafariUA is enabled.
1743 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
1744 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
1745 // Chrome puts its product token.
1746 int32_t major = 0;
1747 int32_t minor = 0;
1748 int32_t bugfix = 0;
1749 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
1750 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
1751
1752 command_line->AppendSwitchASCII(switches::kUserAgent,
1753 web::BuildMobileUserAgent(product));
1754 }
1755
1756 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341757 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:301758
1759 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
1760 // Management to enabled and add the token to the list of policies.
1761 NSString* token_key =
1762 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
1763 NSString* token = [defaults stringForKey:token_key];
1764
1765 if ([token length] > 0) {
1766 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
1767 [testing_policies setValue:token forKey:token_key];
1768 }
1769
Guillaume Jenkins57606d72020-08-13 17:32:551770 // If some policies were set, commit them to the app's registration defaults.
1771 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:401772 NSDictionary* registration_defaults =
1773 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
1774 [defaults registerDefaults:registration_defaults];
1775 }
1776
sdefresne14900ee2015-11-27 14:43:211777 // Freeform commandline flags. These are added last, so that any flags added
1778 // earlier in this function take precedence.
1779 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
1780 base::CommandLine::StringVector flags;
1781 // Append an empty "program" argument.
1782 flags.push_back("");
1783
1784 // The number of flags corresponds to the number of text fields in
1785 // Experimental.plist.
1786 const int kNumFreeformFlags = 5;
1787 for (int i = 1; i <= kNumFreeformFlags; ++i) {
1788 NSString* key =
1789 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
1790 NSString* flag = [defaults stringForKey:key];
1791 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:331792 // iOS keyboard replaces -- with —, so undo that.
1793 flag = [flag stringByReplacingOccurrencesOfString:@"—"
1794 withString:@"--"
1795 options:0
1796 range:NSMakeRange(0, 1)];
1797 // To make things easier, allow flags with no dashes by prepending them
1798 // here. This also allows for flags that just have one dash if they
1799 // exist.
1800 if (![flag hasPrefix:@"-"]) {
1801 flag = [@"--" stringByAppendingString:flag];
1802 }
sdefresne14900ee2015-11-27 14:43:211803 flags.push_back(base::SysNSStringToUTF8(flag));
1804 }
1805 }
1806
1807 base::CommandLine temp_command_line(flags);
1808 command_line->AppendArguments(temp_command_line, false);
1809 }
msardafc76f662017-02-24 12:46:281810
justincohendacc85d2017-06-28 23:34:101811 // Populate command line flag for 3rd party keyboard omnibox workaround.
1812 NSString* enableThirdPartyKeyboardWorkaround =
1813 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
1814 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
1815 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
1816 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
1817 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
1818 }
1819
Sylvain Defresned3cd8d92022-01-18 13:35:081820 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:211821}
1822
sdefresne14900ee2015-11-27 14:43:211823void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
1824 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:181825 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:111826 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:531827 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:211828}
1829
jkrcalbf073372016-07-29 07:21:311830std::vector<std::string> RegisterAllFeatureVariationParameters(
1831 flags_ui::FlagsStorage* flags_storage,
1832 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:181833 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
1834 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:311835}
1836
sdefresne14900ee2015-11-27 14:43:211837void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
1838 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:501839 base::Value::List& supported_entries,
1840 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:181841 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:211842 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:511843 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:211844}
1845
1846void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
1847 const std::string& internal_name,
1848 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:181849 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
1850 enable);
sdefresne14900ee2015-11-27 14:43:211851}
1852
1853void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:181854 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:211855}
1856
Nicolas MacBeth972e2592023-02-23 15:22:091857bool IsRestartNeededToCommitChanges() {
1858 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
1859}
1860
sdefresne14900ee2015-11-27 14:43:211861namespace testing {
1862
Elly Fong-Jones323ab1092021-08-23 22:36:311863base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
1864 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:531865 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:211866}
1867
1868} // namespace testing