blob: 939c57dfc30474cb506710c15aa66bf6d9e81c53 [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"
Tina Wang75f21e82024-07-01 18:00:3593#import "ios/chrome/browser/start_surface/ui_bundled/start_surface_features.h"
Robbie Gibson596fe292023-10-27 01:00:3694#import "ios/chrome/browser/tabs/model/inactive_tabs/features.h"
95#import "ios/chrome/browser/tabs/model/tab_pickup/features.h"
Ewann Pelled2eaeba2023-09-19 09:15:2896#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Charles Yang0bba5262024-05-14 17:46:4797#import "ios/chrome/browser/ui/lens/features.h"
adamta273568472020-12-04 23:53:5798#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
Christian Xub8c06cd2022-04-29 20:55:0199#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Filipa Senra0bd07982023-12-19 10:56:25100#import "ios/chrome/browser/ui/page_info/features.h"
Robbie Gibson686c56732021-10-04 17:11:45101#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Filipa Senrabe00cbe2024-04-19 14:21:33102#import "ios/chrome/browser/ui/settings/clear_browsing_data/features.h"
Rubin Deliallisi4170b1c2024-02-28 16:15:42103#import "ios/chrome/browser/ui/settings/google_services/features.h"
Ernesto Izquierdo Clua5e589f52023-07-06 20:52:15104#import "ios/chrome/browser/ui/settings/password/password_manager_ui_features.h"
Rubin Deliallisi072bc842023-10-19 12:00:41105#import "ios/chrome/browser/ui/settings/privacy/privacy_guide/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[] = {
Olivier Robinbb46d05d2024-06-25 17:56:35488 {kTabResumptionParameterName, kTabResumptionAllTabsParam},
489 {kTabResumptionThresholdParameterName, /* 24 hours */ "86400"}};
Ewann Pellea2bcb3a2023-08-28 13:53:00490
491const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
492 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
493 std::size(kTabResumptionMostRecentTabOnly), nullptr},
Ewann Pelleb08ee062023-10-16 10:04:48494 {"Most recent tab and last synced tab (12 hours threshold)",
495 kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr},
496 {"Most recent tab and last synced tab (24 hours threshold)",
497 kTabResumptionAllTabsOneDayThreshold,
Olivier Robin08bc56d02024-06-05 14:05:18498 std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}};
Ewann Pelle6eecb8f2023-06-23 14:31:37499
Olivier ROBINfd3887b72023-02-23 14:45:42500const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
501 {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
Olivier Robinfa8de5502023-06-21 19:53:44502const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateWithIncognito[] = {
503 {kIOSEditMenuPartialTranslateNoIncognitoParam, "false"}};
Olivier ROBINfd3887b72023-02-23 14:45:42504const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
505 {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
Olivier Robinfa8de5502023-06-21 19:53:44506 std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr},
507 {"Enable on incognito", kIOSEditMenuPartialTranslateWithIncognito,
508 std::size(kIOSEditMenuPartialTranslateWithIncognito), nullptr}};
Olivier ROBINfd3887b72023-02-23 14:45:42509
Olivier ROBIN2613bcd02023-04-20 10:00:47510const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearchWith[] = {
511 {kIOSEditMenuSearchWithTitleParamTitle,
512 kIOSEditMenuSearchWithTitleSearchWithParam}};
513const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearch[] = {
514 {kIOSEditMenuSearchWithTitleParamTitle,
515 kIOSEditMenuSearchWithTitleSearchParam}};
516const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleWebSearch[] = {
517 {kIOSEditMenuSearchWithTitleParamTitle,
518 kIOSEditMenuSearchWithTitleWebSearchParam}};
519const FeatureEntry::FeatureVariation kIOSEditMenuSearchWithVariations[] = {
520 {"Search with DSE", kIOSEditMenuSearchWithTitleSearchWith,
521 std::size(kIOSEditMenuSearchWithTitleSearchWith), nullptr},
522 {"Search", kIOSEditMenuSearchWithTitleSearch,
523 std::size(kIOSEditMenuSearchWithTitleSearch), nullptr},
524 {"Web Search", kIOSEditMenuSearchWithTitleWebSearch,
525 std::size(kIOSEditMenuSearchWithTitleWebSearch), nullptr},
526};
527
Christian Xu07d600192023-07-24 12:29:52528const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
529 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
530const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
531 {kBottomOmniboxDefaultSettingParam,
532 kBottomOmniboxDefaultSettingParamBottom}};
533const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
534 {{kBottomOmniboxDefaultSettingParam,
535 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
536const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
537 {
538 {"Top", kBottomOmniboxDefaultSettingTop,
539 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
540 {"Bottom", kBottomOmniboxDefaultSettingBottom,
541 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
542 {"Bottom for Safari Switcher",
543 kBottomOmniboxDefaultSettingSafariSwitcher,
544 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
545};
546
Christian Xue72882d2023-11-20 17:10:48547const FeatureEntry::FeatureParam kBottomOmniboxPromoForced[] = {
548 {kBottomOmniboxPromoParam, kBottomOmniboxPromoParamForced}};
549const FeatureEntry::FeatureVariation kBottomOmniboxPromoVariations[] = {
550 {"Forced", kBottomOmniboxPromoForced, std::size(kBottomOmniboxPromoForced),
551 nullptr},
552};
553
Cheick Cisse85457f22024-05-23 22:37:59554constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
555 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
556constexpr flags_ui::FeatureEntry::FeatureParam
557 kPriceInsightsGoodDealNowParam[] = {
558 {kLowPriceParam, kLowPriceParamGoodDealNow}};
559constexpr flags_ui::FeatureEntry::FeatureParam
560 kPriceInsightsSeePriceHistoryParam[] = {
561 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
562constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
563 {{"Price is low", kPriceInsightsPriceIsLowParam,
564 std::size(kPriceInsightsPriceIsLowParam), nullptr},
565 {"Good deal now", kPriceInsightsGoodDealNowParam,
566 std::size(kPriceInsightsGoodDealNowParam), nullptr},
567 {"See price history", kPriceInsightsSeePriceHistoryParam,
568 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
569
Christian Xua3667352023-11-21 16:54:09570const FeatureEntry::FeatureParam kBottomOmniboxPromoDefaultPositionTop[] = {
571 {kBottomOmniboxPromoDefaultPositionParam,
572 kBottomOmniboxPromoDefaultPositionParamTop}};
573const FeatureEntry::FeatureParam kBottomOmniboxPromoDefaultPositionBottom[] = {
574 {kBottomOmniboxPromoDefaultPositionParam,
575 kBottomOmniboxPromoDefaultPositionParamBottom}};
576const FeatureEntry::FeatureVariation
577 kBottomOmniboxPromoDefaultPositionVariations[] = {
578 {"Top", kBottomOmniboxPromoDefaultPositionTop,
579 std::size(kBottomOmniboxPromoDefaultPositionTop), nullptr},
580 {"Bottom", kBottomOmniboxPromoDefaultPositionBottom,
581 std::size(kBottomOmniboxPromoDefaultPositionBottom), nullptr},
582};
583
Christian Xu10b84d72024-04-09 17:12:33584const FeatureEntry::FeatureParam kRichAutocompletionImplementationLabel[] = {
585 {kRichAutocompletionParam, kRichAutocompletionParamLabel}};
Christian Xua17f9b72024-04-22 10:22:31586const FeatureEntry::FeatureParam
Christian Xu2cf421f2024-05-17 19:23:52587 kRichAutocompletionImplementationTextField3Chars[] = {
588 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52589 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
590 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52591const FeatureEntry::FeatureParam
592 kRichAutocompletionImplementationTextField4Chars[] = {
593 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52594 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
595 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu2cf421f2024-05-17 19:23:52596const FeatureEntry::FeatureParam
597 kRichAutocompletionImplementationNoAdditionalText3Chars[] = {
598 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52599 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
600 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52601const FeatureEntry::FeatureParam
602 kRichAutocompletionImplementationNoAdditionalText4Chars[] = {
603 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52604 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
605 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu10b84d72024-04-09 17:12:33606const FeatureEntry::FeatureVariation
607 kRichAutocompletionImplementationVariations[] = {
608 {"In Label", kRichAutocompletionImplementationLabel,
609 std::size(kRichAutocompletionImplementationLabel), nullptr},
Christian Xu2cf421f2024-05-17 19:23:52610 {"In TextField, 3 Min Chars",
611 kRichAutocompletionImplementationTextField3Chars,
612 std::size(kRichAutocompletionImplementationTextField3Chars), nullptr},
613 {"In TextField, 4 Min Chars",
614 kRichAutocompletionImplementationTextField4Chars,
615 std::size(kRichAutocompletionImplementationTextField4Chars), nullptr},
616 {"No Additional Text, 3 Min Chars",
617 kRichAutocompletionImplementationNoAdditionalText3Chars,
618 std::size(kRichAutocompletionImplementationNoAdditionalText3Chars),
619 nullptr},
620 {"No Additional Text, 4 Min Chars",
621 kRichAutocompletionImplementationNoAdditionalText4Chars,
622 std::size(kRichAutocompletionImplementationNoAdditionalText4Chars),
623 nullptr},
Christian Xu10b84d72024-04-09 17:12:33624};
625
Olivier ROBIN82b67002023-07-31 14:34:46626const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
627 {web::features::kOneTapForMapsConsentModeParamTitle,
628 web::features::kOneTapForMapsConsentModeDefaultParam}};
629const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
630 {web::features::kOneTapForMapsConsentModeParamTitle,
631 web::features::kOneTapForMapsConsentModeForcedParam}};
632const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
633 {web::features::kOneTapForMapsConsentModeParamTitle,
634 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31635const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
636 {web::features::kOneTapForMapsConsentModeParamTitle,
637 web::features::kOneTapForMapsConsentModeIPHParam}};
638const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
639 {web::features::kOneTapForMapsConsentModeParamTitle,
640 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46641const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
642 {"Consent Default", kOneTapForMapsConsentModeDefault,
643 std::size(kOneTapForMapsConsentModeDefault), nullptr},
644 {"Consent Forced", kOneTapForMapsConsentModeForced,
645 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31646 {"Consent IPH", kOneTapForMapsConsentModeIPH,
647 std::size(kOneTapForMapsConsentModeIPH), nullptr},
648 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
649 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46650 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
651 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
652};
653
Matt Jones79534392023-10-27 14:35:02654const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataDelivered[] =
655 {{commerce::kParcelTrackingTestDataParam,
656 commerce::kParcelTrackingTestDataParamDelivered}};
657const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataInProgress[] =
658 {{commerce::kParcelTrackingTestDataParam,
659 commerce::kParcelTrackingTestDataParamInProgress}};
660const flags_ui::FeatureEntry::FeatureParam
661 kParcelTrackingTestDataOutForDelivery[] = {
662 {commerce::kParcelTrackingTestDataParam,
663 commerce::kParcelTrackingTestDataParamOutForDelivery}};
664const flags_ui::FeatureEntry::FeatureVariation
665 kParcelTrackingTestDataVariations[] = {
666 {"Delivered", kParcelTrackingTestDataDelivered,
667 std::size(kParcelTrackingTestDataDelivered), nullptr},
668 {"In progress", kParcelTrackingTestDataInProgress,
669 std::size(kParcelTrackingTestDataInProgress), nullptr},
670 {"Out for delivery", kParcelTrackingTestDataOutForDelivery,
671 std::size(kParcelTrackingTestDataOutForDelivery), nullptr},
672};
673
Benjamin Williams1dc8f2342024-01-04 21:25:55674const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
675 {kIOSDockingPromoExperimentType, "0"}};
676const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
677 {kIOSDockingPromoExperimentType, "1"}};
678const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
679 {kIOSDockingPromoExperimentType, "2"}};
680
681const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
682 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
683 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
684 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
685 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
686 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
687 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
688
Ewann Pellec8634ab2024-02-23 16:50:35689const FeatureEntry::FeatureParam kModernTabStripNTBDynamic[] = {
690 {kModernTabStripParameterName, kModernTabStripNTBDynamicParam}};
691const FeatureEntry::FeatureParam kModernTabStripNTBStatic[] = {
692 {kModernTabStripParameterName, kModernTabStripNTBStaticParam}};
Gauthier Ambard8947beb2024-07-04 16:10:01693const FeatureEntry::FeatureParam kModernTabStripCloserNTB[] = {
694 {kModernTabStripV2ParameterName, kModernTabStripCloserNTBParam}};
695const FeatureEntry::FeatureParam kModernTabStripDarkerBackground[] = {
696 {kModernTabStripV2ParameterName, kModernTabStripDarkerBackgroundParam}};
697const FeatureEntry::FeatureParam kModernTabStripCloserNTBDarkerBackground[] = {
698 {kModernTabStripV2ParameterName,
699 kModernTabStripCloserNTBDarkerBackgroundParam}};
700const FeatureEntry::FeatureParam kModernTabStripNTBNoBackground[] = {
701 {kModernTabStripV2ParameterName, kModernTabStripNTBNoBackgroundParam}};
702const FeatureEntry::FeatureParam kModernTabStripBlackBackground[] = {
703 {kModernTabStripV2ParameterName, kModernTabStripBlackBackgroundParam}};
704const FeatureEntry::FeatureParam kModernTabStripBiggerCloseTarget[] = {
705 {kModernTabStripBiggerCloseTargetName, "true"},
706 {kModernTabStripV2ParameterName, kModernTabStripNTBNoBackgroundParam}};
Ewann Pellec8634ab2024-02-23 16:50:35707
708const FeatureEntry::FeatureVariation kModernTabStripVariations[] = {
709 {"New tab button dynamic", kModernTabStripNTBDynamic,
710 std::size(kModernTabStripNTBDynamic), nullptr},
711 {"New tab button static", kModernTabStripNTBStatic,
712 std::size(kModernTabStripNTBStatic), nullptr},
Gauthier Ambard8947beb2024-07-04 16:10:01713 {"Closer NTB", kModernTabStripCloserNTB,
714 std::size(kModernTabStripCloserNTB), nullptr},
715 {"Darker background", kModernTabStripDarkerBackground,
716 std::size(kModernTabStripDarkerBackground), nullptr},
717 {"Closer NTB + darker background", kModernTabStripCloserNTBDarkerBackground,
718 std::size(kModernTabStripCloserNTBDarkerBackground), nullptr},
719 {"NTB no background", kModernTabStripNTBNoBackground,
720 std::size(kModernTabStripNTBNoBackground), nullptr},
721 {"Black background", kModernTabStripBlackBackground,
722 std::size(kModernTabStripBlackBackground), nullptr},
723 {"Bigger close target", kModernTabStripBiggerCloseTarget,
724 std::size(kModernTabStripBiggerCloseTarget), nullptr},
725
Ewann Pellec8634ab2024-02-23 16:50:35726};
727
Olivier ROBINcb76f4fe2024-06-05 16:11:42728const FeatureEntry::FeatureVariation
729 kImageServiceOptimizationGuideSalientImagesVariations[] = {
730 {"High Performance Canonicalization", nullptr, 0, "3362133"},
731};
732
Olivier Robinf8374f12024-06-05 19:00:04733const FeatureEntry::FeatureParam kTabResumption15DisableSalientImages[] = {
734 {kTR15SalientImageParam, "false"}};
735const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] =
736 {{kTR15SeeMoreButtonParam, "false"}};
737const FeatureEntry::FeatureParam kTabResumption15UIChangeOnlyImages[] = {
738 {kTR15SeeMoreButtonParam, "false"},
739 {kTR15SalientImageParam, "false"}};
740
741const FeatureEntry::FeatureVariation kTabResumption15Variations[] = {
742 {"No Salient Image", kTabResumption15DisableSalientImages,
743 std::size(kTabResumption15DisableSalientImages), nullptr},
744 {"No See More Button", kTabResumption15DisableSeeMoreButtonImages,
745 std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr},
746 {"UI changes only", kTabResumption15UIChangeOnlyImages,
747 std::size(kTabResumption15UIChangeOnlyImages), nullptr},
748};
Charles Yangf8e7adf2024-06-11 00:17:00749// Uses int values from Lens filters ablation mode enum.
750const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
751 {kLensFiltersAblationMode, "0"}};
752const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
753 {kLensFiltersAblationMode, "1"}};
754const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
755 {kLensFiltersAblationMode, "2"}};
756const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
757 {kLensFiltersAblationMode, "3"}};
758
759const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
760 {"(Disabled)", kLensFiltersAblationModeDisabled,
761 std::size(kLensFiltersAblationModeDisabled), nullptr},
762 {"(Post Capture)", kLensFiltersAblationModePostCapture,
763 std::size(kLensFiltersAblationModePostCapture), nullptr},
764 {"(LVF)", kLensFiltersAblationModeLVF,
765 std::size(kLensFiltersAblationModeLVF), nullptr},
766 {"(Always)", kLensFiltersAblationModeAlways,
767 std::size(kLensFiltersAblationModeAlways), nullptr}};
768
769// Uses int values from Lens translate toggle mode enum.
770const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
771 {kLensTranslateToggleMode, "0"}};
772const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
773 {kLensTranslateToggleMode, "1"}};
774const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
775 {kLensTranslateToggleMode, "2"}};
776const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
777 {kLensTranslateToggleMode, "3"}};
778
779const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
780 {"(Disabled)", kLensTranslateToggleModeDisabled,
781 std::size(kLensTranslateToggleModeDisabled), nullptr},
782 {"(Post Capture)", kLensTranslateToggleModePostCapture,
783 std::size(kLensTranslateToggleModePostCapture), nullptr},
784 {"(LVF)", kLensTranslateToggleModeLVF,
785 std::size(kLensTranslateToggleModeLVF), nullptr},
786 {"(Always)", kLensTranslateToggleModeAlways,
787 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04788
Khalid Peer7cf75a22024-06-13 17:25:49789const FeatureEntry::FeatureParam
790 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
791 {"MlUrlPiecewiseMappedSearchBlending", "true"},
792 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
793 "0,550;0.018,1300;0.14,1398;1,1422"},
794 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
795 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
796const FeatureEntry::FeatureParam
797 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy50[] = {
798 {"MlUrlPiecewiseMappedSearchBlending", "true"},
799 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
800 "0,550;0.018,1250;0.14,1348;1,1422"},
801 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
802 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
803const FeatureEntry::FeatureParam
804 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy100[] = {
805 {"MlUrlPiecewiseMappedSearchBlending", "true"},
806 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
807 "0,550;0.018,1200;0.14,1298;1,1422"},
808 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1300"},
809 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
810const FeatureEntry::FeatureParam
811 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy150[] = {
812 {"MlUrlPiecewiseMappedSearchBlending", "true"},
813 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
814 "0,550;0.018,1150;0.14,1248;1,1422"},
815 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1250"},
816 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer4501c1f2024-06-27 16:12:04817const FeatureEntry::FeatureParam
818 kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = {
819 {"MlUrlPiecewiseMappedSearchBlending", "true"},
820 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
821 "0,600;0.0177,900;0.052,950;0.087,1300;1,1500"},
822 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"},
823 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer7cf75a22024-06-13 17:25:49824
825const FeatureEntry::FeatureVariation
826 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
827 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
828 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
829 {"adjusted by 50", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy50,
830 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy50), nullptr},
831 {"adjusted by 100", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy100,
832 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy100), nullptr},
833 {"adjusted by 150", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy150,
834 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy150), nullptr},
Khalid Peer4501c1f2024-06-27 16:12:04835 {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping,
836 std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr},
Khalid Peer7cf75a22024-06-13 17:25:49837};
838
839const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
840 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
841 {"MlUrlScoringShortcutDocumentSignals", "true"},
842};
843const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
844 {
845 {"MlUrlScoringUnlimitedNumCandidates", "true"},
846 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
847 {"MlUrlScoringShortcutDocumentSignals", "true"},
848};
849// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
850// Document(512), and History Fuzzy(65536) providers max matches to 10.
851const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
852 {
853 {"MlUrlScoringMaxMatchesByProvider",
854 "1:10,4:10,8:10,64:10,512:10,65536:10"},
855 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
856 {"MlUrlScoringShortcutDocumentSignals", "true"},
857};
858
859const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
860 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
861 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
862 {"unlimited suggestion candidates",
863 kOmniboxMlUrlScoringUnlimitedNumCandidates,
864 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
865 {"Increase provider max limit to 10",
866 kOmniboxMlUrlScoringMaxMatchesByProvider10,
867 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
868};
869
870const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
871 {"MlUrlSearchBlending_StableSearchBlending", "true"},
872 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
873};
874const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
875 {
876 {"MlUrlSearchBlending_StableSearchBlending", "false"},
877 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
878 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
879 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
880 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
881};
882const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
883 {"MlUrlSearchBlending_StableSearchBlending", "false"},
884 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
885};
886const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
887 {"MlUrlSearchBlending_StableSearchBlending", "false"},
888 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
889 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
890 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
891 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
892};
893
894const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
895 {"Stable", kMlUrlSearchBlendingStable,
896 std::size(kMlUrlSearchBlendingStable), nullptr},
897 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
898 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
899 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
900 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
901 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
902 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
903};
904
Khalid Peer4501c1f2024-06-27 16:12:04905const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = {
906 {"Small model", nullptr, 0, "3379590"},
907 {"Full model", nullptr, 0, "3380197"},
908};
909
Elmehdi Rahmaouif5b76462024-06-24 10:44:46910const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = {
911 {kSaveToPhotosContextMenuImprovementParam, "true"},
912 {kSaveToPhotosTitleImprovementParam, "false"},
913 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
914};
915const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = {
916 {kSaveToPhotosContextMenuImprovementParam, "false"},
917 {kSaveToPhotosTitleImprovementParam, "true"},
918 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
919};
920const FeatureEntry::FeatureParam
921 kSaveToPhotosAccountDefaultChoiceImprovement[] = {
922 {kSaveToPhotosContextMenuImprovementParam, "false"},
923 {kSaveToPhotosTitleImprovementParam, "false"},
924 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"},
925};
926
927const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = {
928 {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement,
929 std::size(kSaveToPhotosContextMenuImprovement), nullptr},
930 {"With Title improvement Only", kSaveToPhotosTitleImprovement,
931 std::size(kSaveToPhotosTitleImprovement), nullptr},
932 {"With Account Default choice improvement Only",
933 kSaveToPhotosAccountDefaultChoiceImprovement,
934 std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr},
935};
936
Cooper Knaak1e026562017-07-26 05:22:28937// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21938// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28939// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
940// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21941// macro for this type supplying the command line to the macro.
942// . MULTI_VALUE: a list of choices, the first of which should correspond to a
943// deactivated state for this lab (i.e. no command line option). To specify
944// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
945// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28946// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
947// either enabled, disabled, or uses the default value of the associated
948// base::Feature instance. To specify this type of entry use the macro
949// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
950// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
951// base::Feature instance. Choices corresponding to the default state, a
952// universally enabled state, and a universally disabled state are
953// automatically included. To specify this type of entry use the macro
954// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
955// the array of choices.
956//
sdefresne14900ee2015-11-27 14:43:21957// See the documentation of FeatureEntry for details on the fields.
958//
959// When adding a new choice, add it to the end of the list.
960const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28961 {"in-product-help-demo-mode-choice",
962 flag_descriptions::kInProductHelpDemoModeName,
963 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
964 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23965 feature_engagement::kIPHDemoMode,
966 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09967 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22968 {"enable-autofill-credit-card-upload",
969 flag_descriptions::kAutofillCreditCardUploadName,
970 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24971 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23972 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
973 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
974 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51975 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:23976 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
977 {"wallet-service-use-sandbox",
978 flag_descriptions::kWalletServiceUseSandboxName,
979 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
980 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
981 autofill::switches::kWalletServiceUseSandbox,
982 "1",
983 autofill::switches::kWalletServiceUseSandbox,
984 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:59985 {"show-autofill-type-predictions",
986 flag_descriptions::kShowAutofillTypePredictionsName,
987 flag_descriptions::kShowAutofillTypePredictionsDescription,
988 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:50989 FEATURE_VALUE_TYPE(
990 autofill::features::test::kAutofillShowTypePredictions)},
Benjamin Williamsdf18e7e2022-10-03 18:46:05991 {"fullscreen-promos-manager-skip-internal-limits",
992 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
993 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
994 flags_ui::kOsIos,
995 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:14996 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:53997 flag_descriptions::kFullscreenSmoothScrollingName,
998 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:19999 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:061000 {"webpage-default-zoom-from-dynamic-type",
1001 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
1002 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
1003 flags_ui::kOsIos,
1004 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:561005 {"webpage-alternative-text-zoom",
1006 flag_descriptions::kWebPageAlternativeTextZoomName,
1007 flag_descriptions::kWebPageAlternativeTextZoomDescription,
1008 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:341009 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
1010 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
1011 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Stepan Khapugincc4e9842019-01-23 13:38:131012 {"omnibox-ui-max-autocomplete-matches",
1013 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
1014 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
1015 flags_ui::kOsIos,
1016 FEATURE_WITH_PARAMS_VALUE_TYPE(
1017 omnibox::kUIExperimentMaxAutocompleteMatches,
1018 kOmniboxUIMaxAutocompleteMatchesVariations,
1019 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:351020 {"omnibox-local-history-zero-suggest-beyond-ntp",
1021 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
1022 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
1023 flags_ui::kOsIos,
1024 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:541025 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
1026 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
1027 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
1028 kOmniboxMaxZPSMatchesVariations,
1029 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:481030 {"force-startup-signin-promo",
1031 flag_descriptions::kForceStartupSigninPromoName,
1032 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:291033 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:411034 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
1035 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
1036 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:131037#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:451038 {"screen-time-integration-ios",
1039 flag_descriptions::kScreenTimeIntegrationName,
1040 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
1041 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:131042#endif
Nazerke3e993f72020-09-21 13:00:061043 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
1044 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
Ewann Pellec8634ab2024-02-23 16:50:351045 FEATURE_WITH_PARAMS_VALUE_TYPE(kModernTabStrip,
1046 kModernTabStripVariations,
1047 "ModernTabStrip")},
Cheick Cisse76ade3d2020-12-16 00:15:111048 {"ios-shared-highlighting-color-change",
1049 flag_descriptions::kIOSSharedHighlightingColorChangeName,
1050 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:071051 flags_ui::kOsIos,
1052 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:341053 {"ios-shared-highlighting-v2",
1054 flag_descriptions::kIOSSharedHighlightingV2Name,
1055 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
1056 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Scott Yoderc0cd99d2024-01-10 19:54:511057 {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName,
1058 flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos,
Scott Yoderaf2bdf32024-01-30 20:26:151059 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications,
1060 kIOSTipsNotificationsVariations,
1061 "IOSTipsNotifications")},
gogerald0ff29e52021-02-03 18:56:191062 {"start-surface", flag_descriptions::kStartSurfaceName,
1063 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:231064 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
1065 kStartSurfaceVariations,
1066 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:341067 {"wait-threshold-seconds-for-capabilities-api",
1068 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1069 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1070 flags_ui::kOsIos,
1071 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061072 {"content-notification-experiment",
1073 flag_descriptions::kContentNotificationExperimentName,
1074 flag_descriptions::kContentNotificationExperimentDescription,
1075 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251076 {"content-notification-provisional-ignore-conditions",
1077 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1078 flag_descriptions::
1079 kContentNotificationProvisionalIgnoreConditionsDescription,
1080 flags_ui::kOsIos,
1081 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241082 {"content-push-notifications",
1083 flag_descriptions::kContentPushNotificationsName,
1084 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521085 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1086 kContentPushNotificationsVariations,
1087 "ContentPushNotifications")},
Robbie Gibsoned7f6ffb2023-05-15 16:03:571088 {"overflow-menu-customization",
1089 flag_descriptions::kOverflowMenuCustomizationName,
1090 flag_descriptions::kOverflowMenuCustomizationDescription, flags_ui::kOsIos,
1091 FEATURE_VALUE_TYPE(kOverflowMenuCustomization)},
Jason Hu67cfb0f2022-11-14 20:21:441092 {"enable-lens-in-omnibox-copied-image",
1093 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1094 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1095 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Stepan Khapugina6011f82024-06-07 10:35:551096 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1097 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1098 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031099 {"enable-disco-feed-endpoint",
1100 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1101 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1102 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111103 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Mohammad Refaatab6bee62022-05-16 16:31:151104 {"enable-discover-feed-top-sync-promo",
1105 flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
1106 flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
1107 flags_ui::kOsIos,
1108 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
1109 kDiscoverFeedTopSyncPromoVariations,
1110 "EnableDiscoverFeedTopSyncPromo")},
adamta4a6f2fd22023-02-13 17:37:141111 {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
1112 flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
1113 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
1114 kFeedHeaderSettingsVariations,
1115 "FeedHeaderSettings")},
Tommy Martino7393d762021-10-12 17:59:281116 {"shared-highlighting-amp",
1117 flag_descriptions::kIOSSharedHighlightingAmpName,
1118 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1119 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:281120 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:421121 commerce::flag_descriptions::kCommercePriceTrackingName,
1122 commerce::flag_descriptions::kCommercePriceTrackingDescription,
1123 flags_ui::kOsIos,
1124 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
1125 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:151126 "CommercePriceTracking")},
Matt Jones2e47b9692024-02-23 21:56:431127 {"track-by-default-mobile",
1128 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1129 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1130 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061131 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1132 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1133 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541134 {"ntp-view-hierarchy-repair",
1135 flag_descriptions::kNTPViewHierarchyRepairName,
1136 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201137 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Cheick Cisse39b6a182024-05-29 15:13:441138 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1139 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1140 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381141 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1142 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591143 flags_ui::kOsIos,
1144 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1145 kPriceInsightsVariations,
1146 "PriceInsightsIos")},
1147 {"price-insights-high-price-ios",
1148 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1149 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1150 flags_ui::kOsIos,
1151 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Vishwas Uppoor89303a92022-08-03 00:56:261152 {"autofill-enable-card-product-name",
1153 flag_descriptions::kAutofillEnableCardProductNameName,
1154 flag_descriptions::kAutofillEnableCardProductNameDescription,
1155 flags_ui::kOsIos,
1156 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Raj Tb95d813542022-11-16 21:27:521157 {"enable-download-service-foreground-session",
1158 flag_descriptions::kDownloadServiceForegroundSessionName,
1159 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1160 flags_ui::kOsIos,
1161 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231162 {"enable-tflite-language-detection",
1163 flag_descriptions::kTFLiteLanguageDetectionName,
1164 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1165 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201166 {"optimization-guide-debug-logs",
1167 flag_descriptions::kOptimizationGuideDebugLogsName,
1168 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1169 flags_ui::kOsIos,
1170 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551171 {"optimization-guide-push-notifications",
1172 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1173 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1174 flags_ui::kOsIos,
1175 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
Benjamin Williams11f39912023-04-13 19:00:251176 {"sync-segments-data", flag_descriptions::kSyncSegmentsDataName,
1177 flag_descriptions::kSyncSegmentsDataDescription, flags_ui::kOsIos,
1178 FEATURE_VALUE_TYPE(history::kSyncSegmentsData)},
David Jeanad303a92023-07-31 16:58:111179 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1180 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1181 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeanea886ba2024-01-17 11:50:221182 {"intents-on-viewport", flag_descriptions::kEnableViewportIntentsName,
1183 flag_descriptions::kEnableViewportIntentsDescription, flags_ui::kOsIos,
1184 FEATURE_VALUE_TYPE(web::features::kEnableViewportIntents)},
David Jeandcc3e202024-05-22 08:36:331185 {"improve-parcel-detection",
1186 flag_descriptions::kEnableNewParcelTrackingNumberDetectionName,
1187 flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription,
1188 flags_ui::kOsIos,
1189 FEATURE_VALUE_TYPE(
1190 web::features::kEnableNewParcelTrackingNumberDetection)},
David Jeanf361ae9d2024-04-09 08:19:471191 {"enable-expkit-text-classifier-date",
1192 flag_descriptions::kEnableExpKitTextClassifierDateName,
1193 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1194 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1195 {"enable-expkit-text-classifier-address",
1196 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1197 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151198 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471199 FEATURE_WITH_PARAMS_VALUE_TYPE(
1200 kEnableExpKitTextClassifierAddress,
1201 kEnableExpKitTextClassifierAddressVariations,
1202 "ExpKitTextClassifierAddress")},
1203 {"enable-expkit-text-classifier-phonenumber",
1204 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1205 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1206 flags_ui::kOsIos,
1207 FEATURE_WITH_PARAMS_VALUE_TYPE(
1208 kEnableExpKitTextClassifierPhoneNumber,
1209 kEnableExpKitTextClassifierPhoneNumberVariations,
1210 "ExpKitTextClassifierPhoneNumber")},
1211 {"enable-expkit-text-classifier-email",
1212 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1213 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1214 flags_ui::kOsIos,
1215 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1216 kEnableExpKitTextClassifierEmailVariations,
1217 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331218 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1219 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461220 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1221 kOneTapForMapsWithVariations,
1222 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251223 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1224 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1225 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301226 {"autofill-enable-ranking-formula-address-profiles",
1227 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1228 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1229 flags_ui::kOsIos,
1230 FEATURE_VALUE_TYPE(
1231 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391232 {"autofill-enable-ranking-formula-credit-cards",
1233 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1234 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1235 flags_ui::kOsIos,
1236 FEATURE_VALUE_TYPE(
1237 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021238 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1239 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1240 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521241 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1242 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261243 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1244 kMagicStackVariations,
1245 flag_descriptions::kMagicStackName)},
Alexis Hetuec9d70c2023-11-13 16:27:311246 {"ios-keyboard-accessory-upgrade",
1247 flag_descriptions::kIOSKeyboardAccessoryUpgradeName,
1248 flag_descriptions::kIOSKeyboardAccessoryUpgradeDescription,
1249 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgrade)},
Scott Yoder7b9e51f2023-09-13 23:47:261250 {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName,
1251 flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos,
1252 FEATURE_VALUE_TYPE(kIOSLargeFakebox)},
Chris Lub0bad572023-08-07 18:13:291253 {"ios-magic-stack-segmentation-ranking",
1254 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1255 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1256 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301257 FEATURE_WITH_PARAMS_VALUE_TYPE(
1258 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1259 kSegmentationPlatformIosModuleRankerVariations,
1260 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321261 {"ios-magic-stack-segmentation-ranking-caching",
1262 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1263 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1264 flags_ui::kOsIos,
1265 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111266 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1267 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1268 flag_descriptions::
1269 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1270 flags_ui::kOsIos,
1271 FEATURE_VALUE_TYPE(
1272 segmentation_platform::features::
1273 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Olivier Robin058c1fad2022-05-31 18:24:061274 {"default-browser-intents-show-settings",
1275 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1276 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1277 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Alexis Hetu5e726602023-12-15 15:18:281278 {"ios-password-bottom-sheet-autofocus",
1279 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1280 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1281 flags_ui::kOsIos,
1282 FEATURE_VALUE_TYPE(
1283 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Alexis Hetu0677e182024-04-10 16:07:371284 {"sync-webauthn-credentials",
1285 flag_descriptions::kSyncWebauthnCredentialsName,
1286 flag_descriptions::kSyncWebauthnCredentialsDescription, flags_ui::kOsIos,
1287 FEATURE_VALUE_TYPE(syncer::kSyncWebauthnCredentials)},
Moe Ahmadi098519d82022-07-27 18:34:241288 {"omnibox-zero-suggest-prefetching",
1289 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1290 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1291 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451292 {"omnibox-zero-suggest-prefetching-on-srp",
1293 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1294 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1295 flags_ui::kOsIos,
1296 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1297 {"omnibox-zero-suggest-prefetching-on-web",
1298 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1299 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1300 flags_ui::kOsIos,
1301 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471302 {"omnibox-zero-suggest-in-memory-caching",
1303 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1304 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1305 flags_ui::kOsIos,
1306 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351307 {"omnibox-on-device-tail-suggestions",
1308 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1309 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1310 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361311 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1312 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1313 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1314 kOmniboxMaxURLMatchesVariations,
1315 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201316 {"omnibox-most-visited-tiles-horizontal-render-group",
1317 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1318 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1319 flags_ui::kOsIos,
1320 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061321 {"metrickit-non-crash-reports",
1322 flag_descriptions::kMetrickitNonCrashReportName,
1323 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1324 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Nakul Vaidya13ca2042022-07-27 01:59:551325 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1326 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1327 flag_descriptions::
1328 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1329 flags_ui::kOsIos,
1330 FEATURE_VALUE_TYPE(
1331 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Gayane Petrosyan5960a172023-06-19 15:40:171332 {"default-browser-promo-trigger-criteria-experiment",
1333 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1334 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1335 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211336 FEATURE_VALUE_TYPE(
1337 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyan6fb79752023-09-26 15:39:441338 {"default-browser-video-in-settings",
Gayane Petrosyan01c84952023-10-02 18:28:211339 flag_descriptions::kDefaultBrowserVideoInSettingsName,
1340 flag_descriptions::kDefaultBrowserVideoInSettingsDescription,
1341 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserVideoInSettings)},
Ed Chin91e44992022-07-27 13:42:341342#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1343 {"feed-background-refresh-ios",
1344 flag_descriptions::kFeedBackgroundRefreshName,
1345 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1346 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1347 kFeedBackgroundRefreshVariations,
1348 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261349#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Olivier ROBINf05518782022-09-14 23:55:501350 {"enable-tflite-language-detection-ignore",
1351 flag_descriptions::kTFLiteLanguageDetectionIgnoreName,
1352 flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription,
1353 flags_ui::kOsIos,
1354 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)},
Petro Akzhygitov2e2322e2023-04-25 16:26:571355 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1356 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1357 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251358 {"iph-price-notifications-while-browsing",
1359 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1360 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1361 flags_ui::kOsIos,
1362 FEATURE_VALUE_TYPE(
1363 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391364 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1365 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1366 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481367 {"local-pdp-detection",
1368 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1369 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1370 flags_ui::kOsIos,
1371 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Louis Romero93e9b50a2023-01-26 01:46:121372 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1373 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1374 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1375 kTabInactivityThresholdVariations,
1376 "TabInactivityThreshold")},
Joemer Ramos0fccdf62023-07-28 17:17:181377 {"enable-friendlier-safe-browsing-settings-enhanced-protection",
1378 flag_descriptions::
1379 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionName,
1380 flag_descriptions::
1381 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionDescription,
1382 flags_ui::kOsIos,
1383 FEATURE_VALUE_TYPE(
1384 safe_browsing::kFriendlierSafeBrowsingSettingsEnhancedProtection)},
Awad Osmanf1a89122023-07-27 19:59:361385 {"enable-friendlier-safe-browsing-settings-standard-protection",
1386 flag_descriptions::
1387 kEnableFriendlierSafeBrowsingSettingsStandardProtectionName,
1388 flag_descriptions::
1389 kEnableFriendlierSafeBrowsingSettingsStandardProtectionDescription,
Joemer Ramos961389e52023-07-20 20:22:521390 flags_ui::kOsIos,
Awad Osmanf1a89122023-07-27 19:59:361391 FEATURE_VALUE_TYPE(
1392 safe_browsing::kFriendlierSafeBrowsingSettingsStandardProtection)},
Olivier ROBIN52eddbf32023-02-15 10:33:421393 {"ios-edit-menu-partial-translate",
1394 flag_descriptions::kIOSEditMenuPartialTranslateName,
1395 flag_descriptions::kIOSEditMenuPartialTranslateDescription,
Olivier ROBINfd3887b72023-02-23 14:45:421396 flags_ui::kOsIos,
1397 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate,
1398 kIOSEditMenuPartialTranslateVariations,
1399 "IOSEditMenuPartialTranslate")},
Ali Juma57849c42023-02-21 22:53:431400 {"notification-settings-menu-item",
1401 flag_descriptions::kNotificationSettingsMenuItemName,
1402 flag_descriptions::kNotificationSettingsMenuItemDescription,
1403 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
Yann Dagob206dca42023-10-30 17:24:481404 {"enable-policy-test-page-ios",
1405 flag_descriptions::kEnablePolicyTestPageName,
1406 flag_descriptions::kEnablePolicyTestPageDescription, flags_ui::kOsIos,
1407 FEATURE_VALUE_TYPE(policy::features::kEnablePolicyTestPage)},
kalettucefb09e402023-02-27 18:35:531408 {"web-feed-feedback-reroute",
1409 flag_descriptions::kWebFeedFeedbackRerouteName,
1410 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1411 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Jason Huac58fea2023-02-28 20:25:551412 {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName,
1413 flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos,
1414 FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)},
Tina Wangd3f6f192023-04-05 05:22:431415 {"enable-follow-IPH-exp-params",
1416 flag_descriptions::kEnableFollowIPHExpParamsName,
1417 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1418 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251419 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1420 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1421 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Marc Treibe9f79ea72023-03-14 10:25:421422 {"enable-preferences-account-storage",
1423 flag_descriptions::kEnablePreferencesAccountStorageName,
1424 flag_descriptions::kEnablePreferencesAccountStorageDescription,
1425 flags_ui::kOsIos,
1426 FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)},
Olivier ROBINa229d2132023-03-21 12:44:201427 {"ios-browser-edit-menu-metrics",
1428 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1429 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1430 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551431 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1432 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1433 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1434 kIOSDockingPromoVariations,
1435 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241436 {"omnibox-grouping-framework-non-zps",
1437 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1438 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1439 flags_ui::kOsIos,
1440 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Sylvain Defresne935e6f72023-04-04 09:54:471441 {"enable-session-serialization-optimizations",
1442 flag_descriptions::kEnableSessionSerializationOptimizationsName,
1443 flag_descriptions::kEnableSessionSerializationOptimizationsDescription,
1444 flags_ui::kOsIos,
1445 FEATURE_VALUE_TYPE(
Sylvain Defresneb81065002024-01-23 10:51:221446 session::features::kEnableSessionSerializationOptimizations)},
Robbie Gibson0ea280602023-04-12 01:02:391447 {"only-access-clipboard-async",
1448 flag_descriptions::kOnlyAccessClipboardAsyncName,
1449 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1450 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Olivier ROBIN2613bcd02023-04-20 10:00:471451 {"ios-edit-menu-search-with", flag_descriptions::kIOSEditMenuSearchWithName,
1452 flag_descriptions::kIOSEditMenuSearchWithDescription, flags_ui::kOsIos,
1453 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuSearchWith,
1454 kIOSEditMenuSearchWithVariations,
1455 "IOSEditMenuSearchWith")},
1456 {"ios-edit-menu-hide-search-web",
1457 flag_descriptions::kIOSEditMenuHideSearchWebName,
1458 flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos,
1459 FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)},
Stephen McGruer9afca1a2023-05-18 20:55:171460 {"autofill-enable-card-art-image",
1461 flag_descriptions::kAutofillEnableCardArtImageName,
1462 flag_descriptions::kAutofillEnableCardArtImageDescription,
1463 flags_ui::kOsIos,
1464 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)},
Tina Wangcda2c902023-05-25 17:39:451465 {"enable-signed-out-view-demotion",
1466 flag_descriptions::kEnableSignedOutViewDemotionName,
1467 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1468 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Joemer Ramos7110ca92024-01-18 19:11:401469 {"enable-startup-latency-improvements",
1470 flag_descriptions::kEnableStartupImprovementsName,
1471 flag_descriptions::kEnableStartupImprovementsDescription, flags_ui::kOsIos,
1472 FEATURE_VALUE_TYPE(kEnableStartupImprovements)},
Stephen McGruerb4c8f7f2023-06-01 21:28:251473 {"autofill-use-two-dots-for-last-four-digits",
1474 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsName,
1475 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsDescription,
1476 flags_ui::kOsIos,
1477 FEATURE_VALUE_TYPE(
1478 autofill::features::kAutofillUseTwoDotsForLastFourDigits)},
sebsg977f9aa2023-06-08 18:48:241479 {"autofill-disable-profile-updates",
1480 flag_descriptions::kAutofillDisableProfileUpdatesName,
1481 flag_descriptions::kAutofillDisableProfileUpdatesDescription,
1482 flags_ui::kOsIos,
1483 FEATURE_VALUE_TYPE(
1484 autofill::features::test::kAutofillDisableProfileUpdates)},
1485 {"autofill-disable-silent-profile-updates",
1486 flag_descriptions::kAutofillDisableSilentProfileUpdatesName,
1487 flag_descriptions::kAutofillDisableSilentProfileUpdatesDescription,
1488 flags_ui::kOsIos,
1489 FEATURE_VALUE_TYPE(
1490 autofill::features::test::kAutofillDisableSilentProfileUpdates)},
1491 {"autofill-enable-admin-level-2",
1492 flag_descriptions::kAutofillEnableSupportForAdminLevel2Name,
1493 flag_descriptions::kAutofillEnableSupportForAdminLevel2Description,
1494 flags_ui::kOsIos,
1495 FEATURE_VALUE_TYPE(
1496 autofill::features::kAutofillEnableSupportForAdminLevel2)},
1497 {"autofill-enable-between-streets",
1498 flag_descriptions::kAutofillEnableSupportForBetweenStreetsName,
1499 flag_descriptions::kAutofillEnableSupportForBetweenStreetsDescription,
1500 flags_ui::kOsIos,
1501 FEATURE_VALUE_TYPE(
1502 autofill::features::kAutofillEnableSupportForBetweenStreets)},
1503 {"autofill-enable-landmark",
1504 flag_descriptions::kAutofillEnableSupportForLandmarkName,
1505 flag_descriptions::kAutofillEnableSupportForLandmarkDescription,
1506 flags_ui::kOsIos,
1507 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableSupportForLandmark)},
Stepan Khapugin72c74292024-06-19 16:48:331508 {"spotlight-never-retain-index",
1509 flag_descriptions::kSpotlightNeverRetainIndexName,
1510 flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos,
1511 FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)},
Ewann Pelle6eecb8f2023-06-23 14:31:371512 {"tab-pickup-threshold", flag_descriptions::kTabPickupThresholdName,
1513 flag_descriptions::kTabPickupThresholdDescription, flags_ui::kOsIos,
1514 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabPickupThreshold,
1515 kTabPickupThresholdVariations,
1516 "TabPickupThreshold")},
Huiting Yubc1bf4d2023-06-26 18:15:321517 {"ios-iph-for-safari-switcher",
1518 flag_descriptions::kIPHForSafariSwitcherName,
1519 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1520 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071521 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1522 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1523 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011524 {"tab-resumption", flag_descriptions::kTabResumptionName,
1525 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001526 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1527 kTabResumptionVariations,
1528 "TabResumption")},
Christian Xu07d600192023-07-24 12:29:521529 {"bottom-omnibox-default-setting",
1530 flag_descriptions::kBottomOmniboxDefaultSettingName,
1531 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1532 flags_ui::kOsIos,
1533 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1534 kBottomOmniboxDefaultSettingVariations,
1535 "BottomOmniboxDefaultSetting")},
Ewann Pelle422c0942023-08-01 12:28:131536 {"tab-pickup-minimum-delay", flag_descriptions::kTabPickupMinimumDelayName,
1537 flag_descriptions::kTabPickupMinimumDelayDescription, flags_ui::kOsIos,
1538 FEATURE_VALUE_TYPE(kTabPickupMinimumDelay)},
Ernesto Izquierdo Clua6a00cb9d2023-08-11 15:12:501539 {"ios-password-auth-on-entry-v2",
1540 flag_descriptions::kIOSPasswordAuthOnEntryV2Name,
1541 flag_descriptions::kIOSPasswordAuthOnEntryV2Description, flags_ui::kOsIos,
1542 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntryV2)},
Quentin Pubert476786e82023-08-16 12:45:281543 {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName,
1544 flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos,
1545 FEATURE_VALUE_TYPE(kIOSSaveToPhotos)},
Elmehdi Rahmaouif5b76462024-06-24 10:44:461546 {"enable-save-to-photos-improvements",
1547 flag_descriptions::kIOSSaveToPhotosImprovementsName,
1548 flag_descriptions::kIOSSaveToPhotosImprovementsDescription,
1549 flags_ui::kOsIos,
1550 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements,
1551 kSaveToPhotosImprovementsVariations,
1552 "IOSSaveToPhotosImprovements")},
Matt Jones79534392023-10-27 14:35:021553 {"parcel-tracking-test-data",
1554 commerce::flag_descriptions::kParcelTrackingTestDataName,
1555 commerce::flag_descriptions::kParcelTrackingTestDataDescription,
1556 flags_ui::kOsIos,
1557 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kParcelTrackingTestData,
1558 kParcelTrackingTestDataVariations,
1559 "ParcelTrackingTestData")},
Justin Wells37e32c4d2023-09-06 22:11:111560 {"autofill-enable-merchant-domain-in-unmask-card-request",
1561 flag_descriptions::kAutofillEnableMerchantDomainInUnmaskCardRequestName,
1562 flag_descriptions::
1563 kAutofillEnableMerchantDomainInUnmaskCardRequestDescription,
1564 flags_ui::kOsIos,
1565 FEATURE_VALUE_TYPE(
1566 autofill::features::kAutofillEnableMerchantDomainInUnmaskCardRequest)},
Christian Xu90e952f2023-09-13 09:05:281567 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1568 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1569 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Siyu263cf562023-09-25 20:59:571570 {"autofill-enable-virtual-cards",
1571 flag_descriptions::kAutofillEnableVirtualCardsName,
1572 flag_descriptions::kAutofillEnableVirtualCardsDescription,
1573 flags_ui::kOsIos,
1574 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVirtualCards)},
adamta80ec3732023-10-11 16:04:021575 {"enable-feed-containment", flag_descriptions::kEnableFeedContainmentName,
1576 flag_descriptions::kEnableFeedContainmentDescription, flags_ui::kOsIos,
1577 FEATURE_VALUE_TYPE(kEnableFeedContainment)},
Rubin Deliallisi072bc842023-10-19 12:00:411578 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1579 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1580 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Ewann Pelle54e51bd62023-10-24 17:28:121581 {"sync-session-on-visibility-changed",
1582 flag_descriptions::kSyncSessionOnVisibilityChangedName,
1583 flag_descriptions::kSyncSessionOnVisibilityChangedDescription,
1584 flags_ui::kOsIos,
1585 FEATURE_VALUE_TYPE(syncer::kSyncSessionOnVisibilityChanged)},
Quentin Pubertf2d75c32023-10-25 12:17:451586 {"enable-save-to-drive", flag_descriptions::kIOSSaveToDriveName,
1587 flag_descriptions::kIOSSaveToDriveDescription, flags_ui::kOsIos,
1588 FEATURE_VALUE_TYPE(kIOSSaveToDrive)},
Jennifer Serranof384360c2023-10-27 00:25:511589 {"omnibox-company-entity-icon-adjustment",
1590 flag_descriptions::kOmniboxCompanyEntityIconAdjustmentName,
1591 flag_descriptions::kOmniboxCompanyEntityIconAdjustmentDescription,
1592 flags_ui::kOsIos,
1593 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kCompanyEntityIconAdjustment,
1594 kOmniboxCompanyEntityAdjustmentVariations,
1595 "OmniboxCompanyEntityAdjustment")},
Aliona DANGLA5971a8b2023-11-10 11:55:351596 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1597 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1598 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Aliona DANGLAde4e2d72023-11-13 17:59:471599 {"tab-groups-in-grid", flag_descriptions::kTabGroupsInGridName,
1600 flag_descriptions::kTabGroupsInGridDescription, flags_ui::kOsIos,
1601 FEATURE_VALUE_TYPE(kTabGroupsInGrid)},
Gauthier Ambard8cca29a2024-04-10 08:27:361602 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1603 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1604 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591605 {"autofill-enable-dynamically-loading-fields-on-input",
1606 flag_descriptions::
1607 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1608 flag_descriptions::
1609 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1610 flags_ui::kOsIos,
1611 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
Vincent Boisselle5af638da2023-11-16 17:38:201612 {"password-manager-signin-uff",
1613 flag_descriptions::kIOSPasswordSignInUffName,
1614 flag_descriptions::kIOSPasswordSignInUffDescription, flags_ui::kOsIos,
1615 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordSignInUff)},
Christian Xue72882d2023-11-20 17:10:481616 {"bottom-omnibox-promo-fre", flag_descriptions::kBottomOmniboxPromoFREName,
1617 flag_descriptions::kBottomOmniboxPromoFREDescription, flags_ui::kOsIos,
1618 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxPromoFRE,
1619 kBottomOmniboxPromoVariations,
1620 "BottomOmniboxPromoFRE")},
1621 {"bottom-omnibox-promo-app-launch",
1622 flag_descriptions::kBottomOmniboxPromoAppLaunchName,
1623 flag_descriptions::kBottomOmniboxPromoAppLaunchDescription,
1624 flags_ui::kOsIos,
1625 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxPromoAppLaunch,
1626 kBottomOmniboxPromoVariations,
1627 "BottomOmniboxPromoAppLaunch")},
Christian Xua3667352023-11-21 16:54:091628 {"bottom-omnibox-promo-default-position",
1629 flag_descriptions::kBottomOmniboxPromoDefaultPositionName,
1630 flag_descriptions::kBottomOmniboxPromoDefaultPositionDescription,
1631 flags_ui::kOsIos,
1632 FEATURE_WITH_PARAMS_VALUE_TYPE(
1633 kBottomOmniboxPromoDefaultPosition,
1634 kBottomOmniboxPromoDefaultPositionVariations,
1635 "BottomOmniboxPromoDefaultPosition")},
Filipa Senra0bd07982023-12-19 10:56:251636 {"revamp-page-info-ios", flag_descriptions::kRevampPageInfoIosName,
1637 flag_descriptions::kRevampPageInfoIosDescription, flags_ui::kOsIos,
Filipa Senraa2074a12024-06-10 14:49:201638 MULTI_VALUE_TYPE(kRevampPageInfoiOSChoices)},
Mike Dougherty330188d52023-12-20 16:33:241639 {"remove-old-web-state-restore",
1640 flag_descriptions::kRemoveOldWebStateRestoreName,
1641 flag_descriptions::kRemoveOldWebStateRestoreDescription, flags_ui::kOsIos,
1642 FEATURE_VALUE_TYPE(web::features::kRemoveOldWebStateRestoration)},
aliaaborhamy00f89df2023-12-21 14:55:031643 {"share-in-web-context-menu-ios",
1644 flag_descriptions::kShareInWebContextMenuIOSName,
1645 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1646 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Marc Treib1f6c5db992024-01-04 20:25:141647 {"migrate-syncing-user-to-signed-in",
1648 flag_descriptions::kMigrateSyncingUserToSignedInName,
1649 flag_descriptions::kMigrateSyncingUserToSignedInDescription,
1650 flags_ui::kOsIos,
1651 FEATURE_VALUE_TYPE(switches::kMigrateSyncingUserToSignedIn)},
1652 {"undo-migration-of-syncing-user-to-signed-in",
1653 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInName,
1654 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInDescription,
1655 flags_ui::kOsIos,
1656 FEATURE_VALUE_TYPE(switches::kUndoMigrationOfSyncingUserToSignedIn)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551657 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1658 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1659 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461660 {"contextual-panel", flag_descriptions::kContextualPanelName,
1661 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
1662 FEATURE_VALUE_TYPE(kContextualPanel)},
Nicolas MacBeth47d6b622024-01-16 17:05:391663 {"contextual-panel-force-show-entrypoint",
1664 flag_descriptions::kContextualPanelForceShowEntrypointName,
1665 flag_descriptions::kContextualPanelForceShowEntrypointDescription,
1666 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContextualPanelForceShowEntrypoint)},
Christian Xuc3c249b2024-01-18 18:18:321667 {"bottom-omnibox-promo-region-filter",
1668 flag_descriptions::kBottomOmniboxPromoRegionFilterName,
1669 flag_descriptions::kBottomOmniboxPromoRegionFilterDescription,
1670 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kBottomOmniboxPromoRegionFilter)},
adamtad0e8cfc2024-01-16 18:43:471671 {"enable-ipad-feed-ghost-cards",
1672 flag_descriptions::kEnableiPadFeedGhostCardsName,
1673 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1674 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Louis Romerof3144822024-01-30 10:24:161675 {"tab-grid-always-bounce", flag_descriptions::kTabGridAlwaysBounceName,
1676 flag_descriptions::kTabGridAlwaysBounceDescription, flags_ui::kOsIos,
1677 FEATURE_VALUE_TYPE(kTabGridAlwaysBounce)},
Christian Xu11df0ae2024-02-08 16:07:511678 {"omnibox-rich-autocompletion",
1679 flag_descriptions::kOmniboxRichAutocompletionName,
1680 flag_descriptions::kOmniboxRichAutocompletionDescription, flags_ui::kOsIos,
Christian Xu10b84d72024-04-09 17:12:331681 FEATURE_WITH_PARAMS_VALUE_TYPE(
1682 omnibox::kRichAutocompletion,
1683 kRichAutocompletionImplementationVariations,
1684 "RichAutocompletionImplementationVariations")},
Jason Hud445445f2024-02-02 18:28:121685 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1686 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1687 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Charles Yang30c90b92024-03-08 18:00:591688 {"omnibox-color-icons", flag_descriptions::kOmniboxColorIconsName,
1689 flag_descriptions::kOmniboxColorIconsDescription, flags_ui::kOsIos,
1690 FEATURE_VALUE_TYPE(kOmniboxColorIcons)},
Charles Yang682634b2024-03-19 01:46:091691 {"enable-color-lens-and-voice-icons-in-home-screen-widget",
1692 flag_descriptions::kEnableColorLensAndVoiceIconsInHomeScreenWidgetName,
1693 flag_descriptions::
1694 kEnableColorLensAndVoiceIconsInHomeScreenWidgetDescription,
1695 flags_ui::kOsIos,
1696 FEATURE_VALUE_TYPE(kEnableColorLensAndVoiceIconsInHomeScreenWidget)},
Tomasz Jurkiewicze8ce0292024-02-13 13:06:251697 {"minor-mode-restrictions-for-history-sync-opt-in",
1698 flag_descriptions::kMinorModeRestrictionsForHistorySyncOptInName,
1699 flag_descriptions::kMinorModeRestrictionsForHistorySyncOptInDescription,
1700 flags_ui::kOsIos,
1701 FEATURE_VALUE_TYPE(::switches::kMinorModeRestrictionsForHistorySyncOptIn)},
ginnnnnnnydbaba6e42024-02-13 23:17:251702 {"ios-iph-swipe-back-forward",
1703 flag_descriptions::kIPHiOSSwipeBackForwardFeatureName,
1704 flag_descriptions::kIPHiOSSwipeBackForwardFeatureDescription,
1705 flags_ui::kOsIos,
1706 FEATURE_VALUE_TYPE(feature_engagement::kIPHiOSSwipeBackForwardFeature)},
ginnnnnnny92d90742024-02-16 17:04:241707 {"ios-iph-swipe-toolbar-to-change-tab",
1708 flag_descriptions::kIPHiOSSwipeToolbarToChangeTabFeatureName,
1709 flag_descriptions::kIPHiOSSwipeToolbarToChangeTabFeatureDescription,
1710 flags_ui::kOsIos,
1711 FEATURE_VALUE_TYPE(
1712 feature_engagement::kIPHiOSSwipeToolbarToChangeTabFeature)},
Alexander Tekleeebe42b92024-02-23 21:27:151713 {"autofill-enable-card-benefits-for-american-express",
1714 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1715 flag_descriptions::
1716 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1717 flags_ui::kOsIos,
1718 FEATURE_VALUE_TYPE(
1719 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
1720 {"autofill-enable-card-benefits-for-capital-one",
1721 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneName,
1722 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneDescription,
1723 flags_ui::kOsIos,
1724 FEATURE_VALUE_TYPE(
1725 autofill::features::kAutofillEnableCardBenefitsForCapitalOne)},
Yishui Liub88a38c2024-02-28 08:46:551726 {"autofill-enable-card-benefits-sync",
1727 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1728 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1729 flags_ui::kOsIos,
1730 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421731 {"linked-services-setting-ios",
1732 flag_descriptions::kLinkedServicesSettingIosName,
1733 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1734 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
Aliona DANGLA52e69ff2024-02-29 12:22:281735 {"disable-fullscreen-scrolling",
1736 flag_descriptions::kDisableFullscreenScrollingName,
1737 flag_descriptions::kDisableFullscreenScrollingDescription,
1738 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDisableFullscreenScrolling)},
Ernesto Izquierdo Clua7a451b8e2024-03-11 15:01:011739 {"autofill-enable-xhr-submission-detection-ios",
1740 flag_descriptions::kAutofillEnableXHRSubmissionDetectionIOSName,
1741 flag_descriptions::kAutofillEnableXHRSubmissionDetectionIOSDescription,
1742 flags_ui::kOsIos,
1743 FEATURE_VALUE_TYPE(
1744 autofill::features::kAutofillEnableXHRSubmissionDetectionIOS)},
hvs7c6cb402024-03-27 02:39:001745 {"autofill-enable-prefetching-risk-data-for-retrieval",
1746 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561747 flag_descriptions::
1748 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001749 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561750 FEATURE_VALUE_TYPE(
1751 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1752 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1753 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1754 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391755 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1756 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1757 FEATURE_VALUE_TYPE(
1758 page_content_annotations::features::kPageContentAnnotations)},
1759 {"page-content-annotations-persist-salient-image-metadata",
1760 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1761 flag_descriptions::
1762 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1763 flags_ui::kOsIos,
1764 FEATURE_VALUE_TYPE(
1765 page_content_annotations::features::
1766 kPageContentAnnotationsPersistSalientImageMetadata)},
1767 {"page-content-annotations-remote-page-metadata",
1768 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1769 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1770 flags_ui::kOsIos,
1771 FEATURE_VALUE_TYPE(
1772 page_content_annotations::features::kRemotePageMetadata)},
1773 {"page-visibility-page-content-annotations",
1774 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1775 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1776 flags_ui::kOsIos,
1777 FEATURE_VALUE_TYPE(page_content_annotations::features::
1778 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121779 {"enhanced-safe-browsing-promo",
1780 flag_descriptions::kEnhancedSafeBrowsingPromoName,
1781 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:021782 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Sebsgfcd5b0b2024-04-09 08:18:321783 {"cpe-performance-improvements",
1784 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
1785 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
1786 flags_ui::kOsIos,
1787 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Vincent Boissellea1f27f322024-04-17 14:53:191788 {"password-manager-detect-username-in-uff",
1789 flag_descriptions::kIOSDetectUsernameInUffName,
1790 flag_descriptions::kIOSPasswordSignInUffDescription, flags_ui::kOsIos,
1791 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Marc Treib5da778d2024-04-17 17:03:481792 {"identity-disc-account-switch",
1793 flag_descriptions::kIdentityDiscAccountSwitchName,
1794 flag_descriptions::kIdentityDiscAccountSwitchDescription, flags_ui::kOsIos,
1795 FEATURE_VALUE_TYPE(kIdentityDiscAccountSwitch)},
Filipa Senrabe00cbe2024-04-19 14:21:331796 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
1797 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
1798 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:001799 {"autofill-enable-verve-card-support",
1800 flag_descriptions::kAutofillEnableVerveCardSupportName,
1801 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
1802 flags_ui::kOsIos,
1803 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ameur Hosni20b75fe52024-04-24 16:36:021804 {"omnibox-actions-in-suggest",
1805 flag_descriptions::kOmniboxActionsInSuggestName,
1806 flag_descriptions::kOmniboxActionsInSuggestDescription, flags_ui::kOsIos,
1807 FEATURE_VALUE_TYPE(kOmniboxActionsInSuggest)},
Louis Romero5a84afc2024-04-25 10:29:201808 {"tab-group-sync", flag_descriptions::kTabGroupSync,
1809 flag_descriptions::kTabGroupSync, flags_ui::kOsIos,
1810 FEATURE_VALUE_TYPE(kTabGroupSync)},
Kavita Sonic8eaa982024-05-16 17:09:111811 {"autofill-enable-save-card-loading-and-confirmation",
1812 flag_descriptions::kAutofillEnableSaveCardLoadingAndConfirmationName,
1813 flag_descriptions::
1814 kAutofillEnableSaveCardLoadingAndConfirmationDescription,
1815 flags_ui::kOsIos,
1816 FEATURE_VALUE_TYPE(
1817 autofill::features::kAutofillEnableSaveCardLoadingAndConfirmation)},
1818 {"autofill-enable-save-card-local-save-fallback",
1819 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackName,
1820 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackDescription,
1821 flags_ui::kOsIos,
1822 FEATURE_VALUE_TYPE(
1823 autofill::features::kAutofillEnableSaveCardLocalSaveFallback)},
1824 {"autofill-enable-vcn-enroll-loading-and-confirmation",
1825 flag_descriptions::kAutofillEnableVcnEnrollLoadingAndConfirmationName,
1826 flag_descriptions::
1827 kAutofillEnableVcnEnrollLoadingAndConfirmationDescription,
1828 flags_ui::kOsIos,
1829 FEATURE_VALUE_TYPE(
1830 autofill::features::kAutofillEnableVcnEnrollLoadingAndConfirmation)},
Charles Yang8da39e6f2024-05-24 12:19:121831 {"lens-web-page-early-transition-enabled",
1832 flag_descriptions::kLensWebPageEarlyTransitionEnabledName,
1833 flag_descriptions::kLensWebPageEarlyTransitionEnabledDescription,
1834 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageEarlyTransitionEnabled)},
Ameur Hosni3d764c92024-05-28 14:11:121835 {"omnibox-suggestion-answer-migration",
1836 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
1837 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
1838 flags_ui::kOsIos,
1839 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:301840 kOmniboxSuggestionAnswerMigration)},
1841 {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name,
1842 flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos,
Olivier Robinf8374f12024-06-05 19:00:041843 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5,
1844 kTabResumption15Variations,
1845 "TabResumption1_5")},
Hira Mahmood6e2a894e2024-05-31 15:18:191846 {"send-tab-ios-push-notifications",
1847 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
1848 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
1849 flags_ui::kOsIos,
1850 FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfIOSPushNotifications)},
Olivier Robin08bc56d02024-06-05 14:05:181851 {"tab-resumption-2", flag_descriptions::kTabResumption2Name,
1852 flag_descriptions::kTabResumption2Description, flags_ui::kOsIos,
1853 FEATURE_VALUE_TYPE(kTabResumption2)},
Olivier ROBINcb76f4fe2024-06-05 16:11:421854 {"page-image-service-optimization-guide-salient-images",
1855 flag_descriptions::kPageImageServiceSalientImageName,
1856 flag_descriptions::kPageImageServiceSalientImageDescription,
1857 flags_ui::kOsIos,
1858 FEATURE_WITH_PARAMS_VALUE_TYPE(
1859 page_image_service::kImageServiceOptimizationGuideSalientImages,
1860 kImageServiceOptimizationGuideSalientImagesVariations,
1861 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:221862 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
1863 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
1864 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Salma Elmahallawyc2383802024-06-06 23:36:031865 {"clear-device-data-on-signout-for-managed-users",
1866 flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersName,
1867 flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersDescription,
1868 flags_ui::kOsIos,
1869 FEATURE_VALUE_TYPE(kClearDeviceDataOnSignOutForManagedUsers)},
Charles Yangf8e7adf2024-06-11 00:17:001870 {"lens-filters-ablation-mode-enabled",
1871 flag_descriptions::kLensFiltersAblationModeEnabledName,
1872 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
1873 flags_ui::kOsIos,
1874 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
1875 kLensFiltersAblationModeVariations,
1876 "LensFiltersAblationMode")},
1877 {"lens-translate-toogle-mode-enabled",
1878 flag_descriptions::kLensTranslateToggleModeEnabledName,
1879 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
1880 flags_ui::kOsIos,
1881 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
1882 kLensTranslateToggleModeVariations,
1883 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:591884 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
1885 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
1886 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:491887 {"omnibox-ml-log-url-scoring-signals",
1888 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
1889 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
1890 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
1891 {"omnibox-ml-url-piecewise-mapped-search-blending",
1892 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
1893 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
1894 flags_ui::kOsIos,
1895 FEATURE_WITH_PARAMS_VALUE_TYPE(
1896 omnibox::kMlUrlPiecewiseMappedSearchBlending,
1897 kMlUrlPiecewiseMappedSearchBlendingVariations,
1898 "MlUrlPiecewiseMappedSearchBlending")},
1899 {"omnibox-ml-url-score-caching",
1900 flag_descriptions::kOmniboxMlUrlScoreCachingName,
1901 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
1902 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
1903 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
1904 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
1905 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
1906 kOmniboxMlUrlScoringVariations,
1907 "MlUrlScoring")},
1908 {"omnibox-ml-url-search-blending",
1909 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
1910 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
1911 flags_ui::kOsIos,
1912 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
1913 kMlUrlSearchBlendingVariations,
1914 "MlUrlScoring")},
1915 {"omnibox-ml-url-scoring-model",
1916 flag_descriptions::kOmniboxMlUrlScoringModelName,
1917 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
Khalid Peer4501c1f2024-06-27 16:12:041918 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel,
1919 kUrlScoringModelVariations,
1920 "MlUrlScoring")},
ginnnnnnny4d843e402024-06-14 10:39:531921 {"default-browser-promo-ipad-experimental-string",
1922 flag_descriptions::kDefaultBrowserPromoIPadExperimentalStringName,
1923 flag_descriptions::kDefaultBrowserPromoIPadExperimentalStringDescription,
1924 flags_ui::kOsIos,
1925 FEATURE_VALUE_TYPE(kDefaultBrowserPromoIPadExperimentalString)},
Siyu An4a486f02024-06-18 19:41:281926 {"autofill-show-manual-fill-for-virtual-cards",
1927 flag_descriptions::kAutofillShowManualFillForVirtualCardsName,
1928 flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription,
1929 flags_ui::kOsIos,
1930 FEATURE_VALUE_TYPE(
1931 autofill::features::kAutofillShowManualFillForVirtualCards)},
Olivier Robin51ffd172024-05-29 08:56:301932};
sdefresne14900ee2015-11-27 14:43:211933
Rohit Raobed794c2020-04-27 15:27:451934bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1935 return false;
1936}
1937
1938flags_ui::FlagsState& GetGlobalFlagsState() {
1939 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1940 nullptr);
1941 return *flags_state;
1942}
David Jean5ca263c2021-08-18 09:19:301943// Creates the experimental test policies map, used by AsyncPolicyLoader and
1944// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341945NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211946 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1947
Guillaume Jenkins25e9bd72020-08-27 17:39:061948 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551949 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061950 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551951
Guillaume Jenkins25e9bd72020-08-27 17:39:061952 // Set some sample policy values for testing if EnableSamplePolicies is set to
1953 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401954 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551955 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011956 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1957
Guillaume Jenkinseeb7007c2020-06-25 22:55:401958 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1959
1960 // 2 = Disable all variations
1961 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1962
1963 // 2 = Do not allow any site to show popups
1964 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1965
Tina Wang5abee802020-07-29 23:09:521966 // Set default search engine.
1967 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1968 @YES,
1969 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1970 @"http://www.google.com/search?q={searchTerms}",
1971 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021972 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521973
Tina Wang89068c842020-10-29 15:51:501974 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1975
Gauthier Ambard21b23702021-04-16 16:11:271976 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1977
Tina Wang59d0b7e2020-08-11 04:41:011978 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531979
1980 // 2 = Enhanced safe browsing protection
1981 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1982
1983 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291984
1985 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551986 }];
1987 }
1988
Ewann227a3c02021-04-19 12:04:541989 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041990 NSString* sync_policy_key =
1991 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301992 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541993 }
Ewann227a3c02021-04-19 12:04:541994
Ewann570a6302021-08-17 07:22:421995 // SyncTypesListDisabled policy.
1996 NSString* Sync_types_list_disabled_key =
1997 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1998 NSMutableArray* Sync_types_list_disabled_values =
1999 [[NSMutableArray alloc] init];
2000 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
2001 [Sync_types_list_disabled_values addObject:@"bookmarks"];
2002 }
2003 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
2004 [Sync_types_list_disabled_values addObject:@"readingList"];
2005 }
2006 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
2007 [Sync_types_list_disabled_values addObject:@"preferences"];
2008 }
2009 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
2010 [Sync_types_list_disabled_values addObject:@"passwords"];
2011 }
2012 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
2013 [Sync_types_list_disabled_values addObject:@"autofill"];
2014 }
2015 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
2016 [Sync_types_list_disabled_values addObject:@"typedUrls"];
2017 }
2018 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
2019 [Sync_types_list_disabled_values addObject:@"tabs"];
2020 }
2021 if ([Sync_types_list_disabled_values count]) {
2022 [testing_policies addEntriesFromDictionary:@{
2023 Sync_types_list_disabled_key : Sync_types_list_disabled_values
2024 }];
Ewann570a6302021-08-17 07:22:422025 }
2026
Gauthier Ambard073eaa92021-11-22 15:24:132027 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:522028 NSString* incognito_policy_key =
2029 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
2030 NSInteger incognito_mode_availability =
2031 [defaults integerForKey:incognito_policy_key];
2032 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:522033 [testing_policies addEntriesFromDictionary:@{
2034 incognito_policy_key : @(incognito_mode_availability),
2035 }];
2036 }
2037
Ewann40a8f8a2021-07-29 10:01:202038 NSString* restriction_pattern =
2039 [defaults stringForKey:@"RestrictAccountsToPatterns"];
2040 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:292041 NSString* restrict_key =
2042 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:202043 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:292044 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:202045 }];
2046 }
2047
Vincent Boisselle19200bc2021-09-01 17:58:252048 // If the sign-in policy is set (not "None"), add the policy key to the list
2049 // of enabled experimental policies, and set the value.
2050 NSString* const kSigninPolicyKey = @"BrowserSignin";
2051 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2052 if (signin_policy_mode) {
2053 // Remove the mode offset that was used to represent the unset policy.
2054 --signin_policy_mode;
2055 DCHECK(signin_policy_mode >= 0);
2056
Vincent Boisselle19200bc2021-09-01 17:58:252057 [testing_policies addEntriesFromDictionary:@{
2058 kSigninPolicyKey : @(signin_policy_mode),
2059 }];
2060 }
2061
Veronique Nguyen9b1044f2022-01-11 14:41:132062 // If the New Tab Page URL is set (not empty) add the value to the list of
2063 // test policies.
2064 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2065 if ([ntp_location length] > 0) {
2066 NSString* ntp_location_key =
2067 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2068 [testing_policies
2069 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572070 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132071 }
2072
Ali Juma9ec36d22022-03-28 14:53:122073 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2074 NSString* allow_backups_key =
2075 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2076 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2077 [allowed_experimental_policies addObject:allow_backups_key];
2078 }
2079
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242080 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2081 NSString* password_manager_key =
2082 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2083 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2084 [allowed_experimental_policies addObject:password_manager_key];
2085 }
Vincent Boisselle003569a72023-09-11 16:03:122086
2087 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2088 NSString* user_policy_merge_key =
2089 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2090 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2091 [allowed_experimental_policies addObject:user_policy_merge_key];
2092 }
2093
Arthur Milchiorbb44f5c82023-03-14 16:14:462094 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2095 NSString* managed_bookmarks_key =
2096 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2097 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572098 @"["
2099 // The following gets filtered out from
2100 // the JSON string when parsed.
2101 " {"
2102 " \"toplevel_name\": \"Managed Bookmarks\""
2103 " },"
2104 " {"
2105 " \"name\": \"Google\","
2106 " \"url\": \"google.com\""
2107 " },"
2108 " {"
2109 " \"name\": \"Empty Folder\","
2110 " \"children\": []"
2111 " },"
2112 " {"
2113 " \"name\": \"Big Folder\","
2114 " \"children\": ["
2115 " {"
2116 " \"name\": \"Youtube\","
2117 " \"url\": \"youtube.com\""
2118 " },"
2119 " {"
2120 " \"name\": \"Chromium\","
2121 " \"url\": \"chromium.org\""
2122 " },"
2123 " {"
2124 " \"name\": \"More Stuff\","
2125 " \"children\": ["
2126 " {"
2127 " \"name\": \"Bugs\","
2128 " \"url\": \"crbug.com\""
2129 " }"
2130 " ]"
2131 " }"
2132 " ]"
2133 " }"
2134 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462135 [testing_policies addEntriesFromDictionary:@{
2136 managed_bookmarks_key : managed_bookmarks_value
2137 }];
2138 [allowed_experimental_policies addObject:managed_bookmarks_key];
2139 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242140
Guillaume Jenkins25e9bd72020-08-27 17:39:062141 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2142 // policy.
2143 if ([allowed_experimental_policies count] > 0) {
2144 [testing_policies setValue:allowed_experimental_policies
2145 forKey:base::SysUTF8ToNSString(
2146 policy::key::kEnableExperimentalPolicies)];
2147 }
2148
jlebel2eb40222022-05-06 11:15:422149 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2150 switch ([defaults integerForKey:metrics_reporting_key]) {
2151 case 1:
2152 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132153 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422154 break;
2155 case 2:
2156 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132157 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422158 break;
2159 default:
2160 // Metrics reporting not managed.
2161 break;
2162 }
2163
David Jean6f85d44f2021-08-19 08:08:452164 // Warning: Add new flags to TestingPoliciesHash() below.
2165
David Jean5ca263c2021-08-18 09:19:302166 return testing_policies;
2167}
David Jean6f85d44f2021-08-19 08:08:452168
David Jean5ca263c2021-08-18 09:19:302169} // namespace
2170
Gauthier Ambard02dbf022022-08-23 08:28:472171// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302172void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2173 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2174
2175 // Set the UA flag if UseMobileSafariUA is enabled.
2176 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2177 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2178 // Chrome puts its product token.
2179 int32_t major = 0;
2180 int32_t minor = 0;
2181 int32_t bugfix = 0;
2182 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2183 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2184
2185 command_line->AppendSwitchASCII(switches::kUserAgent,
2186 web::BuildMobileUserAgent(product));
2187 }
2188
2189 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342190 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302191
2192 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2193 // Management to enabled and add the token to the list of policies.
2194 NSString* token_key =
2195 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2196 NSString* token = [defaults stringForKey:token_key];
2197
2198 if ([token length] > 0) {
2199 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2200 [testing_policies setValue:token forKey:token_key];
2201 }
2202
Guillaume Jenkins57606d72020-08-13 17:32:552203 // If some policies were set, commit them to the app's registration defaults.
2204 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402205 NSDictionary* registration_defaults =
2206 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2207 [defaults registerDefaults:registration_defaults];
2208 }
2209
sdefresne14900ee2015-11-27 14:43:212210 // Freeform commandline flags. These are added last, so that any flags added
2211 // earlier in this function take precedence.
2212 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2213 base::CommandLine::StringVector flags;
2214 // Append an empty "program" argument.
2215 flags.push_back("");
2216
2217 // The number of flags corresponds to the number of text fields in
2218 // Experimental.plist.
2219 const int kNumFreeformFlags = 5;
2220 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2221 NSString* key =
2222 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2223 NSString* flag = [defaults stringForKey:key];
2224 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332225 // iOS keyboard replaces -- with —, so undo that.
2226 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2227 withString:@"--"
2228 options:0
2229 range:NSMakeRange(0, 1)];
2230 // To make things easier, allow flags with no dashes by prepending them
2231 // here. This also allows for flags that just have one dash if they
2232 // exist.
2233 if (![flag hasPrefix:@"-"]) {
2234 flag = [@"--" stringByAppendingString:flag];
2235 }
sdefresne14900ee2015-11-27 14:43:212236 flags.push_back(base::SysNSStringToUTF8(flag));
2237 }
2238 }
2239
2240 base::CommandLine temp_command_line(flags);
2241 command_line->AppendArguments(temp_command_line, false);
2242 }
msardafc76f662017-02-24 12:46:282243
justincohendacc85d2017-06-28 23:34:102244 // Populate command line flag for 3rd party keyboard omnibox workaround.
2245 NSString* enableThirdPartyKeyboardWorkaround =
2246 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2247 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2248 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2249 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2250 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2251 }
2252
Sylvain Defresned3cd8d92022-01-18 13:35:082253 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212254}
2255
sdefresne14900ee2015-11-27 14:43:212256void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2257 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182258 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112259 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532260 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212261}
2262
jkrcalbf073372016-07-29 07:21:312263std::vector<std::string> RegisterAllFeatureVariationParameters(
2264 flags_ui::FlagsStorage* flags_storage,
2265 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182266 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2267 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312268}
2269
sdefresne14900ee2015-11-27 14:43:212270void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2271 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502272 base::Value::List& supported_entries,
2273 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182274 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212275 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512276 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212277}
2278
2279void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2280 const std::string& internal_name,
2281 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182282 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2283 enable);
sdefresne14900ee2015-11-27 14:43:212284}
2285
2286void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182287 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212288}
2289
Nicolas MacBeth972e2592023-02-23 15:22:092290bool IsRestartNeededToCommitChanges() {
2291 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2292}
2293
sdefresne14900ee2015-11-27 14:43:212294namespace testing {
2295
Elly Fong-Jones323ab1092021-08-23 22:36:312296base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2297 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532298 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212299}
2300
2301} // namespace testing