blob: 388ce0b1694d410c7d0315a021419d6a63153d71 [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 Ambard5b124d302025-03-12 13:38:4035#import "components/data_sharing/public/switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5736#import "components/dom_distiller/core/dom_distiller_switches.h"
Raj Tb95d813542022-11-16 21:27:5237#import "components/download/public/background_service/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5738#import "components/enterprise/browser/enterprise_switches.h"
39#import "components/feature_engagement/public/feature_constants.h"
40#import "components/feature_engagement/public/feature_list.h"
41#import "components/feed/feed_feature_list.h"
Benjamin Williams11f39912023-04-13 19:00:2542#import "components/history/core/browser/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5743#import "components/invalidation/impl/invalidation_switches.h"
Benjamin Williamsaa8da8142022-11-14 19:51:0344#import "components/ntp_tiles/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5745#import "components/ntp_tiles/switches.h"
46#import "components/omnibox/browser/omnibox_field_trial.h"
Fabio Tirelo7d1f1ba2024-12-18 23:01:1247#import "components/omnibox/common/omnibox_feature_configs.h"
Gauthier Ambard999088c2022-09-13 08:36:5748#import "components/omnibox/common/omnibox_features.h"
49#import "components/optimization_guide/core/optimization_guide_features.h"
Raj Ta921ffc2022-08-25 19:00:2050#import "components/optimization_guide/core/optimization_guide_switches.h"
Raj Tc66dd122024-04-01 18:48:3951#import "components/page_content_annotations/core/page_content_annotations_features.h"
Olivier ROBINcb76f4fe2024-06-05 16:11:4252#import "components/page_image_service/features.h"
Vasilii Sukhanov32b14452023-10-12 17:31:2753#import "components/password_manager/core/browser/features/password_features.h"
Gauthier Ambard999088c2022-09-13 08:36:5754#import "components/password_manager/core/common/password_manager_features.h"
55#import "components/payments/core/features.h"
Guillaume Jenkinseeb7007c2020-06-25 22:55:4056#import "components/policy/core/common/policy_loader_ios_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5757#import "components/policy/policy_constants.h"
58#import "components/safe_browsing/core/common/features.h"
Benjamin Williamsbd411e892024-10-25 15:59:3159#import "components/segmentation_platform/embedder/home_modules/constants.h"
Chris Lu6fd4eaf2023-08-08 18:29:3060#import "components/segmentation_platform/public/constants.h"
Chris Lub0bad572023-08-07 18:13:2961#import "components/segmentation_platform/public/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2562#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5763#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
64#import "components/signin/core/browser/account_reconcilor.h"
65#import "components/signin/ios/browser/features.h"
66#import "components/signin/public/base/signin_switches.h"
67#import "components/strings/grit/components_strings.h"
Nohemi Fernandez64acf982023-08-04 09:27:1568#import "components/supervised_user/core/common/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5769#import "components/sync/base/command_line_switches.h"
70#import "components/sync/base/features.h"
71#import "components/sync/base/pref_names.h"
72#import "components/translate/core/browser/translate_prefs.h"
73#import "components/translate/core/common/translate_util.h"
rbpotter422d5eb2025-02-05 16:42:4874#import "components/webui/flags/feature_entry.h"
75#import "components/webui/flags/feature_entry_macros.h"
76#import "components/webui/flags/flags_storage.h"
77#import "components/webui/flags/flags_ui_switches.h"
Ed Chin91e44992022-07-27 13:42:3478#import "ios/chrome/app/background_mode_buildflags.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"
Daniel White37c85a22025-03-03 16:37:3683#import "ios/chrome/browser/download/ui/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"
Nicolas MacBeth12449f72025-03-11 21:19:4890#import "ios/chrome/browser/intelligence/features/features.h"
Ali Jumad29dc1872023-10-19 13:33:5891#import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h"
Christian Xuff884802024-11-25 23:36:1892#import "ios/chrome/browser/lens/ui_bundled/features.h"
Hira Mahmood664449872024-11-18 23:55:2293#import "ios/chrome/browser/ntp/model/features.h"
Chris Lu09019af2024-08-28 08:38:4494#import "ios/chrome/browser/ntp/ui_bundled/new_tab_page_feature.h"
Christian Xua224fbd2025-01-30 14:55:2795#import "ios/chrome/browser/omnibox/public/omnibox_ui_features.h"
Stepan Khapugin34e459742024-12-06 09:39:5996#import "ios/chrome/browser/page_info/ui_bundled/features.h"
mmrashadd0c7f952023-12-14 13:36:3897#import "ios/chrome/browser/policy/model/policy_util.h"
Ameur Hosni51b5aaf2025-03-25 16:33:2698#import "ios/chrome/browser/popup_menu/ui_bundled/overflow_menu/feature_flags.h"
Cheick Cisse85457f22024-05-23 22:37:5999#import "ios/chrome/browser/price_insights/model/price_insights_feature.h"
Stepan Khapugin5694d702024-01-31 13:23:08100#import "ios/chrome/browser/promos_manager/model/features.h"
Nohemi Fernandez11751ec2025-03-26 18:24:37101#import "ios/chrome/browser/reader_mode/model/features.h"
mmrashadf158cad942023-10-03 09:15:48102#import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h"
Christian Xu51be15a2024-11-26 17:42:19103#import "ios/chrome/browser/settings/ui_bundled/clear_browsing_data/features.h"
Christian Xub0c68ff2024-11-28 11:50:47104#import "ios/chrome/browser/settings/ui_bundled/google_services/features.h"
Xu Li9854c992024-12-19 20:53:08105#import "ios/chrome/browser/settings/ui_bundled/password/password_manager_ui_features.h"
Christian Xu585a04512024-11-27 16:29:49106#import "ios/chrome/browser/settings/ui_bundled/privacy/privacy_guide/features.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:46107#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:35108#import "ios/chrome/browser/shared/public/features/system_flags.h"
Tina Wang75f21e82024-07-01 18:00:35109#import "ios/chrome/browser/start_surface/ui_bundled/start_surface_features.h"
Ewann Pelled2eaeba2023-09-19 09:15:28110#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Ewann Pelle1f48f922025-01-13 11:43:34111#import "ios/chrome/browser/toolbar/ui_bundled/tab_groups/tab_group_indicator_features_utils.h"
Weizhong Xia8b908bda2023-12-05 16:00:22112#import "ios/chrome/browser/web/model/features.h"
Gauthier Ambard8c115362025-03-19 13:45:24113#import "ios/chrome/browser/whats_new/coordinator/whats_new_util.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
Christian Xu07d600192023-07-24 12:29:52434const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
435 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
436const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
437 {kBottomOmniboxDefaultSettingParam,
438 kBottomOmniboxDefaultSettingParamBottom}};
439const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
440 {{kBottomOmniboxDefaultSettingParam,
441 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
442const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
443 {
444 {"Top", kBottomOmniboxDefaultSettingTop,
445 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
446 {"Bottom", kBottomOmniboxDefaultSettingBottom,
447 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
448 {"Bottom for Safari Switcher",
449 kBottomOmniboxDefaultSettingSafariSwitcher,
450 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
451};
452
Cheick Cisse85457f22024-05-23 22:37:59453constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
454 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
455constexpr flags_ui::FeatureEntry::FeatureParam
456 kPriceInsightsGoodDealNowParam[] = {
457 {kLowPriceParam, kLowPriceParamGoodDealNow}};
458constexpr flags_ui::FeatureEntry::FeatureParam
459 kPriceInsightsSeePriceHistoryParam[] = {
460 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
461constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
462 {{"Price is low", kPriceInsightsPriceIsLowParam,
463 std::size(kPriceInsightsPriceIsLowParam), nullptr},
464 {"Good deal now", kPriceInsightsGoodDealNowParam,
465 std::size(kPriceInsightsGoodDealNowParam), nullptr},
466 {"See price history", kPriceInsightsSeePriceHistoryParam,
467 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
468
Olivier ROBIN82b67002023-07-31 14:34:46469const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
470 {web::features::kOneTapForMapsConsentModeParamTitle,
471 web::features::kOneTapForMapsConsentModeDefaultParam}};
472const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
473 {web::features::kOneTapForMapsConsentModeParamTitle,
474 web::features::kOneTapForMapsConsentModeForcedParam}};
475const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
476 {web::features::kOneTapForMapsConsentModeParamTitle,
477 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31478const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
479 {web::features::kOneTapForMapsConsentModeParamTitle,
480 web::features::kOneTapForMapsConsentModeIPHParam}};
481const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
482 {web::features::kOneTapForMapsConsentModeParamTitle,
483 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46484const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
485 {"Consent Default", kOneTapForMapsConsentModeDefault,
486 std::size(kOneTapForMapsConsentModeDefault), nullptr},
487 {"Consent Forced", kOneTapForMapsConsentModeForced,
488 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31489 {"Consent IPH", kOneTapForMapsConsentModeIPH,
490 std::size(kOneTapForMapsConsentModeIPH), nullptr},
491 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
492 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46493 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
494 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
495};
496
Benjamin Williams1dc8f2342024-01-04 21:25:55497const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
498 {kIOSDockingPromoExperimentType, "0"}};
499const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
500 {kIOSDockingPromoExperimentType, "1"}};
501const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
502 {kIOSDockingPromoExperimentType, "2"}};
503
504const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
505 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
506 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
507 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
508 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
509 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
510 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
511
Olivier ROBINcb76f4fe2024-06-05 16:11:42512const FeatureEntry::FeatureVariation
513 kImageServiceOptimizationGuideSalientImagesVariations[] = {
514 {"High Performance Canonicalization", nullptr, 0, "3362133"},
515};
516
Olivier ROBINb17c14b92024-10-09 13:49:13517const FeatureEntry::FeatureParam kTabResumptionImagesOnlyThumbnail[] = {
518 {kTabResumptionImagesTypes, kTabResumptionImagesTypesThumbnails}};
519const FeatureEntry::FeatureParam kTabResumptionImagesOnlySalient[] = {
520 {kTabResumptionImagesTypes, kTabResumptionImagesTypesSalient}};
521
522const FeatureEntry::FeatureVariation kTabResumptionImagesVariations[] = {
523 {"Only thumbnails", kTabResumptionImagesOnlyThumbnail,
524 std::size(kTabResumptionImagesOnlyThumbnail), nullptr},
525 {"Only salient", kTabResumptionImagesOnlySalient,
526 std::size(kTabResumptionImagesOnlySalient), nullptr},
527};
528
Charles Yangf8e7adf2024-06-11 00:17:00529// Uses int values from Lens filters ablation mode enum.
530const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
531 {kLensFiltersAblationMode, "0"}};
532const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
533 {kLensFiltersAblationMode, "1"}};
534const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
535 {kLensFiltersAblationMode, "2"}};
536const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
537 {kLensFiltersAblationMode, "3"}};
538
539const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
540 {"(Disabled)", kLensFiltersAblationModeDisabled,
541 std::size(kLensFiltersAblationModeDisabled), nullptr},
542 {"(Post Capture)", kLensFiltersAblationModePostCapture,
543 std::size(kLensFiltersAblationModePostCapture), nullptr},
544 {"(LVF)", kLensFiltersAblationModeLVF,
545 std::size(kLensFiltersAblationModeLVF), nullptr},
546 {"(Always)", kLensFiltersAblationModeAlways,
547 std::size(kLensFiltersAblationModeAlways), nullptr}};
548
549// Uses int values from Lens translate toggle mode enum.
550const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
551 {kLensTranslateToggleMode, "0"}};
552const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
553 {kLensTranslateToggleMode, "1"}};
554const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
555 {kLensTranslateToggleMode, "2"}};
556const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
557 {kLensTranslateToggleMode, "3"}};
558
559const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
560 {"(Disabled)", kLensTranslateToggleModeDisabled,
561 std::size(kLensTranslateToggleModeDisabled), nullptr},
562 {"(Post Capture)", kLensTranslateToggleModePostCapture,
563 std::size(kLensTranslateToggleModePostCapture), nullptr},
564 {"(LVF)", kLensTranslateToggleModeLVF,
565 std::size(kLensTranslateToggleModeLVF), nullptr},
566 {"(Always)", kLensTranslateToggleModeAlways,
567 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04568
Ewann Pelle1f48f922025-01-13 11:43:34569const FeatureEntry::FeatureParam kTabGroupIndicatorAboveButtonsVisble[] = {
570 {kTabGroupIndicatorVisible, "true"},
571 {kTabGroupIndicatorBelowOmnibox, "false"},
572 {kTabGroupIndicatorButtonsUpdate, "true"}};
573const FeatureEntry::FeatureParam kTabGroupIndicatorBelowButtonsVisble[] = {
574 {kTabGroupIndicatorVisible, "true"},
575 {kTabGroupIndicatorBelowOmnibox, "true"},
576 {kTabGroupIndicatorButtonsUpdate, "true"}};
577const FeatureEntry::FeatureParam kTabGroupIndicatorAboveVisble[] = {
578 {kTabGroupIndicatorVisible, "true"},
579 {kTabGroupIndicatorBelowOmnibox, "false"},
580 {kTabGroupIndicatorButtonsUpdate, "false"}};
581const FeatureEntry::FeatureParam kTabGroupIndicatorBelowVisble[] = {
582 {kTabGroupIndicatorVisible, "true"},
583 {kTabGroupIndicatorBelowOmnibox, "true"},
584 {kTabGroupIndicatorButtonsUpdate, "false"}};
585const FeatureEntry::FeatureParam kTabGroupIndicatorButtons[] = {
586 {kTabGroupIndicatorVisible, "false"},
587 {kTabGroupIndicatorBelowOmnibox, "false"},
588 {kTabGroupIndicatorButtonsUpdate, "true"}};
589
590const FeatureEntry::FeatureVariation kTabGroupIndicatorVariations[] = {
591 {"Indicator above omnibox + buttons update",
592 kTabGroupIndicatorAboveButtonsVisble,
593 std::size(kTabGroupIndicatorAboveButtonsVisble), nullptr},
594 {"Indicator below omnibox + buttons update",
595 kTabGroupIndicatorBelowButtonsVisble,
596 std::size(kTabGroupIndicatorBelowButtonsVisble), nullptr},
597 {"Indicator above omnibox", kTabGroupIndicatorAboveVisble,
598 std::size(kTabGroupIndicatorAboveVisble), nullptr},
599 {"Indicator below omnibox", kTabGroupIndicatorBelowVisble,
600 std::size(kTabGroupIndicatorBelowVisble), nullptr},
601 {"buttons update only", kTabGroupIndicatorButtons,
602 std::size(kTabGroupIndicatorButtons), nullptr}};
603
Khalid Peer7cf75a22024-06-13 17:25:49604const FeatureEntry::FeatureParam
605 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
606 {"MlUrlPiecewiseMappedSearchBlending", "true"},
607 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
608 "0,550;0.018,1300;0.14,1398;1,1422"},
609 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
610 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
611const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41612 kMlUrlPiecewiseMappedSearchBlendingDemotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49613 {"MlUrlPiecewiseMappedSearchBlending", "true"},
614 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
615 "0,550;0.018,1250;0.14,1348;1,1422"},
616 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
617 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
618const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41619 kMlUrlPiecewiseMappedSearchBlendingPromotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49620 {"MlUrlPiecewiseMappedSearchBlending", "true"},
621 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41622 "0,550;0.018,1350;0.14,1448;1,1472"},
623 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1450"},
Khalid Peer7cf75a22024-06-13 17:25:49624 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
625const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41626 kMlUrlPiecewiseMappedSearchBlendingPromotedBy100[] = {
Khalid Peer7cf75a22024-06-13 17:25:49627 {"MlUrlPiecewiseMappedSearchBlending", "true"},
628 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41629 "0,550;0.018,1400;0.14,1498;1,1522"},
630 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1500"},
Khalid Peer7cf75a22024-06-13 17:25:49631 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer4501c1f2024-06-27 16:12:04632const FeatureEntry::FeatureParam
633 kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = {
634 {"MlUrlPiecewiseMappedSearchBlending", "true"},
635 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer5c9bd9e2024-07-17 17:16:42636 "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:04637 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"},
638 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer7cf75a22024-06-13 17:25:49639
640const FeatureEntry::FeatureVariation
641 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
642 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
643 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
Khalid Peer9c07798f2024-07-15 22:39:41644 {"demoted by 50", kMlUrlPiecewiseMappedSearchBlendingDemotedBy50,
645 std::size(kMlUrlPiecewiseMappedSearchBlendingDemotedBy50), nullptr},
646 {"promoted by 50", kMlUrlPiecewiseMappedSearchBlendingPromotedBy50,
647 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy50), nullptr},
648 {"promoted by 100", kMlUrlPiecewiseMappedSearchBlendingPromotedBy100,
649 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy100), nullptr},
Khalid Peer4501c1f2024-06-27 16:12:04650 {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping,
651 std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr},
Khalid Peer7cf75a22024-06-13 17:25:49652};
653
654const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
655 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
656 {"MlUrlScoringShortcutDocumentSignals", "true"},
657};
658const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
659 {
660 {"MlUrlScoringUnlimitedNumCandidates", "true"},
661 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
662 {"MlUrlScoringShortcutDocumentSignals", "true"},
663};
664// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
665// Document(512), and History Fuzzy(65536) providers max matches to 10.
666const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
667 {
668 {"MlUrlScoringMaxMatchesByProvider",
669 "1:10,4:10,8:10,64:10,512:10,65536:10"},
670 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
671 {"MlUrlScoringShortcutDocumentSignals", "true"},
672};
673
674const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
675 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
676 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
677 {"unlimited suggestion candidates",
678 kOmniboxMlUrlScoringUnlimitedNumCandidates,
679 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
680 {"Increase provider max limit to 10",
681 kOmniboxMlUrlScoringMaxMatchesByProvider10,
682 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
683};
684
685const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
686 {"MlUrlSearchBlending_StableSearchBlending", "true"},
687 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
688};
689const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
690 {
691 {"MlUrlSearchBlending_StableSearchBlending", "false"},
692 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
693 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
694 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
695 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
696};
697const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
698 {"MlUrlSearchBlending_StableSearchBlending", "false"},
699 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
700};
701const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
702 {"MlUrlSearchBlending_StableSearchBlending", "false"},
703 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
704 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
705 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
706 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
707};
708
709const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
710 {"Stable", kMlUrlSearchBlendingStable,
711 std::size(kMlUrlSearchBlendingStable), nullptr},
712 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
713 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
714 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
715 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
716 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
717 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
718};
719
Khalid Peer4501c1f2024-06-27 16:12:04720const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = {
721 {"Small model", nullptr, 0, "3379590"},
722 {"Full model", nullptr, 0, "3380197"},
723};
724
Benjamin Williams0594caf2024-07-09 17:51:38725const FeatureEntry::FeatureParam kSafetyCheckNotificationsVerbose[] = {
726 {kSafetyCheckNotificationsExperimentType, "0"}};
727const FeatureEntry::FeatureParam kSafetyCheckNotificationsSuccinct[] = {
728 {kSafetyCheckNotificationsExperimentType, "1"}};
729
730const FeatureEntry::FeatureVariation kSafetyCheckNotificationsVariations[] = {
731 {"Display multiple notifications at once", kSafetyCheckNotificationsVerbose,
732 std::size(kSafetyCheckNotificationsVerbose), nullptr},
733 {"Display one notification at a time", kSafetyCheckNotificationsSuccinct,
734 std::size(kSafetyCheckNotificationsSuccinct), nullptr}};
735
Elmehdi Rahmaouif5b76462024-06-24 10:44:46736const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = {
737 {kSaveToPhotosContextMenuImprovementParam, "true"},
738 {kSaveToPhotosTitleImprovementParam, "false"},
739 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
740};
741const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = {
742 {kSaveToPhotosContextMenuImprovementParam, "false"},
743 {kSaveToPhotosTitleImprovementParam, "true"},
744 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
745};
746const FeatureEntry::FeatureParam
747 kSaveToPhotosAccountDefaultChoiceImprovement[] = {
748 {kSaveToPhotosContextMenuImprovementParam, "false"},
749 {kSaveToPhotosTitleImprovementParam, "false"},
750 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"},
751};
752
753const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = {
754 {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement,
755 std::size(kSaveToPhotosContextMenuImprovement), nullptr},
756 {"With Title improvement Only", kSaveToPhotosTitleImprovement,
757 std::size(kSaveToPhotosTitleImprovement), nullptr},
758 {"With Account Default choice improvement Only",
759 kSaveToPhotosAccountDefaultChoiceImprovement,
760 std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr},
761};
762
Stephen McGruer8fe98b62024-07-16 13:10:13763// LINT.IfChange(AutofillUploadCardRequestTimeouts)
764const FeatureEntry::FeatureParam
765 kAutofillUploadCardRequestTimeout_6Point5Seconds[] = {
766 {"autofill_upload_card_request_timeout_milliseconds", "6500"}};
767const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_7Seconds[] =
768 {{"autofill_upload_card_request_timeout_milliseconds", "7000"}};
769const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_9Seconds[] =
770 {{"autofill_upload_card_request_timeout_milliseconds", "9000"}};
771const FeatureEntry::FeatureVariation
772 kAutofillUploadCardRequestTimeoutOptions[] = {
773 {"6.5 seconds", kAutofillUploadCardRequestTimeout_6Point5Seconds,
774 std::size(kAutofillUploadCardRequestTimeout_6Point5Seconds), nullptr},
775 {"7 seconds", kAutofillUploadCardRequestTimeout_7Seconds,
776 std::size(kAutofillUploadCardRequestTimeout_7Seconds), nullptr},
777 {"9 seconds", kAutofillUploadCardRequestTimeout_9Seconds,
778 std::size(kAutofillUploadCardRequestTimeout_9Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03779// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillUploadCardRequestTimeouts)
Stephen McGruer8fe98b62024-07-16 13:10:13780
Stephen McGruer0904cae2024-07-17 19:54:46781// LINT.IfChange(AutofillVcnEnrollRequestTimeouts)
782const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_5Seconds[] = {
783 {"autofill_vcn_enroll_request_timeout_milliseconds", "5000"}};
784const FeatureEntry::FeatureParam
785 kAutofillVcnEnrollRequestTimeout_7Point5Seconds[] = {
786 {"autofill_vcn_enroll_request_timeout_milliseconds", "7500"}};
787const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_10Seconds[] =
788 {{"autofill_vcn_enroll_request_timeout_milliseconds", "10000"}};
789const FeatureEntry::FeatureVariation kAutofillVcnEnrollRequestTimeoutOptions[] =
790 {{"5 seconds", kAutofillVcnEnrollRequestTimeout_5Seconds,
791 std::size(kAutofillVcnEnrollRequestTimeout_5Seconds), nullptr},
792 {"7.5 seconds", kAutofillVcnEnrollRequestTimeout_7Point5Seconds,
793 std::size(kAutofillVcnEnrollRequestTimeout_7Point5Seconds), nullptr},
794 {"10 seconds", kAutofillVcnEnrollRequestTimeout_10Seconds,
795 std::size(kAutofillVcnEnrollRequestTimeout_10Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03796// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillVcnEnrollRequestTimeouts)
Stephen McGruer0904cae2024-07-17 19:54:46797
Nicolas MacBethc738c4e2024-07-19 21:14:19798// Contextual Panel flag variations.
799const FeatureEntry::FeatureParam kContextualPanelRichIPHArms[] = {
800 {"entrypoint-highlight-iph", "true"},
801 {"entrypoint-rich-iph", "true"},
802};
803const FeatureEntry::FeatureParam kContextualPanelSmallIPHArm[] = {
804 {"entrypoint-highlight-iph", "false"},
805 {"entrypoint-rich-iph", "false"},
806};
807const FeatureEntry::FeatureParam
808 kContextualPanelSmallIPHWithBlueHighlightArm[] = {
809 {"entrypoint-highlight-iph", "true"},
810 {"entrypoint-rich-iph", "false"},
811};
812
813const FeatureEntry::FeatureVariation kContextualPanelEntrypointArmVariations[] =
814 {
815 {"- Rich IPH", kContextualPanelRichIPHArms,
816 std::size(kContextualPanelRichIPHArms), nullptr},
817 {"- Small IPH, no blue highlight", kContextualPanelSmallIPHArm,
818 std::size(kContextualPanelSmallIPHArm), nullptr},
819 {"- Small IPH with blue highlight",
820 kContextualPanelSmallIPHWithBlueHighlightArm,
821 std::size(kContextualPanelSmallIPHWithBlueHighlightArm), nullptr},
822};
823
Jood943cbb12025-02-20 17:02:27824const FeatureEntry::FeatureParam kIdentityDiscAccountMenuNoEllipsis[] = {
825 {kDisableAccountMenuEllipsisParam, "true"},
826};
Joodcbce3fe2025-03-12 15:34:57827const FeatureEntry::FeatureParam kIdentityDiscAccountMenuWithSettings[] = {
828 {kShowSettingsInAccountMenuParam, "true"},
829};
Jood943cbb12025-02-20 17:02:27830const FeatureEntry::FeatureVariation kIdentityDiscAccountMenuVariations[] = {
831 {" - without account menu ellipsis", kIdentityDiscAccountMenuNoEllipsis,
832 std::size(kIdentityDiscAccountMenuNoEllipsis), nullptr},
Joodcbce3fe2025-03-12 15:34:57833 {" - with settings button", kIdentityDiscAccountMenuWithSettings,
834 std::size(kIdentityDiscAccountMenuWithSettings), nullptr},
Jood943cbb12025-02-20 17:02:27835};
836
Jood Hajeer3867886d2024-07-29 16:15:35837const FeatureEntry::FeatureParam kIdentityConfirmationSnackbarTestingConfig[] =
Jood562c885f2024-09-05 17:06:55838 {{"IdentityConfirmationMinDisplayInterval1", "0"},
839 {"IdentityConfirmationMinDisplayInterval2", "0"},
840 {"IdentityConfirmationMinDisplayInterval3", "0"}};
Jood Hajeer3867886d2024-07-29 16:15:35841const FeatureEntry::FeatureVariation
842 kIdentityConfirmationSnackbarTestingVariations[] = {
843 {" - for testing", kIdentityConfirmationSnackbarTestingConfig,
844 std::size(kIdentityConfirmationSnackbarTestingConfig), nullptr}};
845
Chris Lu4c688e02024-09-07 00:48:08846const FeatureEntry::FeatureParam kPriceTrackingPromoForceShowArm[] = {
847 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05848 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08849};
850const FeatureEntry::FeatureParam kPriceTrackingPromoForceHideArm[] = {
851 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05852 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08853};
854
Gloria Fang02964a442025-02-06 19:21:18855// ShopCard variants
856const FeatureEntry::FeatureParam kPriceDropForTrackedProductsArm[] = {
857 {"ShopCardVariant", "arm_1"},
858};
859const FeatureEntry::FeatureParam kReviewsArm[] = {
860 {"ShopCardVariant", "arm_2"},
861};
862const FeatureEntry::FeatureParam kPriceDropOnTabArm[] = {
863 {"ShopCardVariant", "arm_3"},
864};
865const FeatureEntry::FeatureParam kPriceTrackableProductOnTabArm[] = {
866 {"ShopCardVariant", "arm_4"},
867};
868
Benjamin Williamsd7f854b2024-10-09 17:12:27869// Address Bar Position
870const FeatureEntry::FeatureParam kTipsAddressBarPositionForceShowArm[] = {
871 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31872 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27873};
874const FeatureEntry::FeatureParam kTipsAddressBarPositionForceHideArm[] = {
875 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31876 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27877};
878
879// Autofill Passwords
880const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceShowArm[] = {
881 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31882 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27883};
884const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceHideArm[] = {
885 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31886 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27887};
888
889// Enhanced Safe Browsing
890const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceShowArm[] = {
891 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31892 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27893};
894const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceHideArm[] = {
895 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31896 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27897};
898
899// Lens Search
900const FeatureEntry::FeatureParam kTipsLensSearchForceShowArm[] = {
901 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31902 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27903};
904const FeatureEntry::FeatureParam kTipsLensSearchForceHideArm[] = {
905 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31906 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27907};
908
909// Lens Shop
910const FeatureEntry::FeatureParam kTipsLensShopForceShowArm[] = {
911 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31912 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27913};
914const FeatureEntry::FeatureParam kTipsLensShopForceHideArm[] = {
915 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31916 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27917};
918
919// Lens Translate
920const FeatureEntry::FeatureParam kTipsLensTranslateForceShowArm[] = {
921 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31922 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27923};
924const FeatureEntry::FeatureParam kTipsLensTranslateForceHideArm[] = {
925 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31926 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27927};
928
929// Save Passwords
930const FeatureEntry::FeatureParam kTipsSavePasswordsForceShowArm[] = {
931 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31932 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27933};
934const FeatureEntry::FeatureParam kTipsSavePasswordsForceHideArm[] = {
935 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31936 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27937};
938
Hira Mahmood2ff5b5cb2024-10-25 19:24:31939const FeatureEntry::FeatureParam kSendTabPromoForceShowArm[] = {
940 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05941 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31942};
943const FeatureEntry::FeatureParam kSendTabPromoForceHideArm[] = {
944 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05945 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31946};
947
Gloria Fang02964a442025-02-06 19:21:18948// ShopCard experiment arms
949const FeatureEntry::FeatureVariation kShopCardOverrideOptions[] = {
950 {"Card 1 Price Drop", kPriceDropForTrackedProductsArm,
951 std::size(kPriceDropForTrackedProductsArm), nullptr},
952 {"Card 2 Reviews", kReviewsArm, std::size(kReviewsArm), nullptr},
953 {"Card 3 Price Drop on Tab Resumption", kPriceDropOnTabArm,
954 std::size(kPriceDropOnTabArm), nullptr},
955 {"Card 4 Price Trackable on Tab Resumption", kPriceTrackableProductOnTabArm,
956 std::size(kPriceTrackableProductOnTabArm), nullptr},
957};
958
Chris Lu4c688e02024-09-07 00:48:08959const FeatureEntry::FeatureVariation kEphemeralCardRankerCardOverrideOptions[] =
960 {
961 {"- Force Show Price Tracking Notification",
962 kPriceTrackingPromoForceShowArm,
963 std::size(kPriceTrackingPromoForceShowArm), nullptr},
964 {"- Force Hide Price Tracking Notification",
965 kPriceTrackingPromoForceHideArm,
966 std::size(kPriceTrackingPromoForceHideArm), nullptr},
Benjamin Williamsd7f854b2024-10-09 17:12:27967
968 // Address Bar Position
969 {"- Force Show Address Bar Position Tip",
970 kTipsAddressBarPositionForceShowArm,
971 std::size(kTipsAddressBarPositionForceShowArm), nullptr},
972 {"- Force Hide Address Bar Position Tip",
973 kTipsAddressBarPositionForceHideArm,
974 std::size(kTipsAddressBarPositionForceHideArm), nullptr},
975
976 // Autofill Passwords
977 {"- Force Show Autofill Passwords Tip",
978 kTipsAutofillPasswordsForceShowArm,
979 std::size(kTipsAutofillPasswordsForceShowArm), nullptr},
980 {"- Force Hide Autofill Passwords Tip",
981 kTipsAutofillPasswordsForceHideArm,
982 std::size(kTipsAutofillPasswordsForceHideArm), nullptr},
983
984 // Enhanced Safe Browsing
985 {"- Force Show Enhanced Safe Browsing Tip",
986 kTipsEnhancedSafeBrowsingForceShowArm,
987 std::size(kTipsEnhancedSafeBrowsingForceShowArm), nullptr},
988 {"- Force Hide Enhanced Safe Browsing Tip",
989 kTipsEnhancedSafeBrowsingForceHideArm,
990 std::size(kTipsEnhancedSafeBrowsingForceHideArm), nullptr},
991
992 // Lens Search
993 {"- Force Show Lens Search Tip", kTipsLensSearchForceShowArm,
994 std::size(kTipsLensSearchForceShowArm), nullptr},
995 {"- Force Hide Lens Search Tip", kTipsLensSearchForceHideArm,
996 std::size(kTipsLensSearchForceHideArm), nullptr},
997
998 // Lens Shop
999 {"- Force Show Lens Shop Tip", kTipsLensShopForceShowArm,
1000 std::size(kTipsLensShopForceShowArm), nullptr},
1001 {"- Force Hide Lens Shop Tip", kTipsLensShopForceHideArm,
1002 std::size(kTipsLensShopForceHideArm), nullptr},
1003
1004 // Lens Translate
1005 {"- Force Show Lens Translate Tip", kTipsLensTranslateForceShowArm,
1006 std::size(kTipsLensTranslateForceShowArm), nullptr},
1007 {"- Force Hide Lens Translate Tip", kTipsLensTranslateForceHideArm,
1008 std::size(kTipsLensTranslateForceHideArm), nullptr},
1009
1010 // Save Passwords
1011 {"- Force Show Save Passwords Tip", kTipsSavePasswordsForceShowArm,
1012 std::size(kTipsSavePasswordsForceShowArm), nullptr},
1013 {"- Force Hide Save Passwords Tip", kTipsSavePasswordsForceHideArm,
1014 std::size(kTipsSavePasswordsForceHideArm), nullptr},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311015
1016 // Send Tab Promo.
1017 {"- Force Show Send Tab Promo", kSendTabPromoForceShowArm,
1018 std::size(kSendTabPromoForceShowArm), nullptr},
1019 {"- Force Hide Send Tab Promo", kSendTabPromoForceHideArm,
1020 std::size(kSendTabPromoForceHideArm), nullptr},
Chris Lu4c688e02024-09-07 00:48:081021};
1022
Hira Mahmood00c17e52024-10-09 14:30:481023const FeatureEntry::FeatureParam
1024 kSendTabIOSPushNotificationsWithMagicStackCard[] = {
1025 {send_tab_to_self::kSendTabIOSPushNotificationsWithMagicStackCardParam,
1026 "true"}};
Hira Mahmood3db58ac2024-11-06 18:39:031027const FeatureEntry::FeatureParam kSendTabIOSPushNotificationsWithURLImage[] = {
1028 {send_tab_to_self::kSendTabIOSPushNotificationsURLImageParam, "true"}};
Benjamin Williams3dcd13102025-01-15 18:01:141029const FeatureEntry::FeatureParam
1030 kSendTabIOSPushNotificationsWithTabReminders[] = {
1031 {send_tab_to_self::kSendTabIOSPushNotificationsWithTabRemindersParam,
1032 "true"}};
1033
Hira Mahmood00c17e52024-10-09 14:30:481034const FeatureEntry::FeatureVariation kSendTabIOSPushNotificationsVariations[] =
1035 {
1036 {"With Magic Stack Card",
1037 kSendTabIOSPushNotificationsWithMagicStackCard,
1038 std::size(kSendTabIOSPushNotificationsWithMagicStackCard), nullptr},
Hira Mahmood3db58ac2024-11-06 18:39:031039 {"With URL Image", kSendTabIOSPushNotificationsWithURLImage,
1040 std::size(kSendTabIOSPushNotificationsWithURLImage), nullptr},
Benjamin Williams3dcd13102025-01-15 18:01:141041 {"With Tab Reminders", kSendTabIOSPushNotificationsWithTabReminders,
1042 std::size(kSendTabIOSPushNotificationsWithTabReminders), nullptr},
Hira Mahmood00c17e52024-10-09 14:30:481043};
1044
Briana McClurec2b62f92024-10-29 15:35:061045const FeatureEntry::FeatureParam kSegmentedDefaultBrowserStatic[] = {
1046 {kSegmentedDefaultBrowserExperimentType, "0"}};
1047const FeatureEntry::FeatureParam kSegmentedDefaultBrowserAnimated[] = {
1048 {kSegmentedDefaultBrowserExperimentType, "1"}};
1049
1050const FeatureEntry::FeatureVariation kSegmentedDefaultBrowserPromoVariations[] =
1051 {{" - Static Default Browser Promo", kSegmentedDefaultBrowserStatic,
1052 std::size(kSegmentedDefaultBrowserStatic), nullptr},
1053 {" - Animated Default Browser Promo", kSegmentedDefaultBrowserAnimated,
1054 std::size(kSegmentedDefaultBrowserAnimated), nullptr}};
1055
Rubin Deliallisi1d0b3ba2024-11-04 14:33:041056// Soft Lock
1057const FeatureEntry::FeatureParam kIOSSoftLockNoDelay[] = {
1058 {kIOSSoftLockBackgroundThresholdParam, "0m"},
1059};
1060
1061const FeatureEntry::FeatureVariation kIOSSoftLockVariations[] = {
1062 {" - No delay", kIOSSoftLockNoDelay, std::size(kIOSSoftLockNoDelay),
1063 nullptr}};
1064
Ameur Hosni3dc0ce1c2024-11-05 10:34:551065// Ipad ZPS limit.
1066const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total0Trends[] = {
1067 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "0"},
1068 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1069};
1070
1071const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total5Trends[] = {
1072 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "5"},
1073 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1074};
1075
1076constexpr FeatureEntry::FeatureVariation kIpadZpsLimitVariants[] = {
1077 {"20 total zps, 0 Trends on NTP", kIpadZPSOmniboxWith20Total0Trends,
1078 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1079 {"20 total zps, 5 Trends on NTP", kIpadZPSOmniboxWith20Total5Trends,
1080 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1081};
1082
Hira Mahmood431c8ab2024-11-05 17:16:291083const FeatureEntry::FeatureParam
1084 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm[] = {
1085 {kIOSStartTimeStartupRemediationsSaveNTPWebState, "true"},
1086};
1087const FeatureEntry::FeatureVariation
1088 kIOSStartTimeStartupRemediationsVariations[] = {
1089 {" - Save NTP Web State",
1090 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm,
1091 std::size(kIOSStartTimeStartupRemediationsSaveNTPWebStateArm),
1092 nullptr}};
1093
vincb7867dc042024-11-06 14:25:051094constexpr flags_ui::FeatureEntry::FeatureParam
1095 kAutofillThrottleDocFormScanShortPeriodParam[] = {{"period-ms", "250"}};
1096constexpr flags_ui::FeatureEntry::FeatureParam
1097 kAutofillThrottleDocFormScanMediumPeriodParam[] = {{"period-ms", "500"}};
1098constexpr flags_ui::FeatureEntry::FeatureParam
1099 kAutofillThrottleDocFormScanLongPeriodParam[] = {{"period-ms", "1000"}};
1100constexpr flags_ui::FeatureEntry::FeatureVariation
1101 kAutofillThrottleDocFormScanVariations[] = {
1102 {"Short period", kAutofillThrottleDocFormScanShortPeriodParam,
1103 std::size(kAutofillThrottleDocFormScanShortPeriodParam), nullptr},
1104 {"Medium period", kAutofillThrottleDocFormScanMediumPeriodParam,
1105 std::size(kAutofillThrottleDocFormScanMediumPeriodParam), nullptr},
1106 {"Long period", kAutofillThrottleDocFormScanLongPeriodParam,
1107 std::size(kAutofillThrottleDocFormScanLongPeriodParam), nullptr}};
1108
vincb2bf7f5c2024-11-06 17:18:091109constexpr flags_ui::FeatureEntry::FeatureParam
1110 kAutofillThrottleFilteredDocFormScanShortPeriodParam[] = {
1111 {"period-ms", "100"}};
1112constexpr flags_ui::FeatureEntry::FeatureParam
1113 kAutofillThrottleFilteredDocFormScanMediumPeriodParam[] = {
1114 {"period-ms", "250"}};
1115constexpr flags_ui::FeatureEntry::FeatureParam
1116 kAutofillThrottleFilteredDocFormScanLongPeriodParam[] = {
1117 {"period-ms", "500"}};
1118constexpr flags_ui::FeatureEntry::FeatureVariation
1119 kAutofillThrottleFilteredDocFormScanVariations[] = {
1120 {"Short period", kAutofillThrottleFilteredDocFormScanShortPeriodParam,
1121 std::size(kAutofillThrottleFilteredDocFormScanShortPeriodParam),
1122 nullptr},
1123 {"Medium period", kAutofillThrottleFilteredDocFormScanMediumPeriodParam,
1124 std::size(kAutofillThrottleFilteredDocFormScanMediumPeriodParam),
1125 nullptr},
1126 {"Long period", kAutofillThrottleFilteredDocFormScanLongPeriodParam,
1127 std::size(kAutofillThrottleFilteredDocFormScanLongPeriodParam),
1128 nullptr}};
1129
ginnnnnnny963c7fc2024-11-06 22:44:501130const FeatureEntry::FeatureParam kNewFeedPositioningArm2[] = {
1131 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1132 {kNewFeedPositioningCombinedMVTForMidEngaged, "false"},
1133 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501134};
1135
1136const FeatureEntry::FeatureParam kNewFeedPositioningArm3[] = {
1137 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1138 {kNewFeedPositioningCombinedMVTForMidEngaged, "true"},
1139 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501140};
1141
1142const FeatureEntry::FeatureVariation kNewFeedPositioningVariations[] = {
ginnnnnnnyd8c7b652024-12-19 19:11:471143 {"- update for high feed engagement", kNewFeedPositioningArm2,
ginnnnnnny963c7fc2024-11-06 22:44:501144 std::size(kNewFeedPositioningArm2), nullptr},
ginnnnnnnyd8c7b652024-12-19 19:11:471145 {"- update for high and mid feed engagement", kNewFeedPositioningArm3,
ginnnnnnny963c7fc2024-11-06 22:44:501146 std::size(kNewFeedPositioningArm3), nullptr},
ginnnnnnny963c7fc2024-11-06 22:44:501147};
1148
Hira Mahmoodf8533dc2024-11-12 16:24:251149const FeatureEntry::FeatureParam
1150 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm[] = {
1151 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "true"},
1152 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "false"}};
1153const FeatureEntry::FeatureParam
1154 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm[] = {
1155 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "true"},
1156 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "false"}};
1157const FeatureEntry::FeatureVariation
1158 kIOSStartTimeBrowserBackgroundRemediationsVariations[] = {
1159 {" - Avoid NTP Cleanup",
1160 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm,
1161 std::size(kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm),
1162 nullptr},
1163 {" - Update Feed Refresh",
1164 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm,
1165 std::size(
1166 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm),
1167 nullptr}};
1168
Hira Mahmood664449872024-11-18 23:55:221169const FeatureEntry::FeatureParam kSetUpListInFirstRunArm1[] = {
1170 {set_up_list::kSetUpListInFirstRunParam, "1"}};
1171const FeatureEntry::FeatureParam kSetUpListInFirstRunArm2[] = {
1172 {set_up_list::kSetUpListInFirstRunParam, "2"}};
1173const FeatureEntry::FeatureParam kSetUpListInFirstRunArm3[] = {
1174 {set_up_list::kSetUpListInFirstRunParam, "3"}};
1175
1176const FeatureEntry::FeatureVariation kSetUpListInFirstRunVariations[] = {
1177 {" - Variation 1", kSetUpListInFirstRunArm1,
1178 std::size(kSetUpListInFirstRunArm1), nullptr},
1179 {" - Variation 2", kSetUpListInFirstRunArm2,
1180 std::size(kSetUpListInFirstRunArm2), nullptr},
1181 {" - Variation 3", kSetUpListInFirstRunArm3,
1182 std::size(kSetUpListInFirstRunArm3), nullptr}};
1183
Hira Mahmood7577c9b672024-12-12 20:29:121184const FeatureEntry::FeatureParam kSetUpListDuration3Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531185 {set_up_list::kSetUpListDurationParam, "2"}};
Hira Mahmood7577c9b672024-12-12 20:29:121186const FeatureEntry::FeatureParam kSetUpListDuration5Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531187 {set_up_list::kSetUpListDurationParam, "4"}};
Hira Mahmood7577c9b672024-12-12 20:29:121188const FeatureEntry::FeatureParam kSetUpListDuration7Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531189 {set_up_list::kSetUpListDurationParam, "6"}};
Hira Mahmood7577c9b672024-12-12 20:29:121190
1191const FeatureEntry::FeatureVariation kSetUpListDurationVariations[] = {
1192 {" - 3 Days", kSetUpListDuration3Days, std::size(kSetUpListDuration3Days),
1193 nullptr},
1194 {" - 5 Days", kSetUpListDuration5Days, std::size(kSetUpListDuration5Days),
1195 nullptr},
1196 {" - 7 Days", kSetUpListDuration7Days, std::size(kSetUpListDuration7Days),
1197 nullptr}};
1198
Hira Mahmoodf6906a82025-01-02 17:55:091199const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm1[] = {
1200 {first_run::kUpdatedFirstRunSequenceParam, "1"}};
1201const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm2[] = {
1202 {first_run::kUpdatedFirstRunSequenceParam, "2"}};
1203const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm3[] = {
1204 {first_run::kUpdatedFirstRunSequenceParam, "3"}};
1205
1206const FeatureEntry::FeatureVariation kUpdatedFirstRunSequenceVariations[] = {
1207 {" - Default browser promo first", kUpdatedFirstRunSequenceArm1,
1208 std::size(kUpdatedFirstRunSequenceArm1), nullptr},
1209 {" - Remove sign in & sync conditionally", kUpdatedFirstRunSequenceArm2,
1210 std::size(kUpdatedFirstRunSequenceArm2), nullptr},
1211 {" - DB promo first and remove sign in & sync",
1212 kUpdatedFirstRunSequenceArm3, std::size(kUpdatedFirstRunSequenceArm3),
1213 nullptr}};
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481214
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421215const FeatureEntry::FeatureParam
1216 kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial[] = {
1217 {kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitialParam,
1218 "true"},
1219};
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481220
1221const FeatureEntry::FeatureParam kYoutubeIncognitoTargetAllowListed[] = {
1222 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsAllowlisted},
1223};
1224const FeatureEntry::FeatureParam kYoutubeIncognitoTargetFirstParty[] = {
1225 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsFirstParty},
1226};
1227const FeatureEntry::FeatureParam kYoutubeIncognitoTargetAll[] = {
1228 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsAll},
1229};
1230
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421231const FeatureEntry::FeatureVariation kYoutubeIncognitoVariations[] = {
1232 {"Error handling without Incognito Interstitial",
1233 kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial,
1234 std::size(kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial),
1235 nullptr},
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481236 {"Enable for listed apps", kYoutubeIncognitoTargetAllowListed,
1237 std::size(kYoutubeIncognitoTargetAllowListed), nullptr},
1238 {"Enable for first party apps", kYoutubeIncognitoTargetFirstParty,
1239 std::size(kYoutubeIncognitoTargetFirstParty), nullptr},
1240 {"Enable for all apps", kYoutubeIncognitoTargetAll,
1241 std::size(kYoutubeIncognitoTargetAll), nullptr},
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421242};
1243
“Prasanaa”96e15992025-01-30 15:44:351244const FeatureEntry::FeatureParam kSlowFullscreenTransitionSpeed[] = {
1245 {kFullscreenTransitionSpeedParam, "0"}};
1246const FeatureEntry::FeatureParam kDefaultFullscreenTransitionSpeed[] = {
1247 {kFullscreenTransitionSpeedParam, "1"}};
1248const FeatureEntry::FeatureParam kFastFullscreenTransitionSpeed[] = {
1249 {kFullscreenTransitionSpeedParam, "2"}};
1250const FeatureEntry::FeatureParam kMediumFullscreenTransitionOffset[] = {
1251 {kMediumFullscreenTransitionOffsetParam, "true"}};
1252
1253const FeatureEntry::FeatureVariation kFullscreenTransitionVariations[] = {
1254 {"Slow speed", kSlowFullscreenTransitionSpeed,
1255 std::size(kSlowFullscreenTransitionSpeed), nullptr},
1256 {"Default speed", kDefaultFullscreenTransitionSpeed,
1257 std::size(kDefaultFullscreenTransitionSpeed), nullptr},
1258 {"Fast speed", kFastFullscreenTransitionSpeed,
1259 std::size(kFastFullscreenTransitionSpeed), nullptr},
1260 {"Medium offset", kMediumFullscreenTransitionOffset,
1261 std::size(kMediumFullscreenTransitionOffset), nullptr}};
1262
ginnnnnnnyccce0952025-02-03 22:44:361263const FeatureEntry::FeatureParam
ginnnnnnny0e892172025-02-04 21:45:171264 kDeprecateFeedHeaderVariationRemoveFeedLabel[] = {
1265 {kDeprecateFeedHeaderParameterRemoveLabel, "true"}};
1266const FeatureEntry::FeatureParam
ginnnnnnnya0c62d82025-03-07 04:22:111267 kDeprecateFeedHeaderVariationAbovePlusMoreSpacing[] = {
ginnnnnnny0e892172025-02-04 21:45:171268 {kDeprecateFeedHeaderParameterRemoveLabel, "true"},
ginnnnnnnyf398da822025-03-12 10:15:551269 {kDeprecateFeedHeaderParameterTopPadding, "28.5"},
1270 {kDeprecateFeedHeaderParameterSearchFieldTopMargin, "30"},
1271 {kDeprecateFeedHeaderParameterHeaderBottomPadding, "3"},
1272 {kDeprecateFeedHeaderParameterSpaceBetweenModules, "16"}};
ginnnnnnny0e892172025-02-04 21:45:171273const FeatureEntry::FeatureParam
1274 kDeprecateFeedHeaderVariationAbovePlusEnlargeElements[] = {
1275 {kDeprecateFeedHeaderParameterRemoveLabel, "true"},
ginnnnnnnyf398da822025-03-12 10:15:551276 {kDeprecateFeedHeaderParameterTopPadding, "21.5"},
1277 {kDeprecateFeedHeaderParameterSearchFieldTopMargin, "32"},
ginnnnnnnyccce0952025-02-03 22:44:361278 {kDeprecateFeedHeaderParameterEnlargeLogoAndFakebox, "true"}};
1279
1280const FeatureEntry::FeatureVariation kDeprecateFeedHeaderVariations[] = {
ginnnnnnny0e892172025-02-04 21:45:171281 {" (remove feed label)", kDeprecateFeedHeaderVariationRemoveFeedLabel,
1282 std::size(kDeprecateFeedHeaderVariationRemoveFeedLabel), nullptr},
ginnnnnnnyf398da822025-03-12 10:15:551283 {" (also add more spacing)",
ginnnnnnnya0c62d82025-03-07 04:22:111284 kDeprecateFeedHeaderVariationAbovePlusMoreSpacing,
1285 std::size(kDeprecateFeedHeaderVariationAbovePlusMoreSpacing), nullptr},
ginnnnnnny0e892172025-02-04 21:45:171286 {" (and enlarge doodle too)",
1287 kDeprecateFeedHeaderVariationAbovePlusEnlargeElements,
1288 std::size(kDeprecateFeedHeaderVariationAbovePlusEnlargeElements),
ginnnnnnnyccce0952025-02-03 22:44:361289 nullptr}};
1290
Briana McClure21685c42025-02-06 15:18:221291const FeatureEntry::FeatureParam kAnimatedDBPInFREWithActionButtons[] = {
1292 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "0"}};
1293const FeatureEntry::FeatureParam kAnimatedDBPInFREWithShowMeHow[] = {
1294 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "1"}};
1295const FeatureEntry::FeatureParam kAnimatedDBPInFREWithInstructions[] = {
1296 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "2"}};
1297
1298const FeatureEntry::FeatureVariation
1299 kAnimatedDefaultBrowserPromoInFREVariations[] = {
1300 {" - with Action Buttons", kAnimatedDBPInFREWithActionButtons,
1301 std::size(kAnimatedDBPInFREWithActionButtons), nullptr},
1302 {" - with Show Me How", kAnimatedDBPInFREWithShowMeHow,
1303 std::size(kAnimatedDBPInFREWithShowMeHow), nullptr},
1304 {" - with Instructions", kAnimatedDBPInFREWithInstructions,
1305 std::size(kAnimatedDBPInFREWithInstructions), nullptr}};
1306
Hira Mahmooddcc63d7f2025-02-19 17:28:571307const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm1[] = {
1308 {first_run::kBestFeaturesScreenInFirstRunParam, "1"}};
1309const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm2[] = {
1310 {first_run::kBestFeaturesScreenInFirstRunParam, "2"}};
1311const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm3[] = {
1312 {first_run::kBestFeaturesScreenInFirstRunParam, "3"}};
1313const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm4[] = {
1314 {first_run::kBestFeaturesScreenInFirstRunParam, "4"}};
1315const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm5[] = {
1316 {first_run::kBestFeaturesScreenInFirstRunParam, "5"}};
1317const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm6[] = {
1318 {first_run::kBestFeaturesScreenInFirstRunParam, "6"}};
1319
1320const FeatureEntry::FeatureVariation kBestFeaturesScreenInFirstRunVariations[] =
1321 {{" - Variant A: General screen, after DB promo",
1322 kUpdatedFirstRunSequenceArm1,
1323 std::size(kBestFeaturesScreenInFirstRunArm1), nullptr},
1324 {" - Variant B: General screen, before DB promo",
1325 kBestFeaturesScreenInFirstRunArm2,
1326 std::size(kBestFeaturesScreenInFirstRunArm2), nullptr},
1327 {" - Variant C: General screen with passwords item",
1328 kBestFeaturesScreenInFirstRunArm3,
1329 std::size(kBestFeaturesScreenInFirstRunArm3), nullptr},
1330 {" - Variant D: Shopping users screen, variant C as fallback",
1331 kBestFeaturesScreenInFirstRunArm4,
1332 std::size(kBestFeaturesScreenInFirstRunArm4), nullptr},
1333 {" - Variant E: Show screen to signed-in users only",
1334 kBestFeaturesScreenInFirstRunArm5,
1335 std::size(kBestFeaturesScreenInFirstRunArm5), nullptr},
1336 {" - Variant F: Show address bar promo", kBestFeaturesScreenInFirstRunArm6,
1337 std::size(kBestFeaturesScreenInFirstRunArm6), nullptr}};
1338
Olivier ROBIN4d7cdb82025-03-11 09:33:471339const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionCrossValidate[] = {
1340 {kIOSOneTapMiniMapRestrictionCrossValidateParamName, "true"}};
1341const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionThreshold999[] = {
1342 {kIOSOneTapMiniMapRestrictionThreshholdParamName, "0.999"}};
1343const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionMinLength20[] = {
1344 {kIOSOneTapMiniMapRestrictionMinCharsParamName, "20"}};
1345const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionMaxSections6[] = {
1346 {kIOSOneTapMiniMapRestrictionMaxSectionsParamName, "6"}};
1347const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionLongWords4[] = {
1348 {kIOSOneTapMiniMapRestrictionLongestWordMinCharsParamName, "4"}};
1349const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionMinAlphaNum60[] = {
1350 {kIOSOneTapMiniMapRestrictionMinAlphanumProportionParamName, "0.6"}};
1351
1352const FeatureEntry::FeatureVariation kIOSOneTapMiniMapRestrictionsVariations[] =
1353 {{"Revalidate with NSDataDetector",
1354 kIOSOneTapMiniMapRestrictionCrossValidate,
1355 std::size(kIOSOneTapMiniMapRestrictionCrossValidate), nullptr},
1356 {"Confidence Level (0.999)", kIOSOneTapMiniMapRestrictionThreshold999,
1357 std::size(kIOSOneTapMiniMapRestrictionThreshold999), nullptr},
1358 {"Minimum address length (20 chars)",
1359 kIOSOneTapMiniMapRestrictionMinLength20,
1360 std::size(kIOSOneTapMiniMapRestrictionMinLength20), nullptr},
1361 {"Maximum sections (6)", kIOSOneTapMiniMapRestrictionMaxSections6,
1362 std::size(kIOSOneTapMiniMapRestrictionMaxSections6), nullptr},
1363 {"Longest word length (4)", kIOSOneTapMiniMapRestrictionLongWords4,
1364 std::size(kIOSOneTapMiniMapRestrictionLongWords4), nullptr},
1365 {"Proportion of alnum chars (60%)",
1366 kIOSOneTapMiniMapRestrictionMinAlphaNum60,
1367 std::size(kIOSOneTapMiniMapRestrictionMinAlphaNum60), nullptr}};
1368
Hira Mahmood4535b072025-03-14 16:45:591369const FeatureEntry::FeatureParam kFeedSwipeInProductHelpStaticInFirstRun[] = {
1370 {kFeedSwipeInProductHelpArmParam, "1"}};
1371const FeatureEntry::FeatureParam kFeedSwipeInProductHelpStaticInSecondRun[] = {
1372 {kFeedSwipeInProductHelpArmParam, "2"}};
1373const FeatureEntry::FeatureParam kFeedSwipeInProductHelpAnimated[] = {
1374 {kFeedSwipeInProductHelpArmParam, "3"}};
1375
1376const FeatureEntry::FeatureVariation kFeedSwipeInProductHelpVariations[] = {
1377 {" - Static IPH after the FRE", kFeedSwipeInProductHelpStaticInFirstRun,
1378 std::size(kFeedSwipeInProductHelpStaticInFirstRun), nullptr},
1379 {"- Static IPH after the second run",
1380 kFeedSwipeInProductHelpStaticInSecondRun,
1381 std::size(kFeedSwipeInProductHelpStaticInSecondRun), nullptr},
1382 {"- Animated IPH", kFeedSwipeInProductHelpAnimated,
1383 std::size(kFeedSwipeInProductHelpAnimated), nullptr}};
1384
Nohemi Fernandez11751ec2025-03-26 18:24:371385constexpr flags_ui::FeatureEntry::FeatureParam
1386 kReaderModeDistillerPageLoadHeuristicAlwaysEnabledParam[] = {
1387 {kReaderModeDistillerPageLoadProbabilityName, "1"}};
1388const FeatureEntry::FeatureVariation
1389 kReaderModePageLoadHeuristicSamplingOptions[] = {
1390 {"on all page loads",
1391 kReaderModeDistillerPageLoadHeuristicAlwaysEnabledParam,
1392 std::size(kReaderModeDistillerPageLoadHeuristicAlwaysEnabledParam),
1393 nullptr},
1394};
1395
1396constexpr flags_ui::FeatureEntry::FeatureParam
1397 kReaderModeDistillerHeuristicPageLoadDelayDisabledParam[] = {
1398 {kReaderModeDistillerPageLoadDelayDurationStringName, "0"}};
1399const FeatureEntry::FeatureVariation
1400 kReaderModeDistillerHeuristicPageLoadDelayOptions[] = {
1401 {"with no delay",
1402 kReaderModeDistillerHeuristicPageLoadDelayDisabledParam,
1403 std::size(kReaderModeDistillerHeuristicPageLoadDelayDisabledParam),
1404 nullptr},
1405};
1406
Cooper Knaak1e026562017-07-26 05:22:281407// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:211408// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:281409// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
1410// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:211411// macro for this type supplying the command line to the macro.
1412// . MULTI_VALUE: a list of choices, the first of which should correspond to a
1413// deactivated state for this lab (i.e. no command line option). To specify
1414// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
1415// array of choices.
Cooper Knaak1e026562017-07-26 05:22:281416// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
1417// either enabled, disabled, or uses the default value of the associated
1418// base::Feature instance. To specify this type of entry use the macro
1419// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
1420// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
1421// base::Feature instance. Choices corresponding to the default state, a
1422// universally enabled state, and a universally disabled state are
1423// automatically included. To specify this type of entry use the macro
1424// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
1425// the array of choices.
1426//
sdefresne14900ee2015-11-27 14:43:211427// See the documentation of FeatureEntry for details on the fields.
1428//
1429// When adding a new choice, add it to the end of the list.
1430const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:281431 {"in-product-help-demo-mode-choice",
1432 flag_descriptions::kInProductHelpDemoModeName,
1433 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
1434 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:231435 feature_engagement::kIPHDemoMode,
1436 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:091437 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:221438 {"enable-autofill-credit-card-upload",
1439 flag_descriptions::kAutofillCreditCardUploadName,
1440 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:241441 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:231442 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
1443 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
1444 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:511445 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:231446 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
1447 {"wallet-service-use-sandbox",
1448 flag_descriptions::kWalletServiceUseSandboxName,
1449 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
1450 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
1451 autofill::switches::kWalletServiceUseSandbox,
1452 "1",
1453 autofill::switches::kWalletServiceUseSandbox,
1454 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:591455 {"show-autofill-type-predictions",
1456 flag_descriptions::kShowAutofillTypePredictionsName,
1457 flag_descriptions::kShowAutofillTypePredictionsDescription,
1458 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:501459 FEATURE_VALUE_TYPE(
1460 autofill::features::test::kAutofillShowTypePredictions)},
Pier-Alexandre Bouchard4b20c08f2025-03-21 17:04:441461 {"sign-in-button-no-avatar", flag_descriptions::kSignInButtonNoAvatarName,
1462 flag_descriptions::kSignInButtonNoAvatarDescription, flags_ui::kOsIos,
1463 FEATURE_VALUE_TYPE(kSignInButtonNoAvatar)},
Pier-Alexandre Bouchard3b017bd62025-03-27 17:38:281464 {"ntp-background-customization",
1465 flag_descriptions::kNTPBackgroundCustomizationName,
1466 flag_descriptions::kNTPBackgroundCustomizationDescription,
1467 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNTPBackgroundCustomization)},
Benjamin Williamsdf18e7e2022-10-03 18:46:051468 {"fullscreen-promos-manager-skip-internal-limits",
1469 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
1470 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
1471 flags_ui::kOsIos,
1472 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:141473 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:531474 flag_descriptions::kFullscreenSmoothScrollingName,
1475 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:191476 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:061477 {"webpage-default-zoom-from-dynamic-type",
1478 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
1479 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
1480 flags_ui::kOsIos,
1481 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:561482 {"webpage-alternative-text-zoom",
1483 flag_descriptions::kWebPageAlternativeTextZoomName,
1484 flag_descriptions::kWebPageAlternativeTextZoomDescription,
1485 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:341486 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
1487 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
1488 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Ameur Hosni3dc0ce1c2024-11-05 10:34:551489 {"omnibox-ipad-zps-limit",
1490 flag_descriptions::kIpadZpsSuggestionMatchesLimitName,
1491 flag_descriptions::kIpadZpsSuggestionMatchesLimitDescription,
1492 flags_ui::kOsIos,
1493 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kIpadZeroSuggestMatches,
1494 kIpadZpsLimitVariants,
1495 "OmniboxBundledExperimentV1")},
Stepan Khapugincc4e9842019-01-23 13:38:131496 {"omnibox-ui-max-autocomplete-matches",
1497 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
1498 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
1499 flags_ui::kOsIos,
1500 FEATURE_WITH_PARAMS_VALUE_TYPE(
1501 omnibox::kUIExperimentMaxAutocompleteMatches,
1502 kOmniboxUIMaxAutocompleteMatchesVariations,
1503 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:351504 {"omnibox-local-history-zero-suggest-beyond-ntp",
1505 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
1506 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
1507 flags_ui::kOsIos,
1508 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:541509 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
1510 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
1511 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
1512 kOmniboxMaxZPSMatchesVariations,
1513 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:481514 {"force-startup-signin-promo",
1515 flag_descriptions::kForceStartupSigninPromoName,
1516 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:291517 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:411518 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
1519 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
1520 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:131521#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:451522 {"screen-time-integration-ios",
1523 flag_descriptions::kScreenTimeIntegrationName,
1524 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
1525 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:131526#endif
Xu Li9854c992024-12-19 20:53:081527 {"ios-enable-delete-all-saved-credentials",
1528 flag_descriptions::kIOSEnableDeleteAllSavedCredentialsName,
1529 flag_descriptions::kIOSEnableDeleteAllSavedCredentialsDescription,
1530 flags_ui::kOsIos,
1531 FEATURE_VALUE_TYPE(
1532 password_manager::features::kIOSEnableDeleteAllSavedCredentials)},
Cheick Cisse76ade3d2020-12-16 00:15:111533 {"ios-shared-highlighting-color-change",
1534 flag_descriptions::kIOSSharedHighlightingColorChangeName,
1535 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:071536 flags_ui::kOsIos,
1537 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Scott Yoderc0cd99d2024-01-10 19:54:511538 {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName,
1539 flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos,
Scott Yoderaf2bdf32024-01-30 20:26:151540 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications,
1541 kIOSTipsNotificationsVariations,
1542 "IOSTipsNotifications")},
Scott Yoderf8a821482024-10-28 19:32:551543 {"ios-reactivation-notifications",
1544 flag_descriptions::kIOSReactivationNotificationsName,
1545 flag_descriptions::kIOSReactivationNotificationsDescription,
Scott Yoderef1a0542024-11-04 17:23:071546 flags_ui::kOsIos,
1547 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSReactivationNotifications,
1548 kIOSReactivationNotificationsVariations,
1549 "IOSReactivationNotifications")},
Scott Yoder88976342025-03-20 17:49:231550 {"ios-provides-app-notification-settings",
1551 flag_descriptions::kIOSProvidesAppNotificationSettingsName,
1552 flag_descriptions::kIOSProvidesAppNotificationSettingsDescription,
1553 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSProvidesAppNotificationSettings)},
gogerald0ff29e52021-02-03 18:56:191554 {"start-surface", flag_descriptions::kStartSurfaceName,
1555 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:231556 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
1557 kStartSurfaceVariations,
1558 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:341559 {"wait-threshold-seconds-for-capabilities-api",
1560 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1561 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1562 flags_ui::kOsIos,
1563 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061564 {"content-notification-experiment",
1565 flag_descriptions::kContentNotificationExperimentName,
1566 flag_descriptions::kContentNotificationExperimentDescription,
1567 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251568 {"content-notification-provisional-ignore-conditions",
1569 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1570 flag_descriptions::
1571 kContentNotificationProvisionalIgnoreConditionsDescription,
1572 flags_ui::kOsIos,
1573 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241574 {"content-push-notifications",
1575 flag_descriptions::kContentPushNotificationsName,
1576 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521577 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1578 kContentPushNotificationsVariations,
1579 "ContentPushNotifications")},
Radu Nitescuee09a1a2024-12-10 17:11:391580 {"enable-lens-context-menu-unified-experience",
1581 flag_descriptions::kEnableLensContextMenuUnifiedExperienceName,
1582 flag_descriptions::kEnableLensContextMenuUnifiedExperienceDescription,
1583 flags_ui::kOsIos,
1584 FEATURE_VALUE_TYPE(kEnableLensContextMenuUnifiedExperience)},
Jason Hu67cfb0f2022-11-14 20:21:441585 {"enable-lens-in-omnibox-copied-image",
1586 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1587 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1588 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Radu Nitescuab5bf732024-09-18 14:07:401589 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1590 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1591 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Radu Nitescuf95b7d42024-12-04 10:18:011592 {"enable-lens-view-finder-unified-experience",
1593 flag_descriptions::kEnableLensViewFinderUnifiedExperienceName,
1594 flag_descriptions::kEnableLensViewFinderUnifiedExperienceDescription,
1595 flags_ui::kOsIos,
1596 FEATURE_VALUE_TYPE(kEnableLensViewFinderUnifiedExperience)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031597 {"enable-disco-feed-endpoint",
1598 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1599 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1600 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111601 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Tommy Martino7393d762021-10-12 17:59:281602 {"shared-highlighting-amp",
1603 flag_descriptions::kIOSSharedHighlightingAmpName,
1604 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1605 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
Matt Jones2e47b9692024-02-23 21:56:431606 {"track-by-default-mobile",
1607 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1608 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1609 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061610 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1611 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1612 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541613 {"ntp-view-hierarchy-repair",
1614 flag_descriptions::kNTPViewHierarchyRepairName,
1615 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201616 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Cheick Cisse39b6a182024-05-29 15:13:441617 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1618 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1619 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381620 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1621 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591622 flags_ui::kOsIos,
1623 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1624 kPriceInsightsVariations,
1625 "PriceInsightsIos")},
1626 {"price-insights-high-price-ios",
1627 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1628 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1629 flags_ui::kOsIos,
1630 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Raj Tb95d813542022-11-16 21:27:521631 {"enable-download-service-foreground-session",
1632 flag_descriptions::kDownloadServiceForegroundSessionName,
1633 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1634 flags_ui::kOsIos,
1635 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231636 {"enable-tflite-language-detection",
1637 flag_descriptions::kTFLiteLanguageDetectionName,
1638 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1639 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201640 {"optimization-guide-debug-logs",
1641 flag_descriptions::kOptimizationGuideDebugLogsName,
1642 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1643 flags_ui::kOsIos,
1644 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551645 {"optimization-guide-push-notifications",
1646 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1647 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1648 flags_ui::kOsIos,
1649 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
David Jeanad303a92023-07-31 16:58:111650 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1651 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1652 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeanf361ae9d2024-04-09 08:19:471653 {"enable-expkit-text-classifier-date",
1654 flag_descriptions::kEnableExpKitTextClassifierDateName,
1655 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1656 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1657 {"enable-expkit-text-classifier-address",
1658 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1659 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151660 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471661 FEATURE_WITH_PARAMS_VALUE_TYPE(
1662 kEnableExpKitTextClassifierAddress,
1663 kEnableExpKitTextClassifierAddressVariations,
1664 "ExpKitTextClassifierAddress")},
1665 {"enable-expkit-text-classifier-phonenumber",
1666 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1667 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1668 flags_ui::kOsIos,
1669 FEATURE_WITH_PARAMS_VALUE_TYPE(
1670 kEnableExpKitTextClassifierPhoneNumber,
1671 kEnableExpKitTextClassifierPhoneNumberVariations,
1672 "ExpKitTextClassifierPhoneNumber")},
1673 {"enable-expkit-text-classifier-email",
1674 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1675 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1676 flags_ui::kOsIos,
1677 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1678 kEnableExpKitTextClassifierEmailVariations,
1679 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331680 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1681 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461682 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1683 kOneTapForMapsWithVariations,
1684 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251685 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1686 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1687 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301688 {"autofill-enable-ranking-formula-address-profiles",
1689 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1690 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1691 flags_ui::kOsIos,
1692 FEATURE_VALUE_TYPE(
1693 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391694 {"autofill-enable-ranking-formula-credit-cards",
1695 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1696 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1697 flags_ui::kOsIos,
1698 FEATURE_VALUE_TYPE(
1699 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021700 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1701 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1702 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521703 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1704 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261705 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1706 kMagicStackVariations,
1707 flag_descriptions::kMagicStackName)},
Alexis Hetue0b0dc12025-02-06 18:14:471708 {"ios-keyboard-accessory-upgrade-for-ipad",
1709 flag_descriptions::kIOSKeyboardAccessoryUpgradeForIPadName,
1710 flag_descriptions::kIOSKeyboardAccessoryUpgradeForIPadDescription,
1711 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeForIPad)},
Noémie St-Onge9da904ef2024-10-01 14:16:051712 {"ios-keyboard-accessory-upgrade-short-manual-fill-menu",
1713 flag_descriptions::kIOSKeyboardAccessoryUpgradeShortManualFillMenuName,
1714 flag_descriptions::
1715 kIOSKeyboardAccessoryUpgradeShortManualFillMenuDescription,
1716 flags_ui::kOsIos,
1717 FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeShortManualFillMenu)},
Chris Lub0bad572023-08-07 18:13:291718 {"ios-magic-stack-segmentation-ranking",
1719 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1720 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1721 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301722 FEATURE_WITH_PARAMS_VALUE_TYPE(
1723 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1724 kSegmentationPlatformIosModuleRankerVariations,
1725 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321726 {"ios-magic-stack-segmentation-ranking-caching",
1727 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1728 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1729 flags_ui::kOsIos,
1730 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111731 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1732 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1733 flag_descriptions::
1734 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1735 flags_ui::kOsIos,
1736 FEATURE_VALUE_TYPE(
1737 segmentation_platform::features::
1738 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Alexis Hetu5e726602023-12-15 15:18:281739 {"ios-password-bottom-sheet-autofocus",
1740 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1741 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1742 flags_ui::kOsIos,
1743 FEATURE_VALUE_TYPE(
1744 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Charlotte Cloutier18f0a5362024-07-16 13:23:041745 {"ios-proactive-password-generation-bottom-sheet",
1746 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetName,
1747 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetDescription,
1748 flags_ui::kOsIos,
1749 FEATURE_VALUE_TYPE(password_manager::features::
1750 kIOSProactivePasswordGenerationBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241751 {"omnibox-zero-suggest-prefetching",
1752 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1753 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1754 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451755 {"omnibox-zero-suggest-prefetching-on-srp",
1756 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1757 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1758 flags_ui::kOsIos,
1759 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1760 {"omnibox-zero-suggest-prefetching-on-web",
1761 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1762 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1763 flags_ui::kOsIos,
1764 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471765 {"omnibox-zero-suggest-in-memory-caching",
1766 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1767 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1768 flags_ui::kOsIos,
1769 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351770 {"omnibox-on-device-tail-suggestions",
1771 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1772 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1773 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361774 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1775 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1776 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1777 kOmniboxMaxURLMatchesVariations,
1778 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201779 {"omnibox-most-visited-tiles-horizontal-render-group",
1780 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1781 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1782 flags_ui::kOsIos,
1783 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061784 {"metrickit-non-crash-reports",
1785 flag_descriptions::kMetrickitNonCrashReportName,
1786 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1787 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Robbie Gibson1f5a57192024-11-07 23:04:111788 {"default-browser-banner-promo",
1789 flag_descriptions::kDefaultBrowserBannerPromoName,
1790 flag_descriptions::kDefaultBrowserBannerPromoDescription, flags_ui::kOsIos,
Robbie Gibsonae87bc02024-11-13 14:45:101791 FEATURE_VALUE_TYPE(kDefaultBrowserBannerPromo)},
Gayane Petrosyan5960a172023-06-19 15:40:171792 {"default-browser-promo-trigger-criteria-experiment",
1793 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1794 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1795 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211796 FEATURE_VALUE_TYPE(
1797 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyancffeda12024-09-17 17:10:371798 {"blue-dot-on-tools-menu-button",
1799 flag_descriptions::kBlueDotOnToolsMenuButtonName,
1800 flag_descriptions::kBlueDotOnToolsMenuButtonDescription, flags_ui::kOsIos,
1801 FEATURE_VALUE_TYPE(kBlueDotOnToolsMenuButton)},
Ed Chin91e44992022-07-27 13:42:341802#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1803 {"feed-background-refresh-ios",
1804 flag_descriptions::kFeedBackgroundRefreshName,
1805 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1806 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1807 kFeedBackgroundRefreshVariations,
1808 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261809#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Petro Akzhygitov2e2322e2023-04-25 16:26:571810 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1811 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1812 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251813 {"iph-price-notifications-while-browsing",
1814 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1815 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1816 flags_ui::kOsIos,
1817 FEATURE_VALUE_TYPE(
1818 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391819 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1820 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1821 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481822 {"local-pdp-detection",
1823 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1824 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1825 flags_ui::kOsIos,
1826 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Ali Juma57849c42023-02-21 22:53:431827 {"notification-settings-menu-item",
1828 flag_descriptions::kNotificationSettingsMenuItemName,
1829 flag_descriptions::kNotificationSettingsMenuItemDescription,
1830 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
kalettucefb09e402023-02-27 18:35:531831 {"web-feed-feedback-reroute",
1832 flag_descriptions::kWebFeedFeedbackRerouteName,
1833 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1834 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Tina Wangd3f6f192023-04-05 05:22:431835 {"enable-follow-IPH-exp-params",
1836 flag_descriptions::kEnableFollowIPHExpParamsName,
1837 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1838 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251839 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1840 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1841 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Olivier ROBINa229d2132023-03-21 12:44:201842 {"ios-browser-edit-menu-metrics",
1843 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1844 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1845 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551846 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1847 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1848 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1849 kIOSDockingPromoVariations,
1850 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241851 {"omnibox-grouping-framework-non-zps",
1852 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1853 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1854 flags_ui::kOsIos,
1855 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Robbie Gibson0ea280602023-04-12 01:02:391856 {"only-access-clipboard-async",
1857 flag_descriptions::kOnlyAccessClipboardAsyncName,
1858 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1859 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Tina Wangcda2c902023-05-25 17:39:451860 {"enable-signed-out-view-demotion",
1861 flag_descriptions::kEnableSignedOutViewDemotionName,
1862 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1863 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stepan Khapugin72c74292024-06-19 16:48:331864 {"spotlight-never-retain-index",
1865 flag_descriptions::kSpotlightNeverRetainIndexName,
1866 flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos,
1867 FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)},
Huiting Yubc1bf4d2023-06-26 18:15:321868 {"ios-iph-for-safari-switcher",
1869 flag_descriptions::kIPHForSafariSwitcherName,
1870 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1871 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071872 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1873 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1874 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011875 {"tab-resumption", flag_descriptions::kTabResumptionName,
1876 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Olivier ROBIN953cc9a2025-03-17 11:40:461877 FEATURE_VALUE_TYPE(kTabResumption)},
Christian Xu07d600192023-07-24 12:29:521878 {"bottom-omnibox-default-setting",
1879 flag_descriptions::kBottomOmniboxDefaultSettingName,
1880 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1881 flags_ui::kOsIos,
1882 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1883 kBottomOmniboxDefaultSettingVariations,
1884 "BottomOmniboxDefaultSetting")},
Elmehdi Rahmaouif5b76462024-06-24 10:44:461885 {"enable-save-to-photos-improvements",
1886 flag_descriptions::kIOSSaveToPhotosImprovementsName,
1887 flag_descriptions::kIOSSaveToPhotosImprovementsDescription,
1888 flags_ui::kOsIos,
1889 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements,
1890 kSaveToPhotosImprovementsVariations,
1891 "IOSSaveToPhotosImprovements")},
Jérôme Lebelcc9523e2024-10-08 13:34:011892 {"enable-identity-in-auth-error",
1893 flag_descriptions::kEnableIdentityInAuthErrorName,
1894 flag_descriptions::kEnableIdentityInAuthErrorDescription, flags_ui::kOsIos,
1895 FEATURE_VALUE_TYPE(switches::kEnableIdentityInAuthError)},
Mihai Sardarescucca83442024-10-16 12:19:131896 {"enable-asweb-authentication-session",
1897 flag_descriptions::kEnableASWebAuthenticationSessionName,
1898 flag_descriptions::kEnableASWebAuthenticationSessionDescription,
1899 flags_ui::kOsIos,
1900 FEATURE_VALUE_TYPE(switches::kEnableASWebAuthenticationSession)},
Christian Xu90e952f2023-09-13 09:05:281901 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1902 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1903 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Rubin Deliallisi072bc842023-10-19 12:00:411904 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1905 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1906 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Aliona DANGLA5971a8b2023-11-10 11:55:351907 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1908 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1909 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Gauthier Ambard8cca29a2024-04-10 08:27:361910 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1911 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1912 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591913 {"autofill-enable-dynamically-loading-fields-on-input",
1914 flag_descriptions::
1915 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1916 flag_descriptions::
1917 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1918 flags_ui::kOsIos,
1919 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
aliaaborhamy00f89df2023-12-21 14:55:031920 {"share-in-web-context-menu-ios",
1921 flag_descriptions::kShareInWebContextMenuIOSName,
1922 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1923 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551924 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1925 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1926 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461927 {"contextual-panel", flag_descriptions::kContextualPanelName,
1928 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
Nicolas MacBethc738c4e2024-07-19 21:14:191929 FEATURE_WITH_PARAMS_VALUE_TYPE(kContextualPanel,
1930 kContextualPanelEntrypointArmVariations,
1931 "ContextualPanel")},
adamtad0e8cfc2024-01-16 18:43:471932 {"enable-ipad-feed-ghost-cards",
1933 flag_descriptions::kEnableiPadFeedGhostCardsName,
1934 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1935 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Jason Hud445445f2024-02-02 18:28:121936 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1937 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1938 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Alexander Tekleeebe42b92024-02-23 21:27:151939 {"autofill-enable-card-benefits-for-american-express",
1940 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1941 flag_descriptions::
1942 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1943 flags_ui::kOsIos,
1944 FEATURE_VALUE_TYPE(
1945 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
Yishui Liub88a38c2024-02-28 08:46:551946 {"autofill-enable-card-benefits-sync",
1947 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1948 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1949 flags_ui::kOsIos,
1950 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421951 {"linked-services-setting-ios",
1952 flag_descriptions::kLinkedServicesSettingIosName,
1953 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1954 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
hvs7c6cb402024-03-27 02:39:001955 {"autofill-enable-prefetching-risk-data-for-retrieval",
1956 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561957 flag_descriptions::
1958 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001959 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561960 FEATURE_VALUE_TYPE(
1961 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1962 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1963 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1964 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391965 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1966 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1967 FEATURE_VALUE_TYPE(
1968 page_content_annotations::features::kPageContentAnnotations)},
1969 {"page-content-annotations-persist-salient-image-metadata",
1970 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1971 flag_descriptions::
1972 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1973 flags_ui::kOsIos,
1974 FEATURE_VALUE_TYPE(
1975 page_content_annotations::features::
1976 kPageContentAnnotationsPersistSalientImageMetadata)},
1977 {"page-content-annotations-remote-page-metadata",
1978 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1979 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1980 flags_ui::kOsIos,
1981 FEATURE_VALUE_TYPE(
1982 page_content_annotations::features::kRemotePageMetadata)},
1983 {"page-visibility-page-content-annotations",
1984 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1985 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1986 flags_ui::kOsIos,
1987 FEATURE_VALUE_TYPE(page_content_annotations::features::
1988 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121989 {"enhanced-safe-browsing-promo",
1990 flag_descriptions::kEnhancedSafeBrowsingPromoName,
1991 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:021992 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Alexis Hetu37823762025-01-24 15:41:591993 {"cpe-automatic-passkey-upgrade",
1994 flag_descriptions::kCredentialProviderAutomaticPasskeyUpgradeName,
1995 flag_descriptions::kCredentialProviderAutomaticPasskeyUpgradeDescription,
1996 flags_ui::kOsIos,
1997 FEATURE_VALUE_TYPE(kCredentialProviderAutomaticPasskeyUpgrade)},
Alexis Hetu028acd32025-01-17 15:53:221998 {"cpe-passkey-prf-support",
1999 flag_descriptions::kCredentialProviderPasskeyPRFName,
2000 flag_descriptions::kCredentialProviderPasskeyPRFDescription,
2001 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kCredentialProviderPasskeyPRF)},
Sebsgfcd5b0b2024-04-09 08:18:322002 {"cpe-performance-improvements",
2003 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
2004 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
2005 flags_ui::kOsIos,
2006 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Maria Kazinova0ee4fdd2025-01-22 20:06:592007 {"password-form-clientside-classifier",
2008 flag_descriptions::kPasswordFormClientsideClassifierName,
2009 flag_descriptions::kPasswordFormClientsideClassifierDescription,
2010 flags_ui::kOsIos,
2011 FEATURE_VALUE_TYPE(
2012 password_manager::features::kPasswordFormClientsideClassifier)},
Vincent Boissellea1f27f322024-04-17 14:53:192013 {"password-manager-detect-username-in-uff",
2014 flag_descriptions::kIOSDetectUsernameInUffName,
vincbb01c53ed2024-08-22 13:09:562015 flag_descriptions::kIOSDetectUsernameInUffDescription, flags_ui::kOsIos,
Vincent Boissellea1f27f322024-04-17 14:53:192016 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Jérôme Lebel993c7e3d2024-07-08 14:05:352017 {"identity-disc-account-menu",
2018 flag_descriptions::kIdentityDiscAccountMenuName,
2019 flag_descriptions::kIdentityDiscAccountMenuDescription, flags_ui::kOsIos,
Jood943cbb12025-02-20 17:02:272020 FEATURE_WITH_PARAMS_VALUE_TYPE(kIdentityDiscAccountMenu,
2021 kIdentityDiscAccountMenuVariations,
2022 "IdentityDiscAccountMenu")},
Jood Hajeer3867886d2024-07-29 16:15:352023 {"identity-confirmation-snackbar",
2024 flag_descriptions::kIdentityConfirmationSnackbarName,
2025 flag_descriptions::kIdentityConfirmationSnackbarDescription,
2026 flags_ui::kOsIos,
2027 FEATURE_WITH_PARAMS_VALUE_TYPE(
2028 kIdentityConfirmationSnackbar,
2029 kIdentityConfirmationSnackbarTestingVariations,
2030 "IdentityConfirmationSnackbar")},
Filipa Senrabe00cbe2024-04-19 14:21:332031 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
2032 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
2033 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:002034 {"autofill-enable-verve-card-support",
2035 flag_descriptions::kAutofillEnableVerveCardSupportName,
2036 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
2037 flags_ui::kOsIos,
2038 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ewann Pelle34939b62024-08-22 10:45:492039 {"tab-group-sync", flag_descriptions::kTabGroupSyncName,
2040 flag_descriptions::kTabGroupSyncDescription, flags_ui::kOsIos,
Louis Romero5a84afc2024-04-25 10:29:202041 FEATURE_VALUE_TYPE(kTabGroupSync)},
Ameur Hosni3d764c92024-05-28 14:11:122042 {"omnibox-suggestion-answer-migration",
2043 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
2044 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
2045 flags_ui::kOsIos,
2046 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:302047 kOmniboxSuggestionAnswerMigration)},
Hira Mahmood6e2a894e2024-05-31 15:18:192048 {"send-tab-ios-push-notifications",
2049 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
2050 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
2051 flags_ui::kOsIos,
Hira Mahmood00c17e52024-10-09 14:30:482052 FEATURE_WITH_PARAMS_VALUE_TYPE(
2053 send_tab_to_self::kSendTabToSelfIOSPushNotifications,
2054 kSendTabIOSPushNotificationsVariations,
2055 "SendTabToSelfIOSPushNotifications")},
Olivier ROBINcb76f4fe2024-06-05 16:11:422056 {"page-image-service-optimization-guide-salient-images",
2057 flag_descriptions::kPageImageServiceSalientImageName,
2058 flag_descriptions::kPageImageServiceSalientImageDescription,
2059 flags_ui::kOsIos,
2060 FEATURE_WITH_PARAMS_VALUE_TYPE(
2061 page_image_service::kImageServiceOptimizationGuideSalientImages,
2062 kImageServiceOptimizationGuideSalientImagesVariations,
2063 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:222064 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
2065 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
2066 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Charles Yangf8e7adf2024-06-11 00:17:002067 {"lens-filters-ablation-mode-enabled",
2068 flag_descriptions::kLensFiltersAblationModeEnabledName,
2069 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
2070 flags_ui::kOsIos,
2071 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
2072 kLensFiltersAblationModeVariations,
2073 "LensFiltersAblationMode")},
2074 {"lens-translate-toogle-mode-enabled",
2075 flag_descriptions::kLensTranslateToggleModeEnabledName,
2076 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
2077 flags_ui::kOsIos,
2078 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
2079 kLensTranslateToggleModeVariations,
2080 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:592081 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
2082 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
2083 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:492084 {"omnibox-ml-log-url-scoring-signals",
2085 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
2086 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
2087 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
2088 {"omnibox-ml-url-piecewise-mapped-search-blending",
2089 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
2090 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
2091 flags_ui::kOsIos,
2092 FEATURE_WITH_PARAMS_VALUE_TYPE(
2093 omnibox::kMlUrlPiecewiseMappedSearchBlending,
2094 kMlUrlPiecewiseMappedSearchBlendingVariations,
2095 "MlUrlPiecewiseMappedSearchBlending")},
2096 {"omnibox-ml-url-score-caching",
2097 flag_descriptions::kOmniboxMlUrlScoreCachingName,
2098 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
2099 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
2100 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
2101 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
2102 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
2103 kOmniboxMlUrlScoringVariations,
2104 "MlUrlScoring")},
2105 {"omnibox-ml-url-search-blending",
2106 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
2107 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
2108 flags_ui::kOsIos,
2109 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
2110 kMlUrlSearchBlendingVariations,
2111 "MlUrlScoring")},
2112 {"omnibox-ml-url-scoring-model",
2113 flag_descriptions::kOmniboxMlUrlScoringModelName,
2114 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
Khalid Peer4501c1f2024-06-27 16:12:042115 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel,
2116 kUrlScoringModelVariations,
2117 "MlUrlScoring")},
Siyu An4a486f02024-06-18 19:41:282118 {"autofill-show-manual-fill-for-virtual-cards",
2119 flag_descriptions::kAutofillShowManualFillForVirtualCardsName,
2120 flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription,
2121 flags_ui::kOsIos,
2122 FEATURE_VALUE_TYPE(
2123 autofill::features::kAutofillShowManualFillForVirtualCards)},
adamtaf85e48d2024-07-08 17:13:292124 {"home-customization", flag_descriptions::kHomeCustomizationName,
2125 flag_descriptions::kHomeCustomizationDescription, flags_ui::kOsIos,
2126 FEATURE_VALUE_TYPE(kHomeCustomization)},
Benjamin Williams0594caf2024-07-09 17:51:382127 {"safety-check-notifications",
2128 flag_descriptions::kSafetyCheckNotificationsName,
2129 flag_descriptions::kSafetyCheckNotificationsDescription, flags_ui::kOsIos,
2130 FEATURE_WITH_PARAMS_VALUE_TYPE(kSafetyCheckNotifications,
2131 kSafetyCheckNotificationsVariations,
2132 "SafetyCheckNotifications")},
Federica Germinarioa1fe0902024-07-12 08:28:462133 {"app-background-refresh-ios", flag_descriptions::kAppBackgroundRefreshName,
2134 flag_descriptions::kAppBackgroundRefreshDescription, flags_ui::kOsIos,
2135 FEATURE_VALUE_TYPE(kEnableAppBackgroundRefresh)},
Chris Lu3eba26312024-07-12 20:21:382136 {"home-memory-improvements", flag_descriptions::kHomeMemoryImprovementsName,
2137 flag_descriptions::kHomeMemoryImprovementsDescription, flags_ui::kOsIos,
2138 FEATURE_VALUE_TYPE(kHomeMemoryImprovements)},
Stephen McGruer8fe98b62024-07-16 13:10:132139 {"autofill-upload-card-request-timeout",
2140 flag_descriptions::kAutofillUploadCardRequestTimeoutName,
2141 flag_descriptions::kAutofillUploadCardRequestTimeoutDescription,
2142 flags_ui::kOsIos,
2143 FEATURE_WITH_PARAMS_VALUE_TYPE(
2144 autofill::features::kAutofillUploadCardRequestTimeout,
2145 kAutofillUploadCardRequestTimeoutOptions,
2146 "AutofillUploadCardRequestTimeout")},
Stephen McGruer0904cae2024-07-17 19:54:462147 {"autofill-vcn-enroll-request-timeout",
2148 flag_descriptions::kAutofillVcnEnrollRequestTimeoutName,
2149 flag_descriptions::kAutofillVcnEnrollRequestTimeoutDescription,
2150 flags_ui::kOsIos,
2151 FEATURE_WITH_PARAMS_VALUE_TYPE(
2152 autofill::features::kAutofillVcnEnrollRequestTimeout,
2153 kAutofillVcnEnrollRequestTimeoutOptions,
2154 "AutofillVcnEnrollRequestTimeout")},
Charles Yang98bef0c2024-07-19 12:24:142155 {"lens-web-page-load-optimization-enabled",
2156 flag_descriptions::kLensWebPageLoadOptimizationEnabledName,
2157 flag_descriptions::kLensWebPageLoadOptimizationEnabledDescription,
2158 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageLoadOptimizationEnabled)},
Eric Ekey4a930592024-07-19 18:58:142159 {"segmented-default-browser-promo",
2160 flag_descriptions::kSegmentedDefaultBrowserPromoName,
2161 flag_descriptions::kSegmentedDefaultBrowserPromoDescription,
Briana McClurec2b62f92024-10-29 15:35:062162 flags_ui::kOsIos,
2163 FEATURE_WITH_PARAMS_VALUE_TYPE(kSegmentedDefaultBrowserPromo,
2164 kSegmentedDefaultBrowserPromoVariations,
2165 "SegmentedDBP-Animation")},
Junhui He52294652024-07-23 23:50:152166 {"autofill-unmask-card-request-timeout",
2167 flag_descriptions::kAutofillUnmaskCardRequestTimeoutName,
2168 flag_descriptions::kAutofillUnmaskCardRequestTimeoutDescription,
2169 flags_ui::kOsIos,
2170 FEATURE_VALUE_TYPE(autofill::features::kAutofillUnmaskCardRequestTimeout)},
vincbe1379832024-08-06 19:08:122171 {"autofill-across-iframes", flag_descriptions::kAutofillAcrossIframesName,
2172 flag_descriptions::kAutofillAcrossIframesDescription, flags_ui::kOsIos,
2173 FEATURE_VALUE_TYPE(autofill::features::kAutofillAcrossIframesIos)},
Cristian Ciacu62fe1912024-08-07 10:14:502174 {"ios-page-info-last-visited",
2175 flag_descriptions::kPageInfoLastVisitedIOSName,
2176 flag_descriptions::kPageInfoLastVisitedIOSDescription, flags_ui::kOsIos,
2177 FEATURE_VALUE_TYPE(kPageInfoLastVisitedIOS)},
Daniel White1ced9e62024-08-15 19:27:382178 {"enable-trait-collection-registration",
2179 flag_descriptions::kEnableTraitCollectionRegistrationName,
2180 flag_descriptions::kEnableTraitCollectionRegistrationDescription,
2181 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableTraitCollectionRegistration)},
Ernesto Izquierdo Cluaebe0a0252024-08-19 22:05:542182 {"autofill-isolated-world-ios",
2183 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSName,
2184 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSDescription,
2185 flags_ui::kOsIos,
2186 FEATURE_VALUE_TYPE(kAutofillIsolatedWorldForJavascriptIos)},
Ewann Pelle34939b62024-08-22 10:45:492187 {"tab-group-indicator", flag_descriptions::kTabGroupIndicatorName,
2188 flag_descriptions::kTabGroupIndicatorDescription, flags_ui::kOsIos,
Ewann Pelle1f48f922025-01-13 11:43:342189 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabGroupIndicator,
2190 kTabGroupIndicatorVariations,
2191 "TabGroupIndicator")},
thefrog8ed47452024-08-30 13:32:482192 {"safe-browsing-local-lists-use-sbv5",
2193 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Name,
2194 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Description,
2195 flags_ui::kOsIos, FEATURE_VALUE_TYPE(safe_browsing::kLocalListsUseSBv5)},
Chris Lu4c688e02024-09-07 00:48:082196 {"ios-price-tracking-notification-promo-card",
2197 flag_descriptions::kPriceTrackingPromoName,
2198 flag_descriptions::kPriceTrackingPromoDescription, flags_ui::kOsIos,
2199 FEATURE_VALUE_TYPE(commerce::kPriceTrackingPromo)},
Gloria Fang02964a442025-02-06 19:21:182200 {"ios-shop-card", flag_descriptions::kShopCardName,
2201 flag_descriptions::kShopCardDescription, flags_ui::kOsIos,
2202 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kShopCard,
2203 kShopCardOverrideOptions,
2204 "ShopCard")},
Chris Lu4c688e02024-09-07 00:48:082205 {"ios-segmentation-ephemeral-card-ranker",
2206 flag_descriptions::kSegmentationPlatformEphemeralCardRankerName,
2207 flag_descriptions::kSegmentationPlatformEphemeralCardRankerDescription,
2208 flags_ui::kOsIos,
2209 FEATURE_WITH_PARAMS_VALUE_TYPE(
2210 segmentation_platform::features::
2211 kSegmentationPlatformEphemeralCardRanker,
2212 kEphemeralCardRankerCardOverrideOptions,
2213 "SegmentationPlatformEphemeralCardRanker")},
Alexander Tekle8cf3c8e2024-09-13 21:38:072214 {"autofill-enable-log-form-events-to-all-parsed-form-types",
2215 flag_descriptions::kAutofillEnableLogFormEventsToAllParsedFormTypesName,
2216 flag_descriptions::
2217 kAutofillEnableLogFormEventsToAllParsedFormTypesDescription,
2218 flags_ui::kOsIos,
2219 FEATURE_VALUE_TYPE(
2220 autofill::features::kAutofillEnableLogFormEventsToAllParsedFormTypes)},
Radu Nitescu06133382024-10-21 18:33:292221 {"lens-overlay-enable-ipad-compatibility",
2222 flag_descriptions::kLensOverlayEnableIPadCompatibilityName,
2223 flag_descriptions::kLensOverlayEnableIPadCompatibilityDescription,
2224 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableIPadCompatibility)},
Radu Nitescub3e06f92025-02-06 17:32:252225 {"lens-overlay-enable-landscape-compatibility",
2226 flag_descriptions::kLensOverlayEnableLandscapeCompatibilityName,
2227 flag_descriptions::kLensOverlayEnableLandscapeCompatibilityDescription,
2228 flags_ui::kOsIos,
2229 FEATURE_VALUE_TYPE(kLensOverlayEnableLandscapeCompatibility)},
Ameur Hosni22b62d92024-09-25 10:51:022230 {"lens-overlay-force-show-onboarding-screen",
2231 flag_descriptions::kLensOverlayForceShowOnboardingScreenName,
2232 flag_descriptions::kLensOverlayForceShowOnboardingScreenDescription,
2233 flags_ui::kOsIos,
2234 FEATURE_VALUE_TYPE(kLensOverlayForceShowOnboardingScreen)},
Stepan Khapuginc5820242025-01-10 22:21:112235 {"lens-overlay-alternative-onboarding",
2236 flag_descriptions::kLensOverlayAlternativeOnboardingName,
2237 flag_descriptions::kLensOverlayAlternativeOnboardingDescription,
2238 flags_ui::kOsIos,
Radu Nitescu6e6dd7f52025-01-17 11:33:352239 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensOverlayAlternativeOnboarding,
2240 kLensOverlayOnboardingVariations,
2241 "kLensOverlayOnboarding")},
Gauthier Ambard766f4cf2024-09-26 16:56:252242 {"data-sharing", flag_descriptions::kDataSharingName,
2243 flag_descriptions::kDataSharingDescription, flags_ui::kOsIos,
2244 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingFeature)},
2245 {"data-sharing-join-only", flag_descriptions::kDataSharingJoinOnlyName,
2246 flag_descriptions::kDataSharingJoinOnlyDescription, flags_ui::kOsIos,
2247 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingJoinOnly)},
Rubin Deliallisib66a77a2024-10-02 18:09:482248 {"ios-soft-lock", flag_descriptions::kIOSSoftLockName,
2249 flag_descriptions::kIOSSoftLockDescription, flags_ui::kOsIos,
Rubin Deliallisi1d0b3ba2024-11-04 14:33:042250 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSoftLock,
2251 kIOSSoftLockVariations,
2252 "IOSSoftLock")},
Marc Treib31e4f9f2024-10-07 09:55:542253 {"separate-profiles-for-managed-accounts",
2254 flag_descriptions::kSeparateProfilesForManagedAccountsName,
2255 flag_descriptions::kSeparateProfilesForManagedAccountsDescription,
Olivier ROBINb17c14b92024-10-09 13:49:132256 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSeparateProfilesForManagedAccounts)},
Olivier ROBINb17c14b92024-10-09 13:49:132257 {"tab-resumption-images", flag_descriptions::kTabResumptionImagesName,
2258 flag_descriptions::kTabResumptionImagesDescription, flags_ui::kOsIos,
2259 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumptionImages,
2260 kTabResumptionImagesVariations,
2261 "TabResumption1_5")},
Benjamin Williamsd7f854b2024-10-09 17:12:272262 {"segmentation-platform-tips-ephemeral-card",
2263 flag_descriptions::kSegmentationPlatformTipsEphemeralCardName,
2264 flag_descriptions::kSegmentationPlatformTipsEphemeralCardDescription,
2265 flags_ui::kOsIos,
2266 FEATURE_VALUE_TYPE(segmentation_platform::features::
vincbf23f7332024-10-11 19:32:122267 kSegmentationPlatformTipsEphemeralCard)},
2268 {"ios-password-suggestion-bottom-sheet-v2",
2269 flag_descriptions::kPasswordSuggestionBottomSheetV2Name,
2270 flag_descriptions::kPasswordSuggestionBottomSheetV2Description,
2271 flags_ui::kOsIos,
Federica Germinariof58b5a7e2024-10-22 10:35:422272 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheetV2)},
Charles Yang11dd8ab2024-10-24 19:15:532273 {"lens-unary-apis-with-http-transport-enabled",
2274 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledName,
2275 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledDescription,
2276 flags_ui::kOsIos,
2277 FEATURE_VALUE_TYPE(kLensUnaryApisWithHttpTransportEnabled)},
Christian Xu6db322d2024-10-25 14:12:492278 {"lens-overlay-enable-same-tab-navigation",
2279 flag_descriptions::kLensOverlayEnableSameTabNavigationName,
2280 flag_descriptions::kLensOverlayEnableSameTabNavigationDescription,
2281 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableSameTabNavigation)},
Elmehdi Rahmaoui3c6e8012024-10-28 10:17:532282 {"ios-chrome-startup-parameters-async",
2283 flag_descriptions::kChromeStartupParametersAsyncName,
2284 flag_descriptions::kChromeStartupParametersAsyncDescription,
2285 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kChromeStartupParametersAsync)},
Elmehdi Rahmaoui63a0d8212025-01-07 11:42:482286 {"ios-youtube-incognito", flag_descriptions::kYoutubeIncognitoName,
2287 flag_descriptions::kYoutubeIncognitoDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui543d35f2025-01-16 10:09:422288 FEATURE_WITH_PARAMS_VALUE_TYPE(kYoutubeIncognito,
2289 kYoutubeIncognitoVariations,
2290 "IOSYoutubeIncognito")},
Christian Xua8459472024-10-31 13:39:082291 {"lens-overlay-enable-location-bar-entrypoint",
2292 flag_descriptions::kLensOverlayEnableLocationBarEntrypointName,
2293 flag_descriptions::kLensOverlayEnableLocationBarEntrypointDescription,
2294 flags_ui::kOsIos,
2295 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypoint)},
Radu Nitescuc42107b92025-02-13 17:32:272296 {"lens-overlay-enable-location-bar-entrypoint-on-srp",
2297 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPName,
2298 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPDescription,
2299 flags_ui::kOsIos,
2300 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypointOnSRP)},
2301 {"lens-overlay-enable-lvf-escape-hatch",
2302 flag_descriptions::kLensOverlayEnableLVFEscapeHatchName,
2303 flag_descriptions::kLensOverlayEnableLVFEscapeHatchDescription,
Radu Nitescu0c21e3c2025-02-13 21:27:192304 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableLVFEscapeHatch)},
Christian Xudddf1e012024-10-31 18:34:012305 {"lens-overlay-disable-price-insights",
2306 flag_descriptions::kLensOverlayDisablePriceInsightsName,
2307 flag_descriptions::kLensOverlayDisablePriceInsightsDescription,
2308 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayDisablePriceInsights)},
Chris Lu9fd38c62024-11-04 22:22:592309 {"ios-provisional-notification-alert",
2310 flag_descriptions::kProvisionalNotificationAlertName,
2311 flag_descriptions::kProvisionalNotificationAlertDescription,
2312 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kProvisionalNotificationAlert)},
Hira Mahmood431c8ab2024-11-05 17:16:292313 {"ios-start-time-startup-remediations",
2314 flag_descriptions::kIOSStartTimeStartupRemediationsName,
2315 flag_descriptions::kIOSStartTimeStartupRemediationsDescription,
2316 flags_ui::kOsIos,
2317 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSStartTimeStartupRemediations,
2318 kIOSStartTimeStartupRemediationsVariations,
2319 "IOSStartTimeStartupRemediations")},
vincb7867dc042024-11-06 14:25:052320 {"autofill-throttle-doc-form-scans",
2321 flag_descriptions::kAutofillThrottleDocumentFormScanName,
2322 flag_descriptions::kAutofillThrottleDocumentFormScanDescription,
2323 flags_ui::kOsIos,
2324 FEATURE_WITH_PARAMS_VALUE_TYPE(kAutofillThrottleDocumentFormScanIos,
2325 kAutofillThrottleDocFormScanVariations,
2326 "AutofillThrottleDocumentFormScan")},
vincb2bf7f5c2024-11-06 17:18:092327 {"autofill-throttle-filtered-doc-form-scan",
2328 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanName,
2329 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanDescription,
2330 flags_ui::kOsIos,
2331 FEATURE_WITH_PARAMS_VALUE_TYPE(
2332 kAutofillThrottleFilteredDocumentFormScanIos,
2333 kAutofillThrottleFilteredDocFormScanVariations,
2334 "AutofillThrottleFilteredDocumentFormScan")},
ginnnnnnny963c7fc2024-11-06 22:44:502335 {"ios-new-feed-positioning",
2336 flag_descriptions::kNewFeedPositioningExperimentName,
2337 flag_descriptions::kNewFeedPositioningExperimentDescription,
2338 flags_ui::kOsIos,
2339 FEATURE_WITH_PARAMS_VALUE_TYPE(kNewFeedPositioning,
2340 kNewFeedPositioningVariations,
2341 "IOSNewFeedPositioningStudy")},
vincb91781772024-11-08 17:13:122342 {"autofill-payments-sheet-v2",
2343 flag_descriptions::kAutofillPaymentsSheetV2Name,
2344 flag_descriptions::kAutofillPaymentsSheetV2Description, flags_ui::kOsIos,
2345 FEATURE_VALUE_TYPE(kAutofillPaymentsSheetV2Ios)},
Hira Mahmoodf8533dc2024-11-12 16:24:252346 {"ios-start-time-browser-background-remediations",
2347 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsName,
2348 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsDescription,
2349 flags_ui::kOsIos,
2350 FEATURE_WITH_PARAMS_VALUE_TYPE(
2351 kIOSStartTimeBrowserBackgroundRemediations,
2352 kIOSStartTimeBrowserBackgroundRemediationsVariations,
2353 "IOSStartTimeStartupRemediations")},
Hira Mahmood664449872024-11-18 23:55:222354 {"set-up-list-in-first-run", flag_descriptions::kSetUpListInFirstRunName,
2355 flag_descriptions::kSetUpListInFirstRunNameDescription, flags_ui::kOsIos,
2356 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListInFirstRun,
2357 kSetUpListInFirstRunVariations,
2358 "SetUpListInFirstRun")},
Charles Yangf57489f2024-11-27 13:58:282359 {"lens-unary-http-transport-enabled",
2360 flag_descriptions::kLensUnaryHttpTransportEnabledName,
2361 flag_descriptions::kLensUnaryHttpTransportEnabledDescription,
2362 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryHttpTransportEnabled)},
Charles Yang8b4687c2024-12-11 02:42:192363 {"lens-clearcut-background-upload-enabled",
2364 flag_descriptions::kLensClearcutBackgroundUploadEnabledName,
2365 flag_descriptions::kLensClearcutBackgroundUploadEnabledDescription,
2366 flags_ui::kOsIos,
2367 FEATURE_VALUE_TYPE(kLensClearcutBackgroundUploadEnabled)},
2368 {"lens-clearcut-logger-fast-qos-enabled",
2369 flag_descriptions::kLensClearcutLoggerFastQosEnabledName,
2370 flag_descriptions::kLensClearcutLoggerFastQosEnabledDescription,
2371 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensClearcutLoggerFastQosEnabled)},
Hira Mahmood7577c9b672024-12-12 20:29:122372 {"set-up-list-shortened-duration",
2373 flag_descriptions::kSetUpListShortenedDurationName,
2374 flag_descriptions::kSetUpListShortenedDurationDescription,
2375 flags_ui::kOsIos,
2376 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListShortenedDuration,
2377 kSetUpListDurationVariations,
2378 "SetUpListShortenedDuration")},
Christian Xu375dcf72024-12-17 15:44:592379 {"enable-lens-overlay-price-insights-counterfactual",
2380 flag_descriptions::kLensOverlayPriceInsightsCounterfactualName,
2381 flag_descriptions::kLensOverlayPriceInsightsCounterfactualDescription,
2382 flags_ui::kOsIos,
2383 FEATURE_VALUE_TYPE(kLensOverlayPriceInsightsCounterfactual)},
Tommy Nyquiste1447512024-12-17 17:46:242384 {"collaboration-messaging", flag_descriptions::kCollaborationMessagingName,
2385 flag_descriptions::kCollaborationMessagingDescription, flags_ui::kOsIos,
Hailey Wang1f2d890a2024-12-26 20:23:562386 FEATURE_VALUE_TYPE(collaboration::features::kCollaborationMessaging)},
Charles Yangfd397e82024-12-19 17:11:452387 {"lens-single-tap-text-selection-disabled",
2388 flag_descriptions::kLensSingleTapTextSelectionDisabledName,
2389 flag_descriptions::kLensSingleTapTextSelectionDisabledDescription,
2390 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensSingleTapTextSelectionDisabled)},
Hira Mahmoodf6906a82025-01-02 17:55:092391 {"updated-fre-screens-sequence", flag_descriptions::kUpdatedFRESequenceName,
2392 flag_descriptions::kUpdatedFRESequenceDescription, flags_ui::kOsIos,
2393 FEATURE_WITH_PARAMS_VALUE_TYPE(first_run::kUpdatedFirstRunSequence,
2394 kUpdatedFirstRunSequenceVariations,
2395 "UpdatedFirstRunSequence")},
Hira Mahmood9f1c19092025-01-06 17:47:432396 {"set-up-list-without-sign-in-item",
2397 flag_descriptions::kSetUpListWithoutSignInItemName,
2398 flag_descriptions::kSetUpListWithoutSignInItemDescription,
2399 flags_ui::kOsIos,
2400 FEATURE_VALUE_TYPE(set_up_list::kSetUpListWithoutSignInItem)},
Fernando Ramirez3c16f9742025-01-07 22:40:362401 {"autofill-enable-card-benefits-for-bmo",
2402 flag_descriptions::kAutofillEnableCardBenefitsForBmoName,
2403 flag_descriptions::kAutofillEnableCardBenefitsForBmoDescription,
2404 flags_ui::kOsIos,
2405 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsForBmo)},
Olivier ROBIN1a0db2a2025-01-09 10:41:532406 {"ios-manage-account-storage",
2407 flag_descriptions::kIOSManageAccountStorageName,
2408 flag_descriptions::kIOSManageAccountStorageDescription, flags_ui::kOsIos,
2409 FEATURE_VALUE_TYPE(kIOSManageAccountStorage)},
Nohemi Fernandez4e66e7182025-01-16 10:57:322410 {"supervised-user-local-web-approvals",
2411 flag_descriptions::kSupervisedUserLocalWebApprovalsName,
2412 flag_descriptions::kSupervisedUserLocalWebApprovalsDescription,
2413 flags_ui::kOsIos, FEATURE_VALUE_TYPE(supervised_user::kLocalWebApprovals)},
Daniel Whitee4562ce2025-01-21 17:36:562414 {"download-auto-deletion", flag_descriptions::kDownloadAutoDeletionName,
2415 flag_descriptions::kDownloadAutoDeletionDescription, flags_ui::kOsIos,
2416 FEATURE_VALUE_TYPE(kDownloadAutoDeletionFeatureEnabled)},
Charles Yang8bd747632025-01-22 20:17:002417 {"lens-ink-multi-sample-mode-disabled",
2418 flag_descriptions::kLensInkMultiSampleModeDisabledName,
2419 flag_descriptions::kLensInkMultiSampleModeDisabledDescription,
2420 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensInkMultiSampleModeDisabled)},
Briana McClure09b0c3632025-01-23 21:57:182421 {"animated-default-browser-promo-in-fre",
2422 flag_descriptions::kAnimatedDefaultBrowserPromoInFREName,
2423 flag_descriptions::kAnimatedDefaultBrowserPromoInFREDescription,
2424 flags_ui::kOsIos,
Briana McClure21685c42025-02-06 15:18:222425 FEATURE_WITH_PARAMS_VALUE_TYPE(
2426 first_run::kAnimatedDefaultBrowserPromoInFRE,
2427 kAnimatedDefaultBrowserPromoInFREVariations,
2428 "AnimatedDBPInFRE-Layout")},
Fernando Ramirezfcdb52f2025-01-24 19:27:352429 {"autofill-enable-allowlist-for-bmo-card-category-benefits",
2430 flag_descriptions::kAutofillEnableAllowlistForBmoCardCategoryBenefitsName,
2431 flag_descriptions::
2432 kAutofillEnableAllowlistForBmoCardCategoryBenefitsDescription,
2433 flags_ui::kOsIos,
2434 FEATURE_VALUE_TYPE(
2435 autofill::features::
2436 kAutofillEnableAllowlistForBmoCardCategoryBenefits)},
Marc Treib921f3ef2025-01-27 16:51:012437 {"use-account-list-from-identity-manager",
2438 flag_descriptions::kUseAccountListFromIdentityManagerName,
2439 flag_descriptions::kUseAccountListFromIdentityManagerDescription,
2440 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kUseAccountListFromIdentityManager)},
“Prasanaa”96e15992025-01-30 15:44:352441 {"fullscreen-transition", flag_descriptions::kFullscreenTransitionName,
2442 flag_descriptions::kFullscreenTransitionDescription, flags_ui::kOsIos,
2443 FEATURE_WITH_PARAMS_VALUE_TYPE(kFullscreenTransition,
2444 kFullscreenTransitionVariations,
ginnnnnnny0e892172025-02-04 21:45:172445 "IOSFull`screenTransition")},
ginnnnnnnyccce0952025-02-03 22:44:362446 {"ios-deprecate-feed-header",
2447 flag_descriptions::kDeprecateFeedHeaderExperimentName,
2448 flag_descriptions::kDeprecateFeedHeaderExperimentDescription,
2449 flags_ui::kOsIos,
2450 FEATURE_WITH_PARAMS_VALUE_TYPE(kDeprecateFeedHeader,
2451 kDeprecateFeedHeaderVariations,
2452 "IOSDeprecateFeedHeader")},
“Prasanaa”6ad22342025-02-25 12:55:172453 {"refactor-toolbars-size", flag_descriptions::kRefactorToolbarsSizeName,
2454 flag_descriptions::kRefactorToolbarsSizeDescription, flags_ui::kOsIos,
2455 FEATURE_VALUE_TYPE(kRefactorToolbarsSize)},
Charles Yangfc3655b62025-02-05 21:49:262456 {"lens-gesture-text-selection-disabled",
2457 flag_descriptions::kLensGestureTextSelectionDisabledName,
2458 flag_descriptions::kLensGestureTextSelectionDisabledDescription,
2459 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensGestureTextSelectionDisabled)},
Sourav0691b752025-02-07 16:44:072460 {"add-address-manually", flag_descriptions::kAddAddressManuallyName,
2461 flag_descriptions::kAddAddressManuallyDescription, flags_ui::kOsIos,
2462 FEATURE_VALUE_TYPE(kAddAddressManually)},
Charles Yangca6175732025-02-11 18:21:392463 {"lens-vsint-param-enabled", flag_descriptions::kLensVsintParamEnabledName,
2464 flag_descriptions::kLensVsintParamEnabledDescription, flags_ui::kOsIos,
2465 FEATURE_VALUE_TYPE(kLensVsintParamEnabled)},
Charles Yang6b2639d2025-02-11 19:24:042466 {"lens-unary-client-data-header-enabled",
2467 flag_descriptions::kLensUnaryClientDataHeaderEnabledName,
2468 flag_descriptions::kLensUnaryClientDataHeaderEnabledDescription,
2469 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryClientDataHeaderEnabled)},
Elmehdi Rahmaoui8d7eb922025-02-13 11:40:542470 {"ios-new-share-extension", flag_descriptions::kNewShareExtensionName,
2471 flag_descriptions::kNewShareExtensionDescription, flags_ui::kOsIos,
2472 FEATURE_VALUE_TYPE(kNewShareExtension)},
Hira Mahmooddcc63d7f2025-02-19 17:28:572473 {"ios-best-features-screen",
2474 flag_descriptions::kBestFeaturesScreenInFirstRunName,
2475 flag_descriptions::kBestFeaturesScreenInFirstRunDescription,
2476 flags_ui::kOsIos,
2477 FEATURE_WITH_PARAMS_VALUE_TYPE(first_run::kBestFeaturesScreenInFirstRun,
2478 kBestFeaturesScreenInFirstRunVariations,
2479 "BestFeaturesScreenInFirstRun")},
Noémie St-Onge4a534a122025-02-25 19:14:092480 {"ios-passkeys-m2", flag_descriptions::kIOSPasskeysM2Name,
2481 flag_descriptions::kIOSPasskeysM2Description, flags_ui::kOsIos,
2482 FEATURE_VALUE_TYPE(kIOSPasskeysM2)},
Hira Mahmood51082d72025-02-26 21:04:402483 {"manual-log-uploads-in-the-fre",
2484 flag_descriptions::kManualLogUploadsInFREName,
2485 flag_descriptions::kManualLogUploadsInFREDescription, flags_ui::kOsIos,
2486 FEATURE_VALUE_TYPE(first_run::kManualLogUploadsInTheFRE)},
Kavita Soni42e1c422025-02-27 22:09:092487 {"autofill-disable-default-save-card-fix-flow-detection",
2488 flag_descriptions::kAutofillDisableDefaultSaveCardFixFlowDetectionName,
2489 flag_descriptions::
2490 kAutofillDisableDefaultSaveCardFixFlowDetectionDescription,
2491 flags_ui::kOsIos,
2492 FEATURE_VALUE_TYPE(
2493 autofill::features::kAutofillDisableDefaultSaveCardFixFlowDetection)},
Charles Yangbf00df62025-02-28 17:51:202494 {"lens-unary-api-salient-text-enabled",
2495 flag_descriptions::kLensUnaryApiSalientTextEnabledName,
2496 flag_descriptions::kLensUnaryApiSalientTextEnabledDescription,
2497 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryApiSalientTextEnabled)},
Ibrahim Kanouche16414ff82025-03-01 02:12:312498 {"non-modal-sign-in-promo", flag_descriptions::kNonModalSignInPromoName,
2499 flag_descriptions::kNonModalSignInPromoDescription, flags_ui::kOsIos,
2500 FEATURE_VALUE_TYPE(kNonModalSignInPromo)},
“Prasanaa”856d8272025-03-05 20:35:322501 {"suggest-strong-password-in-add-password",
2502 flag_descriptions::kSuggestStrongPasswordInAddPasswordName,
2503 flag_descriptions::kSuggestStrongPasswordInAddPasswordDescription,
2504 flags_ui::kOsIos,
2505 FEATURE_VALUE_TYPE(
2506 password_manager::features::kSuggestStrongPasswordInAddPassword)},
Kavita Soni754e40a2025-03-05 21:46:492507 {"autofill-save-card-bottomsheet",
2508 flag_descriptions::kAutofillSaveCardBottomSheetName,
2509 flag_descriptions::kAutofillSaveCardBottomSheetDescription,
2510 flags_ui::kOsIos,
2511 FEATURE_VALUE_TYPE(autofill::features::kAutofillSaveCardBottomSheet)},
Olivier ROBIN4d7cdb82025-03-11 09:33:472512 {"ios-one-tap-mini-map-restrictions",
2513 flag_descriptions::kIOSOneTapMiniMapRestrictionsName,
2514 flag_descriptions::kIOSOneTapMiniMapRestrictionsDescription,
2515 flags_ui::kOsIos,
2516 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSOneTapMiniMapRestrictions,
2517 kIOSOneTapMiniMapRestrictionsVariations,
2518 "IOSOneTapMiniMapRestrictions")},
Charles Yang3b1713c2025-03-11 17:14:152519 {"lens-block-fetch-objects-interaction-rpcs-on-separate-handshake",
2520 flag_descriptions::
2521 kLensBlockFetchObjectsInteractionRPCsOnSeparateHandshakeName,
2522 flag_descriptions::
2523 kLensBlockFetchObjectsInteractionRPCsOnSeparateHandshakeDescription,
2524 flags_ui::kOsIos,
2525 FEATURE_VALUE_TYPE(
2526 kLensBlockFetchObjectsInteractionRPCsOnSeparateHandshake)},
2527 {"lens-prewarm-hard-stickiness-in-input-selection",
2528 flag_descriptions::kLensPrewarmHardStickinessInInputSelectionName,
2529 flag_descriptions::kLensPrewarmHardStickinessInInputSelectionDescription,
2530 flags_ui::kOsIos,
2531 FEATURE_VALUE_TYPE(kLensPrewarmHardStickinessInInputSelection)},
2532 {"lens-prewarm-hard-stickiness-in-query-formulation",
2533 flag_descriptions::kLensPrewarmHardStickinessInQueryFormulationName,
2534 flag_descriptions::kLensPrewarmHardStickinessInQueryFormulationDescription,
2535 flags_ui::kOsIos,
2536 FEATURE_VALUE_TYPE(kLensPrewarmHardStickinessInQueryFormulation)},
Nicolas MacBeth12449f72025-03-11 21:19:482537 {"enhanced-calendar", flag_descriptions::kEnhancedCalendarName,
2538 flag_descriptions::kEnhancedCalendarDescription, flags_ui::kOsIos,
2539 FEATURE_VALUE_TYPE(kEnhancedCalendar)},
Gauthier Ambard5b124d302025-03-12 13:38:402540 {"data-sharing-debug-logs", flag_descriptions::kDataSharingDebugLogsName,
2541 flag_descriptions::kDataSharingDebugLogsDescription, flags_ui::kOsIos,
2542 SINGLE_VALUE_TYPE(data_sharing::kDataSharingDebugLoggingEnabled)},
Duong Dac9f84393332025-03-13 11:29:152543 {"supervised-user-block-interstitial-v3",
2544 flag_descriptions::kSupervisedUserBlockInterstitialV3Name,
2545 flag_descriptions::kSupervisedUserBlockInterstitialV3Description,
2546 flags_ui::kOsIos,
2547 FEATURE_VALUE_TYPE(supervised_user::kSupervisedUserBlockInterstitialV3)},
Charles Yang127155ae2025-03-13 21:00:382548 {"lens-fetch-srp-api-enabled",
2549 flag_descriptions::kLensFetchSrpApiEnabledName,
2550 flag_descriptions::kLensFetchSrpApiEnabledDescription, flags_ui::kOsIos,
2551 FEATURE_VALUE_TYPE(kLensFetchSrpApiEnabled)},
Joshua Tan07b01a62025-03-13 22:25:112552 {"autofill-enable-card-info-runtime-retrieval",
2553 flag_descriptions::kAutofillEnableCardInfoRuntimeRetrievalName,
2554 flag_descriptions::kAutofillEnableCardInfoRuntimeRetrievalDescription,
2555 flags_ui::kOsIos,
2556 FEATURE_VALUE_TYPE(
2557 autofill::features::kAutofillEnableCardInfoRuntimeRetrieval)},
Hira Mahmood4535b072025-03-14 16:45:592558 {"feed-swipe-iph", flag_descriptions::kFeedSwipeInProductHelpName,
2559 flag_descriptions::kFeedSwipeInProductHelpDescription, flags_ui::kOsIos,
2560 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedSwipeInProductHelp,
2561 kFeedSwipeInProductHelpVariations,
2562 "FeedSwipeInProductHelp")},
Charles Yang0b278cf2025-03-14 18:11:582563 {"lens-qr-code-parsing-fix", flag_descriptions::kLensQRCodeParsingFixName,
2564 flag_descriptions::kLensQRCodeParsingFixDescription, flags_ui::kOsIos,
2565 FEATURE_VALUE_TYPE(kLensQRCodeParsingFix)},
Chris Lu62796892025-03-18 15:02:152566 {"notification-collision-management",
2567 flag_descriptions::kNotificationCollisionManagementName,
2568 flag_descriptions::kNotificationCollisionManagementDescription,
2569 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationCollisionManagement)},
Olivier ROBIN2ee3dbad2025-03-19 11:48:332570 {"ios-one-tap-mini-map-remove-section-breaks",
2571 flag_descriptions::kIOSOneTapMiniMapRemoveSectionBreaksName,
2572 flag_descriptions::kIOSOneTapMiniMapRemoveSectionBreaksDescription,
2573 flags_ui::kOsIos,
2574 FEATURE_VALUE_TYPE(kIOSOneTapMiniMapRemoveSectionsBreaks)},
Julia Sobiech562e2c42025-03-25 14:06:552575 {"autofill-enable-support-for-home-and-work",
2576 flag_descriptions::kAutofillEnableSupportForHomeAndWorkName,
2577 flag_descriptions::kAutofillEnableSupportForHomeAndWorkDescription,
2578 flags_ui::kOsIos,
2579 FEATURE_VALUE_TYPE(
2580 autofill::features::kAutofillEnableSupportForHomeAndWork)},
Nohemi Fernandez11751ec2025-03-26 18:24:372581 {"reader-mode-distiller-heuristic-delay-string",
2582 flag_descriptions::kReaderModeDistillerHeuristicPageLoadDelayName,
2583 flag_descriptions::kReaderModeDistillerHeuristicPageLoadDelayDescription,
2584 flags_ui::kOsIos,
2585 FEATURE_WITH_PARAMS_VALUE_TYPE(
2586 kEnableReaderModeDistillerHeuristic,
2587 kReaderModeDistillerHeuristicPageLoadDelayOptions,
2588 "ReaderModeHeuristicPageLoadDelay")},
2589 {"reader-mode-distiller-heuristic-enabled",
2590 flag_descriptions::kReaderModeDistillerHeuristicName,
2591 flag_descriptions::kReaderModeDistillerHeuristicDescription,
2592 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableReaderModeDistillerHeuristic)},
2593 {"reader-mode-distiller-heuristic-sampling",
2594 flag_descriptions::kReaderModeDistillerHeuristicSamplingName,
2595 flag_descriptions::kReaderModeDistillerHeuristicSamplingDescription,
2596 flags_ui::kOsIos,
2597 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableReaderModeDistillerHeuristic,
2598 kReaderModePageLoadHeuristicSamplingOptions,
2599 "ReaderModeHeuristicSampling")},
Christian Xuac188552025-03-26 13:24:132600 {"lens-overlay-navigation-history",
2601 flag_descriptions::kLensOverlayNavigationHistoryName,
2602 flag_descriptions::kLensOverlayNavigationHistoryDescription,
2603 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayNavigationHistory)},
adamtae89640512025-03-27 20:30:132604 {"page-action-menu", flag_descriptions::kPageActionMenuName,
2605 flag_descriptions::kPageActionMenuDescription, flags_ui::kOsIos,
2606 FEATURE_VALUE_TYPE(kPageActionMenu)},
Federica Germinariof58b5a7e2024-10-22 10:35:422607};
sdefresne14900ee2015-11-27 14:43:212608
Rohit Raobed794c2020-04-27 15:27:452609bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
2610 return false;
2611}
2612
2613flags_ui::FlagsState& GetGlobalFlagsState() {
2614 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
2615 nullptr);
2616 return *flags_state;
2617}
David Jean5ca263c2021-08-18 09:19:302618// Creates the experimental test policies map, used by AsyncPolicyLoader and
2619// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342620NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:212621 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2622
Guillaume Jenkins25e9bd72020-08-27 17:39:062623 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:552624 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:062625 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:552626
Guillaume Jenkins25e9bd72020-08-27 17:39:062627 // Set some sample policy values for testing if EnableSamplePolicies is set to
2628 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:402629 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:552630 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:012631 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
2632
Guillaume Jenkinseeb7007c2020-06-25 22:55:402633 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
2634
2635 // 2 = Disable all variations
2636 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
2637
2638 // 2 = Do not allow any site to show popups
2639 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
2640
Tina Wang5abee802020-07-29 23:09:522641 // Set default search engine.
2642 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
2643 @YES,
2644 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
2645 @"http://www.google.com/search?q={searchTerms}",
2646 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:022647 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:522648
Tina Wang89068c82020-10-29 15:51:502649 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
2650
Gauthier Ambard21b23702021-04-16 16:11:272651 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
2652
Tina Wang59d0b7e2020-08-11 04:41:012653 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:532654
2655 // 2 = Enhanced safe browsing protection
2656 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
2657
2658 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:292659
2660 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:552661 }];
2662 }
2663
Ewann227a3c02021-04-19 12:04:542664 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:042665 NSString* sync_policy_key =
2666 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:302667 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:542668 }
Ewann227a3c02021-04-19 12:04:542669
Ewann570a6302021-08-17 07:22:422670 // SyncTypesListDisabled policy.
2671 NSString* Sync_types_list_disabled_key =
2672 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
2673 NSMutableArray* Sync_types_list_disabled_values =
2674 [[NSMutableArray alloc] init];
2675 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
2676 [Sync_types_list_disabled_values addObject:@"bookmarks"];
2677 }
2678 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
2679 [Sync_types_list_disabled_values addObject:@"readingList"];
2680 }
2681 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
2682 [Sync_types_list_disabled_values addObject:@"preferences"];
2683 }
2684 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
2685 [Sync_types_list_disabled_values addObject:@"passwords"];
2686 }
2687 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
2688 [Sync_types_list_disabled_values addObject:@"autofill"];
2689 }
2690 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
2691 [Sync_types_list_disabled_values addObject:@"typedUrls"];
2692 }
2693 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
2694 [Sync_types_list_disabled_values addObject:@"tabs"];
2695 }
2696 if ([Sync_types_list_disabled_values count]) {
2697 [testing_policies addEntriesFromDictionary:@{
2698 Sync_types_list_disabled_key : Sync_types_list_disabled_values
2699 }];
Ewann570a6302021-08-17 07:22:422700 }
2701
Gauthier Ambard073eaa92021-11-22 15:24:132702 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:522703 NSString* incognito_policy_key =
2704 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
2705 NSInteger incognito_mode_availability =
2706 [defaults integerForKey:incognito_policy_key];
2707 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:522708 [testing_policies addEntriesFromDictionary:@{
2709 incognito_policy_key : @(incognito_mode_availability),
2710 }];
2711 }
2712
Ewann40a8f8a2021-07-29 10:01:202713 NSString* restriction_pattern =
2714 [defaults stringForKey:@"RestrictAccountsToPatterns"];
2715 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:292716 NSString* restrict_key =
2717 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:202718 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:292719 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:202720 }];
2721 }
2722
Vincent Boisselle19200bc2021-09-01 17:58:252723 // If the sign-in policy is set (not "None"), add the policy key to the list
2724 // of enabled experimental policies, and set the value.
2725 NSString* const kSigninPolicyKey = @"BrowserSignin";
2726 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2727 if (signin_policy_mode) {
2728 // Remove the mode offset that was used to represent the unset policy.
2729 --signin_policy_mode;
2730 DCHECK(signin_policy_mode >= 0);
2731
Vincent Boisselle19200bc2021-09-01 17:58:252732 [testing_policies addEntriesFromDictionary:@{
2733 kSigninPolicyKey : @(signin_policy_mode),
2734 }];
2735 }
2736
Veronique Nguyen9b1044f2022-01-11 14:41:132737 // If the New Tab Page URL is set (not empty) add the value to the list of
2738 // test policies.
2739 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2740 if ([ntp_location length] > 0) {
2741 NSString* ntp_location_key =
2742 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2743 [testing_policies
2744 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572745 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132746 }
2747
Ali Juma9ec36d2b2022-03-28 14:53:122748 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2749 NSString* allow_backups_key =
2750 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2751 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2752 [allowed_experimental_policies addObject:allow_backups_key];
2753 }
2754
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242755 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2756 NSString* password_manager_key =
2757 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2758 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2759 [allowed_experimental_policies addObject:password_manager_key];
2760 }
Vincent Boisselle003569a72023-09-11 16:03:122761
2762 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2763 NSString* user_policy_merge_key =
2764 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2765 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2766 [allowed_experimental_policies addObject:user_policy_merge_key];
2767 }
2768
Arthur Milchiorbb44f5c82023-03-14 16:14:462769 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2770 NSString* managed_bookmarks_key =
2771 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2772 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572773 @"["
2774 // The following gets filtered out from
2775 // the JSON string when parsed.
2776 " {"
2777 " \"toplevel_name\": \"Managed Bookmarks\""
2778 " },"
2779 " {"
2780 " \"name\": \"Google\","
2781 " \"url\": \"google.com\""
2782 " },"
2783 " {"
2784 " \"name\": \"Empty Folder\","
2785 " \"children\": []"
2786 " },"
2787 " {"
2788 " \"name\": \"Big Folder\","
2789 " \"children\": ["
2790 " {"
2791 " \"name\": \"Youtube\","
2792 " \"url\": \"youtube.com\""
2793 " },"
2794 " {"
2795 " \"name\": \"Chromium\","
2796 " \"url\": \"chromium.org\""
2797 " },"
2798 " {"
2799 " \"name\": \"More Stuff\","
2800 " \"children\": ["
2801 " {"
2802 " \"name\": \"Bugs\","
2803 " \"url\": \"crbug.com\""
2804 " }"
2805 " ]"
2806 " }"
2807 " ]"
2808 " }"
2809 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462810 [testing_policies addEntriesFromDictionary:@{
2811 managed_bookmarks_key : managed_bookmarks_value
2812 }];
2813 [allowed_experimental_policies addObject:managed_bookmarks_key];
2814 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242815
Guillaume Jenkins25e9bd72020-08-27 17:39:062816 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2817 // policy.
2818 if ([allowed_experimental_policies count] > 0) {
2819 [testing_policies setValue:allowed_experimental_policies
2820 forKey:base::SysUTF8ToNSString(
2821 policy::key::kEnableExperimentalPolicies)];
2822 }
2823
jlebel2eb40222022-05-06 11:15:422824 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2825 switch ([defaults integerForKey:metrics_reporting_key]) {
2826 case 1:
2827 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132828 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422829 break;
2830 case 2:
2831 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132832 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422833 break;
2834 default:
2835 // Metrics reporting not managed.
2836 break;
2837 }
2838
David Jean6f85d44f2021-08-19 08:08:452839 // Warning: Add new flags to TestingPoliciesHash() below.
2840
David Jean5ca263c2021-08-18 09:19:302841 return testing_policies;
2842}
David Jean6f85d44f2021-08-19 08:08:452843
David Jean5ca263c2021-08-18 09:19:302844} // namespace
2845
Gauthier Ambard02dbf022022-08-23 08:28:472846// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302847void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2848 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2849
2850 // Set the UA flag if UseMobileSafariUA is enabled.
2851 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2852 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2853 // Chrome puts its product token.
2854 int32_t major = 0;
2855 int32_t minor = 0;
2856 int32_t bugfix = 0;
2857 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2858 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2859
2860 command_line->AppendSwitchASCII(switches::kUserAgent,
2861 web::BuildMobileUserAgent(product));
2862 }
2863
2864 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342865 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302866
2867 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2868 // Management to enabled and add the token to the list of policies.
2869 NSString* token_key =
2870 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2871 NSString* token = [defaults stringForKey:token_key];
2872
2873 if ([token length] > 0) {
2874 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2875 [testing_policies setValue:token forKey:token_key];
2876 }
2877
Guillaume Jenkins57606d72020-08-13 17:32:552878 // If some policies were set, commit them to the app's registration defaults.
2879 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402880 NSDictionary* registration_defaults =
2881 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2882 [defaults registerDefaults:registration_defaults];
2883 }
2884
sdefresne14900ee2015-11-27 14:43:212885 // Freeform commandline flags. These are added last, so that any flags added
2886 // earlier in this function take precedence.
2887 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2888 base::CommandLine::StringVector flags;
2889 // Append an empty "program" argument.
2890 flags.push_back("");
2891
2892 // The number of flags corresponds to the number of text fields in
2893 // Experimental.plist.
2894 const int kNumFreeformFlags = 5;
2895 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2896 NSString* key =
2897 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2898 NSString* flag = [defaults stringForKey:key];
2899 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332900 // iOS keyboard replaces -- with —, so undo that.
2901 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2902 withString:@"--"
2903 options:0
2904 range:NSMakeRange(0, 1)];
2905 // To make things easier, allow flags with no dashes by prepending them
2906 // here. This also allows for flags that just have one dash if they
2907 // exist.
2908 if (![flag hasPrefix:@"-"]) {
2909 flag = [@"--" stringByAppendingString:flag];
2910 }
sdefresne14900ee2015-11-27 14:43:212911 flags.push_back(base::SysNSStringToUTF8(flag));
2912 }
2913 }
2914
2915 base::CommandLine temp_command_line(flags);
2916 command_line->AppendArguments(temp_command_line, false);
2917 }
msardafc76f662017-02-24 12:46:282918
justincohendacc85d2017-06-28 23:34:102919 // Populate command line flag for 3rd party keyboard omnibox workaround.
2920 NSString* enableThirdPartyKeyboardWorkaround =
2921 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2922 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2923 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2924 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2925 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2926 }
2927
Sylvain Defresned3cd8d92022-01-18 13:35:082928 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212929}
2930
sdefresne14900ee2015-11-27 14:43:212931void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2932 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182933 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112934 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532935 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212936}
2937
jkrcalbf073372016-07-29 07:21:312938std::vector<std::string> RegisterAllFeatureVariationParameters(
2939 flags_ui::FlagsStorage* flags_storage,
2940 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182941 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2942 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312943}
2944
sdefresne14900ee2015-11-27 14:43:212945void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2946 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502947 base::Value::List& supported_entries,
2948 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182949 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212950 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512951 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212952}
2953
2954void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2955 const std::string& internal_name,
2956 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182957 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2958 enable);
sdefresne14900ee2015-11-27 14:43:212959}
2960
2961void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182962 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212963}
2964
Nicolas MacBeth972e2592023-02-23 15:22:092965bool IsRestartNeededToCommitChanges() {
2966 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2967}
2968
sdefresne14900ee2015-11-27 14:43:212969namespace testing {
2970
Elly Fong-Jones323ab1092021-08-23 22:36:312971base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2972 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532973 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212974}
2975
2976} // namespace testing