blob: 7cabd16e32427d0c83c6e573ea7b566665e85102 [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"
Tommy Nyquiste1447512024-12-17 17:46:2430#import "components/collaboration/public/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5731#import "components/commerce/core/commerce_feature_list.h"
32#import "components/commerce/core/flag_descriptions.h"
33#import "components/content_settings/core/common/features.h"
Asami Doi93db79e2024-09-06 18:16:5534#import "components/data_sharing/public/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5735#import "components/dom_distiller/core/dom_distiller_switches.h"
Raj Tb95d813542022-11-16 21:27:5236#import "components/download/public/background_service/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5737#import "components/enterprise/browser/enterprise_switches.h"
38#import "components/feature_engagement/public/feature_constants.h"
39#import "components/feature_engagement/public/feature_list.h"
40#import "components/feed/feed_feature_list.h"
Benjamin Williams11f39912023-04-13 19:00:2541#import "components/history/core/browser/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5742#import "components/invalidation/impl/invalidation_switches.h"
Benjamin Williamsaa8da8142022-11-14 19:51:0343#import "components/ntp_tiles/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5744#import "components/ntp_tiles/switches.h"
45#import "components/omnibox/browser/omnibox_field_trial.h"
Fabio Tirelo7d1f1ba2024-12-18 23:01:1246#import "components/omnibox/common/omnibox_feature_configs.h"
Gauthier Ambard999088c2022-09-13 08:36:5747#import "components/omnibox/common/omnibox_features.h"
48#import "components/optimization_guide/core/optimization_guide_features.h"
Raj Ta921ffc2022-08-25 19:00:2049#import "components/optimization_guide/core/optimization_guide_switches.h"
Raj Tc66dd122024-04-01 18:48:3950#import "components/page_content_annotations/core/page_content_annotations_features.h"
Olivier ROBINcb76f4fe2024-06-05 16:11:4251#import "components/page_image_service/features.h"
Vasilii Sukhanov32b14452023-10-12 17:31:2752#import "components/password_manager/core/browser/features/password_features.h"
Gauthier Ambard999088c2022-09-13 08:36:5753#import "components/password_manager/core/common/password_manager_features.h"
54#import "components/payments/core/features.h"
Guillaume Jenkinseeb7007c2020-06-25 22:55:4055#import "components/policy/core/common/policy_loader_ios_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5756#import "components/policy/policy_constants.h"
57#import "components/safe_browsing/core/common/features.h"
Benjamin Williamsbd411e892024-10-25 15:59:3158#import "components/segmentation_platform/embedder/home_modules/constants.h"
Chris Lu6fd4eaf2023-08-08 18:29:3059#import "components/segmentation_platform/public/constants.h"
Chris Lub0bad572023-08-07 18:13:2960#import "components/segmentation_platform/public/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2561#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5762#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
63#import "components/signin/core/browser/account_reconcilor.h"
64#import "components/signin/ios/browser/features.h"
65#import "components/signin/public/base/signin_switches.h"
66#import "components/strings/grit/components_strings.h"
Nohemi Fernandez64acf982023-08-04 09:27:1567#import "components/supervised_user/core/common/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5768#import "components/sync/base/command_line_switches.h"
69#import "components/sync/base/features.h"
70#import "components/sync/base/pref_names.h"
71#import "components/translate/core/browser/translate_prefs.h"
72#import "components/translate/core/common/translate_util.h"
rbpotter422d5eb2025-02-05 16:42:4873#import "components/webui/flags/feature_entry.h"
74#import "components/webui/flags/feature_entry_macros.h"
75#import "components/webui/flags/flags_storage.h"
76#import "components/webui/flags/flags_ui_switches.h"
Ed Chin91e44992022-07-27 13:42:3477#import "ios/chrome/app/background_mode_buildflags.h"
Stepan Khapugin923665732025-01-02 16:23:3878#import "ios/chrome/browser/authentication/ui_bundled/signin/interruptible_chrome_coordinator.h"
Gauthier Ambard5b7f3c22023-09-13 12:03:3079#import "ios/chrome/browser/browsing_data/model/browsing_data_features.h"
Aman Vermab6f55572023-09-28 11:40:5380#import "ios/chrome/browser/crash_report/model/features.h"
Sebsgfcd5b0b2024-04-09 08:18:3281#import "ios/chrome/browser/credential_provider/model/features.h"
Aman Vermaf8a157f62023-10-03 15:32:1182#import "ios/chrome/browser/default_browser/model/utils.h"
Nan Lina498c412024-06-13 15:33:3283#import "ios/chrome/browser/download/ui_bundled/features.h"
mmrashadbc0ca942023-10-06 13:12:1484#import "ios/chrome/browser/find_in_page/model/util.h"
Hira Mahmoodf6906a82025-01-02 17:55:0985#import "ios/chrome/browser/first_run/ui_bundled/features.h"
Gauthier Ambard92605132022-08-26 13:25:1786#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5787#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Vincent Boisselle8b321bb2023-11-28 13:58:3188#import "ios/chrome/browser/follow/model/follow_features.h"
Rubin Deliallisib66a77a2024-10-02 18:09:4889#import "ios/chrome/browser/incognito_reauth/ui_bundled/features.h"
Ali Jumad29dc1872023-10-19 13:33:5890#import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h"
Christian Xuff884802024-11-25 23:36:1891#import "ios/chrome/browser/lens/ui_bundled/features.h"
Hira Mahmood664449872024-11-18 23:55:2292#import "ios/chrome/browser/ntp/model/features.h"
Chris Lu09019af2024-08-28 08:38:4493#import "ios/chrome/browser/ntp/ui_bundled/new_tab_page_feature.h"
Christian Xua224fbd2025-01-30 14:55:2794#import "ios/chrome/browser/omnibox/public/omnibox_ui_features.h"
Stepan Khapugin34e459742024-12-06 09:39:5995#import "ios/chrome/browser/page_info/ui_bundled/features.h"
Stephen McGruer5ac77b932024-11-07 20:09:4396#import "ios/chrome/browser/parcel_tracking/features.h"
mmrashadd0c7f952023-12-14 13:36:3897#import "ios/chrome/browser/policy/model/policy_util.h"
Cheick Cisse85457f22024-05-23 22:37:5998#import "ios/chrome/browser/price_insights/model/price_insights_feature.h"
Stepan Khapugin5694d702024-01-31 13:23:0899#import "ios/chrome/browser/promos_manager/model/features.h"
mmrashadf158cad942023-10-03 09:15:48100#import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h"
Christian Xu51be15a2024-11-26 17:42:19101#import "ios/chrome/browser/settings/ui_bundled/clear_browsing_data/features.h"
Christian Xub0c68ff2024-11-28 11:50:47102#import "ios/chrome/browser/settings/ui_bundled/google_services/features.h"
Xu Li9854c992024-12-19 20:53:08103#import "ios/chrome/browser/settings/ui_bundled/password/password_manager_ui_features.h"
Christian Xu585a04512024-11-27 16:29:49104#import "ios/chrome/browser/settings/ui_bundled/privacy/privacy_guide/features.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:46105#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:35106#import "ios/chrome/browser/shared/public/features/system_flags.h"
Tina Wang75f21e82024-07-01 18:00:35107#import "ios/chrome/browser/start_surface/ui_bundled/start_surface_features.h"
Robbie Gibson596fe292023-10-27 01:00:36108#import "ios/chrome/browser/tabs/model/inactive_tabs/features.h"
Ewann Pelled2eaeba2023-09-19 09:15:28109#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Ewann Pelle1f48f922025-01-13 11:43:34110#import "ios/chrome/browser/toolbar/ui_bundled/tab_groups/tab_group_indicator_features_utils.h"
Robbie Gibson686c56732021-10-04 17:11:45111#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58112#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Weizhong Xia8b908bda2023-12-05 16:00:22113#import "ios/chrome/browser/web/model/features.h"
Gauthier Ambard999088c2022-09-13 08:36:57114#import "ios/chrome/grit/ios_strings.h"
115#import "ios/components/security_interstitials/https_only_mode/feature.h"
116#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
117#import "ios/web/common/features.h"
118#import "ios/web/common/user_agent.h"
119#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21120
Sylvain Defresne9c107082020-10-27 16:39:13121#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
mmrashadf158cad942023-10-03 09:15:48122#import "ios/chrome/browser/screen_time/model/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13123#endif
124
sdefresne14900ee2015-11-27 14:43:21125#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57126#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22127#endif
stkhapuginc1be1792016-12-13 14:30:53128
elawrence816f6790e2017-06-16 18:19:28129using flags_ui::FeatureEntry;
130
sdefresne14900ee2015-11-27 14:43:21131namespace {
Emily Starkbafa9062017-12-27 15:22:46132
Nohemi Fernandezc00842a2021-07-26 11:47:34133const FeatureEntry::Choice
134 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
135 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
136 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
137 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
138 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
139};
140
Radu Nitescu6e6dd7f52025-01-17 11:33:35141const char kLensOverlayOnboardingParamSpeedbumpMenu[] =
142 "kLensOverlayOnboardingParamSpeedbumpMenu";
143const char kLensOverlayOnboardingParamUpdatedStrings[] =
144 "kLensOverlayOnboardingParamUpdatedStrings";
145const char kLensOverlayOnboardingParamUpdatedStringsAndVisuals[] =
146 "kLensOverlayOnboardingParamUpdatedStringsAndVisuals";
147
148const FeatureEntry::FeatureParam kLensOverlayOnboardinSpeedbumpMenu[] = {
149 {kLensOverlayOnboardingParam, kLensOverlayOnboardingParamSpeedbumpMenu}};
150const FeatureEntry::FeatureParam kLensOverlayOnboardingUpdatedStrings[] = {
151 {kLensOverlayOnboardingParam, kLensOverlayOnboardingParamUpdatedStrings}};
152const FeatureEntry::FeatureParam
153 kLensOverlayOnboardingUpdatedStringsAndVisuals[] = {
154 {kLensOverlayOnboardingParam,
155 kLensOverlayOnboardingParamUpdatedStringsAndVisuals}};
156
157const FeatureEntry::FeatureVariation kLensOverlayOnboardingVariations[] = {
158 {"A: Speedbump menu", kLensOverlayOnboardinSpeedbumpMenu,
159 std::size(kLensOverlayOnboardinSpeedbumpMenu), nullptr},
160 {"B: Updated Strings", kLensOverlayOnboardingUpdatedStrings,
161 std::size(kLensOverlayOnboardingUpdatedStrings), nullptr},
162 {"C: Updated Strings and Graphics",
163 kLensOverlayOnboardingUpdatedStringsAndVisuals,
164 std::size(kLensOverlayOnboardingUpdatedStringsAndVisuals), nullptr},
Stepan Khapuginc5820242025-01-10 22:21:11165};
166
Stepan Khapugincc4e9842019-01-23 13:38:13167const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
168 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
169const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
170 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
171const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
172 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
173const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
174 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
175const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
176 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
177const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
178 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
179const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
180 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
181
182const FeatureEntry::FeatureVariation
183 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
184 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53185 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13186 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53187 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13188 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53189 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13190 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53191 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13192 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53193 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13194 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53195 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13196 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53197 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13198
Stepan Khapuginbac467e2022-05-06 21:11:54199const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
200 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
201const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
202 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
203const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
204 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
205
206const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
207 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
208 nullptr},
209 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
210 nullptr},
211 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
212 nullptr},
213};
214
Christian Xucf26d562022-07-06 09:28:36215const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
216 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
217const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
218 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
219const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
220 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
221
222const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
223 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
224 nullptr},
225 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
226 nullptr},
227 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
228 nullptr},
229};
230
Guillem Perez40086ef2023-11-20 20:03:52231const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = {
232 {kContentPushNotificationsExperimentType, "1"}};
233const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] =
234 {{kContentPushNotificationsExperimentType, "2"}};
Guillem Perez222b5b22024-01-20 02:16:27235const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] =
236 {{kContentPushNotificationsExperimentType, "3"}};
Tina Wangb7f5b3f2024-05-07 06:24:26237const FeatureEntry::FeatureParam
238 kContentPushNotificationsPromoRegistrationOnly[] = {
239 {kContentPushNotificationsExperimentType, "5"}};
240const FeatureEntry::FeatureParam
241 kContentPushNotificationsProvisionalRegistrationOnly[] = {
242 {kContentPushNotificationsExperimentType, "6"}};
243const FeatureEntry::FeatureParam
244 kContentPushNotificationsSetUpListRegistrationOnly[] = {
245 {kContentPushNotificationsExperimentType, "7"}};
Guillem Perez40086ef2023-11-20 20:03:52246
247const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = {
248 {"Promo", kContentPushNotificationsEnabledPromo,
249 std::size(kContentPushNotificationsEnabledPromo), nullptr},
250 {"Set up list", kContentPushNotificationsEnabledSetupLists,
Guillem Perez222b5b22024-01-20 02:16:27251 std::size(kContentPushNotificationsEnabledSetupLists), nullptr},
252 {"Provisional Notification", kContentPushNotificationsEnabledProvisional,
Guillem Perez749b3fc2024-02-13 19:29:49253 std::size(kContentPushNotificationsEnabledProvisional), nullptr},
Tina Wangb7f5b3f2024-05-07 06:24:26254 {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly,
255 std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr},
256 {"Provisional Notification Registeration Only",
257 kContentPushNotificationsProvisionalRegistrationOnly,
258 std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr},
259 {"Set up list Registeration Only",
260 kContentPushNotificationsSetUpListRegistrationOnly,
261 std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}};
Guillem Perez40086ef2023-11-20 20:03:52262
Chris Ludca9ce32023-09-20 16:53:50263const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35264 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50265const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35266 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08267
gogerald0e39e3aa2021-02-10 18:41:23268const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50269 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
270 std::size(kStartSurfaceTenSeconds), nullptr},
271 {"1h:Show Home Surface", kStartSurfaceOneHour,
272 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08273};
gogerald0e39e3aa2021-02-10 18:41:23274
Chris Luce928eb2023-05-12 21:36:26275const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
276 {kMagicStackMostVisitedModuleParam, "true"},
277 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22278const FeatureEntry::FeatureParam
279 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
280 {kMagicStackMostVisitedModuleParam, "true"},
281 {kReducedSpaceParam, "-80"},
282 {kHideIrrelevantModulesParam, "true"}};
Chris Lu8cf8ef82024-03-18 18:30:54283const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = {
Chris Luce928eb2023-05-12 21:36:26284 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu8cf8ef82024-03-18 18:30:54285 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26286
287const FeatureEntry::FeatureVariation kMagicStackVariations[]{
288 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
289 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22290 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
291 kMagicStackMostVisitedModuleHideIrrelevantModules,
292 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu8cf8ef82024-03-18 18:30:54293 {"Hide irrelevant modules", kMagicStackHidIrrelevantModules,
294 std::size(kMagicStackHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26295};
296
Chris Lu6fd4eaf2023-08-08 18:29:30297const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
298 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
299
300const FeatureEntry::FeatureVariation
301 kSegmentationPlatformIosModuleRankerVariations[]{
302 {"Enabled With Default Model Parameter (Must Set this!)",
303 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
304 };
305
Scott Yoderaf2bdf32024-01-30 20:26:15306const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31307 {kIOSTipsNotificationsUnknownTriggerTimeParam, "5s"},
308 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "5s"},
309 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "5s"},
Scott Yoderaf2bdf32024-01-30 20:26:15310};
311const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31312 {kIOSTipsNotificationsUnknownTriggerTimeParam, "10s"},
313 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "10s"},
314 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "10s"},
Scott Yoderaf2bdf32024-01-30 20:26:15315};
Scott Yoderd2dbc87f2024-03-07 18:23:37316const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31317 {kIOSTipsNotificationsUnknownTriggerTimeParam, "30s"},
318 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "30s"},
319 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "30s"},
Scott Yoderd2dbc87f2024-03-07 18:23:37320};
Scott Yoderaf2bdf32024-01-30 20:26:15321const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = {
322 {"(5s trigger)", kIOSTipsNotifications5SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07323 std::size(kIOSTipsNotifications5SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15324 {"(10s trigger)", kIOSTipsNotifications10SecondTrigger,
325 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderd2dbc87f2024-03-07 18:23:37326 {"(30s trigger)", kIOSTipsNotifications30SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07327 std::size(kIOSTipsNotifications30SecondTrigger), nullptr},
328};
329
330const FeatureEntry::FeatureParam
331 kIOSReactivationNotifications10SecondTrigger[] = {
332 {kIOSReactivationNotificationsTriggerTimeParam, "10s"},
333};
334const FeatureEntry::FeatureParam
335 kIOSReactivationNotifications30SecondTrigger[] = {
336 {kIOSReactivationNotificationsTriggerTimeParam, "30s"},
337};
338const FeatureEntry::FeatureVariation kIOSReactivationNotificationsVariations[] =
339 {
340 {"(10s trigger)", kIOSReactivationNotifications10SecondTrigger,
341 std::size(kIOSReactivationNotifications10SecondTrigger), nullptr},
342 {"(30s trigger)", kIOSReactivationNotifications30SecondTrigger,
343 std::size(kIOSReactivationNotifications30SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15344};
345
Ed Chin91e44992022-07-27 13:42:34346#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26347// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01348const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04349 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
350 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01351 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04352 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01353const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04354 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
355 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01356 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04357 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01358const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04359 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
360 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01361 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04362 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01363const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04364 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
365 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01366 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04367 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01368const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04369 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
370 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01371 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
372 {kBackgroundRefreshIntervalInSeconds, "0"}};
373const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04374 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
375 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01376 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
377 {kBackgroundRefreshIntervalInSeconds, "0"}};
378const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
379 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
380 {kEnableRecurringBackgroundRefreshSchedule, "false"},
381 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
382 {kBackgroundRefreshIntervalInSeconds, "0"}};
383const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
384 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
385 {kEnableRecurringBackgroundRefreshSchedule, "true"},
386 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
387 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04388
Ed Chin178ec2a2023-02-10 22:21:26389// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04390const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01391 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
392 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
393 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
394 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
395 {"1hr Interval 1hr Max Age Recurring",
396 kOneHourIntervalOneHourMaxAgeRecurring,
397 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
398 {"4hr Interval 6hr Max Age Recurring",
399 kFourHourIntervalSixHourMaxAgeRecurring,
400 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
401 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
402 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
403 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
404 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
405 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
406 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
407 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
408 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04409};
Ed Chin91e44992022-07-27 13:42:34410#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04411
David Jeanf361ae9d2024-04-09 08:19:47412const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = {
413 {kTextClassifierAddressParameterName, "true"}};
414const FeatureEntry::FeatureVariation
415 kEnableExpKitTextClassifierAddressVariations[] = {
416 {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap,
417 std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}};
418
419const FeatureEntry::FeatureParam
420 kEnableExpKitTextClassifierPhoneNumberOneTap[] = {
421 {kTextClassifierPhoneNumberParameterName, "true"}};
422const FeatureEntry::FeatureVariation
423 kEnableExpKitTextClassifierPhoneNumberVariations[] = {
424 {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap,
425 std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}};
426
427const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = {
428 {kTextClassifierEmailParameterName, "true"}};
429const FeatureEntry::FeatureVariation
430 kEnableExpKitTextClassifierEmailVariations[] = {
431 {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap,
432 std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15433
Ewann Pellea2bcb3a2023-08-28 13:53:00434const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = {
435 {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}};
436const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = {
437 {kTabResumptionParameterName, kTabResumptionAllTabsParam}};
Ewann Pelleb08ee062023-10-16 10:04:48438const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = {
Olivier Robinbb46d05d2024-06-25 17:56:35439 {kTabResumptionParameterName, kTabResumptionAllTabsParam},
440 {kTabResumptionThresholdParameterName, /* 24 hours */ "86400"}};
Ewann Pellea2bcb3a2023-08-28 13:53:00441
442const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
443 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
444 std::size(kTabResumptionMostRecentTabOnly), nullptr},
Ewann Pelleb08ee062023-10-16 10:04:48445 {"Most recent tab and last synced tab (12 hours threshold)",
446 kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr},
447 {"Most recent tab and last synced tab (24 hours threshold)",
448 kTabResumptionAllTabsOneDayThreshold,
Olivier Robin08bc56d02024-06-05 14:05:18449 std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}};
Ewann Pelle6eecb8f2023-06-23 14:31:37450
Christian Xu07d600192023-07-24 12:29:52451const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
452 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
453const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
454 {kBottomOmniboxDefaultSettingParam,
455 kBottomOmniboxDefaultSettingParamBottom}};
456const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
457 {{kBottomOmniboxDefaultSettingParam,
458 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
459const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
460 {
461 {"Top", kBottomOmniboxDefaultSettingTop,
462 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
463 {"Bottom", kBottomOmniboxDefaultSettingBottom,
464 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
465 {"Bottom for Safari Switcher",
466 kBottomOmniboxDefaultSettingSafariSwitcher,
467 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
468};
469
Cheick Cisse85457f22024-05-23 22:37:59470constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
471 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
472constexpr flags_ui::FeatureEntry::FeatureParam
473 kPriceInsightsGoodDealNowParam[] = {
474 {kLowPriceParam, kLowPriceParamGoodDealNow}};
475constexpr flags_ui::FeatureEntry::FeatureParam
476 kPriceInsightsSeePriceHistoryParam[] = {
477 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
478constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
479 {{"Price is low", kPriceInsightsPriceIsLowParam,
480 std::size(kPriceInsightsPriceIsLowParam), nullptr},
481 {"Good deal now", kPriceInsightsGoodDealNowParam,
482 std::size(kPriceInsightsGoodDealNowParam), nullptr},
483 {"See price history", kPriceInsightsSeePriceHistoryParam,
484 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
485
Olivier ROBIN82b67002023-07-31 14:34:46486const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
487 {web::features::kOneTapForMapsConsentModeParamTitle,
488 web::features::kOneTapForMapsConsentModeDefaultParam}};
489const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
490 {web::features::kOneTapForMapsConsentModeParamTitle,
491 web::features::kOneTapForMapsConsentModeForcedParam}};
492const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
493 {web::features::kOneTapForMapsConsentModeParamTitle,
494 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31495const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
496 {web::features::kOneTapForMapsConsentModeParamTitle,
497 web::features::kOneTapForMapsConsentModeIPHParam}};
498const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
499 {web::features::kOneTapForMapsConsentModeParamTitle,
500 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46501const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
502 {"Consent Default", kOneTapForMapsConsentModeDefault,
503 std::size(kOneTapForMapsConsentModeDefault), nullptr},
504 {"Consent Forced", kOneTapForMapsConsentModeForced,
505 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31506 {"Consent IPH", kOneTapForMapsConsentModeIPH,
507 std::size(kOneTapForMapsConsentModeIPH), nullptr},
508 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
509 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46510 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
511 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
512};
513
Benjamin Williams1dc8f2342024-01-04 21:25:55514const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
515 {kIOSDockingPromoExperimentType, "0"}};
516const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
517 {kIOSDockingPromoExperimentType, "1"}};
518const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
519 {kIOSDockingPromoExperimentType, "2"}};
520
521const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
522 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
523 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
524 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
525 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
526 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
527 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
528
Olivier ROBINcb76f4fe2024-06-05 16:11:42529const FeatureEntry::FeatureVariation
530 kImageServiceOptimizationGuideSalientImagesVariations[] = {
531 {"High Performance Canonicalization", nullptr, 0, "3362133"},
532};
533
Olivier Robinf8374f12024-06-05 19:00:04534const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] =
535 {{kTR15SeeMoreButtonParam, "false"}};
Olivier Robinf8374f12024-06-05 19:00:04536
537const FeatureEntry::FeatureVariation kTabResumption15Variations[] = {
Olivier Robinf8374f12024-06-05 19:00:04538 {"No See More Button", kTabResumption15DisableSeeMoreButtonImages,
539 std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr},
Olivier Robinf8374f12024-06-05 19:00:04540};
Olivier ROBINb17c14b92024-10-09 13:49:13541
542const FeatureEntry::FeatureParam kTabResumptionImagesOnlyThumbnail[] = {
543 {kTabResumptionImagesTypes, kTabResumptionImagesTypesThumbnails}};
544const FeatureEntry::FeatureParam kTabResumptionImagesOnlySalient[] = {
545 {kTabResumptionImagesTypes, kTabResumptionImagesTypesSalient}};
546
547const FeatureEntry::FeatureVariation kTabResumptionImagesVariations[] = {
548 {"Only thumbnails", kTabResumptionImagesOnlyThumbnail,
549 std::size(kTabResumptionImagesOnlyThumbnail), nullptr},
550 {"Only salient", kTabResumptionImagesOnlySalient,
551 std::size(kTabResumptionImagesOnlySalient), nullptr},
552};
553
Charles Yangf8e7adf2024-06-11 00:17:00554// Uses int values from Lens filters ablation mode enum.
555const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
556 {kLensFiltersAblationMode, "0"}};
557const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
558 {kLensFiltersAblationMode, "1"}};
559const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
560 {kLensFiltersAblationMode, "2"}};
561const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
562 {kLensFiltersAblationMode, "3"}};
563
564const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
565 {"(Disabled)", kLensFiltersAblationModeDisabled,
566 std::size(kLensFiltersAblationModeDisabled), nullptr},
567 {"(Post Capture)", kLensFiltersAblationModePostCapture,
568 std::size(kLensFiltersAblationModePostCapture), nullptr},
569 {"(LVF)", kLensFiltersAblationModeLVF,
570 std::size(kLensFiltersAblationModeLVF), nullptr},
571 {"(Always)", kLensFiltersAblationModeAlways,
572 std::size(kLensFiltersAblationModeAlways), nullptr}};
573
574// Uses int values from Lens translate toggle mode enum.
575const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
576 {kLensTranslateToggleMode, "0"}};
577const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
578 {kLensTranslateToggleMode, "1"}};
579const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
580 {kLensTranslateToggleMode, "2"}};
581const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
582 {kLensTranslateToggleMode, "3"}};
583
584const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
585 {"(Disabled)", kLensTranslateToggleModeDisabled,
586 std::size(kLensTranslateToggleModeDisabled), nullptr},
587 {"(Post Capture)", kLensTranslateToggleModePostCapture,
588 std::size(kLensTranslateToggleModePostCapture), nullptr},
589 {"(LVF)", kLensTranslateToggleModeLVF,
590 std::size(kLensTranslateToggleModeLVF), nullptr},
591 {"(Always)", kLensTranslateToggleModeAlways,
592 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04593
Ewann Pelle1f48f922025-01-13 11:43:34594const FeatureEntry::FeatureParam kTabGroupIndicatorAboveButtonsVisble[] = {
595 {kTabGroupIndicatorVisible, "true"},
596 {kTabGroupIndicatorBelowOmnibox, "false"},
597 {kTabGroupIndicatorButtonsUpdate, "true"}};
598const FeatureEntry::FeatureParam kTabGroupIndicatorBelowButtonsVisble[] = {
599 {kTabGroupIndicatorVisible, "true"},
600 {kTabGroupIndicatorBelowOmnibox, "true"},
601 {kTabGroupIndicatorButtonsUpdate, "true"}};
602const FeatureEntry::FeatureParam kTabGroupIndicatorAboveVisble[] = {
603 {kTabGroupIndicatorVisible, "true"},
604 {kTabGroupIndicatorBelowOmnibox, "false"},
605 {kTabGroupIndicatorButtonsUpdate, "false"}};
606const FeatureEntry::FeatureParam kTabGroupIndicatorBelowVisble[] = {
607 {kTabGroupIndicatorVisible, "true"},
608 {kTabGroupIndicatorBelowOmnibox, "true"},
609 {kTabGroupIndicatorButtonsUpdate, "false"}};
610const FeatureEntry::FeatureParam kTabGroupIndicatorButtons[] = {
611 {kTabGroupIndicatorVisible, "false"},
612 {kTabGroupIndicatorBelowOmnibox, "false"},
613 {kTabGroupIndicatorButtonsUpdate, "true"}};
614
615const FeatureEntry::FeatureVariation kTabGroupIndicatorVariations[] = {
616 {"Indicator above omnibox + buttons update",
617 kTabGroupIndicatorAboveButtonsVisble,
618 std::size(kTabGroupIndicatorAboveButtonsVisble), nullptr},
619 {"Indicator below omnibox + buttons update",
620 kTabGroupIndicatorBelowButtonsVisble,
621 std::size(kTabGroupIndicatorBelowButtonsVisble), nullptr},
622 {"Indicator above omnibox", kTabGroupIndicatorAboveVisble,
623 std::size(kTabGroupIndicatorAboveVisble), nullptr},
624 {"Indicator below omnibox", kTabGroupIndicatorBelowVisble,
625 std::size(kTabGroupIndicatorBelowVisble), nullptr},
626 {"buttons update only", kTabGroupIndicatorButtons,
627 std::size(kTabGroupIndicatorButtons), nullptr}};
628
Khalid Peer7cf75a22024-06-13 17:25:49629const FeatureEntry::FeatureParam
630 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
631 {"MlUrlPiecewiseMappedSearchBlending", "true"},
632 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
633 "0,550;0.018,1300;0.14,1398;1,1422"},
634 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
635 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
636const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41637 kMlUrlPiecewiseMappedSearchBlendingDemotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49638 {"MlUrlPiecewiseMappedSearchBlending", "true"},
639 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
640 "0,550;0.018,1250;0.14,1348;1,1422"},
641 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
642 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
643const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41644 kMlUrlPiecewiseMappedSearchBlendingPromotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49645 {"MlUrlPiecewiseMappedSearchBlending", "true"},
646 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41647 "0,550;0.018,1350;0.14,1448;1,1472"},
648 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1450"},
Khalid Peer7cf75a22024-06-13 17:25:49649 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
650const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41651 kMlUrlPiecewiseMappedSearchBlendingPromotedBy100[] = {
Khalid Peer7cf75a22024-06-13 17:25:49652 {"MlUrlPiecewiseMappedSearchBlending", "true"},
653 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41654 "0,550;0.018,1400;0.14,1498;1,1522"},
655 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1500"},
Khalid Peer7cf75a22024-06-13 17:25:49656 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer4501c1f2024-06-27 16:12:04657const FeatureEntry::FeatureParam
658 kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = {
659 {"MlUrlPiecewiseMappedSearchBlending", "true"},
660 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer5c9bd9e2024-07-17 17:16:42661 "0,590;0.006,790;0.082,1290;0.443,1360;0.464,1400;0.987,1425;1,1530"},
Khalid Peer4501c1f2024-06-27 16:12:04662 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"},
663 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer7cf75a22024-06-13 17:25:49664
665const FeatureEntry::FeatureVariation
666 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
667 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
668 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
Khalid Peer9c07798f2024-07-15 22:39:41669 {"demoted by 50", kMlUrlPiecewiseMappedSearchBlendingDemotedBy50,
670 std::size(kMlUrlPiecewiseMappedSearchBlendingDemotedBy50), nullptr},
671 {"promoted by 50", kMlUrlPiecewiseMappedSearchBlendingPromotedBy50,
672 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy50), nullptr},
673 {"promoted by 100", kMlUrlPiecewiseMappedSearchBlendingPromotedBy100,
674 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy100), nullptr},
Khalid Peer4501c1f2024-06-27 16:12:04675 {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping,
676 std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr},
Khalid Peer7cf75a22024-06-13 17:25:49677};
678
679const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
680 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
681 {"MlUrlScoringShortcutDocumentSignals", "true"},
682};
683const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
684 {
685 {"MlUrlScoringUnlimitedNumCandidates", "true"},
686 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
687 {"MlUrlScoringShortcutDocumentSignals", "true"},
688};
689// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
690// Document(512), and History Fuzzy(65536) providers max matches to 10.
691const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
692 {
693 {"MlUrlScoringMaxMatchesByProvider",
694 "1:10,4:10,8:10,64:10,512:10,65536:10"},
695 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
696 {"MlUrlScoringShortcutDocumentSignals", "true"},
697};
698
699const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
700 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
701 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
702 {"unlimited suggestion candidates",
703 kOmniboxMlUrlScoringUnlimitedNumCandidates,
704 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
705 {"Increase provider max limit to 10",
706 kOmniboxMlUrlScoringMaxMatchesByProvider10,
707 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
708};
709
710const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
711 {"MlUrlSearchBlending_StableSearchBlending", "true"},
712 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
713};
714const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
715 {
716 {"MlUrlSearchBlending_StableSearchBlending", "false"},
717 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
718 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
719 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
720 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
721};
722const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
723 {"MlUrlSearchBlending_StableSearchBlending", "false"},
724 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
725};
726const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
727 {"MlUrlSearchBlending_StableSearchBlending", "false"},
728 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
729 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
730 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
731 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
732};
733
734const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
735 {"Stable", kMlUrlSearchBlendingStable,
736 std::size(kMlUrlSearchBlendingStable), nullptr},
737 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
738 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
739 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
740 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
741 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
742 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
743};
744
Khalid Peer4501c1f2024-06-27 16:12:04745const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = {
746 {"Small model", nullptr, 0, "3379590"},
747 {"Full model", nullptr, 0, "3380197"},
748};
749
Benjamin Williams0594caf2024-07-09 17:51:38750const FeatureEntry::FeatureParam kSafetyCheckNotificationsVerbose[] = {
751 {kSafetyCheckNotificationsExperimentType, "0"}};
752const FeatureEntry::FeatureParam kSafetyCheckNotificationsSuccinct[] = {
753 {kSafetyCheckNotificationsExperimentType, "1"}};
754
755const FeatureEntry::FeatureVariation kSafetyCheckNotificationsVariations[] = {
756 {"Display multiple notifications at once", kSafetyCheckNotificationsVerbose,
757 std::size(kSafetyCheckNotificationsVerbose), nullptr},
758 {"Display one notification at a time", kSafetyCheckNotificationsSuccinct,
759 std::size(kSafetyCheckNotificationsSuccinct), nullptr}};
760
Elmehdi Rahmaouif5b76462024-06-24 10:44:46761const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = {
762 {kSaveToPhotosContextMenuImprovementParam, "true"},
763 {kSaveToPhotosTitleImprovementParam, "false"},
764 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
765};
766const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = {
767 {kSaveToPhotosContextMenuImprovementParam, "false"},
768 {kSaveToPhotosTitleImprovementParam, "true"},
769 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
770};
771const FeatureEntry::FeatureParam
772 kSaveToPhotosAccountDefaultChoiceImprovement[] = {
773 {kSaveToPhotosContextMenuImprovementParam, "false"},
774 {kSaveToPhotosTitleImprovementParam, "false"},
775 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"},
776};
777
778const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = {
779 {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement,
780 std::size(kSaveToPhotosContextMenuImprovement), nullptr},
781 {"With Title improvement Only", kSaveToPhotosTitleImprovement,
782 std::size(kSaveToPhotosTitleImprovement), nullptr},
783 {"With Account Default choice improvement Only",
784 kSaveToPhotosAccountDefaultChoiceImprovement,
785 std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr},
786};
787
Stephen McGruer8fe98b62024-07-16 13:10:13788// LINT.IfChange(AutofillUploadCardRequestTimeouts)
789const FeatureEntry::FeatureParam
790 kAutofillUploadCardRequestTimeout_6Point5Seconds[] = {
791 {"autofill_upload_card_request_timeout_milliseconds", "6500"}};
792const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_7Seconds[] =
793 {{"autofill_upload_card_request_timeout_milliseconds", "7000"}};
794const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_9Seconds[] =
795 {{"autofill_upload_card_request_timeout_milliseconds", "9000"}};
796const FeatureEntry::FeatureVariation
797 kAutofillUploadCardRequestTimeoutOptions[] = {
798 {"6.5 seconds", kAutofillUploadCardRequestTimeout_6Point5Seconds,
799 std::size(kAutofillUploadCardRequestTimeout_6Point5Seconds), nullptr},
800 {"7 seconds", kAutofillUploadCardRequestTimeout_7Seconds,
801 std::size(kAutofillUploadCardRequestTimeout_7Seconds), nullptr},
802 {"9 seconds", kAutofillUploadCardRequestTimeout_9Seconds,
803 std::size(kAutofillUploadCardRequestTimeout_9Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03804// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillUploadCardRequestTimeouts)
Stephen McGruer8fe98b62024-07-16 13:10:13805
Stephen McGruer0904cae2024-07-17 19:54:46806// LINT.IfChange(AutofillVcnEnrollRequestTimeouts)
807const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_5Seconds[] = {
808 {"autofill_vcn_enroll_request_timeout_milliseconds", "5000"}};
809const FeatureEntry::FeatureParam
810 kAutofillVcnEnrollRequestTimeout_7Point5Seconds[] = {
811 {"autofill_vcn_enroll_request_timeout_milliseconds", "7500"}};
812const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_10Seconds[] =
813 {{"autofill_vcn_enroll_request_timeout_milliseconds", "10000"}};
814const FeatureEntry::FeatureVariation kAutofillVcnEnrollRequestTimeoutOptions[] =
815 {{"5 seconds", kAutofillVcnEnrollRequestTimeout_5Seconds,
816 std::size(kAutofillVcnEnrollRequestTimeout_5Seconds), nullptr},
817 {"7.5 seconds", kAutofillVcnEnrollRequestTimeout_7Point5Seconds,
818 std::size(kAutofillVcnEnrollRequestTimeout_7Point5Seconds), nullptr},
819 {"10 seconds", kAutofillVcnEnrollRequestTimeout_10Seconds,
820 std::size(kAutofillVcnEnrollRequestTimeout_10Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03821// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillVcnEnrollRequestTimeouts)
Stephen McGruer0904cae2024-07-17 19:54:46822
Nicolas MacBethc738c4e2024-07-19 21:14:19823// Contextual Panel flag variations.
824const FeatureEntry::FeatureParam kContextualPanelRichIPHArms[] = {
825 {"entrypoint-highlight-iph", "true"},
826 {"entrypoint-rich-iph", "true"},
827};
828const FeatureEntry::FeatureParam kContextualPanelSmallIPHArm[] = {
829 {"entrypoint-highlight-iph", "false"},
830 {"entrypoint-rich-iph", "false"},
831};
832const FeatureEntry::FeatureParam
833 kContextualPanelSmallIPHWithBlueHighlightArm[] = {
834 {"entrypoint-highlight-iph", "true"},
835 {"entrypoint-rich-iph", "false"},
836};
837
838const FeatureEntry::FeatureVariation kContextualPanelEntrypointArmVariations[] =
839 {
840 {"- Rich IPH", kContextualPanelRichIPHArms,
841 std::size(kContextualPanelRichIPHArms), nullptr},
842 {"- Small IPH, no blue highlight", kContextualPanelSmallIPHArm,
843 std::size(kContextualPanelSmallIPHArm), nullptr},
844 {"- Small IPH with blue highlight",
845 kContextualPanelSmallIPHWithBlueHighlightArm,
846 std::size(kContextualPanelSmallIPHWithBlueHighlightArm), nullptr},
847};
848
Jood943cbb12025-02-20 17:02:27849const FeatureEntry::FeatureParam kIdentityDiscAccountMenuNoEllipsis[] = {
850 {kDisableAccountMenuEllipsisParam, "true"},
851};
852const FeatureEntry::FeatureVariation kIdentityDiscAccountMenuVariations[] = {
853 {" - without account menu ellipsis", kIdentityDiscAccountMenuNoEllipsis,
854 std::size(kIdentityDiscAccountMenuNoEllipsis), nullptr},
855};
856
Jood Hajeer3867886d2024-07-29 16:15:35857const FeatureEntry::FeatureParam kIdentityConfirmationSnackbarTestingConfig[] =
Jood562c885f2024-09-05 17:06:55858 {{"IdentityConfirmationMinDisplayInterval1", "0"},
859 {"IdentityConfirmationMinDisplayInterval2", "0"},
860 {"IdentityConfirmationMinDisplayInterval3", "0"}};
Jood Hajeer3867886d2024-07-29 16:15:35861const FeatureEntry::FeatureVariation
862 kIdentityConfirmationSnackbarTestingVariations[] = {
863 {" - for testing", kIdentityConfirmationSnackbarTestingConfig,
864 std::size(kIdentityConfirmationSnackbarTestingConfig), nullptr}};
865
Chris Lu4c688e02024-09-07 00:48:08866const FeatureEntry::FeatureParam kPriceTrackingPromoForceShowArm[] = {
867 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05868 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08869};
870const FeatureEntry::FeatureParam kPriceTrackingPromoForceHideArm[] = {
871 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05872 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08873};
874
Gloria Fang02964a442025-02-06 19:21:18875// ShopCard variants
876const FeatureEntry::FeatureParam kPriceDropForTrackedProductsArm[] = {
877 {"ShopCardVariant", "arm_1"},
878};
879const FeatureEntry::FeatureParam kReviewsArm[] = {
880 {"ShopCardVariant", "arm_2"},
881};
882const FeatureEntry::FeatureParam kPriceDropOnTabArm[] = {
883 {"ShopCardVariant", "arm_3"},
884};
885const FeatureEntry::FeatureParam kPriceTrackableProductOnTabArm[] = {
886 {"ShopCardVariant", "arm_4"},
887};
888
Benjamin Williamsd7f854b2024-10-09 17:12:27889// Address Bar Position
890const FeatureEntry::FeatureParam kTipsAddressBarPositionForceShowArm[] = {
891 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31892 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27893};
894const FeatureEntry::FeatureParam kTipsAddressBarPositionForceHideArm[] = {
895 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31896 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27897};
898
899// Autofill Passwords
900const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceShowArm[] = {
901 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31902 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27903};
904const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceHideArm[] = {
905 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31906 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27907};
908
909// Enhanced Safe Browsing
910const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceShowArm[] = {
911 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31912 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27913};
914const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceHideArm[] = {
915 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31916 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27917};
918
919// Lens Search
920const FeatureEntry::FeatureParam kTipsLensSearchForceShowArm[] = {
921 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31922 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27923};
924const FeatureEntry::FeatureParam kTipsLensSearchForceHideArm[] = {
925 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31926 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27927};
928
929// Lens Shop
930const FeatureEntry::FeatureParam kTipsLensShopForceShowArm[] = {
931 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31932 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27933};
934const FeatureEntry::FeatureParam kTipsLensShopForceHideArm[] = {
935 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31936 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27937};
938
939// Lens Translate
940const FeatureEntry::FeatureParam kTipsLensTranslateForceShowArm[] = {
941 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31942 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27943};
944const FeatureEntry::FeatureParam kTipsLensTranslateForceHideArm[] = {
945 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31946 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27947};
948
949// Save Passwords
950const FeatureEntry::FeatureParam kTipsSavePasswordsForceShowArm[] = {
951 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31952 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27953};
954const FeatureEntry::FeatureParam kTipsSavePasswordsForceHideArm[] = {
955 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31956 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27957};
958
Hira Mahmood2ff5b5cb2024-10-25 19:24:31959const FeatureEntry::FeatureParam kSendTabPromoForceShowArm[] = {
960 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05961 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31962};
963const FeatureEntry::FeatureParam kSendTabPromoForceHideArm[] = {
964 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05965 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31966};
967
Gloria Fang02964a442025-02-06 19:21:18968// ShopCard experiment arms
969const FeatureEntry::FeatureVariation kShopCardOverrideOptions[] = {
970 {"Card 1 Price Drop", kPriceDropForTrackedProductsArm,
971 std::size(kPriceDropForTrackedProductsArm), nullptr},
972 {"Card 2 Reviews", kReviewsArm, std::size(kReviewsArm), nullptr},
973 {"Card 3 Price Drop on Tab Resumption", kPriceDropOnTabArm,
974 std::size(kPriceDropOnTabArm), nullptr},
975 {"Card 4 Price Trackable on Tab Resumption", kPriceTrackableProductOnTabArm,
976 std::size(kPriceTrackableProductOnTabArm), nullptr},
977};
978
Chris Lu4c688e02024-09-07 00:48:08979const FeatureEntry::FeatureVariation kEphemeralCardRankerCardOverrideOptions[] =
980 {
981 {"- Force Show Price Tracking Notification",
982 kPriceTrackingPromoForceShowArm,
983 std::size(kPriceTrackingPromoForceShowArm), nullptr},
984 {"- Force Hide Price Tracking Notification",
985 kPriceTrackingPromoForceHideArm,
986 std::size(kPriceTrackingPromoForceHideArm), nullptr},
Benjamin Williamsd7f854b2024-10-09 17:12:27987
988 // Address Bar Position
989 {"- Force Show Address Bar Position Tip",
990 kTipsAddressBarPositionForceShowArm,
991 std::size(kTipsAddressBarPositionForceShowArm), nullptr},
992 {"- Force Hide Address Bar Position Tip",
993 kTipsAddressBarPositionForceHideArm,
994 std::size(kTipsAddressBarPositionForceHideArm), nullptr},
995
996 // Autofill Passwords
997 {"- Force Show Autofill Passwords Tip",
998 kTipsAutofillPasswordsForceShowArm,
999 std::size(kTipsAutofillPasswordsForceShowArm), nullptr},
1000 {"- Force Hide Autofill Passwords Tip",
1001 kTipsAutofillPasswordsForceHideArm,
1002 std::size(kTipsAutofillPasswordsForceHideArm), nullptr},
1003
1004 // Enhanced Safe Browsing
1005 {"- Force Show Enhanced Safe Browsing Tip",
1006 kTipsEnhancedSafeBrowsingForceShowArm,
1007 std::size(kTipsEnhancedSafeBrowsingForceShowArm), nullptr},
1008 {"- Force Hide Enhanced Safe Browsing Tip",
1009 kTipsEnhancedSafeBrowsingForceHideArm,
1010 std::size(kTipsEnhancedSafeBrowsingForceHideArm), nullptr},
1011
1012 // Lens Search
1013 {"- Force Show Lens Search Tip", kTipsLensSearchForceShowArm,
1014 std::size(kTipsLensSearchForceShowArm), nullptr},
1015 {"- Force Hide Lens Search Tip", kTipsLensSearchForceHideArm,
1016 std::size(kTipsLensSearchForceHideArm), nullptr},
1017
1018 // Lens Shop
1019 {"- Force Show Lens Shop Tip", kTipsLensShopForceShowArm,
1020 std::size(kTipsLensShopForceShowArm), nullptr},
1021 {"- Force Hide Lens Shop Tip", kTipsLensShopForceHideArm,
1022 std::size(kTipsLensShopForceHideArm), nullptr},
1023
1024 // Lens Translate
1025 {"- Force Show Lens Translate Tip", kTipsLensTranslateForceShowArm,
1026 std::size(kTipsLensTranslateForceShowArm), nullptr},
1027 {"- Force Hide Lens Translate Tip", kTipsLensTranslateForceHideArm,
1028 std::size(kTipsLensTranslateForceHideArm), nullptr},
1029
1030 // Save Passwords
1031 {"- Force Show Save Passwords Tip", kTipsSavePasswordsForceShowArm,
1032 std::size(kTipsSavePasswordsForceShowArm), nullptr},
1033 {"- Force Hide Save Passwords Tip", kTipsSavePasswordsForceHideArm,
1034 std::size(kTipsSavePasswordsForceHideArm), nullptr},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311035
1036 // Send Tab Promo.
1037 {"- Force Show Send Tab Promo", kSendTabPromoForceShowArm,
1038 std::size(kSendTabPromoForceShowArm), nullptr},
1039 {"- Force Hide Send Tab Promo", kSendTabPromoForceHideArm,
1040 std::size(kSendTabPromoForceHideArm), nullptr},
Chris Lu4c688e02024-09-07 00:48:081041};
1042
Hira Mahmood00c17e52024-10-09 14:30:481043const FeatureEntry::FeatureParam
1044 kSendTabIOSPushNotificationsWithMagicStackCard[] = {
1045 {send_tab_to_self::kSendTabIOSPushNotificationsWithMagicStackCardParam,
1046 "true"}};
Hira Mahmood3db58ac2024-11-06 18:39:031047const FeatureEntry::FeatureParam kSendTabIOSPushNotificationsWithURLImage[] = {
1048 {send_tab_to_self::kSendTabIOSPushNotificationsURLImageParam, "true"}};
Benjamin Williams3dcd13102025-01-15 18:01:141049const FeatureEntry::FeatureParam
1050 kSendTabIOSPushNotificationsWithTabReminders[] = {
1051 {send_tab_to_self::kSendTabIOSPushNotificationsWithTabRemindersParam,
1052 "true"}};
1053
Hira Mahmood00c17e52024-10-09 14:30:481054const FeatureEntry::FeatureVariation kSendTabIOSPushNotificationsVariations[] =
1055 {
1056 {"With Magic Stack Card",
1057 kSendTabIOSPushNotificationsWithMagicStackCard,
1058 std::size(kSendTabIOSPushNotificationsWithMagicStackCard), nullptr},
Hira Mahmood3db58ac2024-11-06 18:39:031059 {"With URL Image", kSendTabIOSPushNotificationsWithURLImage,
1060 std::size(kSendTabIOSPushNotificationsWithURLImage), nullptr},
Benjamin Williams3dcd13102025-01-15 18:01:141061 {"With Tab Reminders", kSendTabIOSPushNotificationsWithTabReminders,
1062 std::size(kSendTabIOSPushNotificationsWithTabReminders), nullptr},
Hira Mahmood00c17e52024-10-09 14:30:481063};
1064
Briana McClurec2b62f92024-10-29 15:35:061065const FeatureEntry::FeatureParam kSegmentedDefaultBrowserStatic[] = {
1066 {kSegmentedDefaultBrowserExperimentType, "0"}};
1067const FeatureEntry::FeatureParam kSegmentedDefaultBrowserAnimated[] = {
1068 {kSegmentedDefaultBrowserExperimentType, "1"}};
1069
1070const FeatureEntry::FeatureVariation kSegmentedDefaultBrowserPromoVariations[] =
1071 {{" - Static Default Browser Promo", kSegmentedDefaultBrowserStatic,
1072 std::size(kSegmentedDefaultBrowserStatic), nullptr},
1073 {" - Animated Default Browser Promo", kSegmentedDefaultBrowserAnimated,
1074 std::size(kSegmentedDefaultBrowserAnimated), nullptr}};
1075
Rubin Deliallisi1d0b3ba2024-11-04 14:33:041076// Soft Lock
1077const FeatureEntry::FeatureParam kIOSSoftLockNoDelay[] = {
1078 {kIOSSoftLockBackgroundThresholdParam, "0m"},
1079};
1080
1081const FeatureEntry::FeatureVariation kIOSSoftLockVariations[] = {
1082 {" - No delay", kIOSSoftLockNoDelay, std::size(kIOSSoftLockNoDelay),
1083 nullptr}};
1084
Ameur Hosni3dc0ce1c2024-11-05 10:34:551085// Ipad ZPS limit.
1086const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total0Trends[] = {
1087 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "0"},
1088 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1089};
1090
1091const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total5Trends[] = {
1092 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "5"},
1093 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1094};
1095
1096constexpr FeatureEntry::FeatureVariation kIpadZpsLimitVariants[] = {
1097 {"20 total zps, 0 Trends on NTP", kIpadZPSOmniboxWith20Total0Trends,
1098 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1099 {"20 total zps, 5 Trends on NTP", kIpadZPSOmniboxWith20Total5Trends,
1100 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1101};
1102
Hira Mahmood431c8ab2024-11-05 17:16:291103const FeatureEntry::FeatureParam
1104 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm[] = {
1105 {kIOSStartTimeStartupRemediationsSaveNTPWebState, "true"},
1106};
1107const FeatureEntry::FeatureVariation
1108 kIOSStartTimeStartupRemediationsVariations[] = {
1109 {" - Save NTP Web State",
1110 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm,
1111 std::size(kIOSStartTimeStartupRemediationsSaveNTPWebStateArm),
1112 nullptr}};
1113
vincb7867dc042024-11-06 14:25:051114constexpr flags_ui::FeatureEntry::FeatureParam
1115 kAutofillThrottleDocFormScanShortPeriodParam[] = {{"period-ms", "250"}};
1116constexpr flags_ui::FeatureEntry::FeatureParam
1117 kAutofillThrottleDocFormScanMediumPeriodParam[] = {{"period-ms", "500"}};
1118constexpr flags_ui::FeatureEntry::FeatureParam
1119 kAutofillThrottleDocFormScanLongPeriodParam[] = {{"period-ms", "1000"}};
1120constexpr flags_ui::FeatureEntry::FeatureVariation
1121 kAutofillThrottleDocFormScanVariations[] = {
1122 {"Short period", kAutofillThrottleDocFormScanShortPeriodParam,
1123 std::size(kAutofillThrottleDocFormScanShortPeriodParam), nullptr},
1124 {"Medium period", kAutofillThrottleDocFormScanMediumPeriodParam,
1125 std::size(kAutofillThrottleDocFormScanMediumPeriodParam), nullptr},
1126 {"Long period", kAutofillThrottleDocFormScanLongPeriodParam,
1127 std::size(kAutofillThrottleDocFormScanLongPeriodParam), nullptr}};
1128
vincb2bf7f5c2024-11-06 17:18:091129constexpr flags_ui::FeatureEntry::FeatureParam
1130 kAutofillThrottleFilteredDocFormScanShortPeriodParam[] = {
1131 {"period-ms", "100"}};
1132constexpr flags_ui::FeatureEntry::FeatureParam
1133 kAutofillThrottleFilteredDocFormScanMediumPeriodParam[] = {
1134 {"period-ms", "250"}};
1135constexpr flags_ui::FeatureEntry::FeatureParam
1136 kAutofillThrottleFilteredDocFormScanLongPeriodParam[] = {
1137 {"period-ms", "500"}};
1138constexpr flags_ui::FeatureEntry::FeatureVariation
1139 kAutofillThrottleFilteredDocFormScanVariations[] = {
1140 {"Short period", kAutofillThrottleFilteredDocFormScanShortPeriodParam,
1141 std::size(kAutofillThrottleFilteredDocFormScanShortPeriodParam),
1142 nullptr},
1143 {"Medium period", kAutofillThrottleFilteredDocFormScanMediumPeriodParam,
1144 std::size(kAutofillThrottleFilteredDocFormScanMediumPeriodParam),
1145 nullptr},
1146 {"Long period", kAutofillThrottleFilteredDocFormScanLongPeriodParam,
1147 std::size(kAutofillThrottleFilteredDocFormScanLongPeriodParam),
1148 nullptr}};
1149
ginnnnnnny963c7fc2024-11-06 22:44:501150const FeatureEntry::FeatureParam kNewFeedPositioningArm2[] = {
1151 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1152 {kNewFeedPositioningCombinedMVTForMidEngaged, "false"},
1153 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501154};
1155
1156const FeatureEntry::FeatureParam kNewFeedPositioningArm3[] = {
1157 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1158 {kNewFeedPositioningCombinedMVTForMidEngaged, "true"},
1159 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501160};
1161
1162const FeatureEntry::FeatureVariation kNewFeedPositioningVariations[] = {
ginnnnnnnyd8c7b652024-12-19 19:11:471163 {"- update for high feed engagement", kNewFeedPositioningArm2,
ginnnnnnny963c7fc2024-11-06 22:44:501164 std::size(kNewFeedPositioningArm2), nullptr},
ginnnnnnnyd8c7b652024-12-19 19:11:471165 {"- update for high and mid feed engagement", kNewFeedPositioningArm3,
ginnnnnnny963c7fc2024-11-06 22:44:501166 std::size(kNewFeedPositioningArm3), nullptr},
ginnnnnnny963c7fc2024-11-06 22:44:501167};
1168
Hira Mahmoodf8533dc2024-11-12 16:24:251169const FeatureEntry::FeatureParam
1170 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm[] = {
1171 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "true"},
1172 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "false"}};
1173const FeatureEntry::FeatureParam
1174 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm[] = {
1175 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "true"},
1176 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "false"}};
1177const FeatureEntry::FeatureVariation
1178 kIOSStartTimeBrowserBackgroundRemediationsVariations[] = {
1179 {" - Avoid NTP Cleanup",
1180 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm,
1181 std::size(kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm),
1182 nullptr},
1183 {" - Update Feed Refresh",
1184 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm,
1185 std::size(
1186 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm),
1187 nullptr}};
1188
Hira Mahmood664449872024-11-18 23:55:221189const FeatureEntry::FeatureParam kSetUpListInFirstRunArm1[] = {
1190 {set_up_list::kSetUpListInFirstRunParam, "1"}};
1191const FeatureEntry::FeatureParam kSetUpListInFirstRunArm2[] = {
1192 {set_up_list::kSetUpListInFirstRunParam, "2"}};
1193const FeatureEntry::FeatureParam kSetUpListInFirstRunArm3[] = {
1194 {set_up_list::kSetUpListInFirstRunParam, "3"}};
1195
1196const FeatureEntry::FeatureVariation kSetUpListInFirstRunVariations[] = {
1197 {" - Variation 1", kSetUpListInFirstRunArm1,
1198 std::size(kSetUpListInFirstRunArm1), nullptr},
1199 {" - Variation 2", kSetUpListInFirstRunArm2,
1200 std::size(kSetUpListInFirstRunArm2), nullptr},
1201 {" - Variation 3", kSetUpListInFirstRunArm3,
1202 std::size(kSetUpListInFirstRunArm3), nullptr}};
1203
Hira Mahmood7577c9b672024-12-12 20:29:121204const FeatureEntry::FeatureParam kSetUpListDuration3Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531205 {set_up_list::kSetUpListDurationParam, "2"}};
Hira Mahmood7577c9b672024-12-12 20:29:121206const FeatureEntry::FeatureParam kSetUpListDuration5Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531207 {set_up_list::kSetUpListDurationParam, "4"}};
Hira Mahmood7577c9b672024-12-12 20:29:121208const FeatureEntry::FeatureParam kSetUpListDuration7Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531209 {set_up_list::kSetUpListDurationParam, "6"}};
Hira Mahmood7577c9b672024-12-12 20:29:121210
1211const FeatureEntry::FeatureVariation kSetUpListDurationVariations[] = {
1212 {" - 3 Days", kSetUpListDuration3Days, std::size(kSetUpListDuration3Days),
1213 nullptr},
1214 {" - 5 Days", kSetUpListDuration5Days, std::size(kSetUpListDuration5Days),
1215 nullptr},
1216 {" - 7 Days", kSetUpListDuration7Days, std::size(kSetUpListDuration7Days),
1217 nullptr}};
1218
Hira Mahmoodf6906a82025-01-02 17:55:091219const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm1[] = {
1220 {first_run::kUpdatedFirstRunSequenceParam, "1"}};
1221const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm2[] = {
1222 {first_run::kUpdatedFirstRunSequenceParam, "2"}};
1223const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm3[] = {
1224 {first_run::kUpdatedFirstRunSequenceParam, "3"}};
1225
1226const FeatureEntry::FeatureVariation kUpdatedFirstRunSequenceVariations[] = {
1227 {" - Default browser promo first", kUpdatedFirstRunSequenceArm1,
1228 std::size(kUpdatedFirstRunSequenceArm1), nullptr},
1229 {" - Remove sign in & sync conditionally", kUpdatedFirstRunSequenceArm2,
1230 std::size(kUpdatedFirstRunSequenceArm2), nullptr},
1231 {" - DB promo first and remove sign in & sync",
1232 kUpdatedFirstRunSequenceArm3, std::size(kUpdatedFirstRunSequenceArm3),
1233 nullptr}};
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481234
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421235const FeatureEntry::FeatureParam
1236 kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial[] = {
1237 {kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitialParam,
1238 "true"},
1239};
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481240
1241const FeatureEntry::FeatureParam kYoutubeIncognitoTargetAllowListed[] = {
1242 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsAllowlisted},
1243};
1244const FeatureEntry::FeatureParam kYoutubeIncognitoTargetFirstParty[] = {
1245 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsFirstParty},
1246};
1247const FeatureEntry::FeatureParam kYoutubeIncognitoTargetAll[] = {
1248 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsAll},
1249};
1250
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421251const FeatureEntry::FeatureVariation kYoutubeIncognitoVariations[] = {
1252 {"Error handling without Incognito Interstitial",
1253 kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial,
1254 std::size(kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial),
1255 nullptr},
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481256 {"Enable for listed apps", kYoutubeIncognitoTargetAllowListed,
1257 std::size(kYoutubeIncognitoTargetAllowListed), nullptr},
1258 {"Enable for first party apps", kYoutubeIncognitoTargetFirstParty,
1259 std::size(kYoutubeIncognitoTargetFirstParty), nullptr},
1260 {"Enable for all apps", kYoutubeIncognitoTargetAll,
1261 std::size(kYoutubeIncognitoTargetAll), nullptr},
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421262};
1263
“Prasanaa”96e15992025-01-30 15:44:351264const FeatureEntry::FeatureParam kSlowFullscreenTransitionSpeed[] = {
1265 {kFullscreenTransitionSpeedParam, "0"}};
1266const FeatureEntry::FeatureParam kDefaultFullscreenTransitionSpeed[] = {
1267 {kFullscreenTransitionSpeedParam, "1"}};
1268const FeatureEntry::FeatureParam kFastFullscreenTransitionSpeed[] = {
1269 {kFullscreenTransitionSpeedParam, "2"}};
1270const FeatureEntry::FeatureParam kMediumFullscreenTransitionOffset[] = {
1271 {kMediumFullscreenTransitionOffsetParam, "true"}};
1272
1273const FeatureEntry::FeatureVariation kFullscreenTransitionVariations[] = {
1274 {"Slow speed", kSlowFullscreenTransitionSpeed,
1275 std::size(kSlowFullscreenTransitionSpeed), nullptr},
1276 {"Default speed", kDefaultFullscreenTransitionSpeed,
1277 std::size(kDefaultFullscreenTransitionSpeed), nullptr},
1278 {"Fast speed", kFastFullscreenTransitionSpeed,
1279 std::size(kFastFullscreenTransitionSpeed), nullptr},
1280 {"Medium offset", kMediumFullscreenTransitionOffset,
1281 std::size(kMediumFullscreenTransitionOffset), nullptr}};
1282
ginnnnnnnyccce0952025-02-03 22:44:361283const FeatureEntry::FeatureParam
ginnnnnnny0e892172025-02-04 21:45:171284 kDeprecateFeedHeaderVariationRemoveFeedLabel[] = {
1285 {kDeprecateFeedHeaderParameterRemoveLabel, "true"}};
1286const FeatureEntry::FeatureParam
1287 kDeprecateFeedHeaderVariationAbovePlusAddTopPadding[] = {
1288 {kDeprecateFeedHeaderParameterRemoveLabel, "true"},
ginnnnnnny5d79fac2025-02-05 16:27:521289 {kDeprecateFeedHeaderParameterTopPadding, "34"}};
ginnnnnnny0e892172025-02-04 21:45:171290const FeatureEntry::FeatureParam
1291 kDeprecateFeedHeaderVariationAbovePlusEnlargeElements[] = {
1292 {kDeprecateFeedHeaderParameterRemoveLabel, "true"},
ginnnnnnny5d79fac2025-02-05 16:27:521293 {kDeprecateFeedHeaderParameterTopPadding, "34"},
ginnnnnnnyccce0952025-02-03 22:44:361294 {kDeprecateFeedHeaderParameterEnlargeLogoAndFakebox, "true"}};
1295
1296const FeatureEntry::FeatureVariation kDeprecateFeedHeaderVariations[] = {
ginnnnnnny0e892172025-02-04 21:45:171297 {" (remove feed label)", kDeprecateFeedHeaderVariationRemoveFeedLabel,
1298 std::size(kDeprecateFeedHeaderVariationRemoveFeedLabel), nullptr},
1299 {" (also add top padding)",
1300 kDeprecateFeedHeaderVariationAbovePlusAddTopPadding,
1301 std::size(kDeprecateFeedHeaderVariationAbovePlusAddTopPadding), nullptr},
1302 {" (and enlarge doodle too)",
1303 kDeprecateFeedHeaderVariationAbovePlusEnlargeElements,
1304 std::size(kDeprecateFeedHeaderVariationAbovePlusEnlargeElements),
ginnnnnnnyccce0952025-02-03 22:44:361305 nullptr}};
1306
Briana McClure21685c42025-02-06 15:18:221307const FeatureEntry::FeatureParam kAnimatedDBPInFREWithActionButtons[] = {
1308 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "0"}};
1309const FeatureEntry::FeatureParam kAnimatedDBPInFREWithShowMeHow[] = {
1310 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "1"}};
1311const FeatureEntry::FeatureParam kAnimatedDBPInFREWithInstructions[] = {
1312 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "2"}};
1313
1314const FeatureEntry::FeatureVariation
1315 kAnimatedDefaultBrowserPromoInFREVariations[] = {
1316 {" - with Action Buttons", kAnimatedDBPInFREWithActionButtons,
1317 std::size(kAnimatedDBPInFREWithActionButtons), nullptr},
1318 {" - with Show Me How", kAnimatedDBPInFREWithShowMeHow,
1319 std::size(kAnimatedDBPInFREWithShowMeHow), nullptr},
1320 {" - with Instructions", kAnimatedDBPInFREWithInstructions,
1321 std::size(kAnimatedDBPInFREWithInstructions), nullptr}};
1322
Hira Mahmooddcc63d7f2025-02-19 17:28:571323const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm1[] = {
1324 {first_run::kBestFeaturesScreenInFirstRunParam, "1"}};
1325const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm2[] = {
1326 {first_run::kBestFeaturesScreenInFirstRunParam, "2"}};
1327const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm3[] = {
1328 {first_run::kBestFeaturesScreenInFirstRunParam, "3"}};
1329const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm4[] = {
1330 {first_run::kBestFeaturesScreenInFirstRunParam, "4"}};
1331const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm5[] = {
1332 {first_run::kBestFeaturesScreenInFirstRunParam, "5"}};
1333const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm6[] = {
1334 {first_run::kBestFeaturesScreenInFirstRunParam, "6"}};
1335
1336const FeatureEntry::FeatureVariation kBestFeaturesScreenInFirstRunVariations[] =
1337 {{" - Variant A: General screen, after DB promo",
1338 kUpdatedFirstRunSequenceArm1,
1339 std::size(kBestFeaturesScreenInFirstRunArm1), nullptr},
1340 {" - Variant B: General screen, before DB promo",
1341 kBestFeaturesScreenInFirstRunArm2,
1342 std::size(kBestFeaturesScreenInFirstRunArm2), nullptr},
1343 {" - Variant C: General screen with passwords item",
1344 kBestFeaturesScreenInFirstRunArm3,
1345 std::size(kBestFeaturesScreenInFirstRunArm3), nullptr},
1346 {" - Variant D: Shopping users screen, variant C as fallback",
1347 kBestFeaturesScreenInFirstRunArm4,
1348 std::size(kBestFeaturesScreenInFirstRunArm4), nullptr},
1349 {" - Variant E: Show screen to signed-in users only",
1350 kBestFeaturesScreenInFirstRunArm5,
1351 std::size(kBestFeaturesScreenInFirstRunArm5), nullptr},
1352 {" - Variant F: Show address bar promo", kBestFeaturesScreenInFirstRunArm6,
1353 std::size(kBestFeaturesScreenInFirstRunArm6), nullptr}};
1354
Cooper Knaak1e026562017-07-26 05:22:281355// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:211356// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:281357// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
1358// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:211359// macro for this type supplying the command line to the macro.
1360// . MULTI_VALUE: a list of choices, the first of which should correspond to a
1361// deactivated state for this lab (i.e. no command line option). To specify
1362// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
1363// array of choices.
Cooper Knaak1e026562017-07-26 05:22:281364// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
1365// either enabled, disabled, or uses the default value of the associated
1366// base::Feature instance. To specify this type of entry use the macro
1367// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
1368// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
1369// base::Feature instance. Choices corresponding to the default state, a
1370// universally enabled state, and a universally disabled state are
1371// automatically included. To specify this type of entry use the macro
1372// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
1373// the array of choices.
1374//
sdefresne14900ee2015-11-27 14:43:211375// See the documentation of FeatureEntry for details on the fields.
1376//
1377// When adding a new choice, add it to the end of the list.
1378const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:281379 {"in-product-help-demo-mode-choice",
1380 flag_descriptions::kInProductHelpDemoModeName,
1381 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
1382 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:231383 feature_engagement::kIPHDemoMode,
1384 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:091385 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:221386 {"enable-autofill-credit-card-upload",
1387 flag_descriptions::kAutofillCreditCardUploadName,
1388 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:241389 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:231390 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
1391 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
1392 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:511393 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:231394 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
1395 {"wallet-service-use-sandbox",
1396 flag_descriptions::kWalletServiceUseSandboxName,
1397 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
1398 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
1399 autofill::switches::kWalletServiceUseSandbox,
1400 "1",
1401 autofill::switches::kWalletServiceUseSandbox,
1402 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:591403 {"show-autofill-type-predictions",
1404 flag_descriptions::kShowAutofillTypePredictionsName,
1405 flag_descriptions::kShowAutofillTypePredictionsDescription,
1406 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:501407 FEATURE_VALUE_TYPE(
1408 autofill::features::test::kAutofillShowTypePredictions)},
Benjamin Williamsdf18e7e2022-10-03 18:46:051409 {"fullscreen-promos-manager-skip-internal-limits",
1410 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
1411 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
1412 flags_ui::kOsIos,
1413 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:141414 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:531415 flag_descriptions::kFullscreenSmoothScrollingName,
1416 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:191417 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:061418 {"webpage-default-zoom-from-dynamic-type",
1419 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
1420 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
1421 flags_ui::kOsIos,
1422 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:561423 {"webpage-alternative-text-zoom",
1424 flag_descriptions::kWebPageAlternativeTextZoomName,
1425 flag_descriptions::kWebPageAlternativeTextZoomDescription,
1426 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:341427 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
1428 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
1429 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Ameur Hosni3dc0ce1c2024-11-05 10:34:551430 {"omnibox-ipad-zps-limit",
1431 flag_descriptions::kIpadZpsSuggestionMatchesLimitName,
1432 flag_descriptions::kIpadZpsSuggestionMatchesLimitDescription,
1433 flags_ui::kOsIos,
1434 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kIpadZeroSuggestMatches,
1435 kIpadZpsLimitVariants,
1436 "OmniboxBundledExperimentV1")},
Stepan Khapugincc4e9842019-01-23 13:38:131437 {"omnibox-ui-max-autocomplete-matches",
1438 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
1439 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
1440 flags_ui::kOsIos,
1441 FEATURE_WITH_PARAMS_VALUE_TYPE(
1442 omnibox::kUIExperimentMaxAutocompleteMatches,
1443 kOmniboxUIMaxAutocompleteMatchesVariations,
1444 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:351445 {"omnibox-local-history-zero-suggest-beyond-ntp",
1446 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
1447 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
1448 flags_ui::kOsIos,
1449 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:541450 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
1451 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
1452 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
1453 kOmniboxMaxZPSMatchesVariations,
1454 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:481455 {"force-startup-signin-promo",
1456 flag_descriptions::kForceStartupSigninPromoName,
1457 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:291458 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:411459 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
1460 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
1461 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:131462#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:451463 {"screen-time-integration-ios",
1464 flag_descriptions::kScreenTimeIntegrationName,
1465 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
1466 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:131467#endif
Nazerke3e993f72020-09-21 13:00:061468 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
1469 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
Gauthier Ambardb30ec785f2025-01-20 15:23:341470 FEATURE_VALUE_TYPE(kModernTabStrip)},
Xu Li9854c992024-12-19 20:53:081471 {"ios-enable-delete-all-saved-credentials",
1472 flag_descriptions::kIOSEnableDeleteAllSavedCredentialsName,
1473 flag_descriptions::kIOSEnableDeleteAllSavedCredentialsDescription,
1474 flags_ui::kOsIos,
1475 FEATURE_VALUE_TYPE(
1476 password_manager::features::kIOSEnableDeleteAllSavedCredentials)},
Cheick Cisse76ade3d2020-12-16 00:15:111477 {"ios-shared-highlighting-color-change",
1478 flag_descriptions::kIOSSharedHighlightingColorChangeName,
1479 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:071480 flags_ui::kOsIos,
1481 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Scott Yoderc0cd99d2024-01-10 19:54:511482 {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName,
1483 flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos,
Scott Yoderaf2bdf32024-01-30 20:26:151484 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications,
1485 kIOSTipsNotificationsVariations,
1486 "IOSTipsNotifications")},
Scott Yoderf8a821482024-10-28 19:32:551487 {"ios-reactivation-notifications",
1488 flag_descriptions::kIOSReactivationNotificationsName,
1489 flag_descriptions::kIOSReactivationNotificationsDescription,
Scott Yoderef1a0542024-11-04 17:23:071490 flags_ui::kOsIos,
1491 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSReactivationNotifications,
1492 kIOSReactivationNotificationsVariations,
1493 "IOSReactivationNotifications")},
gogerald0ff29e52021-02-03 18:56:191494 {"start-surface", flag_descriptions::kStartSurfaceName,
1495 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:231496 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
1497 kStartSurfaceVariations,
1498 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:341499 {"wait-threshold-seconds-for-capabilities-api",
1500 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1501 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1502 flags_ui::kOsIos,
1503 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061504 {"content-notification-experiment",
1505 flag_descriptions::kContentNotificationExperimentName,
1506 flag_descriptions::kContentNotificationExperimentDescription,
1507 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251508 {"content-notification-provisional-ignore-conditions",
1509 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1510 flag_descriptions::
1511 kContentNotificationProvisionalIgnoreConditionsDescription,
1512 flags_ui::kOsIos,
1513 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241514 {"content-push-notifications",
1515 flag_descriptions::kContentPushNotificationsName,
1516 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521517 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1518 kContentPushNotificationsVariations,
1519 "ContentPushNotifications")},
Radu Nitescuee09a1a2024-12-10 17:11:391520 {"enable-lens-context-menu-unified-experience",
1521 flag_descriptions::kEnableLensContextMenuUnifiedExperienceName,
1522 flag_descriptions::kEnableLensContextMenuUnifiedExperienceDescription,
1523 flags_ui::kOsIos,
1524 FEATURE_VALUE_TYPE(kEnableLensContextMenuUnifiedExperience)},
Jason Hu67cfb0f2022-11-14 20:21:441525 {"enable-lens-in-omnibox-copied-image",
1526 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1527 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1528 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Radu Nitescuab5bf732024-09-18 14:07:401529 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1530 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1531 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Radu Nitescuf95b7d42024-12-04 10:18:011532 {"enable-lens-view-finder-unified-experience",
1533 flag_descriptions::kEnableLensViewFinderUnifiedExperienceName,
1534 flag_descriptions::kEnableLensViewFinderUnifiedExperienceDescription,
1535 flags_ui::kOsIos,
1536 FEATURE_VALUE_TYPE(kEnableLensViewFinderUnifiedExperience)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031537 {"enable-disco-feed-endpoint",
1538 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1539 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1540 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111541 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Tommy Martino7393d762021-10-12 17:59:281542 {"shared-highlighting-amp",
1543 flag_descriptions::kIOSSharedHighlightingAmpName,
1544 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1545 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
Matt Jones2e47b9692024-02-23 21:56:431546 {"track-by-default-mobile",
1547 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1548 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1549 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061550 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1551 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1552 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541553 {"ntp-view-hierarchy-repair",
1554 flag_descriptions::kNTPViewHierarchyRepairName,
1555 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201556 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Cheick Cisse39b6a182024-05-29 15:13:441557 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1558 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1559 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381560 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1561 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591562 flags_ui::kOsIos,
1563 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1564 kPriceInsightsVariations,
1565 "PriceInsightsIos")},
1566 {"price-insights-high-price-ios",
1567 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1568 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1569 flags_ui::kOsIos,
1570 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Vishwas Uppoor89303a92022-08-03 00:56:261571 {"autofill-enable-card-product-name",
1572 flag_descriptions::kAutofillEnableCardProductNameName,
1573 flag_descriptions::kAutofillEnableCardProductNameDescription,
1574 flags_ui::kOsIos,
1575 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Raj Tb95d813542022-11-16 21:27:521576 {"enable-download-service-foreground-session",
1577 flag_descriptions::kDownloadServiceForegroundSessionName,
1578 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1579 flags_ui::kOsIos,
1580 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231581 {"enable-tflite-language-detection",
1582 flag_descriptions::kTFLiteLanguageDetectionName,
1583 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1584 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201585 {"optimization-guide-debug-logs",
1586 flag_descriptions::kOptimizationGuideDebugLogsName,
1587 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1588 flags_ui::kOsIos,
1589 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551590 {"optimization-guide-push-notifications",
1591 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1592 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1593 flags_ui::kOsIos,
1594 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
David Jeanad303a92023-07-31 16:58:111595 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1596 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1597 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeandcc3e202024-05-22 08:36:331598 {"improve-parcel-detection",
1599 flag_descriptions::kEnableNewParcelTrackingNumberDetectionName,
1600 flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription,
1601 flags_ui::kOsIos,
1602 FEATURE_VALUE_TYPE(
1603 web::features::kEnableNewParcelTrackingNumberDetection)},
David Jeanf361ae9d2024-04-09 08:19:471604 {"enable-expkit-text-classifier-date",
1605 flag_descriptions::kEnableExpKitTextClassifierDateName,
1606 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1607 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1608 {"enable-expkit-text-classifier-address",
1609 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1610 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151611 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471612 FEATURE_WITH_PARAMS_VALUE_TYPE(
1613 kEnableExpKitTextClassifierAddress,
1614 kEnableExpKitTextClassifierAddressVariations,
1615 "ExpKitTextClassifierAddress")},
1616 {"enable-expkit-text-classifier-phonenumber",
1617 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1618 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1619 flags_ui::kOsIos,
1620 FEATURE_WITH_PARAMS_VALUE_TYPE(
1621 kEnableExpKitTextClassifierPhoneNumber,
1622 kEnableExpKitTextClassifierPhoneNumberVariations,
1623 "ExpKitTextClassifierPhoneNumber")},
1624 {"enable-expkit-text-classifier-email",
1625 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1626 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1627 flags_ui::kOsIos,
1628 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1629 kEnableExpKitTextClassifierEmailVariations,
1630 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331631 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1632 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461633 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1634 kOneTapForMapsWithVariations,
1635 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251636 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1637 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1638 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301639 {"autofill-enable-ranking-formula-address-profiles",
1640 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1641 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1642 flags_ui::kOsIos,
1643 FEATURE_VALUE_TYPE(
1644 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391645 {"autofill-enable-ranking-formula-credit-cards",
1646 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1647 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1648 flags_ui::kOsIos,
1649 FEATURE_VALUE_TYPE(
1650 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021651 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1652 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1653 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521654 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1655 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261656 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1657 kMagicStackVariations,
1658 flag_descriptions::kMagicStackName)},
Alexis Hetue0b0dc12025-02-06 18:14:471659 {"ios-keyboard-accessory-upgrade-for-ipad",
1660 flag_descriptions::kIOSKeyboardAccessoryUpgradeForIPadName,
1661 flag_descriptions::kIOSKeyboardAccessoryUpgradeForIPadDescription,
1662 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeForIPad)},
Noémie St-Onge9da904ef2024-10-01 14:16:051663 {"ios-keyboard-accessory-upgrade-short-manual-fill-menu",
1664 flag_descriptions::kIOSKeyboardAccessoryUpgradeShortManualFillMenuName,
1665 flag_descriptions::
1666 kIOSKeyboardAccessoryUpgradeShortManualFillMenuDescription,
1667 flags_ui::kOsIos,
1668 FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeShortManualFillMenu)},
Chris Lub0bad572023-08-07 18:13:291669 {"ios-magic-stack-segmentation-ranking",
1670 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1671 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1672 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301673 FEATURE_WITH_PARAMS_VALUE_TYPE(
1674 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1675 kSegmentationPlatformIosModuleRankerVariations,
1676 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321677 {"ios-magic-stack-segmentation-ranking-caching",
1678 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1679 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1680 flags_ui::kOsIos,
1681 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111682 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1683 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1684 flag_descriptions::
1685 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1686 flags_ui::kOsIos,
1687 FEATURE_VALUE_TYPE(
1688 segmentation_platform::features::
1689 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Alexis Hetu5e726602023-12-15 15:18:281690 {"ios-password-bottom-sheet-autofocus",
1691 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1692 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1693 flags_ui::kOsIos,
1694 FEATURE_VALUE_TYPE(
1695 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Charlotte Cloutier18f0a5362024-07-16 13:23:041696 {"ios-proactive-password-generation-bottom-sheet",
1697 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetName,
1698 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetDescription,
1699 flags_ui::kOsIos,
1700 FEATURE_VALUE_TYPE(password_manager::features::
1701 kIOSProactivePasswordGenerationBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241702 {"omnibox-zero-suggest-prefetching",
1703 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1704 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1705 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451706 {"omnibox-zero-suggest-prefetching-on-srp",
1707 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1708 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1709 flags_ui::kOsIos,
1710 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1711 {"omnibox-zero-suggest-prefetching-on-web",
1712 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1713 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1714 flags_ui::kOsIos,
1715 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471716 {"omnibox-zero-suggest-in-memory-caching",
1717 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1718 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1719 flags_ui::kOsIos,
1720 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351721 {"omnibox-on-device-tail-suggestions",
1722 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1723 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1724 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361725 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1726 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1727 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1728 kOmniboxMaxURLMatchesVariations,
1729 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201730 {"omnibox-most-visited-tiles-horizontal-render-group",
1731 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1732 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1733 flags_ui::kOsIos,
1734 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061735 {"metrickit-non-crash-reports",
1736 flag_descriptions::kMetrickitNonCrashReportName,
1737 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1738 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Robbie Gibson1f5a57192024-11-07 23:04:111739 {"default-browser-banner-promo",
1740 flag_descriptions::kDefaultBrowserBannerPromoName,
1741 flag_descriptions::kDefaultBrowserBannerPromoDescription, flags_ui::kOsIos,
Robbie Gibsonae87bc02024-11-13 14:45:101742 FEATURE_VALUE_TYPE(kDefaultBrowserBannerPromo)},
Gayane Petrosyan5960a172023-06-19 15:40:171743 {"default-browser-promo-trigger-criteria-experiment",
1744 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1745 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1746 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211747 FEATURE_VALUE_TYPE(
1748 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyancffeda12024-09-17 17:10:371749 {"blue-dot-on-tools-menu-button",
1750 flag_descriptions::kBlueDotOnToolsMenuButtonName,
1751 flag_descriptions::kBlueDotOnToolsMenuButtonDescription, flags_ui::kOsIos,
1752 FEATURE_VALUE_TYPE(kBlueDotOnToolsMenuButton)},
Ed Chin91e44992022-07-27 13:42:341753#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1754 {"feed-background-refresh-ios",
1755 flag_descriptions::kFeedBackgroundRefreshName,
1756 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1757 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1758 kFeedBackgroundRefreshVariations,
1759 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261760#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Petro Akzhygitov2e2322e2023-04-25 16:26:571761 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1762 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1763 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251764 {"iph-price-notifications-while-browsing",
1765 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1766 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1767 flags_ui::kOsIos,
1768 FEATURE_VALUE_TYPE(
1769 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391770 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1771 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1772 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481773 {"local-pdp-detection",
1774 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1775 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1776 flags_ui::kOsIos,
1777 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Gauthier Ambard8c9b7332024-10-24 16:24:041778 {"inactive-tabs", flag_descriptions::kInactiveTabsIPadName,
1779 flag_descriptions::kInactiveTabsIPadDescription, flags_ui::kOsIos,
1780 FEATURE_VALUE_TYPE(kInactiveTabsIPadFeature)},
Ali Juma57849c42023-02-21 22:53:431781 {"notification-settings-menu-item",
1782 flag_descriptions::kNotificationSettingsMenuItemName,
1783 flag_descriptions::kNotificationSettingsMenuItemDescription,
1784 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
kalettucefb09e402023-02-27 18:35:531785 {"web-feed-feedback-reroute",
1786 flag_descriptions::kWebFeedFeedbackRerouteName,
1787 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1788 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Tina Wangd3f6f192023-04-05 05:22:431789 {"enable-follow-IPH-exp-params",
1790 flag_descriptions::kEnableFollowIPHExpParamsName,
1791 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1792 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251793 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1794 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1795 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Olivier ROBINa229d2132023-03-21 12:44:201796 {"ios-browser-edit-menu-metrics",
1797 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1798 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1799 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551800 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1801 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1802 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1803 kIOSDockingPromoVariations,
1804 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241805 {"omnibox-grouping-framework-non-zps",
1806 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1807 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1808 flags_ui::kOsIos,
1809 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Robbie Gibson0ea280602023-04-12 01:02:391810 {"only-access-clipboard-async",
1811 flag_descriptions::kOnlyAccessClipboardAsyncName,
1812 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1813 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Tina Wangcda2c902023-05-25 17:39:451814 {"enable-signed-out-view-demotion",
1815 flag_descriptions::kEnableSignedOutViewDemotionName,
1816 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1817 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stepan Khapugin72c74292024-06-19 16:48:331818 {"spotlight-never-retain-index",
1819 flag_descriptions::kSpotlightNeverRetainIndexName,
1820 flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos,
1821 FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)},
Huiting Yubc1bf4d2023-06-26 18:15:321822 {"ios-iph-for-safari-switcher",
1823 flag_descriptions::kIPHForSafariSwitcherName,
1824 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1825 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071826 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1827 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1828 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011829 {"tab-resumption", flag_descriptions::kTabResumptionName,
1830 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001831 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1832 kTabResumptionVariations,
1833 "TabResumption")},
Christian Xu07d600192023-07-24 12:29:521834 {"bottom-omnibox-default-setting",
1835 flag_descriptions::kBottomOmniboxDefaultSettingName,
1836 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1837 flags_ui::kOsIos,
1838 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1839 kBottomOmniboxDefaultSettingVariations,
1840 "BottomOmniboxDefaultSetting")},
Joemer Ramos46ca6f52024-09-27 18:12:291841 {"enable-async-real-time-check",
1842 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckName,
1843 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckDescription,
1844 flags_ui::kOsIos,
1845 FEATURE_VALUE_TYPE(safe_browsing::kSafeBrowsingAsyncRealTimeCheck)},
Elmehdi Rahmaouif5b76462024-06-24 10:44:461846 {"enable-save-to-photos-improvements",
1847 flag_descriptions::kIOSSaveToPhotosImprovementsName,
1848 flag_descriptions::kIOSSaveToPhotosImprovementsDescription,
1849 flags_ui::kOsIos,
1850 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements,
1851 kSaveToPhotosImprovementsVariations,
1852 "IOSSaveToPhotosImprovements")},
Jérôme Lebelcc9523e2024-10-08 13:34:011853 {"enable-identity-in-auth-error",
1854 flag_descriptions::kEnableIdentityInAuthErrorName,
1855 flag_descriptions::kEnableIdentityInAuthErrorDescription, flags_ui::kOsIos,
1856 FEATURE_VALUE_TYPE(switches::kEnableIdentityInAuthError)},
Mihai Sardarescucca83442024-10-16 12:19:131857 {"enable-asweb-authentication-session",
1858 flag_descriptions::kEnableASWebAuthenticationSessionName,
1859 flag_descriptions::kEnableASWebAuthenticationSessionDescription,
1860 flags_ui::kOsIos,
1861 FEATURE_VALUE_TYPE(switches::kEnableASWebAuthenticationSession)},
Christian Xu90e952f2023-09-13 09:05:281862 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1863 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1864 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Rubin Deliallisi072bc842023-10-19 12:00:411865 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1866 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1867 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Aliona DANGLA5971a8b2023-11-10 11:55:351868 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1869 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1870 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Gauthier Ambard8cca29a2024-04-10 08:27:361871 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1872 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1873 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591874 {"autofill-enable-dynamically-loading-fields-on-input",
1875 flag_descriptions::
1876 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1877 flag_descriptions::
1878 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1879 flags_ui::kOsIos,
1880 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
aliaaborhamy00f89df2023-12-21 14:55:031881 {"share-in-web-context-menu-ios",
1882 flag_descriptions::kShareInWebContextMenuIOSName,
1883 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1884 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551885 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1886 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1887 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461888 {"contextual-panel", flag_descriptions::kContextualPanelName,
1889 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
Nicolas MacBethc738c4e2024-07-19 21:14:191890 FEATURE_WITH_PARAMS_VALUE_TYPE(kContextualPanel,
1891 kContextualPanelEntrypointArmVariations,
1892 "ContextualPanel")},
Nicolas MacBeth47d6b622024-01-16 17:05:391893 {"contextual-panel-force-show-entrypoint",
1894 flag_descriptions::kContextualPanelForceShowEntrypointName,
1895 flag_descriptions::kContextualPanelForceShowEntrypointDescription,
1896 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContextualPanelForceShowEntrypoint)},
adamtad0e8cfc2024-01-16 18:43:471897 {"enable-ipad-feed-ghost-cards",
1898 flag_descriptions::kEnableiPadFeedGhostCardsName,
1899 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1900 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Jason Hud445445f2024-02-02 18:28:121901 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1902 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1903 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Alexander Tekleeebe42b92024-02-23 21:27:151904 {"autofill-enable-card-benefits-for-american-express",
1905 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1906 flag_descriptions::
1907 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1908 flags_ui::kOsIos,
1909 FEATURE_VALUE_TYPE(
1910 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
Yishui Liub88a38c2024-02-28 08:46:551911 {"autofill-enable-card-benefits-sync",
1912 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1913 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1914 flags_ui::kOsIos,
1915 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421916 {"linked-services-setting-ios",
1917 flag_descriptions::kLinkedServicesSettingIosName,
1918 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1919 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
hvs7c6cb402024-03-27 02:39:001920 {"autofill-enable-prefetching-risk-data-for-retrieval",
1921 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561922 flag_descriptions::
1923 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001924 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561925 FEATURE_VALUE_TYPE(
1926 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1927 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1928 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1929 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391930 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1931 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1932 FEATURE_VALUE_TYPE(
1933 page_content_annotations::features::kPageContentAnnotations)},
1934 {"page-content-annotations-persist-salient-image-metadata",
1935 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1936 flag_descriptions::
1937 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1938 flags_ui::kOsIos,
1939 FEATURE_VALUE_TYPE(
1940 page_content_annotations::features::
1941 kPageContentAnnotationsPersistSalientImageMetadata)},
1942 {"page-content-annotations-remote-page-metadata",
1943 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1944 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1945 flags_ui::kOsIos,
1946 FEATURE_VALUE_TYPE(
1947 page_content_annotations::features::kRemotePageMetadata)},
1948 {"page-visibility-page-content-annotations",
1949 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1950 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1951 flags_ui::kOsIos,
1952 FEATURE_VALUE_TYPE(page_content_annotations::features::
1953 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121954 {"enhanced-safe-browsing-promo",
1955 flag_descriptions::kEnhancedSafeBrowsingPromoName,
1956 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:021957 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Alexis Hetu37823762025-01-24 15:41:591958 {"cpe-automatic-passkey-upgrade",
1959 flag_descriptions::kCredentialProviderAutomaticPasskeyUpgradeName,
1960 flag_descriptions::kCredentialProviderAutomaticPasskeyUpgradeDescription,
1961 flags_ui::kOsIos,
1962 FEATURE_VALUE_TYPE(kCredentialProviderAutomaticPasskeyUpgrade)},
Alexis Hetu028acd32025-01-17 15:53:221963 {"cpe-passkey-prf-support",
1964 flag_descriptions::kCredentialProviderPasskeyPRFName,
1965 flag_descriptions::kCredentialProviderPasskeyPRFDescription,
1966 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kCredentialProviderPasskeyPRF)},
Sebsgfcd5b0b2024-04-09 08:18:321967 {"cpe-performance-improvements",
1968 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
1969 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
1970 flags_ui::kOsIos,
1971 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Maria Kazinova0ee4fdd2025-01-22 20:06:591972 {"password-form-clientside-classifier",
1973 flag_descriptions::kPasswordFormClientsideClassifierName,
1974 flag_descriptions::kPasswordFormClientsideClassifierDescription,
1975 flags_ui::kOsIos,
1976 FEATURE_VALUE_TYPE(
1977 password_manager::features::kPasswordFormClientsideClassifier)},
Vincent Boissellea1f27f322024-04-17 14:53:191978 {"password-manager-detect-username-in-uff",
1979 flag_descriptions::kIOSDetectUsernameInUffName,
vincbb01c53ed2024-08-22 13:09:561980 flag_descriptions::kIOSDetectUsernameInUffDescription, flags_ui::kOsIos,
Vincent Boissellea1f27f322024-04-17 14:53:191981 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Jérôme Lebel993c7e3d2024-07-08 14:05:351982 {"identity-disc-account-menu",
1983 flag_descriptions::kIdentityDiscAccountMenuName,
1984 flag_descriptions::kIdentityDiscAccountMenuDescription, flags_ui::kOsIos,
Jood943cbb12025-02-20 17:02:271985 FEATURE_WITH_PARAMS_VALUE_TYPE(kIdentityDiscAccountMenu,
1986 kIdentityDiscAccountMenuVariations,
1987 "IdentityDiscAccountMenu")},
Jood Hajeer3867886d2024-07-29 16:15:351988 {"identity-confirmation-snackbar",
1989 flag_descriptions::kIdentityConfirmationSnackbarName,
1990 flag_descriptions::kIdentityConfirmationSnackbarDescription,
1991 flags_ui::kOsIos,
1992 FEATURE_WITH_PARAMS_VALUE_TYPE(
1993 kIdentityConfirmationSnackbar,
1994 kIdentityConfirmationSnackbarTestingVariations,
1995 "IdentityConfirmationSnackbar")},
Arthur Milchior4d8bd9302024-12-10 15:24:491996 {"ios-interruptible-coordinator-always-dismissed",
1997 flag_descriptions::kIOSInterruptibleCoordinatorAlwaysDismissedName,
1998 flag_descriptions::kIOSInterruptibleCoordinatorAlwaysDismissedDescription,
1999 flags_ui::kOsIos,
2000 FEATURE_VALUE_TYPE(kIOSInterruptibleCoordinatorStoppedSynchronously)},
Arthur Milchior35ee54f2024-12-06 13:07:462001 {"ios-interruptible-coordinator-stop-synchronously",
Arthur Milchiora41d18d52024-12-10 14:01:102002 flag_descriptions::kIOSInterruptibleCoordinatorStoppedSynchronouslyName,
2003 flag_descriptions::
2004 kIOSInterruptibleCoordinatorStoppedSynchronouslyDescription,
Arthur Milchior35ee54f2024-12-06 13:07:462005 flags_ui::kOsIos,
Arthur Milchiora41d18d52024-12-10 14:01:102006 FEATURE_VALUE_TYPE(kIOSInterruptibleCoordinatorStoppedSynchronously)},
Filipa Senrabe00cbe2024-04-19 14:21:332007 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
2008 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
2009 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:002010 {"autofill-enable-verve-card-support",
2011 flag_descriptions::kAutofillEnableVerveCardSupportName,
2012 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
2013 flags_ui::kOsIos,
2014 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ewann Pelle34939b62024-08-22 10:45:492015 {"tab-group-sync", flag_descriptions::kTabGroupSyncName,
2016 flag_descriptions::kTabGroupSyncDescription, flags_ui::kOsIos,
Louis Romero5a84afc2024-04-25 10:29:202017 FEATURE_VALUE_TYPE(kTabGroupSync)},
Ameur Hosni3d764c92024-05-28 14:11:122018 {"omnibox-suggestion-answer-migration",
2019 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
2020 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
2021 flags_ui::kOsIos,
2022 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:302023 kOmniboxSuggestionAnswerMigration)},
2024 {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name,
2025 flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos,
Olivier Robinf8374f12024-06-05 19:00:042026 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5,
2027 kTabResumption15Variations,
2028 "TabResumption1_5")},
Hira Mahmood6e2a894e2024-05-31 15:18:192029 {"send-tab-ios-push-notifications",
2030 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
2031 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
2032 flags_ui::kOsIos,
Hira Mahmood00c17e52024-10-09 14:30:482033 FEATURE_WITH_PARAMS_VALUE_TYPE(
2034 send_tab_to_self::kSendTabToSelfIOSPushNotifications,
2035 kSendTabIOSPushNotificationsVariations,
2036 "SendTabToSelfIOSPushNotifications")},
Olivier Robin08bc56d02024-06-05 14:05:182037 {"tab-resumption-2", flag_descriptions::kTabResumption2Name,
2038 flag_descriptions::kTabResumption2Description, flags_ui::kOsIos,
Olivier ROBINb17c14b92024-10-09 13:49:132039 FEATURE_VALUE_TYPE(kTabResumption2)},
Olivier ROBINcb76f4fe2024-06-05 16:11:422040 {"page-image-service-optimization-guide-salient-images",
2041 flag_descriptions::kPageImageServiceSalientImageName,
2042 flag_descriptions::kPageImageServiceSalientImageDescription,
2043 flags_ui::kOsIos,
2044 FEATURE_WITH_PARAMS_VALUE_TYPE(
2045 page_image_service::kImageServiceOptimizationGuideSalientImages,
2046 kImageServiceOptimizationGuideSalientImagesVariations,
2047 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:222048 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
2049 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
2050 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Charles Yangf8e7adf2024-06-11 00:17:002051 {"lens-filters-ablation-mode-enabled",
2052 flag_descriptions::kLensFiltersAblationModeEnabledName,
2053 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
2054 flags_ui::kOsIos,
2055 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
2056 kLensFiltersAblationModeVariations,
2057 "LensFiltersAblationMode")},
2058 {"lens-translate-toogle-mode-enabled",
2059 flag_descriptions::kLensTranslateToggleModeEnabledName,
2060 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
2061 flags_ui::kOsIos,
2062 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
2063 kLensTranslateToggleModeVariations,
2064 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:592065 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
2066 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
2067 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:492068 {"omnibox-ml-log-url-scoring-signals",
2069 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
2070 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
2071 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
2072 {"omnibox-ml-url-piecewise-mapped-search-blending",
2073 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
2074 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
2075 flags_ui::kOsIos,
2076 FEATURE_WITH_PARAMS_VALUE_TYPE(
2077 omnibox::kMlUrlPiecewiseMappedSearchBlending,
2078 kMlUrlPiecewiseMappedSearchBlendingVariations,
2079 "MlUrlPiecewiseMappedSearchBlending")},
2080 {"omnibox-ml-url-score-caching",
2081 flag_descriptions::kOmniboxMlUrlScoreCachingName,
2082 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
2083 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
2084 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
2085 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
2086 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
2087 kOmniboxMlUrlScoringVariations,
2088 "MlUrlScoring")},
2089 {"omnibox-ml-url-search-blending",
2090 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
2091 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
2092 flags_ui::kOsIos,
2093 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
2094 kMlUrlSearchBlendingVariations,
2095 "MlUrlScoring")},
2096 {"omnibox-ml-url-scoring-model",
2097 flag_descriptions::kOmniboxMlUrlScoringModelName,
2098 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
Khalid Peer4501c1f2024-06-27 16:12:042099 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel,
2100 kUrlScoringModelVariations,
2101 "MlUrlScoring")},
Siyu An4a486f02024-06-18 19:41:282102 {"autofill-show-manual-fill-for-virtual-cards",
2103 flag_descriptions::kAutofillShowManualFillForVirtualCardsName,
2104 flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription,
2105 flags_ui::kOsIos,
2106 FEATURE_VALUE_TYPE(
2107 autofill::features::kAutofillShowManualFillForVirtualCards)},
adamtaf85e48d2024-07-08 17:13:292108 {"home-customization", flag_descriptions::kHomeCustomizationName,
2109 flag_descriptions::kHomeCustomizationDescription, flags_ui::kOsIos,
2110 FEATURE_VALUE_TYPE(kHomeCustomization)},
Benjamin Williams0594caf2024-07-09 17:51:382111 {"safety-check-notifications",
2112 flag_descriptions::kSafetyCheckNotificationsName,
2113 flag_descriptions::kSafetyCheckNotificationsDescription, flags_ui::kOsIos,
2114 FEATURE_WITH_PARAMS_VALUE_TYPE(kSafetyCheckNotifications,
2115 kSafetyCheckNotificationsVariations,
2116 "SafetyCheckNotifications")},
Federica Germinarioa1fe0902024-07-12 08:28:462117 {"app-background-refresh-ios", flag_descriptions::kAppBackgroundRefreshName,
2118 flag_descriptions::kAppBackgroundRefreshDescription, flags_ui::kOsIos,
2119 FEATURE_VALUE_TYPE(kEnableAppBackgroundRefresh)},
Chris Lu3eba26312024-07-12 20:21:382120 {"home-memory-improvements", flag_descriptions::kHomeMemoryImprovementsName,
2121 flag_descriptions::kHomeMemoryImprovementsDescription, flags_ui::kOsIos,
2122 FEATURE_VALUE_TYPE(kHomeMemoryImprovements)},
Stephen McGruer8fe98b62024-07-16 13:10:132123 {"autofill-upload-card-request-timeout",
2124 flag_descriptions::kAutofillUploadCardRequestTimeoutName,
2125 flag_descriptions::kAutofillUploadCardRequestTimeoutDescription,
2126 flags_ui::kOsIos,
2127 FEATURE_WITH_PARAMS_VALUE_TYPE(
2128 autofill::features::kAutofillUploadCardRequestTimeout,
2129 kAutofillUploadCardRequestTimeoutOptions,
2130 "AutofillUploadCardRequestTimeout")},
Karol Sygiet6ac82c82024-07-16 14:22:392131 {"clear-undecryptable-passwords",
2132 flag_descriptions::kClearUndecryptablePasswordsName,
2133 flag_descriptions::kClearUndecryptablePasswordsDescription,
2134 flags_ui::kOsIos,
2135 FEATURE_VALUE_TYPE(
2136 password_manager::features::kClearUndecryptablePasswords)},
Stephen McGruer0904cae2024-07-17 19:54:462137 {"autofill-vcn-enroll-request-timeout",
2138 flag_descriptions::kAutofillVcnEnrollRequestTimeoutName,
2139 flag_descriptions::kAutofillVcnEnrollRequestTimeoutDescription,
2140 flags_ui::kOsIos,
2141 FEATURE_WITH_PARAMS_VALUE_TYPE(
2142 autofill::features::kAutofillVcnEnrollRequestTimeout,
2143 kAutofillVcnEnrollRequestTimeoutOptions,
2144 "AutofillVcnEnrollRequestTimeout")},
Charles Yang98bef0c2024-07-19 12:24:142145 {"lens-web-page-load-optimization-enabled",
2146 flag_descriptions::kLensWebPageLoadOptimizationEnabledName,
2147 flag_descriptions::kLensWebPageLoadOptimizationEnabledDescription,
2148 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageLoadOptimizationEnabled)},
Eric Ekey4a930592024-07-19 18:58:142149 {"segmented-default-browser-promo",
2150 flag_descriptions::kSegmentedDefaultBrowserPromoName,
2151 flag_descriptions::kSegmentedDefaultBrowserPromoDescription,
Briana McClurec2b62f92024-10-29 15:35:062152 flags_ui::kOsIos,
2153 FEATURE_WITH_PARAMS_VALUE_TYPE(kSegmentedDefaultBrowserPromo,
2154 kSegmentedDefaultBrowserPromoVariations,
2155 "SegmentedDBP-Animation")},
Junhui He52294652024-07-23 23:50:152156 {"autofill-unmask-card-request-timeout",
2157 flag_descriptions::kAutofillUnmaskCardRequestTimeoutName,
2158 flag_descriptions::kAutofillUnmaskCardRequestTimeoutDescription,
2159 flags_ui::kOsIos,
2160 FEATURE_VALUE_TYPE(autofill::features::kAutofillUnmaskCardRequestTimeout)},
vincbe1379832024-08-06 19:08:122161 {"autofill-across-iframes", flag_descriptions::kAutofillAcrossIframesName,
2162 flag_descriptions::kAutofillAcrossIframesDescription, flags_ui::kOsIos,
2163 FEATURE_VALUE_TYPE(autofill::features::kAutofillAcrossIframesIos)},
Cristian Ciacu62fe1912024-08-07 10:14:502164 {"ios-page-info-last-visited",
2165 flag_descriptions::kPageInfoLastVisitedIOSName,
2166 flag_descriptions::kPageInfoLastVisitedIOSDescription, flags_ui::kOsIos,
2167 FEATURE_VALUE_TYPE(kPageInfoLastVisitedIOS)},
Daniel White1ced9e62024-08-15 19:27:382168 {"enable-trait-collection-registration",
2169 flag_descriptions::kEnableTraitCollectionRegistrationName,
2170 flag_descriptions::kEnableTraitCollectionRegistrationDescription,
2171 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableTraitCollectionRegistration)},
Ernesto Izquierdo Cluaebe0a0252024-08-19 22:05:542172 {"autofill-isolated-world-ios",
2173 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSName,
2174 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSDescription,
2175 flags_ui::kOsIos,
2176 FEATURE_VALUE_TYPE(kAutofillIsolatedWorldForJavascriptIos)},
Ewann Pelle34939b62024-08-22 10:45:492177 {"tab-group-indicator", flag_descriptions::kTabGroupIndicatorName,
2178 flag_descriptions::kTabGroupIndicatorDescription, flags_ui::kOsIos,
Ewann Pelle1f48f922025-01-13 11:43:342179 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabGroupIndicator,
2180 kTabGroupIndicatorVariations,
2181 "TabGroupIndicator")},
thefrog8ed47452024-08-30 13:32:482182 {"safe-browsing-local-lists-use-sbv5",
2183 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Name,
2184 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Description,
2185 flags_ui::kOsIos, FEATURE_VALUE_TYPE(safe_browsing::kLocalListsUseSBv5)},
Chris Lu4c688e02024-09-07 00:48:082186 {"ios-price-tracking-notification-promo-card",
2187 flag_descriptions::kPriceTrackingPromoName,
2188 flag_descriptions::kPriceTrackingPromoDescription, flags_ui::kOsIos,
2189 FEATURE_VALUE_TYPE(commerce::kPriceTrackingPromo)},
Gloria Fang02964a442025-02-06 19:21:182190 {"ios-shop-card", flag_descriptions::kShopCardName,
2191 flag_descriptions::kShopCardDescription, flags_ui::kOsIos,
2192 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kShopCard,
2193 kShopCardOverrideOptions,
2194 "ShopCard")},
Chris Lu4c688e02024-09-07 00:48:082195 {"ios-segmentation-ephemeral-card-ranker",
2196 flag_descriptions::kSegmentationPlatformEphemeralCardRankerName,
2197 flag_descriptions::kSegmentationPlatformEphemeralCardRankerDescription,
2198 flags_ui::kOsIos,
2199 FEATURE_WITH_PARAMS_VALUE_TYPE(
2200 segmentation_platform::features::
2201 kSegmentationPlatformEphemeralCardRanker,
2202 kEphemeralCardRankerCardOverrideOptions,
2203 "SegmentationPlatformEphemeralCardRanker")},
Alexander Tekle8cf3c8e2024-09-13 21:38:072204 {"autofill-enable-log-form-events-to-all-parsed-form-types",
2205 flag_descriptions::kAutofillEnableLogFormEventsToAllParsedFormTypesName,
2206 flag_descriptions::
2207 kAutofillEnableLogFormEventsToAllParsedFormTypesDescription,
2208 flags_ui::kOsIos,
2209 FEATURE_VALUE_TYPE(
2210 autofill::features::kAutofillEnableLogFormEventsToAllParsedFormTypes)},
Radu Nitescu06133382024-10-21 18:33:292211 {"lens-overlay-enable-ipad-compatibility",
2212 flag_descriptions::kLensOverlayEnableIPadCompatibilityName,
2213 flag_descriptions::kLensOverlayEnableIPadCompatibilityDescription,
2214 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableIPadCompatibility)},
Radu Nitescub3e06f92025-02-06 17:32:252215 {"lens-overlay-enable-landscape-compatibility",
2216 flag_descriptions::kLensOverlayEnableLandscapeCompatibilityName,
2217 flag_descriptions::kLensOverlayEnableLandscapeCompatibilityDescription,
2218 flags_ui::kOsIos,
2219 FEATURE_VALUE_TYPE(kLensOverlayEnableLandscapeCompatibility)},
Ameur Hosni22b62d92024-09-25 10:51:022220 {"lens-overlay-force-show-onboarding-screen",
2221 flag_descriptions::kLensOverlayForceShowOnboardingScreenName,
2222 flag_descriptions::kLensOverlayForceShowOnboardingScreenDescription,
2223 flags_ui::kOsIos,
2224 FEATURE_VALUE_TYPE(kLensOverlayForceShowOnboardingScreen)},
Stepan Khapuginc5820242025-01-10 22:21:112225 {"lens-overlay-alternative-onboarding",
2226 flag_descriptions::kLensOverlayAlternativeOnboardingName,
2227 flag_descriptions::kLensOverlayAlternativeOnboardingDescription,
2228 flags_ui::kOsIos,
Radu Nitescu6e6dd7f52025-01-17 11:33:352229 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensOverlayAlternativeOnboarding,
2230 kLensOverlayOnboardingVariations,
2231 "kLensOverlayOnboarding")},
Gauthier Ambard766f4cf2024-09-26 16:56:252232 {"data-sharing", flag_descriptions::kDataSharingName,
2233 flag_descriptions::kDataSharingDescription, flags_ui::kOsIos,
2234 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingFeature)},
2235 {"data-sharing-join-only", flag_descriptions::kDataSharingJoinOnlyName,
2236 flag_descriptions::kDataSharingJoinOnlyDescription, flags_ui::kOsIos,
2237 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingJoinOnly)},
Rubin Deliallisib66a77a2024-10-02 18:09:482238 {"ios-soft-lock", flag_descriptions::kIOSSoftLockName,
2239 flag_descriptions::kIOSSoftLockDescription, flags_ui::kOsIos,
Rubin Deliallisi1d0b3ba2024-11-04 14:33:042240 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSoftLock,
2241 kIOSSoftLockVariations,
2242 "IOSSoftLock")},
Marc Treib31e4f9f2024-10-07 09:55:542243 {"separate-profiles-for-managed-accounts",
2244 flag_descriptions::kSeparateProfilesForManagedAccountsName,
2245 flag_descriptions::kSeparateProfilesForManagedAccountsDescription,
Olivier ROBINb17c14b92024-10-09 13:49:132246 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSeparateProfilesForManagedAccounts)},
2247 {"tab-resumption-2-reason", flag_descriptions::kTabResumption2ReasonName,
2248 flag_descriptions::kTabResumption2ReasonDescription, flags_ui::kOsIos,
2249 FEATURE_VALUE_TYPE(kTabResumption2Reason)},
2250 {"tab-resumption-images", flag_descriptions::kTabResumptionImagesName,
2251 flag_descriptions::kTabResumptionImagesDescription, flags_ui::kOsIos,
2252 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumptionImages,
2253 kTabResumptionImagesVariations,
2254 "TabResumption1_5")},
Benjamin Williamsd7f854b2024-10-09 17:12:272255 {"segmentation-platform-tips-ephemeral-card",
2256 flag_descriptions::kSegmentationPlatformTipsEphemeralCardName,
2257 flag_descriptions::kSegmentationPlatformTipsEphemeralCardDescription,
2258 flags_ui::kOsIos,
2259 FEATURE_VALUE_TYPE(segmentation_platform::features::
vincbf23f7332024-10-11 19:32:122260 kSegmentationPlatformTipsEphemeralCard)},
2261 {"ios-password-suggestion-bottom-sheet-v2",
2262 flag_descriptions::kPasswordSuggestionBottomSheetV2Name,
2263 flag_descriptions::kPasswordSuggestionBottomSheetV2Description,
2264 flags_ui::kOsIos,
Federica Germinariof58b5a7e2024-10-22 10:35:422265 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheetV2)},
Charles Yang11dd8ab2024-10-24 19:15:532266 {"lens-unary-apis-with-http-transport-enabled",
2267 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledName,
2268 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledDescription,
2269 flags_ui::kOsIos,
2270 FEATURE_VALUE_TYPE(kLensUnaryApisWithHttpTransportEnabled)},
Christian Xu6db322d2024-10-25 14:12:492271 {"lens-overlay-enable-same-tab-navigation",
2272 flag_descriptions::kLensOverlayEnableSameTabNavigationName,
2273 flag_descriptions::kLensOverlayEnableSameTabNavigationDescription,
2274 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableSameTabNavigation)},
Elmehdi Rahmaoui3c6e8012024-10-28 10:17:532275 {"ios-chrome-startup-parameters-async",
2276 flag_descriptions::kChromeStartupParametersAsyncName,
2277 flag_descriptions::kChromeStartupParametersAsyncDescription,
2278 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kChromeStartupParametersAsync)},
Elmehdi Rahmaoui63a0d8212025-01-07 11:42:482279 {"ios-youtube-incognito", flag_descriptions::kYoutubeIncognitoName,
2280 flag_descriptions::kYoutubeIncognitoDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui543d35f2025-01-16 10:09:422281 FEATURE_WITH_PARAMS_VALUE_TYPE(kYoutubeIncognito,
2282 kYoutubeIncognitoVariations,
2283 "IOSYoutubeIncognito")},
Christian Xua8459472024-10-31 13:39:082284 {"lens-overlay-enable-location-bar-entrypoint",
2285 flag_descriptions::kLensOverlayEnableLocationBarEntrypointName,
2286 flag_descriptions::kLensOverlayEnableLocationBarEntrypointDescription,
2287 flags_ui::kOsIos,
2288 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypoint)},
Radu Nitescuc42107b92025-02-13 17:32:272289 {"lens-overlay-enable-location-bar-entrypoint-on-srp",
2290 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPName,
2291 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPDescription,
2292 flags_ui::kOsIos,
2293 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypointOnSRP)},
2294 {"lens-overlay-enable-lvf-escape-hatch",
2295 flag_descriptions::kLensOverlayEnableLVFEscapeHatchName,
2296 flag_descriptions::kLensOverlayEnableLVFEscapeHatchDescription,
Radu Nitescu0c21e3c2025-02-13 21:27:192297 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableLVFEscapeHatch)},
Christian Xudddf1e012024-10-31 18:34:012298 {"lens-overlay-disable-price-insights",
2299 flag_descriptions::kLensOverlayDisablePriceInsightsName,
2300 flag_descriptions::kLensOverlayDisablePriceInsightsDescription,
2301 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayDisablePriceInsights)},
Chris Lu9fd38c62024-11-04 22:22:592302 {"ios-provisional-notification-alert",
2303 flag_descriptions::kProvisionalNotificationAlertName,
2304 flag_descriptions::kProvisionalNotificationAlertDescription,
2305 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kProvisionalNotificationAlert)},
Hira Mahmood431c8ab2024-11-05 17:16:292306 {"ios-start-time-startup-remediations",
2307 flag_descriptions::kIOSStartTimeStartupRemediationsName,
2308 flag_descriptions::kIOSStartTimeStartupRemediationsDescription,
2309 flags_ui::kOsIos,
2310 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSStartTimeStartupRemediations,
2311 kIOSStartTimeStartupRemediationsVariations,
2312 "IOSStartTimeStartupRemediations")},
vincb7867dc042024-11-06 14:25:052313 {"autofill-throttle-doc-form-scans",
2314 flag_descriptions::kAutofillThrottleDocumentFormScanName,
2315 flag_descriptions::kAutofillThrottleDocumentFormScanDescription,
2316 flags_ui::kOsIos,
2317 FEATURE_WITH_PARAMS_VALUE_TYPE(kAutofillThrottleDocumentFormScanIos,
2318 kAutofillThrottleDocFormScanVariations,
2319 "AutofillThrottleDocumentFormScan")},
vincb2bf7f5c2024-11-06 17:18:092320 {"autofill-throttle-filtered-doc-form-scan",
2321 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanName,
2322 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanDescription,
2323 flags_ui::kOsIos,
2324 FEATURE_WITH_PARAMS_VALUE_TYPE(
2325 kAutofillThrottleFilteredDocumentFormScanIos,
2326 kAutofillThrottleFilteredDocFormScanVariations,
2327 "AutofillThrottleFilteredDocumentFormScan")},
ginnnnnnny963c7fc2024-11-06 22:44:502328 {"ios-new-feed-positioning",
2329 flag_descriptions::kNewFeedPositioningExperimentName,
2330 flag_descriptions::kNewFeedPositioningExperimentDescription,
2331 flags_ui::kOsIos,
2332 FEATURE_WITH_PARAMS_VALUE_TYPE(kNewFeedPositioning,
2333 kNewFeedPositioningVariations,
2334 "IOSNewFeedPositioningStudy")},
Stephen McGruer5ac77b932024-11-07 20:09:432335 {"ios-disable-parcel-tracking",
2336 flag_descriptions::kIOSDisableParcelTrackingName,
2337 flag_descriptions::kIOSDisableParcelTrackingDescription, flags_ui::kOsIos,
2338 FEATURE_VALUE_TYPE(kIOSDisableParcelTracking)},
vincb91781772024-11-08 17:13:122339 {"autofill-payments-sheet-v2",
2340 flag_descriptions::kAutofillPaymentsSheetV2Name,
2341 flag_descriptions::kAutofillPaymentsSheetV2Description, flags_ui::kOsIos,
2342 FEATURE_VALUE_TYPE(kAutofillPaymentsSheetV2Ios)},
Hira Mahmoodf8533dc2024-11-12 16:24:252343 {"ios-start-time-browser-background-remediations",
2344 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsName,
2345 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsDescription,
2346 flags_ui::kOsIos,
2347 FEATURE_WITH_PARAMS_VALUE_TYPE(
2348 kIOSStartTimeBrowserBackgroundRemediations,
2349 kIOSStartTimeBrowserBackgroundRemediationsVariations,
2350 "IOSStartTimeStartupRemediations")},
Hira Mahmood664449872024-11-18 23:55:222351 {"set-up-list-in-first-run", flag_descriptions::kSetUpListInFirstRunName,
2352 flag_descriptions::kSetUpListInFirstRunNameDescription, flags_ui::kOsIos,
2353 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListInFirstRun,
2354 kSetUpListInFirstRunVariations,
2355 "SetUpListInFirstRun")},
Charles Yangf57489f2024-11-27 13:58:282356 {"lens-unary-http-transport-enabled",
2357 flag_descriptions::kLensUnaryHttpTransportEnabledName,
2358 flag_descriptions::kLensUnaryHttpTransportEnabledDescription,
2359 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryHttpTransportEnabled)},
Charles Yang8b4687c2024-12-11 02:42:192360 {"lens-clearcut-background-upload-enabled",
2361 flag_descriptions::kLensClearcutBackgroundUploadEnabledName,
2362 flag_descriptions::kLensClearcutBackgroundUploadEnabledDescription,
2363 flags_ui::kOsIos,
2364 FEATURE_VALUE_TYPE(kLensClearcutBackgroundUploadEnabled)},
2365 {"lens-clearcut-logger-fast-qos-enabled",
2366 flag_descriptions::kLensClearcutLoggerFastQosEnabledName,
2367 flag_descriptions::kLensClearcutLoggerFastQosEnabledDescription,
2368 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensClearcutLoggerFastQosEnabled)},
Hira Mahmood7577c9b672024-12-12 20:29:122369 {"set-up-list-shortened-duration",
2370 flag_descriptions::kSetUpListShortenedDurationName,
2371 flag_descriptions::kSetUpListShortenedDurationDescription,
2372 flags_ui::kOsIos,
2373 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListShortenedDuration,
2374 kSetUpListDurationVariations,
2375 "SetUpListShortenedDuration")},
Christian Xu375dcf72024-12-17 15:44:592376 {"enable-lens-overlay-price-insights-counterfactual",
2377 flag_descriptions::kLensOverlayPriceInsightsCounterfactualName,
2378 flag_descriptions::kLensOverlayPriceInsightsCounterfactualDescription,
2379 flags_ui::kOsIos,
2380 FEATURE_VALUE_TYPE(kLensOverlayPriceInsightsCounterfactual)},
Tommy Nyquiste1447512024-12-17 17:46:242381 {"collaboration-messaging", flag_descriptions::kCollaborationMessagingName,
2382 flag_descriptions::kCollaborationMessagingDescription, flags_ui::kOsIos,
Hailey Wang1f2d890a2024-12-26 20:23:562383 FEATURE_VALUE_TYPE(collaboration::features::kCollaborationMessaging)},
Charles Yangfd397e82024-12-19 17:11:452384 {"lens-single-tap-text-selection-disabled",
2385 flag_descriptions::kLensSingleTapTextSelectionDisabledName,
2386 flag_descriptions::kLensSingleTapTextSelectionDisabledDescription,
2387 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensSingleTapTextSelectionDisabled)},
Hira Mahmoodf6906a82025-01-02 17:55:092388 {"updated-fre-screens-sequence", flag_descriptions::kUpdatedFRESequenceName,
2389 flag_descriptions::kUpdatedFRESequenceDescription, flags_ui::kOsIos,
2390 FEATURE_WITH_PARAMS_VALUE_TYPE(first_run::kUpdatedFirstRunSequence,
2391 kUpdatedFirstRunSequenceVariations,
2392 "UpdatedFirstRunSequence")},
Hira Mahmood9f1c19092025-01-06 17:47:432393 {"set-up-list-without-sign-in-item",
2394 flag_descriptions::kSetUpListWithoutSignInItemName,
2395 flag_descriptions::kSetUpListWithoutSignInItemDescription,
2396 flags_ui::kOsIos,
2397 FEATURE_VALUE_TYPE(set_up_list::kSetUpListWithoutSignInItem)},
Fernando Ramirez3c16f9742025-01-07 22:40:362398 {"autofill-enable-card-benefits-for-bmo",
2399 flag_descriptions::kAutofillEnableCardBenefitsForBmoName,
2400 flag_descriptions::kAutofillEnableCardBenefitsForBmoDescription,
2401 flags_ui::kOsIos,
2402 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsForBmo)},
Olivier ROBIN1a0db2a2025-01-09 10:41:532403 {"ios-manage-account-storage",
2404 flag_descriptions::kIOSManageAccountStorageName,
2405 flag_descriptions::kIOSManageAccountStorageDescription, flags_ui::kOsIos,
2406 FEATURE_VALUE_TYPE(kIOSManageAccountStorage)},
Nohemi Fernandez4e66e7182025-01-16 10:57:322407 {"supervised-user-local-web-approvals",
2408 flag_descriptions::kSupervisedUserLocalWebApprovalsName,
2409 flag_descriptions::kSupervisedUserLocalWebApprovalsDescription,
2410 flags_ui::kOsIos, FEATURE_VALUE_TYPE(supervised_user::kLocalWebApprovals)},
Daniel Whitee4562ce2025-01-21 17:36:562411 {"download-auto-deletion", flag_descriptions::kDownloadAutoDeletionName,
2412 flag_descriptions::kDownloadAutoDeletionDescription, flags_ui::kOsIos,
2413 FEATURE_VALUE_TYPE(kDownloadAutoDeletionFeatureEnabled)},
Charles Yang8bd747632025-01-22 20:17:002414 {"lens-ink-multi-sample-mode-disabled",
2415 flag_descriptions::kLensInkMultiSampleModeDisabledName,
2416 flag_descriptions::kLensInkMultiSampleModeDisabledDescription,
2417 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensInkMultiSampleModeDisabled)},
Briana McClure09b0c3632025-01-23 21:57:182418 {"animated-default-browser-promo-in-fre",
2419 flag_descriptions::kAnimatedDefaultBrowserPromoInFREName,
2420 flag_descriptions::kAnimatedDefaultBrowserPromoInFREDescription,
2421 flags_ui::kOsIos,
Briana McClure21685c42025-02-06 15:18:222422 FEATURE_WITH_PARAMS_VALUE_TYPE(
2423 first_run::kAnimatedDefaultBrowserPromoInFRE,
2424 kAnimatedDefaultBrowserPromoInFREVariations,
2425 "AnimatedDBPInFRE-Layout")},
Fernando Ramirezfcdb52f2025-01-24 19:27:352426 {"autofill-enable-allowlist-for-bmo-card-category-benefits",
2427 flag_descriptions::kAutofillEnableAllowlistForBmoCardCategoryBenefitsName,
2428 flag_descriptions::
2429 kAutofillEnableAllowlistForBmoCardCategoryBenefitsDescription,
2430 flags_ui::kOsIos,
2431 FEATURE_VALUE_TYPE(
2432 autofill::features::
2433 kAutofillEnableAllowlistForBmoCardCategoryBenefits)},
Marc Treib921f3ef2025-01-27 16:51:012434 {"use-account-list-from-identity-manager",
2435 flag_descriptions::kUseAccountListFromIdentityManagerName,
2436 flag_descriptions::kUseAccountListFromIdentityManagerDescription,
2437 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kUseAccountListFromIdentityManager)},
“Prasanaa”96e15992025-01-30 15:44:352438 {"fullscreen-transition", flag_descriptions::kFullscreenTransitionName,
2439 flag_descriptions::kFullscreenTransitionDescription, flags_ui::kOsIos,
2440 FEATURE_WITH_PARAMS_VALUE_TYPE(kFullscreenTransition,
2441 kFullscreenTransitionVariations,
ginnnnnnny0e892172025-02-04 21:45:172442 "IOSFull`screenTransition")},
ginnnnnnnyccce0952025-02-03 22:44:362443 {"ios-deprecate-feed-header",
2444 flag_descriptions::kDeprecateFeedHeaderExperimentName,
2445 flag_descriptions::kDeprecateFeedHeaderExperimentDescription,
2446 flags_ui::kOsIos,
2447 FEATURE_WITH_PARAMS_VALUE_TYPE(kDeprecateFeedHeader,
2448 kDeprecateFeedHeaderVariations,
2449 "IOSDeprecateFeedHeader")},
“Prasanaa”6ad22342025-02-25 12:55:172450 {"refactor-toolbars-size", flag_descriptions::kRefactorToolbarsSizeName,
2451 flag_descriptions::kRefactorToolbarsSizeDescription, flags_ui::kOsIos,
2452 FEATURE_VALUE_TYPE(kRefactorToolbarsSize)},
Charles Yangfc3655b62025-02-05 21:49:262453 {"lens-gesture-text-selection-disabled",
2454 flag_descriptions::kLensGestureTextSelectionDisabledName,
2455 flag_descriptions::kLensGestureTextSelectionDisabledDescription,
2456 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensGestureTextSelectionDisabled)},
Sourav0691b752025-02-07 16:44:072457 {"add-address-manually", flag_descriptions::kAddAddressManuallyName,
2458 flag_descriptions::kAddAddressManuallyDescription, flags_ui::kOsIos,
2459 FEATURE_VALUE_TYPE(kAddAddressManually)},
Charles Yangca6175732025-02-11 18:21:392460 {"lens-vsint-param-enabled", flag_descriptions::kLensVsintParamEnabledName,
2461 flag_descriptions::kLensVsintParamEnabledDescription, flags_ui::kOsIos,
2462 FEATURE_VALUE_TYPE(kLensVsintParamEnabled)},
Charles Yang6b2639d2025-02-11 19:24:042463 {"lens-unary-client-data-header-enabled",
2464 flag_descriptions::kLensUnaryClientDataHeaderEnabledName,
2465 flag_descriptions::kLensUnaryClientDataHeaderEnabledDescription,
2466 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryClientDataHeaderEnabled)},
Elmehdi Rahmaoui8d7eb922025-02-13 11:40:542467 {"ios-new-share-extension", flag_descriptions::kNewShareExtensionName,
2468 flag_descriptions::kNewShareExtensionDescription, flags_ui::kOsIos,
2469 FEATURE_VALUE_TYPE(kNewShareExtension)},
Hira Mahmooddcc63d7f2025-02-19 17:28:572470 {"ios-best-features-screen",
2471 flag_descriptions::kBestFeaturesScreenInFirstRunName,
2472 flag_descriptions::kBestFeaturesScreenInFirstRunDescription,
2473 flags_ui::kOsIos,
2474 FEATURE_WITH_PARAMS_VALUE_TYPE(first_run::kBestFeaturesScreenInFirstRun,
2475 kBestFeaturesScreenInFirstRunVariations,
2476 "BestFeaturesScreenInFirstRun")},
Fernando Ramirez572ab312025-02-19 20:08:492477 {"autofill-enable-card-expired-text",
2478 flag_descriptions::kAutofillEnableCardExpiredTextName,
2479 flag_descriptions::kAutofillEnableCardExpiredTextDescription,
2480 flags_ui::kOsIos,
2481 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardExpiredText)},
Noémie St-Onge4a534a122025-02-25 19:14:092482 {"ios-passkeys-m2", flag_descriptions::kIOSPasskeysM2Name,
2483 flag_descriptions::kIOSPasskeysM2Description, flags_ui::kOsIos,
2484 FEATURE_VALUE_TYPE(kIOSPasskeysM2)},
Hira Mahmood51082d72025-02-26 21:04:402485 {"manual-log-uploads-in-the-fre",
2486 flag_descriptions::kManualLogUploadsInFREName,
2487 flag_descriptions::kManualLogUploadsInFREDescription, flags_ui::kOsIos,
2488 FEATURE_VALUE_TYPE(first_run::kManualLogUploadsInTheFRE)},
Kavita Soni42e1c422025-02-27 22:09:092489 {"autofill-disable-default-save-card-fix-flow-detection",
2490 flag_descriptions::kAutofillDisableDefaultSaveCardFixFlowDetectionName,
2491 flag_descriptions::
2492 kAutofillDisableDefaultSaveCardFixFlowDetectionDescription,
2493 flags_ui::kOsIos,
2494 FEATURE_VALUE_TYPE(
2495 autofill::features::kAutofillDisableDefaultSaveCardFixFlowDetection)},
Charles Yangbf00df62025-02-28 17:51:202496 {"lens-unary-api-salient-text-enabled",
2497 flag_descriptions::kLensUnaryApiSalientTextEnabledName,
2498 flag_descriptions::kLensUnaryApiSalientTextEnabledDescription,
2499 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryApiSalientTextEnabled)},
Federica Germinariof58b5a7e2024-10-22 10:35:422500};
sdefresne14900ee2015-11-27 14:43:212501
Rohit Raobed794c2020-04-27 15:27:452502bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
2503 return false;
2504}
2505
2506flags_ui::FlagsState& GetGlobalFlagsState() {
2507 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
2508 nullptr);
2509 return *flags_state;
2510}
David Jean5ca263c2021-08-18 09:19:302511// Creates the experimental test policies map, used by AsyncPolicyLoader and
2512// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342513NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:212514 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2515
Guillaume Jenkins25e9bd72020-08-27 17:39:062516 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:552517 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:062518 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:552519
Guillaume Jenkins25e9bd72020-08-27 17:39:062520 // Set some sample policy values for testing if EnableSamplePolicies is set to
2521 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:402522 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:552523 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:012524 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
2525
Guillaume Jenkinseeb7007c2020-06-25 22:55:402526 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
2527
2528 // 2 = Disable all variations
2529 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
2530
2531 // 2 = Do not allow any site to show popups
2532 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
2533
Tina Wang5abee802020-07-29 23:09:522534 // Set default search engine.
2535 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
2536 @YES,
2537 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
2538 @"http://www.google.com/search?q={searchTerms}",
2539 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:022540 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:522541
Tina Wang89068c82020-10-29 15:51:502542 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
2543
Gauthier Ambard21b23702021-04-16 16:11:272544 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
2545
Tina Wang59d0b7e2020-08-11 04:41:012546 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:532547
2548 // 2 = Enhanced safe browsing protection
2549 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
2550
2551 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:292552
2553 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:552554 }];
2555 }
2556
Ewann227a3c02021-04-19 12:04:542557 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:042558 NSString* sync_policy_key =
2559 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:302560 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:542561 }
Ewann227a3c02021-04-19 12:04:542562
Ewann570a6302021-08-17 07:22:422563 // SyncTypesListDisabled policy.
2564 NSString* Sync_types_list_disabled_key =
2565 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
2566 NSMutableArray* Sync_types_list_disabled_values =
2567 [[NSMutableArray alloc] init];
2568 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
2569 [Sync_types_list_disabled_values addObject:@"bookmarks"];
2570 }
2571 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
2572 [Sync_types_list_disabled_values addObject:@"readingList"];
2573 }
2574 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
2575 [Sync_types_list_disabled_values addObject:@"preferences"];
2576 }
2577 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
2578 [Sync_types_list_disabled_values addObject:@"passwords"];
2579 }
2580 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
2581 [Sync_types_list_disabled_values addObject:@"autofill"];
2582 }
2583 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
2584 [Sync_types_list_disabled_values addObject:@"typedUrls"];
2585 }
2586 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
2587 [Sync_types_list_disabled_values addObject:@"tabs"];
2588 }
2589 if ([Sync_types_list_disabled_values count]) {
2590 [testing_policies addEntriesFromDictionary:@{
2591 Sync_types_list_disabled_key : Sync_types_list_disabled_values
2592 }];
Ewann570a6302021-08-17 07:22:422593 }
2594
Gauthier Ambard073eaa92021-11-22 15:24:132595 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:522596 NSString* incognito_policy_key =
2597 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
2598 NSInteger incognito_mode_availability =
2599 [defaults integerForKey:incognito_policy_key];
2600 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:522601 [testing_policies addEntriesFromDictionary:@{
2602 incognito_policy_key : @(incognito_mode_availability),
2603 }];
2604 }
2605
Ewann40a8f8a2021-07-29 10:01:202606 NSString* restriction_pattern =
2607 [defaults stringForKey:@"RestrictAccountsToPatterns"];
2608 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:292609 NSString* restrict_key =
2610 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:202611 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:292612 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:202613 }];
2614 }
2615
Vincent Boisselle19200bc2021-09-01 17:58:252616 // If the sign-in policy is set (not "None"), add the policy key to the list
2617 // of enabled experimental policies, and set the value.
2618 NSString* const kSigninPolicyKey = @"BrowserSignin";
2619 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2620 if (signin_policy_mode) {
2621 // Remove the mode offset that was used to represent the unset policy.
2622 --signin_policy_mode;
2623 DCHECK(signin_policy_mode >= 0);
2624
Vincent Boisselle19200bc2021-09-01 17:58:252625 [testing_policies addEntriesFromDictionary:@{
2626 kSigninPolicyKey : @(signin_policy_mode),
2627 }];
2628 }
2629
Veronique Nguyen9b1044f2022-01-11 14:41:132630 // If the New Tab Page URL is set (not empty) add the value to the list of
2631 // test policies.
2632 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2633 if ([ntp_location length] > 0) {
2634 NSString* ntp_location_key =
2635 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2636 [testing_policies
2637 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572638 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132639 }
2640
Ali Juma9ec36d2b2022-03-28 14:53:122641 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2642 NSString* allow_backups_key =
2643 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2644 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2645 [allowed_experimental_policies addObject:allow_backups_key];
2646 }
2647
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242648 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2649 NSString* password_manager_key =
2650 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2651 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2652 [allowed_experimental_policies addObject:password_manager_key];
2653 }
Vincent Boisselle003569a72023-09-11 16:03:122654
2655 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2656 NSString* user_policy_merge_key =
2657 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2658 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2659 [allowed_experimental_policies addObject:user_policy_merge_key];
2660 }
2661
Arthur Milchiorbb44f5c82023-03-14 16:14:462662 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2663 NSString* managed_bookmarks_key =
2664 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2665 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572666 @"["
2667 // The following gets filtered out from
2668 // the JSON string when parsed.
2669 " {"
2670 " \"toplevel_name\": \"Managed Bookmarks\""
2671 " },"
2672 " {"
2673 " \"name\": \"Google\","
2674 " \"url\": \"google.com\""
2675 " },"
2676 " {"
2677 " \"name\": \"Empty Folder\","
2678 " \"children\": []"
2679 " },"
2680 " {"
2681 " \"name\": \"Big Folder\","
2682 " \"children\": ["
2683 " {"
2684 " \"name\": \"Youtube\","
2685 " \"url\": \"youtube.com\""
2686 " },"
2687 " {"
2688 " \"name\": \"Chromium\","
2689 " \"url\": \"chromium.org\""
2690 " },"
2691 " {"
2692 " \"name\": \"More Stuff\","
2693 " \"children\": ["
2694 " {"
2695 " \"name\": \"Bugs\","
2696 " \"url\": \"crbug.com\""
2697 " }"
2698 " ]"
2699 " }"
2700 " ]"
2701 " }"
2702 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462703 [testing_policies addEntriesFromDictionary:@{
2704 managed_bookmarks_key : managed_bookmarks_value
2705 }];
2706 [allowed_experimental_policies addObject:managed_bookmarks_key];
2707 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242708
Guillaume Jenkins25e9bd72020-08-27 17:39:062709 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2710 // policy.
2711 if ([allowed_experimental_policies count] > 0) {
2712 [testing_policies setValue:allowed_experimental_policies
2713 forKey:base::SysUTF8ToNSString(
2714 policy::key::kEnableExperimentalPolicies)];
2715 }
2716
jlebel2eb40222022-05-06 11:15:422717 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2718 switch ([defaults integerForKey:metrics_reporting_key]) {
2719 case 1:
2720 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132721 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422722 break;
2723 case 2:
2724 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132725 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422726 break;
2727 default:
2728 // Metrics reporting not managed.
2729 break;
2730 }
2731
David Jean6f85d44f2021-08-19 08:08:452732 // Warning: Add new flags to TestingPoliciesHash() below.
2733
David Jean5ca263c2021-08-18 09:19:302734 return testing_policies;
2735}
David Jean6f85d44f2021-08-19 08:08:452736
David Jean5ca263c2021-08-18 09:19:302737} // namespace
2738
Gauthier Ambard02dbf022022-08-23 08:28:472739// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302740void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2741 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2742
2743 // Set the UA flag if UseMobileSafariUA is enabled.
2744 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2745 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2746 // Chrome puts its product token.
2747 int32_t major = 0;
2748 int32_t minor = 0;
2749 int32_t bugfix = 0;
2750 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2751 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2752
2753 command_line->AppendSwitchASCII(switches::kUserAgent,
2754 web::BuildMobileUserAgent(product));
2755 }
2756
2757 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342758 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302759
2760 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2761 // Management to enabled and add the token to the list of policies.
2762 NSString* token_key =
2763 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2764 NSString* token = [defaults stringForKey:token_key];
2765
2766 if ([token length] > 0) {
2767 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2768 [testing_policies setValue:token forKey:token_key];
2769 }
2770
Guillaume Jenkins57606d72020-08-13 17:32:552771 // If some policies were set, commit them to the app's registration defaults.
2772 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402773 NSDictionary* registration_defaults =
2774 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2775 [defaults registerDefaults:registration_defaults];
2776 }
2777
sdefresne14900ee2015-11-27 14:43:212778 // Freeform commandline flags. These are added last, so that any flags added
2779 // earlier in this function take precedence.
2780 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2781 base::CommandLine::StringVector flags;
2782 // Append an empty "program" argument.
2783 flags.push_back("");
2784
2785 // The number of flags corresponds to the number of text fields in
2786 // Experimental.plist.
2787 const int kNumFreeformFlags = 5;
2788 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2789 NSString* key =
2790 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2791 NSString* flag = [defaults stringForKey:key];
2792 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332793 // iOS keyboard replaces -- with —, so undo that.
2794 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2795 withString:@"--"
2796 options:0
2797 range:NSMakeRange(0, 1)];
2798 // To make things easier, allow flags with no dashes by prepending them
2799 // here. This also allows for flags that just have one dash if they
2800 // exist.
2801 if (![flag hasPrefix:@"-"]) {
2802 flag = [@"--" stringByAppendingString:flag];
2803 }
sdefresne14900ee2015-11-27 14:43:212804 flags.push_back(base::SysNSStringToUTF8(flag));
2805 }
2806 }
2807
2808 base::CommandLine temp_command_line(flags);
2809 command_line->AppendArguments(temp_command_line, false);
2810 }
msardafc76f662017-02-24 12:46:282811
justincohendacc85d2017-06-28 23:34:102812 // Populate command line flag for 3rd party keyboard omnibox workaround.
2813 NSString* enableThirdPartyKeyboardWorkaround =
2814 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2815 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2816 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2817 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2818 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2819 }
2820
Sylvain Defresned3cd8d92022-01-18 13:35:082821 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212822}
2823
sdefresne14900ee2015-11-27 14:43:212824void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2825 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182826 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112827 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532828 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212829}
2830
jkrcalbf073372016-07-29 07:21:312831std::vector<std::string> RegisterAllFeatureVariationParameters(
2832 flags_ui::FlagsStorage* flags_storage,
2833 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182834 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2835 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312836}
2837
sdefresne14900ee2015-11-27 14:43:212838void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2839 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502840 base::Value::List& supported_entries,
2841 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182842 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212843 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512844 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212845}
2846
2847void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2848 const std::string& internal_name,
2849 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182850 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2851 enable);
sdefresne14900ee2015-11-27 14:43:212852}
2853
2854void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182855 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212856}
2857
Nicolas MacBeth972e2592023-02-23 15:22:092858bool IsRestartNeededToCommitChanges() {
2859 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2860}
2861
sdefresne14900ee2015-11-27 14:43:212862namespace testing {
2863
Elly Fong-Jones323ab1092021-08-23 22:36:312864base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2865 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532866 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212867}
2868
2869} // namespace testing