blob: a6ffd56d9e753d773685e56dde045848482aee10 [file] [log] [blame]
Avi Drissmanea1be232022-09-14 23:29:061// Copyright 2012 The Chromium Authors
sdefresne14900ee2015-11-27 14:43:212// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Implementation of about_flags for iOS that sets flags based on experimental
6// settings.
7
Gauthier Ambard999088c2022-09-13 08:36:578#import "ios/chrome/browser/flags/about_flags.h"
sdefresne14900ee2015-11-27 14:43:219
Nazerke9c259052019-06-26 15:30:1010#import <UIKit/UIKit.h>
Gauthier Ambard999088c2022-09-13 08:36:5711#import <stddef.h>
12#import <stdint.h>
sdefresne14900ee2015-11-27 14:43:2113
Avi Drissmaneac566b02023-08-18 02:56:2114#import "base/apple/foundation_util.h"
Gauthier Ambard999088c2022-09-13 08:36:5715#import "base/base_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5716#import "base/check_op.h"
Peter Boström3f798572022-07-26 23:44:3617#import "base/debug/debugging_buildflags.h"
Avi Drissmancac43f22023-01-12 00:58:4118#import "base/functional/bind.h"
19#import "base/functional/callback_helpers.h"
Gauthier Ambard999088c2022-09-13 08:36:5720#import "base/no_destructor.h"
21#import "base/strings/stringprintf.h"
22#import "base/strings/sys_string_conversions.h"
23#import "base/system/sys_info.h"
24#import "components/autofill/core/common/autofill_features.h"
25#import "components/autofill/core/common/autofill_payments_features.h"
26#import "components/autofill/core/common/autofill_switches.h"
Vidhan Jain1199e202024-03-15 14:42:5927#import "components/autofill/ios/common/features.h"
Menghan YANGf3fe2de52023-02-27 16:38:5028#import "components/bookmarks/common/bookmark_features.h"
Marc Treib1f6c5db992024-01-04 20:25:1429#import "components/browser_sync/browser_sync_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5730#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"
Gauthier Ambard999088c2022-09-13 08:36:5736#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"
Benjamin Williams11f39912023-04-13 19:00:2543#import "components/history/core/browser/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5744#import "components/invalidation/impl/invalidation_switches.h"
Benjamin Williamsaa8da8142022-11-14 19:51:0345#import "components/ntp_tiles/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5746#import "components/ntp_tiles/switches.h"
Ameur Hosni3d764c92024-05-28 14:11:1247#import "components/omnibox/browser/omnibox_feature_configs.h"
Gauthier Ambard999088c2022-09-13 08:36:5748#import "components/omnibox/browser/omnibox_field_trial.h"
49#import "components/omnibox/common/omnibox_features.h"
50#import "components/optimization_guide/core/optimization_guide_features.h"
Raj Ta921ffc2022-08-25 19:00:2051#import "components/optimization_guide/core/optimization_guide_switches.h"
Raj Tc66dd122024-04-01 18:48:3952#import "components/page_content_annotations/core/page_content_annotations_features.h"
Olivier ROBINcb76f4fe2024-06-05 16:11:4253#import "components/page_image_service/features.h"
Vasilii Sukhanov32b14452023-10-12 17:31:2754#import "components/password_manager/core/browser/features/password_features.h"
Gauthier Ambard999088c2022-09-13 08:36:5755#import "components/password_manager/core/common/password_manager_features.h"
56#import "components/payments/core/features.h"
57#import "components/policy/core/common/features.h"
Guillaume Jenkinseeb7007c2020-06-25 22:55:4058#import "components/policy/core/common/policy_loader_ios_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5759#import "components/policy/policy_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5760#import "components/safe_browsing/core/common/features.h"
Chris Lu6fd4eaf2023-08-08 18:29:3061#import "components/segmentation_platform/public/constants.h"
Chris Lub0bad572023-08-07 18:13:2962#import "components/segmentation_platform/public/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2563#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5764#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
65#import "components/signin/core/browser/account_reconcilor.h"
66#import "components/signin/ios/browser/features.h"
67#import "components/signin/public/base/signin_switches.h"
68#import "components/strings/grit/components_strings.h"
Nohemi Fernandez64acf982023-08-04 09:27:1569#import "components/supervised_user/core/common/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5770#import "components/sync/base/command_line_switches.h"
71#import "components/sync/base/features.h"
72#import "components/sync/base/pref_names.h"
73#import "components/translate/core/browser/translate_prefs.h"
74#import "components/translate/core/common/translate_util.h"
Ed Chin91e44992022-07-27 13:42:3475#import "ios/chrome/app/background_mode_buildflags.h"
Gauthier Ambard5b7f3c22023-09-13 12:03:3076#import "ios/chrome/browser/browsing_data/model/browsing_data_features.h"
Aman Vermab6f55572023-09-28 11:40:5377#import "ios/chrome/browser/crash_report/model/features.h"
Sebsgfcd5b0b2024-04-09 08:18:3278#import "ios/chrome/browser/credential_provider/model/features.h"
Aman Vermaf8a157f62023-10-03 15:32:1179#import "ios/chrome/browser/default_browser/model/utils.h"
Nan Lina498c412024-06-13 15:33:3280#import "ios/chrome/browser/download/ui_bundled/features.h"
mmrashadbc0ca942023-10-06 13:12:1481#import "ios/chrome/browser/find_in_page/model/util.h"
Gauthier Ambard92605132022-08-26 13:25:1782#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5783#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Vincent Boisselle8b321bb2023-11-28 13:58:3184#import "ios/chrome/browser/follow/model/follow_features.h"
Ali Jumad29dc1872023-10-19 13:33:5885#import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h"
mmrashadd0c7f952023-12-14 13:36:3886#import "ios/chrome/browser/policy/model/policy_util.h"
Cheick Cisse85457f22024-05-23 22:37:5987#import "ios/chrome/browser/price_insights/model/price_insights_feature.h"
Stepan Khapugin5694d702024-01-31 13:23:0888#import "ios/chrome/browser/promos_manager/model/features.h"
mmrashadf158cad942023-10-03 09:15:4889#import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h"
Sylvain Defresneb81065002024-01-23 10:51:2290#import "ios/chrome/browser/sessions/features.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:4691#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:3592#import "ios/chrome/browser/shared/public/features/system_flags.h"
Robbie Gibson596fe292023-10-27 01:00:3693#import "ios/chrome/browser/tabs/model/inactive_tabs/features.h"
94#import "ios/chrome/browser/tabs/model/tab_pickup/features.h"
Ewann Pelled2eaeba2023-09-19 09:15:2895#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Charles Yang0bba5262024-05-14 17:46:4796#import "ios/chrome/browser/ui/lens/features.h"
adamta273568472020-12-04 23:53:5797#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
Christian Xub8c06cd2022-04-29 20:55:0198#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Filipa Senra0bd07982023-12-19 10:56:2599#import "ios/chrome/browser/ui/page_info/features.h"
Robbie Gibson686c56732021-10-04 17:11:45100#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Filipa Senrabe00cbe2024-04-19 14:21:33101#import "ios/chrome/browser/ui/settings/clear_browsing_data/features.h"
Rubin Deliallisi4170b1c2024-02-28 16:15:42102#import "ios/chrome/browser/ui/settings/google_services/features.h"
Ernesto Izquierdo Clua5e589f52023-07-06 20:52:15103#import "ios/chrome/browser/ui/settings/password/password_manager_ui_features.h"
Rubin Deliallisi072bc842023-10-19 12:00:41104#import "ios/chrome/browser/ui/settings/privacy/privacy_guide/features.h"
gogerald0ff29e52021-02-03 18:56:19105#import "ios/chrome/browser/ui/start_surface/start_surface_features.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58106#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Weizhong Xia8b908bda2023-12-05 16:00:22107#import "ios/chrome/browser/web/model/features.h"
Gauthier Ambard999088c2022-09-13 08:36:57108#import "ios/chrome/grit/ios_strings.h"
109#import "ios/components/security_interstitials/https_only_mode/feature.h"
110#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
111#import "ios/web/common/features.h"
112#import "ios/web/common/user_agent.h"
113#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21114
Sylvain Defresne9c107082020-10-27 16:39:13115#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
mmrashadf158cad942023-10-03 09:15:48116#import "ios/chrome/browser/screen_time/model/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13117#endif
118
sdefresne14900ee2015-11-27 14:43:21119#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57120#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22121#endif
stkhapuginc1be1792016-12-13 14:30:53122
elawrence816f6790e2017-06-16 18:19:28123using flags_ui::FeatureEntry;
124
sdefresne14900ee2015-11-27 14:43:21125namespace {
Emily Starkbafa9062017-12-27 15:22:46126
Nohemi Fernandezc00842a2021-07-26 11:47:34127const FeatureEntry::Choice
128 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
129 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
130 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
131 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
132 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
133};
134
Filipa Senraa2074a12024-06-10 14:49:20135const FeatureEntry::Choice kRevampPageInfoiOSChoices[] = {
136 {"Default", "", ""},
137 {"Enabled", switches::kEnableFeatures,
138 "RevampPageInfoIos, PageInfoAboutThisSite"},
139 {"Disabled", switches::kDisableFeatures,
140 "RevampPageInfoIos, PageInfoAboutThisSite"},
141};
142
Stepan Khapugincc4e9842019-01-23 13:38:13143const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
144 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
145const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
146 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
147const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
148 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
149const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
150 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
151const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
152 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
153const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
154 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
155const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
156 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
157
158const FeatureEntry::FeatureVariation
159 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
160 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53161 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13162 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53163 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13164 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53165 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13166 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53167 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13168 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53169 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13170 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53171 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13172 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53173 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13174
Stepan Khapuginbac467e2022-05-06 21:11:54175const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
176 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
177const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
178 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
179const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
180 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
181
182const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
183 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
184 nullptr},
185 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
186 nullptr},
187 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
188 nullptr},
189};
190
Christian Xucf26d562022-07-06 09:28:36191const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
192 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
193const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
194 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
195const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
196 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
197
198const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
199 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
200 nullptr},
201 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
202 nullptr},
203 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
204 nullptr},
205};
206
Cheick Cissedc49dbe2023-08-09 13:33:52207const FeatureEntry::FeatureParam
Jennifer Serranof384360c2023-10-27 00:25:51208 kOmniboxCompanyEntityAdjustmentLeastAggressive[] = {
209 {"OmniboxCompanyEntityAdjustmentGroup", "least-aggressive"}};
210const FeatureEntry::FeatureParam kOmniboxCompanyEntityAdjustmentModerate[] = {
211 {"OmniboxCompanyEntityAdjustmentGroup", "moderate"}};
212const FeatureEntry::FeatureParam
213 kOmniboxCompanyEntityAdjustmentMostAggressive[] = {
214 {"OmniboxCompanyEntityAdjustmentGroup", "most-aggressive"}};
215
216const FeatureEntry::FeatureVariation
217 kOmniboxCompanyEntityAdjustmentVariations[] = {
218 {"Least Aggressive", kOmniboxCompanyEntityAdjustmentLeastAggressive,
219 std::size(kOmniboxCompanyEntityAdjustmentLeastAggressive), nullptr},
220 {"Moderate", kOmniboxCompanyEntityAdjustmentModerate,
221 std::size(kOmniboxCompanyEntityAdjustmentModerate), nullptr},
222 {"Most Aggressive", kOmniboxCompanyEntityAdjustmentMostAggressive,
223 std::size(kOmniboxCompanyEntityAdjustmentMostAggressive), nullptr},
224};
225
adamta37c6b832023-03-10 20:04:09226// Uses int values from SigninPromoViewStyle enum.
227const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = {
228 {kDiscoverFeedTopSyncPromoStyle, "0"}};
adamta37c6b832023-03-10 20:04:09229const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] =
Guillem Perezc2d13942023-06-22 20:14:59230 {{kDiscoverFeedTopSyncPromoStyle, "1"}};
adamta37c6b832023-03-10 20:04:09231const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = {
Guillem Perezc2d13942023-06-22 20:14:59232 {kDiscoverFeedTopSyncPromoStyle, "2"}};
adamtadb0bfc62022-08-01 17:37:47233
Mohammad Refaatab6bee62022-05-16 16:31:15234const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = {
adamta37c6b832023-03-10 20:04:09235 {"Standard", kDiscoverFeedTopSyncPromoStandard,
236 std::size(kDiscoverFeedTopSyncPromoStandard), nullptr},
adamta37c6b832023-03-10 20:04:09237 {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal,
238 std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr},
239 {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical,
240 std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}};
Mohammad Refaatab6bee62022-05-16 16:31:15241
Guillem Perez40086ef2023-11-20 20:03:52242const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = {
243 {kContentPushNotificationsExperimentType, "1"}};
244const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] =
245 {{kContentPushNotificationsExperimentType, "2"}};
Guillem Perez222b5b22024-01-20 02:16:27246const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] =
247 {{kContentPushNotificationsExperimentType, "3"}};
Tina Wangb7f5b3f2024-05-07 06:24:26248const FeatureEntry::FeatureParam
249 kContentPushNotificationsPromoRegistrationOnly[] = {
250 {kContentPushNotificationsExperimentType, "5"}};
251const FeatureEntry::FeatureParam
252 kContentPushNotificationsProvisionalRegistrationOnly[] = {
253 {kContentPushNotificationsExperimentType, "6"}};
254const FeatureEntry::FeatureParam
255 kContentPushNotificationsSetUpListRegistrationOnly[] = {
256 {kContentPushNotificationsExperimentType, "7"}};
Guillem Perez40086ef2023-11-20 20:03:52257
258const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = {
259 {"Promo", kContentPushNotificationsEnabledPromo,
260 std::size(kContentPushNotificationsEnabledPromo), nullptr},
261 {"Set up list", kContentPushNotificationsEnabledSetupLists,
Guillem Perez222b5b22024-01-20 02:16:27262 std::size(kContentPushNotificationsEnabledSetupLists), nullptr},
263 {"Provisional Notification", kContentPushNotificationsEnabledProvisional,
Guillem Perez749b3fc2024-02-13 19:29:49264 std::size(kContentPushNotificationsEnabledProvisional), nullptr},
Tina Wangb7f5b3f2024-05-07 06:24:26265 {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly,
266 std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr},
267 {"Provisional Notification Registeration Only",
268 kContentPushNotificationsProvisionalRegistrationOnly,
269 std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr},
270 {"Set up list Registeration Only",
271 kContentPushNotificationsSetUpListRegistrationOnly,
272 std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}};
Guillem Perez40086ef2023-11-20 20:03:52273
adamta4a6f2fd22023-02-13 17:37:14274const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = {
275 {kDisableStickyHeaderForFollowingFeed, "true"}};
276const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = {
adamtabc048042023-03-15 22:42:18277 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14278const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = {
279 {kDisableStickyHeaderForFollowingFeed, "true"},
adamtabc048042023-03-15 22:42:18280 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14281
282const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = {
283 {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader,
284 std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr},
285 {"Reduced header height", kFeedHeaderSettingReducedHeight,
286 std::size(kFeedHeaderSettingReducedHeight), nullptr},
287 {"All improvements", kFeedHeaderSettingAllImprovements,
288 std::size(kFeedHeaderSettingAllImprovements), nullptr}};
289
Chris Ludca9ce32023-09-20 16:53:50290const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35291 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50292const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35293 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08294
gogerald0e39e3aa2021-02-10 18:41:23295const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50296 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
297 std::size(kStartSurfaceTenSeconds), nullptr},
298 {"1h:Show Home Surface", kStartSurfaceOneHour,
299 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08300};
gogerald0e39e3aa2021-02-10 18:41:23301
Chris Luce928eb2023-05-12 21:36:26302const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
303 {kMagicStackMostVisitedModuleParam, "true"},
304 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22305const FeatureEntry::FeatureParam
306 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
307 {kMagicStackMostVisitedModuleParam, "true"},
308 {kReducedSpaceParam, "-80"},
309 {kHideIrrelevantModulesParam, "true"}};
Chris Lu8cf8ef82024-03-18 18:30:54310const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = {
Chris Luce928eb2023-05-12 21:36:26311 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu8cf8ef82024-03-18 18:30:54312 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26313
314const FeatureEntry::FeatureVariation kMagicStackVariations[]{
315 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
316 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22317 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
318 kMagicStackMostVisitedModuleHideIrrelevantModules,
319 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu8cf8ef82024-03-18 18:30:54320 {"Hide irrelevant modules", kMagicStackHidIrrelevantModules,
321 std::size(kMagicStackHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26322};
323
Chris Lu6fd4eaf2023-08-08 18:29:30324const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
325 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
326
327const FeatureEntry::FeatureVariation
328 kSegmentationPlatformIosModuleRankerVariations[]{
329 {"Enabled With Default Model Parameter (Must Set this!)",
330 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
331 };
332
Scott Yoderaf2bdf32024-01-30 20:26:15333const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = {
334 {kIOSTipsNotificationsTriggerTimeParam, "5s"},
335};
336const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = {
337 {kIOSTipsNotificationsTriggerTimeParam, "10s"},
338};
Scott Yoderd2dbc87f2024-03-07 18:23:37339const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = {
340 {kIOSTipsNotificationsTriggerTimeParam, "30s"},
341};
Scott Yoderaf2bdf32024-01-30 20:26:15342const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = {
343 {"(5s trigger)", kIOSTipsNotifications5SecondTrigger,
344 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
345 {"(10s trigger)", kIOSTipsNotifications10SecondTrigger,
346 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderd2dbc87f2024-03-07 18:23:37347 {"(30s trigger)", kIOSTipsNotifications30SecondTrigger,
348 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15349};
350
Ed Chin91e44992022-07-27 13:42:34351#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26352// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01353const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04354 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
355 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01356 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04357 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01358const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04359 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
360 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01361 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04362 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01363const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04364 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
365 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01366 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04367 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01368const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04369 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
370 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01371 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04372 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01373const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04374 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
375 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01376 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
377 {kBackgroundRefreshIntervalInSeconds, "0"}};
378const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04379 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
380 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01381 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
382 {kBackgroundRefreshIntervalInSeconds, "0"}};
383const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
384 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
385 {kEnableRecurringBackgroundRefreshSchedule, "false"},
386 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
387 {kBackgroundRefreshIntervalInSeconds, "0"}};
388const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
389 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
390 {kEnableRecurringBackgroundRefreshSchedule, "true"},
391 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
392 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04393
Ed Chin178ec2a2023-02-10 22:21:26394// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04395const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01396 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
397 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
398 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
399 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
400 {"1hr Interval 1hr Max Age Recurring",
401 kOneHourIntervalOneHourMaxAgeRecurring,
402 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
403 {"4hr Interval 6hr Max Age Recurring",
404 kFourHourIntervalSixHourMaxAgeRecurring,
405 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
406 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
407 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
408 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
409 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
410 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
411 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
412 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
413 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04414};
Ed Chin91e44992022-07-27 13:42:34415#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04416
David Jeanf361ae9d2024-04-09 08:19:47417const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = {
418 {kTextClassifierAddressParameterName, "true"}};
419const FeatureEntry::FeatureVariation
420 kEnableExpKitTextClassifierAddressVariations[] = {
421 {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap,
422 std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}};
423
424const FeatureEntry::FeatureParam
425 kEnableExpKitTextClassifierPhoneNumberOneTap[] = {
426 {kTextClassifierPhoneNumberParameterName, "true"}};
427const FeatureEntry::FeatureVariation
428 kEnableExpKitTextClassifierPhoneNumberVariations[] = {
429 {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap,
430 std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}};
431
432const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = {
433 {kTextClassifierEmailParameterName, "true"}};
434const FeatureEntry::FeatureVariation
435 kEnableExpKitTextClassifierEmailVariations[] = {
436 {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap,
437 std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15438
Louis Romero93e9b50a2023-01-26 01:46:12439const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
440 {kTabInactivityThresholdParameterName,
441 kTabInactivityThresholdOneWeekParam}};
442const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
443 {kTabInactivityThresholdParameterName,
444 kTabInactivityThresholdTwoWeeksParam}};
445const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
446 {kTabInactivityThresholdParameterName,
447 kTabInactivityThresholdThreeWeeksParam}};
Louis Romero56abd902023-03-15 16:21:58448const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = {
449 {kTabInactivityThresholdParameterName,
450 kTabInactivityThresholdOneMinuteDemoParam}};
Louis Romero93e9b50a2023-01-26 01:46:12451
452const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
453 {"One week", kTabInactivityThresholdOneWeek,
454 std::size(kTabInactivityThresholdOneWeek), nullptr},
455 {"Two weeks", kTabInactivityThresholdTwoWeeks,
456 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
457 {"Three weeks", kTabInactivityThresholdThreeWeeks,
458 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
Louis Romero56abd902023-03-15 16:21:58459 {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo,
460 std::size(kTabInactivityThresholdOneMinuteDemo), nullptr},
Louis Romero93e9b50a2023-01-26 01:46:12461};
462
Ewann Pelle6eecb8f2023-06-23 14:31:37463const FeatureEntry::FeatureParam kTabPickupThresholdTenMinutes[] = {
464 {kTabPickupThresholdParameterName, kTabPickupThresholdTenMinutesParam}};
465const FeatureEntry::FeatureParam kTabPickupThresholdOneHour[] = {
466 {kTabPickupThresholdParameterName, kTabPickupThresholdOneHourParam}};
467const FeatureEntry::FeatureParam kTabPickupThresholdTwoHours[] = {
468 {kTabPickupThresholdParameterName, kTabPickupThresholdTwoHoursParam}};
Ewann Pelle6bd06402023-11-10 11:17:55469const FeatureEntry::FeatureParam kTabPickupNoFavicon[] = {
470 {kTabPickupThresholdParameterName, kTabPickupNoFaviconParam}};
Ewann Pelle6eecb8f2023-06-23 14:31:37471
472const FeatureEntry::FeatureVariation kTabPickupThresholdVariations[] = {
473 {"Ten Minutes", kTabPickupThresholdTenMinutes,
Ewann Pellea2bcb3a2023-08-28 13:53:00474 std::size(kTabPickupThresholdTenMinutes), nullptr},
Ewann Pelle6eecb8f2023-06-23 14:31:37475 {"One Hour", kTabPickupThresholdOneHour,
Ewann Pellea2bcb3a2023-08-28 13:53:00476 std::size(kTabPickupThresholdOneHour), nullptr},
Ewann Pelle6eecb8f2023-06-23 14:31:37477 {"Two Hours", kTabPickupThresholdTwoHours,
Ewann Pellea2bcb3a2023-08-28 13:53:00478 std::size(kTabPickupThresholdTwoHours), nullptr},
Ewann Pelle6bd06402023-11-10 11:17:55479 {"No favicon", kTabPickupNoFavicon, std::size(kTabPickupNoFavicon),
480 nullptr},
Ewann Pellea2bcb3a2023-08-28 13:53:00481};
482
483const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = {
484 {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}};
485const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = {
486 {kTabResumptionParameterName, kTabResumptionAllTabsParam}};
Ewann Pelleb08ee062023-10-16 10:04:48487const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = {
488 {kTabResumptionParameterName, kTabResumptionAllTabsOneDayThresholdParam}};
Ewann Pellea2bcb3a2023-08-28 13:53:00489
490const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
491 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
492 std::size(kTabResumptionMostRecentTabOnly), nullptr},
Ewann Pelleb08ee062023-10-16 10:04:48493 {"Most recent tab and last synced tab (12 hours threshold)",
494 kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr},
495 {"Most recent tab and last synced tab (24 hours threshold)",
496 kTabResumptionAllTabsOneDayThreshold,
Olivier Robin08bc56d02024-06-05 14:05:18497 std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}};
Ewann Pelle6eecb8f2023-06-23 14:31:37498
Olivier ROBINfd3887b72023-02-23 14:45:42499const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
500 {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
Olivier Robinfa8de5502023-06-21 19:53:44501const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateWithIncognito[] = {
502 {kIOSEditMenuPartialTranslateNoIncognitoParam, "false"}};
Olivier ROBINfd3887b72023-02-23 14:45:42503const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
504 {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
Olivier Robinfa8de5502023-06-21 19:53:44505 std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr},
506 {"Enable on incognito", kIOSEditMenuPartialTranslateWithIncognito,
507 std::size(kIOSEditMenuPartialTranslateWithIncognito), nullptr}};
Olivier ROBINfd3887b72023-02-23 14:45:42508
Olivier ROBIN2613bcd02023-04-20 10:00:47509const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearchWith[] = {
510 {kIOSEditMenuSearchWithTitleParamTitle,
511 kIOSEditMenuSearchWithTitleSearchWithParam}};
512const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearch[] = {
513 {kIOSEditMenuSearchWithTitleParamTitle,
514 kIOSEditMenuSearchWithTitleSearchParam}};
515const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleWebSearch[] = {
516 {kIOSEditMenuSearchWithTitleParamTitle,
517 kIOSEditMenuSearchWithTitleWebSearchParam}};
518const FeatureEntry::FeatureVariation kIOSEditMenuSearchWithVariations[] = {
519 {"Search with DSE", kIOSEditMenuSearchWithTitleSearchWith,
520 std::size(kIOSEditMenuSearchWithTitleSearchWith), nullptr},
521 {"Search", kIOSEditMenuSearchWithTitleSearch,
522 std::size(kIOSEditMenuSearchWithTitleSearch), nullptr},
523 {"Web Search", kIOSEditMenuSearchWithTitleWebSearch,
524 std::size(kIOSEditMenuSearchWithTitleWebSearch), nullptr},
525};
526
Christian Xu07d600192023-07-24 12:29:52527const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
528 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
529const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
530 {kBottomOmniboxDefaultSettingParam,
531 kBottomOmniboxDefaultSettingParamBottom}};
532const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
533 {{kBottomOmniboxDefaultSettingParam,
534 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
535const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
536 {
537 {"Top", kBottomOmniboxDefaultSettingTop,
538 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
539 {"Bottom", kBottomOmniboxDefaultSettingBottom,
540 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
541 {"Bottom for Safari Switcher",
542 kBottomOmniboxDefaultSettingSafariSwitcher,
543 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
544};
545
Christian Xue72882d2023-11-20 17:10:48546const FeatureEntry::FeatureParam kBottomOmniboxPromoForced[] = {
547 {kBottomOmniboxPromoParam, kBottomOmniboxPromoParamForced}};
548const FeatureEntry::FeatureVariation kBottomOmniboxPromoVariations[] = {
549 {"Forced", kBottomOmniboxPromoForced, std::size(kBottomOmniboxPromoForced),
550 nullptr},
551};
552
Cheick Cisse85457f22024-05-23 22:37:59553constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
554 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
555constexpr flags_ui::FeatureEntry::FeatureParam
556 kPriceInsightsGoodDealNowParam[] = {
557 {kLowPriceParam, kLowPriceParamGoodDealNow}};
558constexpr flags_ui::FeatureEntry::FeatureParam
559 kPriceInsightsSeePriceHistoryParam[] = {
560 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
561constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
562 {{"Price is low", kPriceInsightsPriceIsLowParam,
563 std::size(kPriceInsightsPriceIsLowParam), nullptr},
564 {"Good deal now", kPriceInsightsGoodDealNowParam,
565 std::size(kPriceInsightsGoodDealNowParam), nullptr},
566 {"See price history", kPriceInsightsSeePriceHistoryParam,
567 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
568
Christian Xua3667352023-11-21 16:54:09569const FeatureEntry::FeatureParam kBottomOmniboxPromoDefaultPositionTop[] = {
570 {kBottomOmniboxPromoDefaultPositionParam,
571 kBottomOmniboxPromoDefaultPositionParamTop}};
572const FeatureEntry::FeatureParam kBottomOmniboxPromoDefaultPositionBottom[] = {
573 {kBottomOmniboxPromoDefaultPositionParam,
574 kBottomOmniboxPromoDefaultPositionParamBottom}};
575const FeatureEntry::FeatureVariation
576 kBottomOmniboxPromoDefaultPositionVariations[] = {
577 {"Top", kBottomOmniboxPromoDefaultPositionTop,
578 std::size(kBottomOmniboxPromoDefaultPositionTop), nullptr},
579 {"Bottom", kBottomOmniboxPromoDefaultPositionBottom,
580 std::size(kBottomOmniboxPromoDefaultPositionBottom), nullptr},
581};
582
Christian Xu10b84d72024-04-09 17:12:33583const FeatureEntry::FeatureParam kRichAutocompletionImplementationLabel[] = {
584 {kRichAutocompletionParam, kRichAutocompletionParamLabel}};
Christian Xua17f9b72024-04-22 10:22:31585const FeatureEntry::FeatureParam
Christian Xu2cf421f2024-05-17 19:23:52586 kRichAutocompletionImplementationTextField3Chars[] = {
587 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52588 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
589 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52590const FeatureEntry::FeatureParam
591 kRichAutocompletionImplementationTextField4Chars[] = {
592 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52593 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
594 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu2cf421f2024-05-17 19:23:52595const FeatureEntry::FeatureParam
596 kRichAutocompletionImplementationNoAdditionalText3Chars[] = {
597 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52598 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
599 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52600const FeatureEntry::FeatureParam
601 kRichAutocompletionImplementationNoAdditionalText4Chars[] = {
602 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52603 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
604 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu10b84d72024-04-09 17:12:33605const FeatureEntry::FeatureVariation
606 kRichAutocompletionImplementationVariations[] = {
607 {"In Label", kRichAutocompletionImplementationLabel,
608 std::size(kRichAutocompletionImplementationLabel), nullptr},
Christian Xu2cf421f2024-05-17 19:23:52609 {"In TextField, 3 Min Chars",
610 kRichAutocompletionImplementationTextField3Chars,
611 std::size(kRichAutocompletionImplementationTextField3Chars), nullptr},
612 {"In TextField, 4 Min Chars",
613 kRichAutocompletionImplementationTextField4Chars,
614 std::size(kRichAutocompletionImplementationTextField4Chars), nullptr},
615 {"No Additional Text, 3 Min Chars",
616 kRichAutocompletionImplementationNoAdditionalText3Chars,
617 std::size(kRichAutocompletionImplementationNoAdditionalText3Chars),
618 nullptr},
619 {"No Additional Text, 4 Min Chars",
620 kRichAutocompletionImplementationNoAdditionalText4Chars,
621 std::size(kRichAutocompletionImplementationNoAdditionalText4Chars),
622 nullptr},
Christian Xu10b84d72024-04-09 17:12:33623};
624
Olivier ROBIN82b67002023-07-31 14:34:46625const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
626 {web::features::kOneTapForMapsConsentModeParamTitle,
627 web::features::kOneTapForMapsConsentModeDefaultParam}};
628const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
629 {web::features::kOneTapForMapsConsentModeParamTitle,
630 web::features::kOneTapForMapsConsentModeForcedParam}};
631const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
632 {web::features::kOneTapForMapsConsentModeParamTitle,
633 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31634const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
635 {web::features::kOneTapForMapsConsentModeParamTitle,
636 web::features::kOneTapForMapsConsentModeIPHParam}};
637const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
638 {web::features::kOneTapForMapsConsentModeParamTitle,
639 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46640const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
641 {"Consent Default", kOneTapForMapsConsentModeDefault,
642 std::size(kOneTapForMapsConsentModeDefault), nullptr},
643 {"Consent Forced", kOneTapForMapsConsentModeForced,
644 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31645 {"Consent IPH", kOneTapForMapsConsentModeIPH,
646 std::size(kOneTapForMapsConsentModeIPH), nullptr},
647 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
648 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46649 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
650 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
651};
652
Matt Jones79534392023-10-27 14:35:02653const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataDelivered[] =
654 {{commerce::kParcelTrackingTestDataParam,
655 commerce::kParcelTrackingTestDataParamDelivered}};
656const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataInProgress[] =
657 {{commerce::kParcelTrackingTestDataParam,
658 commerce::kParcelTrackingTestDataParamInProgress}};
659const flags_ui::FeatureEntry::FeatureParam
660 kParcelTrackingTestDataOutForDelivery[] = {
661 {commerce::kParcelTrackingTestDataParam,
662 commerce::kParcelTrackingTestDataParamOutForDelivery}};
663const flags_ui::FeatureEntry::FeatureVariation
664 kParcelTrackingTestDataVariations[] = {
665 {"Delivered", kParcelTrackingTestDataDelivered,
666 std::size(kParcelTrackingTestDataDelivered), nullptr},
667 {"In progress", kParcelTrackingTestDataInProgress,
668 std::size(kParcelTrackingTestDataInProgress), nullptr},
669 {"Out for delivery", kParcelTrackingTestDataOutForDelivery,
670 std::size(kParcelTrackingTestDataOutForDelivery), nullptr},
671};
672
Benjamin Williams1dc8f2342024-01-04 21:25:55673const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
674 {kIOSDockingPromoExperimentType, "0"}};
675const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
676 {kIOSDockingPromoExperimentType, "1"}};
677const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
678 {kIOSDockingPromoExperimentType, "2"}};
679
680const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
681 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
682 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
683 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
684 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
685 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
686 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
687
Ewann Pellec8634ab2024-02-23 16:50:35688const FeatureEntry::FeatureParam kModernTabStripNTBDynamic[] = {
689 {kModernTabStripParameterName, kModernTabStripNTBDynamicParam}};
690const FeatureEntry::FeatureParam kModernTabStripNTBStatic[] = {
691 {kModernTabStripParameterName, kModernTabStripNTBStaticParam}};
692
693const FeatureEntry::FeatureVariation kModernTabStripVariations[] = {
694 {"New tab button dynamic", kModernTabStripNTBDynamic,
695 std::size(kModernTabStripNTBDynamic), nullptr},
696 {"New tab button static", kModernTabStripNTBStatic,
697 std::size(kModernTabStripNTBStatic), nullptr},
698};
699
Olivier ROBINcb76f4fe2024-06-05 16:11:42700const FeatureEntry::FeatureVariation
701 kImageServiceOptimizationGuideSalientImagesVariations[] = {
702 {"High Performance Canonicalization", nullptr, 0, "3362133"},
703};
704
Olivier Robinf8374f12024-06-05 19:00:04705const FeatureEntry::FeatureParam kTabResumption15DisableSalientImages[] = {
706 {kTR15SalientImageParam, "false"}};
707const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] =
708 {{kTR15SeeMoreButtonParam, "false"}};
709const FeatureEntry::FeatureParam kTabResumption15UIChangeOnlyImages[] = {
710 {kTR15SeeMoreButtonParam, "false"},
711 {kTR15SalientImageParam, "false"}};
712
713const FeatureEntry::FeatureVariation kTabResumption15Variations[] = {
714 {"No Salient Image", kTabResumption15DisableSalientImages,
715 std::size(kTabResumption15DisableSalientImages), nullptr},
716 {"No See More Button", kTabResumption15DisableSeeMoreButtonImages,
717 std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr},
718 {"UI changes only", kTabResumption15UIChangeOnlyImages,
719 std::size(kTabResumption15UIChangeOnlyImages), nullptr},
720};
Charles Yangf8e7adf2024-06-11 00:17:00721// Uses int values from Lens filters ablation mode enum.
722const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
723 {kLensFiltersAblationMode, "0"}};
724const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
725 {kLensFiltersAblationMode, "1"}};
726const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
727 {kLensFiltersAblationMode, "2"}};
728const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
729 {kLensFiltersAblationMode, "3"}};
730
731const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
732 {"(Disabled)", kLensFiltersAblationModeDisabled,
733 std::size(kLensFiltersAblationModeDisabled), nullptr},
734 {"(Post Capture)", kLensFiltersAblationModePostCapture,
735 std::size(kLensFiltersAblationModePostCapture), nullptr},
736 {"(LVF)", kLensFiltersAblationModeLVF,
737 std::size(kLensFiltersAblationModeLVF), nullptr},
738 {"(Always)", kLensFiltersAblationModeAlways,
739 std::size(kLensFiltersAblationModeAlways), nullptr}};
740
741// Uses int values from Lens translate toggle mode enum.
742const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
743 {kLensTranslateToggleMode, "0"}};
744const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
745 {kLensTranslateToggleMode, "1"}};
746const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
747 {kLensTranslateToggleMode, "2"}};
748const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
749 {kLensTranslateToggleMode, "3"}};
750
751const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
752 {"(Disabled)", kLensTranslateToggleModeDisabled,
753 std::size(kLensTranslateToggleModeDisabled), nullptr},
754 {"(Post Capture)", kLensTranslateToggleModePostCapture,
755 std::size(kLensTranslateToggleModePostCapture), nullptr},
756 {"(LVF)", kLensTranslateToggleModeLVF,
757 std::size(kLensTranslateToggleModeLVF), nullptr},
758 {"(Always)", kLensTranslateToggleModeAlways,
759 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04760
Khalid Peer7cf75a22024-06-13 17:25:49761const FeatureEntry::FeatureParam
762 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
763 {"MlUrlPiecewiseMappedSearchBlending", "true"},
764 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
765 "0,550;0.018,1300;0.14,1398;1,1422"},
766 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
767 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
768const FeatureEntry::FeatureParam
769 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy50[] = {
770 {"MlUrlPiecewiseMappedSearchBlending", "true"},
771 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
772 "0,550;0.018,1250;0.14,1348;1,1422"},
773 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
774 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
775const FeatureEntry::FeatureParam
776 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy100[] = {
777 {"MlUrlPiecewiseMappedSearchBlending", "true"},
778 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
779 "0,550;0.018,1200;0.14,1298;1,1422"},
780 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1300"},
781 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
782const FeatureEntry::FeatureParam
783 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy150[] = {
784 {"MlUrlPiecewiseMappedSearchBlending", "true"},
785 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
786 "0,550;0.018,1150;0.14,1248;1,1422"},
787 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1250"},
788 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
789
790const FeatureEntry::FeatureVariation
791 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
792 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
793 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
794 {"adjusted by 50", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy50,
795 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy50), nullptr},
796 {"adjusted by 100", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy100,
797 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy100), nullptr},
798 {"adjusted by 150", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy150,
799 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy150), nullptr},
800};
801
802const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
803 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
804 {"MlUrlScoringShortcutDocumentSignals", "true"},
805};
806const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
807 {
808 {"MlUrlScoringUnlimitedNumCandidates", "true"},
809 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
810 {"MlUrlScoringShortcutDocumentSignals", "true"},
811};
812// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
813// Document(512), and History Fuzzy(65536) providers max matches to 10.
814const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
815 {
816 {"MlUrlScoringMaxMatchesByProvider",
817 "1:10,4:10,8:10,64:10,512:10,65536:10"},
818 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
819 {"MlUrlScoringShortcutDocumentSignals", "true"},
820};
821
822const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
823 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
824 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
825 {"unlimited suggestion candidates",
826 kOmniboxMlUrlScoringUnlimitedNumCandidates,
827 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
828 {"Increase provider max limit to 10",
829 kOmniboxMlUrlScoringMaxMatchesByProvider10,
830 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
831};
832
833const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
834 {"MlUrlSearchBlending_StableSearchBlending", "true"},
835 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
836};
837const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
838 {
839 {"MlUrlSearchBlending_StableSearchBlending", "false"},
840 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
841 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
842 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
843 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
844};
845const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
846 {"MlUrlSearchBlending_StableSearchBlending", "false"},
847 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
848};
849const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
850 {"MlUrlSearchBlending_StableSearchBlending", "false"},
851 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
852 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
853 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
854 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
855};
856
857const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
858 {"Stable", kMlUrlSearchBlendingStable,
859 std::size(kMlUrlSearchBlendingStable), nullptr},
860 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
861 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
862 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
863 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
864 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
865 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
866};
867
Cooper Knaak1e026562017-07-26 05:22:28868// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21869// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28870// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
871// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21872// macro for this type supplying the command line to the macro.
873// . MULTI_VALUE: a list of choices, the first of which should correspond to a
874// deactivated state for this lab (i.e. no command line option). To specify
875// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
876// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28877// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
878// either enabled, disabled, or uses the default value of the associated
879// base::Feature instance. To specify this type of entry use the macro
880// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
881// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
882// base::Feature instance. Choices corresponding to the default state, a
883// universally enabled state, and a universally disabled state are
884// automatically included. To specify this type of entry use the macro
885// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
886// the array of choices.
887//
sdefresne14900ee2015-11-27 14:43:21888// See the documentation of FeatureEntry for details on the fields.
889//
890// When adding a new choice, add it to the end of the list.
891const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28892 {"in-product-help-demo-mode-choice",
893 flag_descriptions::kInProductHelpDemoModeName,
894 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
895 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23896 feature_engagement::kIPHDemoMode,
897 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09898 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22899 {"enable-autofill-credit-card-upload",
900 flag_descriptions::kAutofillCreditCardUploadName,
901 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24902 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23903 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
904 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
905 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51906 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:23907 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
908 {"wallet-service-use-sandbox",
909 flag_descriptions::kWalletServiceUseSandboxName,
910 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
911 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
912 autofill::switches::kWalletServiceUseSandbox,
913 "1",
914 autofill::switches::kWalletServiceUseSandbox,
915 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:59916 {"show-autofill-type-predictions",
917 flag_descriptions::kShowAutofillTypePredictionsName,
918 flag_descriptions::kShowAutofillTypePredictionsDescription,
919 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:50920 FEATURE_VALUE_TYPE(
921 autofill::features::test::kAutofillShowTypePredictions)},
Benjamin Williamsdf18e7e2022-10-03 18:46:05922 {"fullscreen-promos-manager-skip-internal-limits",
923 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
924 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
925 flags_ui::kOsIos,
926 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:14927 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:53928 flag_descriptions::kFullscreenSmoothScrollingName,
929 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:19930 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:06931 {"webpage-default-zoom-from-dynamic-type",
932 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
933 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
934 flags_ui::kOsIos,
935 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:56936 {"webpage-alternative-text-zoom",
937 flag_descriptions::kWebPageAlternativeTextZoomName,
938 flag_descriptions::kWebPageAlternativeTextZoomDescription,
939 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:34940 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
941 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
942 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Stepan Khapugincc4e9842019-01-23 13:38:13943 {"omnibox-ui-max-autocomplete-matches",
944 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
945 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
946 flags_ui::kOsIos,
947 FEATURE_WITH_PARAMS_VALUE_TYPE(
948 omnibox::kUIExperimentMaxAutocompleteMatches,
949 kOmniboxUIMaxAutocompleteMatchesVariations,
950 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:35951 {"omnibox-local-history-zero-suggest-beyond-ntp",
952 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
953 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
954 flags_ui::kOsIos,
955 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:54956 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
957 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
958 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
959 kOmniboxMaxZPSMatchesVariations,
960 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:48961 {"force-startup-signin-promo",
962 flag_descriptions::kForceStartupSigninPromoName,
963 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:29964 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:41965 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
966 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
967 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:13968#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:45969 {"screen-time-integration-ios",
970 flag_descriptions::kScreenTimeIntegrationName,
971 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
972 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:13973#endif
Nazerke3e993f72020-09-21 13:00:06974 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
975 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
Ewann Pellec8634ab2024-02-23 16:50:35976 FEATURE_WITH_PARAMS_VALUE_TYPE(kModernTabStrip,
977 kModernTabStripVariations,
978 "ModernTabStrip")},
Cheick Cisse76ade3d2020-12-16 00:15:11979 {"ios-shared-highlighting-color-change",
980 flag_descriptions::kIOSSharedHighlightingColorChangeName,
981 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:07982 flags_ui::kOsIos,
983 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:34984 {"ios-shared-highlighting-v2",
985 flag_descriptions::kIOSSharedHighlightingV2Name,
986 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
987 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Scott Yoderc0cd99d2024-01-10 19:54:51988 {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName,
989 flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos,
Scott Yoderaf2bdf32024-01-30 20:26:15990 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications,
991 kIOSTipsNotificationsVariations,
992 "IOSTipsNotifications")},
gogerald0ff29e52021-02-03 18:56:19993 {"start-surface", flag_descriptions::kStartSurfaceName,
994 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:23995 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
996 kStartSurfaceVariations,
997 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:34998 {"wait-threshold-seconds-for-capabilities-api",
999 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1000 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1001 flags_ui::kOsIos,
1002 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061003 {"content-notification-experiment",
1004 flag_descriptions::kContentNotificationExperimentName,
1005 flag_descriptions::kContentNotificationExperimentDescription,
1006 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251007 {"content-notification-provisional-ignore-conditions",
1008 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1009 flag_descriptions::
1010 kContentNotificationProvisionalIgnoreConditionsDescription,
1011 flags_ui::kOsIos,
1012 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241013 {"content-push-notifications",
1014 flag_descriptions::kContentPushNotificationsName,
1015 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521016 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1017 kContentPushNotificationsVariations,
1018 "ContentPushNotifications")},
Robbie Gibsoned7f6ffb2023-05-15 16:03:571019 {"overflow-menu-customization",
1020 flag_descriptions::kOverflowMenuCustomizationName,
1021 flag_descriptions::kOverflowMenuCustomizationDescription, flags_ui::kOsIos,
1022 FEATURE_VALUE_TYPE(kOverflowMenuCustomization)},
Jason Hu67cfb0f2022-11-14 20:21:441023 {"enable-lens-in-omnibox-copied-image",
1024 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1025 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1026 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Stepan Khapugina6011f82024-06-07 10:35:551027 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1028 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1029 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031030 {"enable-disco-feed-endpoint",
1031 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1032 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1033 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111034 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Mohammad Refaatab6bee62022-05-16 16:31:151035 {"enable-discover-feed-top-sync-promo",
1036 flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
1037 flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
1038 flags_ui::kOsIos,
1039 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
1040 kDiscoverFeedTopSyncPromoVariations,
1041 "EnableDiscoverFeedTopSyncPromo")},
adamta4a6f2fd22023-02-13 17:37:141042 {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
1043 flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
1044 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
1045 kFeedHeaderSettingsVariations,
1046 "FeedHeaderSettings")},
Tommy Martino7393d762021-10-12 17:59:281047 {"shared-highlighting-amp",
1048 flag_descriptions::kIOSSharedHighlightingAmpName,
1049 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1050 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:281051 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:421052 commerce::flag_descriptions::kCommercePriceTrackingName,
1053 commerce::flag_descriptions::kCommercePriceTrackingDescription,
1054 flags_ui::kOsIos,
1055 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
1056 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:151057 "CommercePriceTracking")},
Matt Jones2e47b9692024-02-23 21:56:431058 {"track-by-default-mobile",
1059 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1060 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1061 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061062 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1063 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1064 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541065 {"ntp-view-hierarchy-repair",
1066 flag_descriptions::kNTPViewHierarchyRepairName,
1067 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201068 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Mikel Astiz26795352024-03-15 08:51:101069 {"unified-bookmark-model", flag_descriptions::kUnifiedBookmarkModelName,
1070 flag_descriptions::kUnifiedBookmarkModelDescription, flags_ui::kOsIos,
1071 FEATURE_VALUE_TYPE(syncer::kEnableBookmarkFoldersForAccountStorage)},
Cheick Cisse39b6a182024-05-29 15:13:441072 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1073 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1074 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381075 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1076 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591077 flags_ui::kOsIos,
1078 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1079 kPriceInsightsVariations,
1080 "PriceInsightsIos")},
1081 {"price-insights-high-price-ios",
1082 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1083 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1084 flags_ui::kOsIos,
1085 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Vishwas Uppoor89303a92022-08-03 00:56:261086 {"autofill-enable-card-product-name",
1087 flag_descriptions::kAutofillEnableCardProductNameName,
1088 flag_descriptions::kAutofillEnableCardProductNameDescription,
1089 flags_ui::kOsIos,
1090 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Raj Tb95d813542022-11-16 21:27:521091 {"enable-download-service-foreground-session",
1092 flag_descriptions::kDownloadServiceForegroundSessionName,
1093 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1094 flags_ui::kOsIos,
1095 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231096 {"enable-tflite-language-detection",
1097 flag_descriptions::kTFLiteLanguageDetectionName,
1098 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1099 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201100 {"optimization-guide-debug-logs",
1101 flag_descriptions::kOptimizationGuideDebugLogsName,
1102 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1103 flags_ui::kOsIos,
1104 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551105 {"optimization-guide-push-notifications",
1106 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1107 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1108 flags_ui::kOsIos,
1109 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
Benjamin Williams11f39912023-04-13 19:00:251110 {"sync-segments-data", flag_descriptions::kSyncSegmentsDataName,
1111 flag_descriptions::kSyncSegmentsDataDescription, flags_ui::kOsIos,
1112 FEATURE_VALUE_TYPE(history::kSyncSegmentsData)},
Christian Xub8c06cd2022-04-29 20:55:011113 {"suggestions-scrolling-ipad",
1114 flag_descriptions::kEnableSuggestionsScrollingOnIPadName,
1115 flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription,
1116 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)},
Stepan Khapuginfee136c62022-11-28 13:24:001117 {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName,
1118 flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos,
1119 FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)},
David Jeanad303a92023-07-31 16:58:111120 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1121 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1122 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeanea886ba2024-01-17 11:50:221123 {"intents-on-viewport", flag_descriptions::kEnableViewportIntentsName,
1124 flag_descriptions::kEnableViewportIntentsDescription, flags_ui::kOsIos,
1125 FEATURE_VALUE_TYPE(web::features::kEnableViewportIntents)},
David Jeandcc3e202024-05-22 08:36:331126 {"improve-parcel-detection",
1127 flag_descriptions::kEnableNewParcelTrackingNumberDetectionName,
1128 flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription,
1129 flags_ui::kOsIos,
1130 FEATURE_VALUE_TYPE(
1131 web::features::kEnableNewParcelTrackingNumberDetection)},
David Jeanf361ae9d2024-04-09 08:19:471132 {"enable-expkit-text-classifier-date",
1133 flag_descriptions::kEnableExpKitTextClassifierDateName,
1134 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1135 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1136 {"enable-expkit-text-classifier-address",
1137 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1138 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151139 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471140 FEATURE_WITH_PARAMS_VALUE_TYPE(
1141 kEnableExpKitTextClassifierAddress,
1142 kEnableExpKitTextClassifierAddressVariations,
1143 "ExpKitTextClassifierAddress")},
1144 {"enable-expkit-text-classifier-phonenumber",
1145 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1146 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1147 flags_ui::kOsIos,
1148 FEATURE_WITH_PARAMS_VALUE_TYPE(
1149 kEnableExpKitTextClassifierPhoneNumber,
1150 kEnableExpKitTextClassifierPhoneNumberVariations,
1151 "ExpKitTextClassifierPhoneNumber")},
1152 {"enable-expkit-text-classifier-email",
1153 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1154 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1155 flags_ui::kOsIos,
1156 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1157 kEnableExpKitTextClassifierEmailVariations,
1158 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331159 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1160 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461161 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1162 kOneTapForMapsWithVariations,
1163 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251164 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1165 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1166 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301167 {"autofill-enable-ranking-formula-address-profiles",
1168 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1169 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1170 flags_ui::kOsIos,
1171 FEATURE_VALUE_TYPE(
1172 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391173 {"autofill-enable-ranking-formula-credit-cards",
1174 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1175 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1176 flags_ui::kOsIos,
1177 FEATURE_VALUE_TYPE(
1178 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021179 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1180 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1181 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521182 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1183 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261184 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1185 kMagicStackVariations,
1186 flag_descriptions::kMagicStackName)},
Alexis Hetuec9d70c2023-11-13 16:27:311187 {"ios-keyboard-accessory-upgrade",
1188 flag_descriptions::kIOSKeyboardAccessoryUpgradeName,
1189 flag_descriptions::kIOSKeyboardAccessoryUpgradeDescription,
1190 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgrade)},
Scott Yoder7b9e51f2023-09-13 23:47:261191 {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName,
1192 flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos,
1193 FEATURE_VALUE_TYPE(kIOSLargeFakebox)},
Chris Lub0bad572023-08-07 18:13:291194 {"ios-magic-stack-segmentation-ranking",
1195 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1196 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1197 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301198 FEATURE_WITH_PARAMS_VALUE_TYPE(
1199 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1200 kSegmentationPlatformIosModuleRankerVariations,
1201 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321202 {"ios-magic-stack-segmentation-ranking-caching",
1203 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1204 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1205 flags_ui::kOsIos,
1206 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111207 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1208 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1209 flag_descriptions::
1210 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1211 flags_ui::kOsIos,
1212 FEATURE_VALUE_TYPE(
1213 segmentation_platform::features::
1214 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Olivier Robin058c1fad2022-05-31 18:24:061215 {"default-browser-intents-show-settings",
1216 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1217 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1218 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Veronique Nguyenc3d7db52023-03-08 22:52:321219 {"ios-password-bottom-sheet",
1220 flag_descriptions::kIOSPasswordBottomSheetName,
1221 flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos,
1222 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)},
Alexis Hetu5e726602023-12-15 15:18:281223 {"ios-password-bottom-sheet-autofocus",
1224 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1225 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1226 flags_ui::kOsIos,
1227 FEATURE_VALUE_TYPE(
1228 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Alexis Hetu0677e182024-04-10 16:07:371229 {"sync-webauthn-credentials",
1230 flag_descriptions::kSyncWebauthnCredentialsName,
1231 flag_descriptions::kSyncWebauthnCredentialsDescription, flags_ui::kOsIos,
1232 FEATURE_VALUE_TYPE(syncer::kSyncWebauthnCredentials)},
Moe Ahmadi098519d82022-07-27 18:34:241233 {"omnibox-zero-suggest-prefetching",
1234 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1235 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1236 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451237 {"omnibox-zero-suggest-prefetching-on-srp",
1238 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1239 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1240 flags_ui::kOsIos,
1241 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1242 {"omnibox-zero-suggest-prefetching-on-web",
1243 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1244 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1245 flags_ui::kOsIos,
1246 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471247 {"omnibox-zero-suggest-in-memory-caching",
1248 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1249 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1250 flags_ui::kOsIos,
1251 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351252 {"omnibox-on-device-tail-suggestions",
1253 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1254 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1255 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361256 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1257 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1258 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1259 kOmniboxMaxURLMatchesVariations,
1260 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201261 {"omnibox-most-visited-tiles-horizontal-render-group",
1262 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1263 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1264 flags_ui::kOsIos,
1265 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061266 {"metrickit-non-crash-reports",
1267 flag_descriptions::kMetrickitNonCrashReportName,
1268 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1269 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Siyu An3194bda2022-07-13 19:30:371270 {"autofill-enable-remade-downstream-metrics",
1271 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName,
1272 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription,
1273 flags_ui::kOsIos,
1274 FEATURE_VALUE_TYPE(
1275 autofill::features::kAutofillEnableRemadeDownstreamMetrics)},
Nakul Vaidya13ca2042022-07-27 01:59:551276 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1277 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1278 flag_descriptions::
1279 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1280 flags_ui::kOsIos,
1281 FEATURE_VALUE_TYPE(
1282 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Gayane Petrosyan5960a172023-06-19 15:40:171283 {"default-browser-promo-trigger-criteria-experiment",
1284 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1285 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1286 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211287 FEATURE_VALUE_TYPE(
1288 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyan6fb79752023-09-26 15:39:441289 {"default-browser-video-in-settings",
Gayane Petrosyan01c84952023-10-02 18:28:211290 flag_descriptions::kDefaultBrowserVideoInSettingsName,
1291 flag_descriptions::kDefaultBrowserVideoInSettingsDescription,
1292 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserVideoInSettings)},
Ed Chin91e44992022-07-27 13:42:341293#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1294 {"feed-background-refresh-ios",
1295 flag_descriptions::kFeedBackgroundRefreshName,
1296 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1297 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1298 kFeedBackgroundRefreshVariations,
1299 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261300#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Olivier ROBINf05518782022-09-14 23:55:501301 {"enable-tflite-language-detection-ignore",
1302 flag_descriptions::kTFLiteLanguageDetectionIgnoreName,
1303 flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription,
1304 flags_ui::kOsIos,
1305 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)},
Petro Akzhygitov2e2322e2023-04-25 16:26:571306 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1307 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1308 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251309 {"iph-price-notifications-while-browsing",
1310 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1311 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1312 flags_ui::kOsIos,
1313 FEATURE_VALUE_TYPE(
1314 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391315 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1316 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1317 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481318 {"local-pdp-detection",
1319 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1320 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1321 flags_ui::kOsIos,
1322 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Louis Romero93e9b50a2023-01-26 01:46:121323 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1324 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1325 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1326 kTabInactivityThresholdVariations,
1327 "TabInactivityThreshold")},
Joemer Ramos0fccdf62023-07-28 17:17:181328 {"enable-friendlier-safe-browsing-settings-enhanced-protection",
1329 flag_descriptions::
1330 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionName,
1331 flag_descriptions::
1332 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionDescription,
1333 flags_ui::kOsIos,
1334 FEATURE_VALUE_TYPE(
1335 safe_browsing::kFriendlierSafeBrowsingSettingsEnhancedProtection)},
Awad Osmanf1a89122023-07-27 19:59:361336 {"enable-friendlier-safe-browsing-settings-standard-protection",
1337 flag_descriptions::
1338 kEnableFriendlierSafeBrowsingSettingsStandardProtectionName,
1339 flag_descriptions::
1340 kEnableFriendlierSafeBrowsingSettingsStandardProtectionDescription,
Joemer Ramos961389e52023-07-20 20:22:521341 flags_ui::kOsIos,
Awad Osmanf1a89122023-07-27 19:59:361342 FEATURE_VALUE_TYPE(
1343 safe_browsing::kFriendlierSafeBrowsingSettingsStandardProtection)},
Olivier ROBIN52eddbf32023-02-15 10:33:421344 {"ios-edit-menu-partial-translate",
1345 flag_descriptions::kIOSEditMenuPartialTranslateName,
1346 flag_descriptions::kIOSEditMenuPartialTranslateDescription,
Olivier ROBINfd3887b72023-02-23 14:45:421347 flags_ui::kOsIos,
1348 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate,
1349 kIOSEditMenuPartialTranslateVariations,
1350 "IOSEditMenuPartialTranslate")},
Ali Juma57849c42023-02-21 22:53:431351 {"notification-settings-menu-item",
1352 flag_descriptions::kNotificationSettingsMenuItemName,
1353 flag_descriptions::kNotificationSettingsMenuItemDescription,
1354 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
Stepan Khapugin551917f82023-02-21 18:00:061355 {"spotlight-reading-list-source",
1356 flag_descriptions::kSpotlightReadingListSourceName,
1357 flag_descriptions::kSpotlightReadingListSourceDescription,
1358 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)},
Yann Dagob206dca42023-10-30 17:24:481359 {"enable-policy-test-page-ios",
1360 flag_descriptions::kEnablePolicyTestPageName,
1361 flag_descriptions::kEnablePolicyTestPageDescription, flags_ui::kOsIos,
1362 FEATURE_VALUE_TYPE(policy::features::kEnablePolicyTestPage)},
kalettucefb09e402023-02-27 18:35:531363 {"web-feed-feedback-reroute",
1364 flag_descriptions::kWebFeedFeedbackRerouteName,
1365 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1366 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Jason Huac58fea2023-02-28 20:25:551367 {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName,
1368 flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos,
1369 FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)},
Tina Wangd3f6f192023-04-05 05:22:431370 {"enable-follow-IPH-exp-params",
1371 flag_descriptions::kEnableFollowIPHExpParamsName,
1372 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1373 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251374 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1375 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1376 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Marc Treibe9f79ea72023-03-14 10:25:421377 {"enable-preferences-account-storage",
1378 flag_descriptions::kEnablePreferencesAccountStorageName,
1379 flag_descriptions::kEnablePreferencesAccountStorageDescription,
1380 flags_ui::kOsIos,
1381 FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)},
Olivier ROBINa229d2132023-03-21 12:44:201382 {"ios-browser-edit-menu-metrics",
1383 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1384 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1385 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551386 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1387 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1388 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1389 kIOSDockingPromoVariations,
1390 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241391 {"omnibox-grouping-framework-non-zps",
1392 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1393 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1394 flags_ui::kOsIos,
1395 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Sylvain Defresne935e6f72023-04-04 09:54:471396 {"enable-session-serialization-optimizations",
1397 flag_descriptions::kEnableSessionSerializationOptimizationsName,
1398 flag_descriptions::kEnableSessionSerializationOptimizationsDescription,
1399 flags_ui::kOsIos,
1400 FEATURE_VALUE_TYPE(
Sylvain Defresneb81065002024-01-23 10:51:221401 session::features::kEnableSessionSerializationOptimizations)},
Robbie Gibson0ea280602023-04-12 01:02:391402 {"only-access-clipboard-async",
1403 flag_descriptions::kOnlyAccessClipboardAsyncName,
1404 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1405 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Olivier ROBIN2613bcd02023-04-20 10:00:471406 {"ios-edit-menu-search-with", flag_descriptions::kIOSEditMenuSearchWithName,
1407 flag_descriptions::kIOSEditMenuSearchWithDescription, flags_ui::kOsIos,
1408 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuSearchWith,
1409 kIOSEditMenuSearchWithVariations,
1410 "IOSEditMenuSearchWith")},
1411 {"ios-edit-menu-hide-search-web",
1412 flag_descriptions::kIOSEditMenuHideSearchWebName,
1413 flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos,
1414 FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)},
Stephen McGruer9afca1a2023-05-18 20:55:171415 {"autofill-enable-card-art-image",
1416 flag_descriptions::kAutofillEnableCardArtImageName,
1417 flag_descriptions::kAutofillEnableCardArtImageDescription,
1418 flags_ui::kOsIos,
1419 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)},
Tina Wangcda2c902023-05-25 17:39:451420 {"enable-signed-out-view-demotion",
1421 flag_descriptions::kEnableSignedOutViewDemotionName,
1422 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1423 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Joemer Ramos7110ca92024-01-18 19:11:401424 {"enable-startup-latency-improvements",
1425 flag_descriptions::kEnableStartupImprovementsName,
1426 flag_descriptions::kEnableStartupImprovementsDescription, flags_ui::kOsIos,
1427 FEATURE_VALUE_TYPE(kEnableStartupImprovements)},
Stephen McGruerb4c8f7f2023-06-01 21:28:251428 {"autofill-use-two-dots-for-last-four-digits",
1429 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsName,
1430 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsDescription,
1431 flags_ui::kOsIos,
1432 FEATURE_VALUE_TYPE(
1433 autofill::features::kAutofillUseTwoDotsForLastFourDigits)},
sebsg977f9aa2023-06-08 18:48:241434 {"autofill-disable-profile-updates",
1435 flag_descriptions::kAutofillDisableProfileUpdatesName,
1436 flag_descriptions::kAutofillDisableProfileUpdatesDescription,
1437 flags_ui::kOsIos,
1438 FEATURE_VALUE_TYPE(
1439 autofill::features::test::kAutofillDisableProfileUpdates)},
1440 {"autofill-disable-silent-profile-updates",
1441 flag_descriptions::kAutofillDisableSilentProfileUpdatesName,
1442 flag_descriptions::kAutofillDisableSilentProfileUpdatesDescription,
1443 flags_ui::kOsIos,
1444 FEATURE_VALUE_TYPE(
1445 autofill::features::test::kAutofillDisableSilentProfileUpdates)},
1446 {"autofill-enable-admin-level-2",
1447 flag_descriptions::kAutofillEnableSupportForAdminLevel2Name,
1448 flag_descriptions::kAutofillEnableSupportForAdminLevel2Description,
1449 flags_ui::kOsIos,
1450 FEATURE_VALUE_TYPE(
1451 autofill::features::kAutofillEnableSupportForAdminLevel2)},
1452 {"autofill-enable-between-streets",
1453 flag_descriptions::kAutofillEnableSupportForBetweenStreetsName,
1454 flag_descriptions::kAutofillEnableSupportForBetweenStreetsDescription,
1455 flags_ui::kOsIos,
1456 FEATURE_VALUE_TYPE(
1457 autofill::features::kAutofillEnableSupportForBetweenStreets)},
1458 {"autofill-enable-landmark",
1459 flag_descriptions::kAutofillEnableSupportForLandmarkName,
1460 flag_descriptions::kAutofillEnableSupportForLandmarkDescription,
1461 flags_ui::kOsIos,
1462 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableSupportForLandmark)},
Ameur Hosnib40858a2023-06-12 17:27:311463 {"spotlight-open-tabs-source",
1464 flag_descriptions::kSpotlightOpenTabsSourceName,
1465 flag_descriptions::kSpotlightOpenTabsSourceDescription, flags_ui::kOsIos,
1466 FEATURE_VALUE_TYPE(kSpotlightOpenTabsSource)},
Stepan Khapuginc302b9412023-09-12 10:19:451467 {"spotlight-donate-new-intents",
1468 flag_descriptions::kSpotlightDonateNewIntentsName,
1469 flag_descriptions::kSpotlightDonateNewIntentsDescription, flags_ui::kOsIos,
1470 FEATURE_VALUE_TYPE(kSpotlightDonateNewIntents)},
Ewann Pelle6eecb8f2023-06-23 14:31:371471 {"tab-pickup-threshold", flag_descriptions::kTabPickupThresholdName,
1472 flag_descriptions::kTabPickupThresholdDescription, flags_ui::kOsIos,
1473 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabPickupThreshold,
1474 kTabPickupThresholdVariations,
1475 "TabPickupThreshold")},
Huiting Yubc1bf4d2023-06-26 18:15:321476 {"ios-iph-for-safari-switcher",
1477 flag_descriptions::kIPHForSafariSwitcherName,
1478 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1479 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071480 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1481 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1482 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011483 {"tab-resumption", flag_descriptions::kTabResumptionName,
1484 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001485 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1486 kTabResumptionVariations,
1487 "TabResumption")},
Christian Xu07d600192023-07-24 12:29:521488 {"bottom-omnibox-default-setting",
1489 flag_descriptions::kBottomOmniboxDefaultSettingName,
1490 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1491 flags_ui::kOsIos,
1492 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1493 kBottomOmniboxDefaultSettingVariations,
1494 "BottomOmniboxDefaultSetting")},
Ewann Pelle422c0942023-08-01 12:28:131495 {"tab-pickup-minimum-delay", flag_descriptions::kTabPickupMinimumDelayName,
1496 flag_descriptions::kTabPickupMinimumDelayDescription, flags_ui::kOsIos,
1497 FEATURE_VALUE_TYPE(kTabPickupMinimumDelay)},
adamta7be73b182023-08-08 22:30:351498 {"discover-feed-sport-card", flag_descriptions::kDiscoverFeedSportCardName,
1499 flag_descriptions::kDiscoverFeedSportCardDescription, flags_ui::kOsIos,
1500 FEATURE_VALUE_TYPE(kDiscoverFeedSportCard)},
Ernesto Izquierdo Clua6a00cb9d2023-08-11 15:12:501501 {"ios-password-auth-on-entry-v2",
1502 flag_descriptions::kIOSPasswordAuthOnEntryV2Name,
1503 flag_descriptions::kIOSPasswordAuthOnEntryV2Description, flags_ui::kOsIos,
1504 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntryV2)},
Quentin Pubert476786e82023-08-16 12:45:281505 {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName,
1506 flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos,
1507 FEATURE_VALUE_TYPE(kIOSSaveToPhotos)},
Matt Jones79534392023-10-27 14:35:021508 {"parcel-tracking-test-data",
1509 commerce::flag_descriptions::kParcelTrackingTestDataName,
1510 commerce::flag_descriptions::kParcelTrackingTestDataDescription,
1511 flags_ui::kOsIos,
1512 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kParcelTrackingTestData,
1513 kParcelTrackingTestDataVariations,
1514 "ParcelTrackingTestData")},
Justin Wells37e32c4d2023-09-06 22:11:111515 {"autofill-enable-merchant-domain-in-unmask-card-request",
1516 flag_descriptions::kAutofillEnableMerchantDomainInUnmaskCardRequestName,
1517 flag_descriptions::
1518 kAutofillEnableMerchantDomainInUnmaskCardRequestDescription,
1519 flags_ui::kOsIos,
1520 FEATURE_VALUE_TYPE(
1521 autofill::features::kAutofillEnableMerchantDomainInUnmaskCardRequest)},
Christian Xu90e952f2023-09-13 09:05:281522 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1523 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1524 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Siyu263cf562023-09-25 20:59:571525 {"autofill-enable-virtual-cards",
1526 flag_descriptions::kAutofillEnableVirtualCardsName,
1527 flag_descriptions::kAutofillEnableVirtualCardsDescription,
1528 flags_ui::kOsIos,
1529 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVirtualCards)},
adamta80ec3732023-10-11 16:04:021530 {"enable-feed-containment", flag_descriptions::kEnableFeedContainmentName,
1531 flag_descriptions::kEnableFeedContainmentDescription, flags_ui::kOsIos,
1532 FEATURE_VALUE_TYPE(kEnableFeedContainment)},
Rubin Deliallisi072bc842023-10-19 12:00:411533 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1534 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1535 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Ewann Pelle54e51bd62023-10-24 17:28:121536 {"sync-session-on-visibility-changed",
1537 flag_descriptions::kSyncSessionOnVisibilityChangedName,
1538 flag_descriptions::kSyncSessionOnVisibilityChangedDescription,
1539 flags_ui::kOsIos,
1540 FEATURE_VALUE_TYPE(syncer::kSyncSessionOnVisibilityChanged)},
Quentin Pubertf2d75c32023-10-25 12:17:451541 {"enable-save-to-drive", flag_descriptions::kIOSSaveToDriveName,
1542 flag_descriptions::kIOSSaveToDriveDescription, flags_ui::kOsIos,
1543 FEATURE_VALUE_TYPE(kIOSSaveToDrive)},
Rafał Godlewskie75d12402023-10-25 15:31:531544 {"password-sharing", flag_descriptions::kPasswordSharingName,
1545 flag_descriptions::kPasswordSharingDescription, flags_ui::kOsIos,
Mohamed Amir Yosef24542f52024-05-06 12:18:221546 FEATURE_VALUE_TYPE(password_manager::features::kSendPasswords)},
Jennifer Serranof384360c2023-10-27 00:25:511547 {"omnibox-company-entity-icon-adjustment",
1548 flag_descriptions::kOmniboxCompanyEntityIconAdjustmentName,
1549 flag_descriptions::kOmniboxCompanyEntityIconAdjustmentDescription,
1550 flags_ui::kOsIos,
1551 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kCompanyEntityIconAdjustment,
1552 kOmniboxCompanyEntityAdjustmentVariations,
1553 "OmniboxCompanyEntityAdjustment")},
Aliona DANGLA5971a8b2023-11-10 11:55:351554 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1555 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1556 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Aliona DANGLAde4e2d72023-11-13 17:59:471557 {"tab-groups-in-grid", flag_descriptions::kTabGroupsInGridName,
1558 flag_descriptions::kTabGroupsInGridDescription, flags_ui::kOsIos,
1559 FEATURE_VALUE_TYPE(kTabGroupsInGrid)},
Gauthier Ambard8cca29a2024-04-10 08:27:361560 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1561 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1562 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591563 {"autofill-enable-dynamically-loading-fields-on-input",
1564 flag_descriptions::
1565 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1566 flag_descriptions::
1567 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1568 flags_ui::kOsIos,
1569 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
Vincent Boisselle5af638da2023-11-16 17:38:201570 {"password-manager-signin-uff",
1571 flag_descriptions::kIOSPasswordSignInUffName,
1572 flag_descriptions::kIOSPasswordSignInUffDescription, flags_ui::kOsIos,
1573 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordSignInUff)},
Christian Xue72882d2023-11-20 17:10:481574 {"bottom-omnibox-promo-fre", flag_descriptions::kBottomOmniboxPromoFREName,
1575 flag_descriptions::kBottomOmniboxPromoFREDescription, flags_ui::kOsIos,
1576 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxPromoFRE,
1577 kBottomOmniboxPromoVariations,
1578 "BottomOmniboxPromoFRE")},
1579 {"bottom-omnibox-promo-app-launch",
1580 flag_descriptions::kBottomOmniboxPromoAppLaunchName,
1581 flag_descriptions::kBottomOmniboxPromoAppLaunchDescription,
1582 flags_ui::kOsIos,
1583 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxPromoAppLaunch,
1584 kBottomOmniboxPromoVariations,
1585 "BottomOmniboxPromoAppLaunch")},
Christian Xua3667352023-11-21 16:54:091586 {"bottom-omnibox-promo-default-position",
1587 flag_descriptions::kBottomOmniboxPromoDefaultPositionName,
1588 flag_descriptions::kBottomOmniboxPromoDefaultPositionDescription,
1589 flags_ui::kOsIos,
1590 FEATURE_WITH_PARAMS_VALUE_TYPE(
1591 kBottomOmniboxPromoDefaultPosition,
1592 kBottomOmniboxPromoDefaultPositionVariations,
1593 "BottomOmniboxPromoDefaultPosition")},
Filipa Senra0bd07982023-12-19 10:56:251594 {"revamp-page-info-ios", flag_descriptions::kRevampPageInfoIosName,
1595 flag_descriptions::kRevampPageInfoIosDescription, flags_ui::kOsIos,
Filipa Senraa2074a12024-06-10 14:49:201596 MULTI_VALUE_TYPE(kRevampPageInfoiOSChoices)},
Mike Dougherty330188d52023-12-20 16:33:241597 {"remove-old-web-state-restore",
1598 flag_descriptions::kRemoveOldWebStateRestoreName,
1599 flag_descriptions::kRemoveOldWebStateRestoreDescription, flags_ui::kOsIos,
1600 FEATURE_VALUE_TYPE(web::features::kRemoveOldWebStateRestoration)},
aliaaborhamy00f89df2023-12-21 14:55:031601 {"share-in-web-context-menu-ios",
1602 flag_descriptions::kShareInWebContextMenuIOSName,
1603 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1604 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Marc Treib1f6c5db992024-01-04 20:25:141605 {"migrate-syncing-user-to-signed-in",
1606 flag_descriptions::kMigrateSyncingUserToSignedInName,
1607 flag_descriptions::kMigrateSyncingUserToSignedInDescription,
1608 flags_ui::kOsIos,
1609 FEATURE_VALUE_TYPE(switches::kMigrateSyncingUserToSignedIn)},
1610 {"undo-migration-of-syncing-user-to-signed-in",
1611 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInName,
1612 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInDescription,
1613 flags_ui::kOsIos,
1614 FEATURE_VALUE_TYPE(switches::kUndoMigrationOfSyncingUserToSignedIn)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551615 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1616 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1617 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461618 {"contextual-panel", flag_descriptions::kContextualPanelName,
1619 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
1620 FEATURE_VALUE_TYPE(kContextualPanel)},
Nicolas MacBeth47d6b622024-01-16 17:05:391621 {"contextual-panel-force-show-entrypoint",
1622 flag_descriptions::kContextualPanelForceShowEntrypointName,
1623 flag_descriptions::kContextualPanelForceShowEntrypointDescription,
1624 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContextualPanelForceShowEntrypoint)},
Christian Xuc3c249b2024-01-18 18:18:321625 {"bottom-omnibox-promo-region-filter",
1626 flag_descriptions::kBottomOmniboxPromoRegionFilterName,
1627 flag_descriptions::kBottomOmniboxPromoRegionFilterDescription,
1628 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kBottomOmniboxPromoRegionFilter)},
adamtad0e8cfc2024-01-16 18:43:471629 {"enable-ipad-feed-ghost-cards",
1630 flag_descriptions::kEnableiPadFeedGhostCardsName,
1631 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1632 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Louis Romerof3144822024-01-30 10:24:161633 {"tab-grid-always-bounce", flag_descriptions::kTabGridAlwaysBounceName,
1634 flag_descriptions::kTabGridAlwaysBounceDescription, flags_ui::kOsIos,
1635 FEATURE_VALUE_TYPE(kTabGridAlwaysBounce)},
Christian Xu11df0ae2024-02-08 16:07:511636 {"omnibox-rich-autocompletion",
1637 flag_descriptions::kOmniboxRichAutocompletionName,
1638 flag_descriptions::kOmniboxRichAutocompletionDescription, flags_ui::kOsIos,
Christian Xu10b84d72024-04-09 17:12:331639 FEATURE_WITH_PARAMS_VALUE_TYPE(
1640 omnibox::kRichAutocompletion,
1641 kRichAutocompletionImplementationVariations,
1642 "RichAutocompletionImplementationVariations")},
Jason Hud445445f2024-02-02 18:28:121643 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1644 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1645 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Charles Yang30c90b92024-03-08 18:00:591646 {"omnibox-color-icons", flag_descriptions::kOmniboxColorIconsName,
1647 flag_descriptions::kOmniboxColorIconsDescription, flags_ui::kOsIos,
1648 FEATURE_VALUE_TYPE(kOmniboxColorIcons)},
Charles Yang682634b2024-03-19 01:46:091649 {"enable-color-lens-and-voice-icons-in-home-screen-widget",
1650 flag_descriptions::kEnableColorLensAndVoiceIconsInHomeScreenWidgetName,
1651 flag_descriptions::
1652 kEnableColorLensAndVoiceIconsInHomeScreenWidgetDescription,
1653 flags_ui::kOsIos,
1654 FEATURE_VALUE_TYPE(kEnableColorLensAndVoiceIconsInHomeScreenWidget)},
Tomasz Jurkiewicze8ce0292024-02-13 13:06:251655 {"minor-mode-restrictions-for-history-sync-opt-in",
1656 flag_descriptions::kMinorModeRestrictionsForHistorySyncOptInName,
1657 flag_descriptions::kMinorModeRestrictionsForHistorySyncOptInDescription,
1658 flags_ui::kOsIos,
1659 FEATURE_VALUE_TYPE(::switches::kMinorModeRestrictionsForHistorySyncOptIn)},
ginnnnnnnydbaba6e42024-02-13 23:17:251660 {"ios-iph-pull-to-refresh",
1661 flag_descriptions::kIPHiOSPullToRefreshFeatureName,
1662 flag_descriptions::kIPHiOSPullToRefreshFeatureDescription,
1663 flags_ui::kOsIos,
1664 FEATURE_VALUE_TYPE(feature_engagement::kIPHiOSPullToRefreshFeature)},
1665 {"ios-iph-swipe-back-forward",
1666 flag_descriptions::kIPHiOSSwipeBackForwardFeatureName,
1667 flag_descriptions::kIPHiOSSwipeBackForwardFeatureDescription,
1668 flags_ui::kOsIos,
1669 FEATURE_VALUE_TYPE(feature_engagement::kIPHiOSSwipeBackForwardFeature)},
ginnnnnnny92d90742024-02-16 17:04:241670 {"ios-iph-swipe-toolbar-to-change-tab",
1671 flag_descriptions::kIPHiOSSwipeToolbarToChangeTabFeatureName,
1672 flag_descriptions::kIPHiOSSwipeToolbarToChangeTabFeatureDescription,
1673 flags_ui::kOsIos,
1674 FEATURE_VALUE_TYPE(
1675 feature_engagement::kIPHiOSSwipeToolbarToChangeTabFeature)},
Chris Lu93a507b2024-02-14 18:41:581676 {"ios-magic-stack-collection-view",
1677 flag_descriptions::kIOSMagicStackCollectionViewName,
1678 flag_descriptions::kIOSMagicStackCollectionViewDescription,
1679 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSMagicStackCollectionView)},
Alexander Tekleeebe42b92024-02-23 21:27:151680 {"autofill-enable-card-benefits-for-american-express",
1681 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1682 flag_descriptions::
1683 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1684 flags_ui::kOsIos,
1685 FEATURE_VALUE_TYPE(
1686 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
1687 {"autofill-enable-card-benefits-for-capital-one",
1688 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneName,
1689 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneDescription,
1690 flags_ui::kOsIos,
1691 FEATURE_VALUE_TYPE(
1692 autofill::features::kAutofillEnableCardBenefitsForCapitalOne)},
Yishui Liub88a38c2024-02-28 08:46:551693 {"autofill-enable-card-benefits-sync",
1694 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1695 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1696 flags_ui::kOsIos,
1697 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421698 {"linked-services-setting-ios",
1699 flag_descriptions::kLinkedServicesSettingIosName,
1700 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1701 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
Aliona DANGLA52e69ff2024-02-29 12:22:281702 {"disable-fullscreen-scrolling",
1703 flag_descriptions::kDisableFullscreenScrollingName,
1704 flag_descriptions::kDisableFullscreenScrollingDescription,
1705 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDisableFullscreenScrolling)},
Ernesto Izquierdo Clua7a451b8e2024-03-11 15:01:011706 {"autofill-enable-xhr-submission-detection-ios",
1707 flag_descriptions::kAutofillEnableXHRSubmissionDetectionIOSName,
1708 flag_descriptions::kAutofillEnableXHRSubmissionDetectionIOSDescription,
1709 flags_ui::kOsIos,
1710 FEATURE_VALUE_TYPE(
1711 autofill::features::kAutofillEnableXHRSubmissionDetectionIOS)},
hvs7c6cb402024-03-27 02:39:001712 {"autofill-enable-prefetching-risk-data-for-retrieval",
1713 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561714 flag_descriptions::
1715 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001716 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561717 FEATURE_VALUE_TYPE(
1718 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1719 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1720 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1721 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391722 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1723 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1724 FEATURE_VALUE_TYPE(
1725 page_content_annotations::features::kPageContentAnnotations)},
1726 {"page-content-annotations-persist-salient-image-metadata",
1727 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1728 flag_descriptions::
1729 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1730 flags_ui::kOsIos,
1731 FEATURE_VALUE_TYPE(
1732 page_content_annotations::features::
1733 kPageContentAnnotationsPersistSalientImageMetadata)},
1734 {"page-content-annotations-remote-page-metadata",
1735 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1736 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1737 flags_ui::kOsIos,
1738 FEATURE_VALUE_TYPE(
1739 page_content_annotations::features::kRemotePageMetadata)},
1740 {"page-visibility-page-content-annotations",
1741 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1742 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1743 flags_ui::kOsIos,
1744 FEATURE_VALUE_TYPE(page_content_annotations::features::
1745 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121746 {"enhanced-safe-browsing-promo",
1747 flag_descriptions::kEnhancedSafeBrowsingPromoName,
1748 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:021749 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Sebsgfcd5b0b2024-04-09 08:18:321750 {"cpe-performance-improvements",
1751 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
1752 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
1753 flags_ui::kOsIos,
1754 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Vincent Boissellea1f27f322024-04-17 14:53:191755 {"password-manager-detect-username-in-uff",
1756 flag_descriptions::kIOSDetectUsernameInUffName,
1757 flag_descriptions::kIOSPasswordSignInUffDescription, flags_ui::kOsIos,
1758 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Marc Treib5da778d2024-04-17 17:03:481759 {"identity-disc-account-switch",
1760 flag_descriptions::kIdentityDiscAccountSwitchName,
1761 flag_descriptions::kIdentityDiscAccountSwitchDescription, flags_ui::kOsIos,
1762 FEATURE_VALUE_TYPE(kIdentityDiscAccountSwitch)},
Filipa Senrabe00cbe2024-04-19 14:21:331763 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
1764 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
1765 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:001766 {"autofill-enable-verve-card-support",
1767 flag_descriptions::kAutofillEnableVerveCardSupportName,
1768 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
1769 flags_ui::kOsIos,
1770 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ameur Hosni20b75fe52024-04-24 16:36:021771 {"omnibox-actions-in-suggest",
1772 flag_descriptions::kOmniboxActionsInSuggestName,
1773 flag_descriptions::kOmniboxActionsInSuggestDescription, flags_ui::kOsIos,
1774 FEATURE_VALUE_TYPE(kOmniboxActionsInSuggest)},
Louis Romero5a84afc2024-04-25 10:29:201775 {"tab-group-sync", flag_descriptions::kTabGroupSync,
1776 flag_descriptions::kTabGroupSync, flags_ui::kOsIos,
1777 FEATURE_VALUE_TYPE(kTabGroupSync)},
Kavita Sonic8eaa982024-05-16 17:09:111778 {"autofill-enable-save-card-loading-and-confirmation",
1779 flag_descriptions::kAutofillEnableSaveCardLoadingAndConfirmationName,
1780 flag_descriptions::
1781 kAutofillEnableSaveCardLoadingAndConfirmationDescription,
1782 flags_ui::kOsIos,
1783 FEATURE_VALUE_TYPE(
1784 autofill::features::kAutofillEnableSaveCardLoadingAndConfirmation)},
1785 {"autofill-enable-save-card-local-save-fallback",
1786 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackName,
1787 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackDescription,
1788 flags_ui::kOsIos,
1789 FEATURE_VALUE_TYPE(
1790 autofill::features::kAutofillEnableSaveCardLocalSaveFallback)},
1791 {"autofill-enable-vcn-enroll-loading-and-confirmation",
1792 flag_descriptions::kAutofillEnableVcnEnrollLoadingAndConfirmationName,
1793 flag_descriptions::
1794 kAutofillEnableVcnEnrollLoadingAndConfirmationDescription,
1795 flags_ui::kOsIos,
1796 FEATURE_VALUE_TYPE(
1797 autofill::features::kAutofillEnableVcnEnrollLoadingAndConfirmation)},
Charles Yang8da39e6f2024-05-24 12:19:121798 {"lens-web-page-early-transition-enabled",
1799 flag_descriptions::kLensWebPageEarlyTransitionEnabledName,
1800 flag_descriptions::kLensWebPageEarlyTransitionEnabledDescription,
1801 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageEarlyTransitionEnabled)},
Ameur Hosni3d764c92024-05-28 14:11:121802 {"omnibox-suggestion-answer-migration",
1803 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
1804 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
1805 flags_ui::kOsIos,
1806 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:301807 kOmniboxSuggestionAnswerMigration)},
1808 {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name,
1809 flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos,
Olivier Robinf8374f12024-06-05 19:00:041810 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5,
1811 kTabResumption15Variations,
1812 "TabResumption1_5")},
Hira Mahmood6e2a894e2024-05-31 15:18:191813 {"send-tab-ios-push-notifications",
1814 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
1815 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
1816 flags_ui::kOsIos,
1817 FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfIOSPushNotifications)},
Olivier Robin08bc56d02024-06-05 14:05:181818 {"tab-resumption-2", flag_descriptions::kTabResumption2Name,
1819 flag_descriptions::kTabResumption2Description, flags_ui::kOsIos,
1820 FEATURE_VALUE_TYPE(kTabResumption2)},
Olivier ROBINcb76f4fe2024-06-05 16:11:421821 {"page-image-service-optimization-guide-salient-images",
1822 flag_descriptions::kPageImageServiceSalientImageName,
1823 flag_descriptions::kPageImageServiceSalientImageDescription,
1824 flags_ui::kOsIos,
1825 FEATURE_WITH_PARAMS_VALUE_TYPE(
1826 page_image_service::kImageServiceOptimizationGuideSalientImages,
1827 kImageServiceOptimizationGuideSalientImagesVariations,
1828 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:221829 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
1830 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
1831 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Salma Elmahallawyc2383802024-06-06 23:36:031832 {"clear-device-data-on-signout-for-managed-users",
1833 flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersName,
1834 flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersDescription,
1835 flags_ui::kOsIos,
1836 FEATURE_VALUE_TYPE(kClearDeviceDataOnSignOutForManagedUsers)},
Charles Yangf8e7adf2024-06-11 00:17:001837 {"lens-filters-ablation-mode-enabled",
1838 flag_descriptions::kLensFiltersAblationModeEnabledName,
1839 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
1840 flags_ui::kOsIos,
1841 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
1842 kLensFiltersAblationModeVariations,
1843 "LensFiltersAblationMode")},
1844 {"lens-translate-toogle-mode-enabled",
1845 flag_descriptions::kLensTranslateToggleModeEnabledName,
1846 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
1847 flags_ui::kOsIos,
1848 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
1849 kLensTranslateToggleModeVariations,
1850 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:591851 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
1852 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
1853 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:491854 {"omnibox-ml-log-url-scoring-signals",
1855 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
1856 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
1857 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
1858 {"omnibox-ml-url-piecewise-mapped-search-blending",
1859 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
1860 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
1861 flags_ui::kOsIos,
1862 FEATURE_WITH_PARAMS_VALUE_TYPE(
1863 omnibox::kMlUrlPiecewiseMappedSearchBlending,
1864 kMlUrlPiecewiseMappedSearchBlendingVariations,
1865 "MlUrlPiecewiseMappedSearchBlending")},
1866 {"omnibox-ml-url-score-caching",
1867 flag_descriptions::kOmniboxMlUrlScoreCachingName,
1868 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
1869 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
1870 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
1871 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
1872 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
1873 kOmniboxMlUrlScoringVariations,
1874 "MlUrlScoring")},
1875 {"omnibox-ml-url-search-blending",
1876 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
1877 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
1878 flags_ui::kOsIos,
1879 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
1880 kMlUrlSearchBlendingVariations,
1881 "MlUrlScoring")},
1882 {"omnibox-ml-url-scoring-model",
1883 flag_descriptions::kOmniboxMlUrlScoringModelName,
1884 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
1885 FEATURE_VALUE_TYPE(omnibox::kUrlScoringModel)},
Olivier Robin51ffd172024-05-29 08:56:301886};
sdefresne14900ee2015-11-27 14:43:211887
Rohit Raobed794c2020-04-27 15:27:451888bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1889 return false;
1890}
1891
1892flags_ui::FlagsState& GetGlobalFlagsState() {
1893 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1894 nullptr);
1895 return *flags_state;
1896}
David Jean5ca263c2021-08-18 09:19:301897// Creates the experimental test policies map, used by AsyncPolicyLoader and
1898// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341899NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211900 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1901
Guillaume Jenkins25e9bd72020-08-27 17:39:061902 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551903 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061904 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551905
Guillaume Jenkins25e9bd72020-08-27 17:39:061906 // Set some sample policy values for testing if EnableSamplePolicies is set to
1907 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401908 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551909 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011910 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1911
Guillaume Jenkinseeb7007c2020-06-25 22:55:401912 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1913
1914 // 2 = Disable all variations
1915 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1916
1917 // 2 = Do not allow any site to show popups
1918 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1919
Tina Wang5abee802020-07-29 23:09:521920 // Set default search engine.
1921 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1922 @YES,
1923 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1924 @"http://www.google.com/search?q={searchTerms}",
1925 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021926 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521927
Tina Wang89068c82020-10-29 15:51:501928 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1929
Gauthier Ambard21b23702021-04-16 16:11:271930 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1931
Tina Wang59d0b7e2020-08-11 04:41:011932 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531933
1934 // 2 = Enhanced safe browsing protection
1935 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1936
1937 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291938
1939 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551940 }];
1941 }
1942
Ewann227a3c02021-04-19 12:04:541943 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041944 NSString* sync_policy_key =
1945 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301946 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541947 }
Ewann227a3c02021-04-19 12:04:541948
Ewann570a6302021-08-17 07:22:421949 // SyncTypesListDisabled policy.
1950 NSString* Sync_types_list_disabled_key =
1951 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1952 NSMutableArray* Sync_types_list_disabled_values =
1953 [[NSMutableArray alloc] init];
1954 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
1955 [Sync_types_list_disabled_values addObject:@"bookmarks"];
1956 }
1957 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
1958 [Sync_types_list_disabled_values addObject:@"readingList"];
1959 }
1960 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
1961 [Sync_types_list_disabled_values addObject:@"preferences"];
1962 }
1963 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
1964 [Sync_types_list_disabled_values addObject:@"passwords"];
1965 }
1966 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
1967 [Sync_types_list_disabled_values addObject:@"autofill"];
1968 }
1969 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
1970 [Sync_types_list_disabled_values addObject:@"typedUrls"];
1971 }
1972 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
1973 [Sync_types_list_disabled_values addObject:@"tabs"];
1974 }
1975 if ([Sync_types_list_disabled_values count]) {
1976 [testing_policies addEntriesFromDictionary:@{
1977 Sync_types_list_disabled_key : Sync_types_list_disabled_values
1978 }];
Ewann570a6302021-08-17 07:22:421979 }
1980
Gauthier Ambard073eaa92021-11-22 15:24:131981 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:521982 NSString* incognito_policy_key =
1983 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
1984 NSInteger incognito_mode_availability =
1985 [defaults integerForKey:incognito_policy_key];
1986 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:521987 [testing_policies addEntriesFromDictionary:@{
1988 incognito_policy_key : @(incognito_mode_availability),
1989 }];
1990 }
1991
Ewann40a8f8a2021-07-29 10:01:201992 NSString* restriction_pattern =
1993 [defaults stringForKey:@"RestrictAccountsToPatterns"];
1994 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:291995 NSString* restrict_key =
1996 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:201997 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:291998 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:201999 }];
2000 }
2001
Vincent Boisselle19200bc2021-09-01 17:58:252002 // If the sign-in policy is set (not "None"), add the policy key to the list
2003 // of enabled experimental policies, and set the value.
2004 NSString* const kSigninPolicyKey = @"BrowserSignin";
2005 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2006 if (signin_policy_mode) {
2007 // Remove the mode offset that was used to represent the unset policy.
2008 --signin_policy_mode;
2009 DCHECK(signin_policy_mode >= 0);
2010
Vincent Boisselle19200bc2021-09-01 17:58:252011 [testing_policies addEntriesFromDictionary:@{
2012 kSigninPolicyKey : @(signin_policy_mode),
2013 }];
2014 }
2015
Veronique Nguyen9b1044f2022-01-11 14:41:132016 // If the New Tab Page URL is set (not empty) add the value to the list of
2017 // test policies.
2018 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2019 if ([ntp_location length] > 0) {
2020 NSString* ntp_location_key =
2021 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2022 [testing_policies
2023 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572024 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132025 }
2026
Ali Juma9ec36d2b2022-03-28 14:53:122027 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2028 NSString* allow_backups_key =
2029 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2030 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2031 [allowed_experimental_policies addObject:allow_backups_key];
2032 }
2033
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242034 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2035 NSString* password_manager_key =
2036 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2037 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2038 [allowed_experimental_policies addObject:password_manager_key];
2039 }
Vincent Boisselle003569a72023-09-11 16:03:122040
2041 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2042 NSString* user_policy_merge_key =
2043 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2044 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2045 [allowed_experimental_policies addObject:user_policy_merge_key];
2046 }
2047
Arthur Milchiorbb44f5c82023-03-14 16:14:462048 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2049 NSString* managed_bookmarks_key =
2050 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2051 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572052 @"["
2053 // The following gets filtered out from
2054 // the JSON string when parsed.
2055 " {"
2056 " \"toplevel_name\": \"Managed Bookmarks\""
2057 " },"
2058 " {"
2059 " \"name\": \"Google\","
2060 " \"url\": \"google.com\""
2061 " },"
2062 " {"
2063 " \"name\": \"Empty Folder\","
2064 " \"children\": []"
2065 " },"
2066 " {"
2067 " \"name\": \"Big Folder\","
2068 " \"children\": ["
2069 " {"
2070 " \"name\": \"Youtube\","
2071 " \"url\": \"youtube.com\""
2072 " },"
2073 " {"
2074 " \"name\": \"Chromium\","
2075 " \"url\": \"chromium.org\""
2076 " },"
2077 " {"
2078 " \"name\": \"More Stuff\","
2079 " \"children\": ["
2080 " {"
2081 " \"name\": \"Bugs\","
2082 " \"url\": \"crbug.com\""
2083 " }"
2084 " ]"
2085 " }"
2086 " ]"
2087 " }"
2088 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462089 [testing_policies addEntriesFromDictionary:@{
2090 managed_bookmarks_key : managed_bookmarks_value
2091 }];
2092 [allowed_experimental_policies addObject:managed_bookmarks_key];
2093 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242094
Guillaume Jenkins25e9bd72020-08-27 17:39:062095 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2096 // policy.
2097 if ([allowed_experimental_policies count] > 0) {
2098 [testing_policies setValue:allowed_experimental_policies
2099 forKey:base::SysUTF8ToNSString(
2100 policy::key::kEnableExperimentalPolicies)];
2101 }
2102
jlebel2eb40222022-05-06 11:15:422103 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2104 switch ([defaults integerForKey:metrics_reporting_key]) {
2105 case 1:
2106 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132107 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422108 break;
2109 case 2:
2110 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132111 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422112 break;
2113 default:
2114 // Metrics reporting not managed.
2115 break;
2116 }
2117
David Jean6f85d44f2021-08-19 08:08:452118 // Warning: Add new flags to TestingPoliciesHash() below.
2119
David Jean5ca263c2021-08-18 09:19:302120 return testing_policies;
2121}
David Jean6f85d44f2021-08-19 08:08:452122
David Jean5ca263c2021-08-18 09:19:302123} // namespace
2124
Gauthier Ambard02dbf022022-08-23 08:28:472125// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302126void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2127 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2128
2129 // Set the UA flag if UseMobileSafariUA is enabled.
2130 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2131 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2132 // Chrome puts its product token.
2133 int32_t major = 0;
2134 int32_t minor = 0;
2135 int32_t bugfix = 0;
2136 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2137 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2138
2139 command_line->AppendSwitchASCII(switches::kUserAgent,
2140 web::BuildMobileUserAgent(product));
2141 }
2142
2143 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342144 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302145
2146 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2147 // Management to enabled and add the token to the list of policies.
2148 NSString* token_key =
2149 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2150 NSString* token = [defaults stringForKey:token_key];
2151
2152 if ([token length] > 0) {
2153 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2154 [testing_policies setValue:token forKey:token_key];
2155 }
2156
Guillaume Jenkins57606d72020-08-13 17:32:552157 // If some policies were set, commit them to the app's registration defaults.
2158 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402159 NSDictionary* registration_defaults =
2160 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2161 [defaults registerDefaults:registration_defaults];
2162 }
2163
sdefresne14900ee2015-11-27 14:43:212164 // Freeform commandline flags. These are added last, so that any flags added
2165 // earlier in this function take precedence.
2166 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2167 base::CommandLine::StringVector flags;
2168 // Append an empty "program" argument.
2169 flags.push_back("");
2170
2171 // The number of flags corresponds to the number of text fields in
2172 // Experimental.plist.
2173 const int kNumFreeformFlags = 5;
2174 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2175 NSString* key =
2176 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2177 NSString* flag = [defaults stringForKey:key];
2178 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332179 // iOS keyboard replaces -- with —, so undo that.
2180 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2181 withString:@"--"
2182 options:0
2183 range:NSMakeRange(0, 1)];
2184 // To make things easier, allow flags with no dashes by prepending them
2185 // here. This also allows for flags that just have one dash if they
2186 // exist.
2187 if (![flag hasPrefix:@"-"]) {
2188 flag = [@"--" stringByAppendingString:flag];
2189 }
sdefresne14900ee2015-11-27 14:43:212190 flags.push_back(base::SysNSStringToUTF8(flag));
2191 }
2192 }
2193
2194 base::CommandLine temp_command_line(flags);
2195 command_line->AppendArguments(temp_command_line, false);
2196 }
msardafc76f662017-02-24 12:46:282197
justincohendacc85d2017-06-28 23:34:102198 // Populate command line flag for 3rd party keyboard omnibox workaround.
2199 NSString* enableThirdPartyKeyboardWorkaround =
2200 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2201 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2202 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2203 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2204 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2205 }
2206
Sylvain Defresned3cd8d92022-01-18 13:35:082207 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212208}
2209
sdefresne14900ee2015-11-27 14:43:212210void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2211 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182212 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112213 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532214 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212215}
2216
jkrcalbf073372016-07-29 07:21:312217std::vector<std::string> RegisterAllFeatureVariationParameters(
2218 flags_ui::FlagsStorage* flags_storage,
2219 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182220 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2221 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312222}
2223
sdefresne14900ee2015-11-27 14:43:212224void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2225 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502226 base::Value::List& supported_entries,
2227 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182228 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212229 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512230 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212231}
2232
2233void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2234 const std::string& internal_name,
2235 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182236 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2237 enable);
sdefresne14900ee2015-11-27 14:43:212238}
2239
2240void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182241 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212242}
2243
Nicolas MacBeth972e2592023-02-23 15:22:092244bool IsRestartNeededToCommitChanges() {
2245 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2246}
2247
sdefresne14900ee2015-11-27 14:43:212248namespace testing {
2249
Elly Fong-Jones323ab1092021-08-23 22:36:312250base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2251 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532252 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212253}
2254
2255} // namespace testing