blob: 799771e87a4cbed9295b09944f03f9bf3efecf97 [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"
Stepan Khapugin923665732025-01-02 16:23:3879#import "ios/chrome/browser/authentication/ui_bundled/signin/interruptible_chrome_coordinator.h"
Gauthier Ambard5b7f3c22023-09-13 12:03:3080#import "ios/chrome/browser/browsing_data/model/browsing_data_features.h"
Aman Vermab6f55572023-09-28 11:40:5381#import "ios/chrome/browser/crash_report/model/features.h"
Sebsgfcd5b0b2024-04-09 08:18:3282#import "ios/chrome/browser/credential_provider/model/features.h"
Aman Vermaf8a157f62023-10-03 15:32:1183#import "ios/chrome/browser/default_browser/model/utils.h"
Daniel White37c85a22025-03-03 16:37:3684#import "ios/chrome/browser/download/ui/features.h"
mmrashadbc0ca942023-10-06 13:12:1485#import "ios/chrome/browser/find_in_page/model/util.h"
Hira Mahmoodf6906a82025-01-02 17:55:0986#import "ios/chrome/browser/first_run/ui_bundled/features.h"
Gauthier Ambard92605132022-08-26 13:25:1787#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5788#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Vincent Boisselle8b321bb2023-11-28 13:58:3189#import "ios/chrome/browser/follow/model/follow_features.h"
Rubin Deliallisib66a77a2024-10-02 18:09:4890#import "ios/chrome/browser/incognito_reauth/ui_bundled/features.h"
Nicolas MacBeth12449f72025-03-11 21:19:4891#import "ios/chrome/browser/intelligence/features/features.h"
Ali Jumad29dc1872023-10-19 13:33:5892#import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h"
Christian Xuff884802024-11-25 23:36:1893#import "ios/chrome/browser/lens/ui_bundled/features.h"
Hira Mahmood664449872024-11-18 23:55:2294#import "ios/chrome/browser/ntp/model/features.h"
Chris Lu09019af2024-08-28 08:38:4495#import "ios/chrome/browser/ntp/ui_bundled/new_tab_page_feature.h"
Christian Xua224fbd2025-01-30 14:55:2796#import "ios/chrome/browser/omnibox/public/omnibox_ui_features.h"
Stepan Khapugin34e459742024-12-06 09:39:5997#import "ios/chrome/browser/page_info/ui_bundled/features.h"
Stephen McGruer5ac77b932024-11-07 20:09:4398#import "ios/chrome/browser/parcel_tracking/features.h"
mmrashadd0c7f952023-12-14 13:36:3899#import "ios/chrome/browser/policy/model/policy_util.h"
Cheick Cisse85457f22024-05-23 22:37:59100#import "ios/chrome/browser/price_insights/model/price_insights_feature.h"
Stepan Khapugin5694d702024-01-31 13:23:08101#import "ios/chrome/browser/promos_manager/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"
Robbie Gibson686c56732021-10-04 17:11:45112#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58113#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Weizhong Xia8b908bda2023-12-05 16:00:22114#import "ios/chrome/browser/web/model/features.h"
Gauthier Ambard999088c2022-09-13 08:36:57115#import "ios/chrome/grit/ios_strings.h"
116#import "ios/components/security_interstitials/https_only_mode/feature.h"
117#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
118#import "ios/web/common/features.h"
119#import "ios/web/common/user_agent.h"
120#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21121
Sylvain Defresne9c107082020-10-27 16:39:13122#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
mmrashadf158cad942023-10-03 09:15:48123#import "ios/chrome/browser/screen_time/model/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13124#endif
125
sdefresne14900ee2015-11-27 14:43:21126#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57127#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22128#endif
stkhapuginc1be1792016-12-13 14:30:53129
elawrence816f6790e2017-06-16 18:19:28130using flags_ui::FeatureEntry;
131
sdefresne14900ee2015-11-27 14:43:21132namespace {
Emily Starkbafa9062017-12-27 15:22:46133
Nohemi Fernandezc00842a2021-07-26 11:47:34134const FeatureEntry::Choice
135 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
136 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
137 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
138 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
139 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
140};
141
Radu Nitescu6e6dd7f52025-01-17 11:33:35142const char kLensOverlayOnboardingParamSpeedbumpMenu[] =
143 "kLensOverlayOnboardingParamSpeedbumpMenu";
144const char kLensOverlayOnboardingParamUpdatedStrings[] =
145 "kLensOverlayOnboardingParamUpdatedStrings";
146const char kLensOverlayOnboardingParamUpdatedStringsAndVisuals[] =
147 "kLensOverlayOnboardingParamUpdatedStringsAndVisuals";
148
149const FeatureEntry::FeatureParam kLensOverlayOnboardinSpeedbumpMenu[] = {
150 {kLensOverlayOnboardingParam, kLensOverlayOnboardingParamSpeedbumpMenu}};
151const FeatureEntry::FeatureParam kLensOverlayOnboardingUpdatedStrings[] = {
152 {kLensOverlayOnboardingParam, kLensOverlayOnboardingParamUpdatedStrings}};
153const FeatureEntry::FeatureParam
154 kLensOverlayOnboardingUpdatedStringsAndVisuals[] = {
155 {kLensOverlayOnboardingParam,
156 kLensOverlayOnboardingParamUpdatedStringsAndVisuals}};
157
158const FeatureEntry::FeatureVariation kLensOverlayOnboardingVariations[] = {
159 {"A: Speedbump menu", kLensOverlayOnboardinSpeedbumpMenu,
160 std::size(kLensOverlayOnboardinSpeedbumpMenu), nullptr},
161 {"B: Updated Strings", kLensOverlayOnboardingUpdatedStrings,
162 std::size(kLensOverlayOnboardingUpdatedStrings), nullptr},
163 {"C: Updated Strings and Graphics",
164 kLensOverlayOnboardingUpdatedStringsAndVisuals,
165 std::size(kLensOverlayOnboardingUpdatedStringsAndVisuals), nullptr},
Stepan Khapuginc5820242025-01-10 22:21:11166};
167
Stepan Khapugincc4e9842019-01-23 13:38:13168const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
169 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
170const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
171 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
172const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
173 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
174const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
175 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
176const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
177 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
178const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
179 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
180const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
181 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
182
183const FeatureEntry::FeatureVariation
184 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
185 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53186 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13187 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53188 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13189 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53190 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13191 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53192 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13193 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53194 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13195 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53196 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13197 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53198 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13199
Stepan Khapuginbac467e2022-05-06 21:11:54200const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
201 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
202const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
203 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
204const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
205 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
206
207const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
208 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
209 nullptr},
210 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
211 nullptr},
212 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
213 nullptr},
214};
215
Christian Xucf26d562022-07-06 09:28:36216const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
217 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
218const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
219 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
220const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
221 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
222
223const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
224 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
225 nullptr},
226 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
227 nullptr},
228 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
229 nullptr},
230};
231
Guillem Perez40086ef2023-11-20 20:03:52232const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = {
233 {kContentPushNotificationsExperimentType, "1"}};
234const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] =
235 {{kContentPushNotificationsExperimentType, "2"}};
Guillem Perez222b5b22024-01-20 02:16:27236const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] =
237 {{kContentPushNotificationsExperimentType, "3"}};
Tina Wangb7f5b3f2024-05-07 06:24:26238const FeatureEntry::FeatureParam
239 kContentPushNotificationsPromoRegistrationOnly[] = {
240 {kContentPushNotificationsExperimentType, "5"}};
241const FeatureEntry::FeatureParam
242 kContentPushNotificationsProvisionalRegistrationOnly[] = {
243 {kContentPushNotificationsExperimentType, "6"}};
244const FeatureEntry::FeatureParam
245 kContentPushNotificationsSetUpListRegistrationOnly[] = {
246 {kContentPushNotificationsExperimentType, "7"}};
Guillem Perez40086ef2023-11-20 20:03:52247
248const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = {
249 {"Promo", kContentPushNotificationsEnabledPromo,
250 std::size(kContentPushNotificationsEnabledPromo), nullptr},
251 {"Set up list", kContentPushNotificationsEnabledSetupLists,
Guillem Perez222b5b22024-01-20 02:16:27252 std::size(kContentPushNotificationsEnabledSetupLists), nullptr},
253 {"Provisional Notification", kContentPushNotificationsEnabledProvisional,
Guillem Perez749b3fc2024-02-13 19:29:49254 std::size(kContentPushNotificationsEnabledProvisional), nullptr},
Tina Wangb7f5b3f2024-05-07 06:24:26255 {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly,
256 std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr},
257 {"Provisional Notification Registeration Only",
258 kContentPushNotificationsProvisionalRegistrationOnly,
259 std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr},
260 {"Set up list Registeration Only",
261 kContentPushNotificationsSetUpListRegistrationOnly,
262 std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}};
Guillem Perez40086ef2023-11-20 20:03:52263
Chris Ludca9ce32023-09-20 16:53:50264const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35265 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50266const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35267 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08268
gogerald0e39e3aa2021-02-10 18:41:23269const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50270 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
271 std::size(kStartSurfaceTenSeconds), nullptr},
272 {"1h:Show Home Surface", kStartSurfaceOneHour,
273 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08274};
gogerald0e39e3aa2021-02-10 18:41:23275
Chris Luce928eb2023-05-12 21:36:26276const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
277 {kMagicStackMostVisitedModuleParam, "true"},
278 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22279const FeatureEntry::FeatureParam
280 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
281 {kMagicStackMostVisitedModuleParam, "true"},
282 {kReducedSpaceParam, "-80"},
283 {kHideIrrelevantModulesParam, "true"}};
Chris Lu8cf8ef82024-03-18 18:30:54284const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = {
Chris Luce928eb2023-05-12 21:36:26285 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu8cf8ef82024-03-18 18:30:54286 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26287
288const FeatureEntry::FeatureVariation kMagicStackVariations[]{
289 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
290 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22291 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
292 kMagicStackMostVisitedModuleHideIrrelevantModules,
293 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu8cf8ef82024-03-18 18:30:54294 {"Hide irrelevant modules", kMagicStackHidIrrelevantModules,
295 std::size(kMagicStackHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26296};
297
Chris Lu6fd4eaf2023-08-08 18:29:30298const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
299 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
300
301const FeatureEntry::FeatureVariation
302 kSegmentationPlatformIosModuleRankerVariations[]{
303 {"Enabled With Default Model Parameter (Must Set this!)",
304 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
305 };
306
Scott Yoderaf2bdf32024-01-30 20:26:15307const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31308 {kIOSTipsNotificationsUnknownTriggerTimeParam, "5s"},
309 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "5s"},
310 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "5s"},
Scott Yoderaf2bdf32024-01-30 20:26:15311};
312const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31313 {kIOSTipsNotificationsUnknownTriggerTimeParam, "10s"},
314 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "10s"},
315 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "10s"},
Scott Yoderaf2bdf32024-01-30 20:26:15316};
Scott Yoderd2dbc87f2024-03-07 18:23:37317const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31318 {kIOSTipsNotificationsUnknownTriggerTimeParam, "30s"},
319 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "30s"},
320 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "30s"},
Scott Yoderd2dbc87f2024-03-07 18:23:37321};
Scott Yoderaf2bdf32024-01-30 20:26:15322const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = {
323 {"(5s trigger)", kIOSTipsNotifications5SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07324 std::size(kIOSTipsNotifications5SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15325 {"(10s trigger)", kIOSTipsNotifications10SecondTrigger,
326 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderd2dbc87f2024-03-07 18:23:37327 {"(30s trigger)", kIOSTipsNotifications30SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07328 std::size(kIOSTipsNotifications30SecondTrigger), nullptr},
329};
330
331const FeatureEntry::FeatureParam
332 kIOSReactivationNotifications10SecondTrigger[] = {
333 {kIOSReactivationNotificationsTriggerTimeParam, "10s"},
334};
335const FeatureEntry::FeatureParam
336 kIOSReactivationNotifications30SecondTrigger[] = {
337 {kIOSReactivationNotificationsTriggerTimeParam, "30s"},
338};
339const FeatureEntry::FeatureVariation kIOSReactivationNotificationsVariations[] =
340 {
341 {"(10s trigger)", kIOSReactivationNotifications10SecondTrigger,
342 std::size(kIOSReactivationNotifications10SecondTrigger), nullptr},
343 {"(30s trigger)", kIOSReactivationNotifications30SecondTrigger,
344 std::size(kIOSReactivationNotifications30SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15345};
346
Ed Chin91e44992022-07-27 13:42:34347#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26348// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01349const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04350 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
351 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01352 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04353 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01354const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04355 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
356 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01357 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04358 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01359const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04360 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
361 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01362 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04363 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01364const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04365 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
366 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01367 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04368 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01369const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04370 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
371 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01372 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
373 {kBackgroundRefreshIntervalInSeconds, "0"}};
374const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04375 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
376 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01377 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
378 {kBackgroundRefreshIntervalInSeconds, "0"}};
379const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
380 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
381 {kEnableRecurringBackgroundRefreshSchedule, "false"},
382 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
383 {kBackgroundRefreshIntervalInSeconds, "0"}};
384const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
385 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
386 {kEnableRecurringBackgroundRefreshSchedule, "true"},
387 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
388 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04389
Ed Chin178ec2a2023-02-10 22:21:26390// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04391const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01392 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
393 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
394 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
395 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
396 {"1hr Interval 1hr Max Age Recurring",
397 kOneHourIntervalOneHourMaxAgeRecurring,
398 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
399 {"4hr Interval 6hr Max Age Recurring",
400 kFourHourIntervalSixHourMaxAgeRecurring,
401 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
402 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
403 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
404 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
405 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
406 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
407 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
408 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
409 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04410};
Ed Chin91e44992022-07-27 13:42:34411#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04412
David Jeanf361ae9d2024-04-09 08:19:47413const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = {
414 {kTextClassifierAddressParameterName, "true"}};
415const FeatureEntry::FeatureVariation
416 kEnableExpKitTextClassifierAddressVariations[] = {
417 {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap,
418 std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}};
419
420const FeatureEntry::FeatureParam
421 kEnableExpKitTextClassifierPhoneNumberOneTap[] = {
422 {kTextClassifierPhoneNumberParameterName, "true"}};
423const FeatureEntry::FeatureVariation
424 kEnableExpKitTextClassifierPhoneNumberVariations[] = {
425 {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap,
426 std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}};
427
428const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = {
429 {kTextClassifierEmailParameterName, "true"}};
430const FeatureEntry::FeatureVariation
431 kEnableExpKitTextClassifierEmailVariations[] = {
432 {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap,
433 std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15434
Ewann Pellea2bcb3a2023-08-28 13:53:00435const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = {
436 {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}};
437const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = {
438 {kTabResumptionParameterName, kTabResumptionAllTabsParam}};
Ewann Pelleb08ee062023-10-16 10:04:48439const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = {
Olivier Robinbb46d05d2024-06-25 17:56:35440 {kTabResumptionParameterName, kTabResumptionAllTabsParam},
441 {kTabResumptionThresholdParameterName, /* 24 hours */ "86400"}};
Ewann Pellea2bcb3a2023-08-28 13:53:00442
443const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
444 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
445 std::size(kTabResumptionMostRecentTabOnly), nullptr},
Ewann Pelleb08ee062023-10-16 10:04:48446 {"Most recent tab and last synced tab (12 hours threshold)",
447 kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr},
448 {"Most recent tab and last synced tab (24 hours threshold)",
449 kTabResumptionAllTabsOneDayThreshold,
Olivier Robin08bc56d02024-06-05 14:05:18450 std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}};
Ewann Pelle6eecb8f2023-06-23 14:31:37451
Christian Xu07d600192023-07-24 12:29:52452const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
453 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
454const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
455 {kBottomOmniboxDefaultSettingParam,
456 kBottomOmniboxDefaultSettingParamBottom}};
457const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
458 {{kBottomOmniboxDefaultSettingParam,
459 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
460const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
461 {
462 {"Top", kBottomOmniboxDefaultSettingTop,
463 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
464 {"Bottom", kBottomOmniboxDefaultSettingBottom,
465 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
466 {"Bottom for Safari Switcher",
467 kBottomOmniboxDefaultSettingSafariSwitcher,
468 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
469};
470
Cheick Cisse85457f22024-05-23 22:37:59471constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
472 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
473constexpr flags_ui::FeatureEntry::FeatureParam
474 kPriceInsightsGoodDealNowParam[] = {
475 {kLowPriceParam, kLowPriceParamGoodDealNow}};
476constexpr flags_ui::FeatureEntry::FeatureParam
477 kPriceInsightsSeePriceHistoryParam[] = {
478 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
479constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
480 {{"Price is low", kPriceInsightsPriceIsLowParam,
481 std::size(kPriceInsightsPriceIsLowParam), nullptr},
482 {"Good deal now", kPriceInsightsGoodDealNowParam,
483 std::size(kPriceInsightsGoodDealNowParam), nullptr},
484 {"See price history", kPriceInsightsSeePriceHistoryParam,
485 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
486
Olivier ROBIN82b67002023-07-31 14:34:46487const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
488 {web::features::kOneTapForMapsConsentModeParamTitle,
489 web::features::kOneTapForMapsConsentModeDefaultParam}};
490const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
491 {web::features::kOneTapForMapsConsentModeParamTitle,
492 web::features::kOneTapForMapsConsentModeForcedParam}};
493const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
494 {web::features::kOneTapForMapsConsentModeParamTitle,
495 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31496const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
497 {web::features::kOneTapForMapsConsentModeParamTitle,
498 web::features::kOneTapForMapsConsentModeIPHParam}};
499const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
500 {web::features::kOneTapForMapsConsentModeParamTitle,
501 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46502const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
503 {"Consent Default", kOneTapForMapsConsentModeDefault,
504 std::size(kOneTapForMapsConsentModeDefault), nullptr},
505 {"Consent Forced", kOneTapForMapsConsentModeForced,
506 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31507 {"Consent IPH", kOneTapForMapsConsentModeIPH,
508 std::size(kOneTapForMapsConsentModeIPH), nullptr},
509 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
510 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46511 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
512 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
513};
514
Benjamin Williams1dc8f2342024-01-04 21:25:55515const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
516 {kIOSDockingPromoExperimentType, "0"}};
517const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
518 {kIOSDockingPromoExperimentType, "1"}};
519const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
520 {kIOSDockingPromoExperimentType, "2"}};
521
522const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
523 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
524 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
525 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
526 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
527 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
528 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
529
Olivier ROBINcb76f4fe2024-06-05 16:11:42530const FeatureEntry::FeatureVariation
531 kImageServiceOptimizationGuideSalientImagesVariations[] = {
532 {"High Performance Canonicalization", nullptr, 0, "3362133"},
533};
534
Olivier Robinf8374f12024-06-05 19:00:04535const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] =
536 {{kTR15SeeMoreButtonParam, "false"}};
Olivier Robinf8374f12024-06-05 19:00:04537
538const FeatureEntry::FeatureVariation kTabResumption15Variations[] = {
Olivier Robinf8374f12024-06-05 19:00:04539 {"No See More Button", kTabResumption15DisableSeeMoreButtonImages,
540 std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr},
Olivier Robinf8374f12024-06-05 19:00:04541};
Olivier ROBINb17c14b92024-10-09 13:49:13542
543const FeatureEntry::FeatureParam kTabResumptionImagesOnlyThumbnail[] = {
544 {kTabResumptionImagesTypes, kTabResumptionImagesTypesThumbnails}};
545const FeatureEntry::FeatureParam kTabResumptionImagesOnlySalient[] = {
546 {kTabResumptionImagesTypes, kTabResumptionImagesTypesSalient}};
547
548const FeatureEntry::FeatureVariation kTabResumptionImagesVariations[] = {
549 {"Only thumbnails", kTabResumptionImagesOnlyThumbnail,
550 std::size(kTabResumptionImagesOnlyThumbnail), nullptr},
551 {"Only salient", kTabResumptionImagesOnlySalient,
552 std::size(kTabResumptionImagesOnlySalient), nullptr},
553};
554
Charles Yangf8e7adf2024-06-11 00:17:00555// Uses int values from Lens filters ablation mode enum.
556const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
557 {kLensFiltersAblationMode, "0"}};
558const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
559 {kLensFiltersAblationMode, "1"}};
560const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
561 {kLensFiltersAblationMode, "2"}};
562const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
563 {kLensFiltersAblationMode, "3"}};
564
565const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
566 {"(Disabled)", kLensFiltersAblationModeDisabled,
567 std::size(kLensFiltersAblationModeDisabled), nullptr},
568 {"(Post Capture)", kLensFiltersAblationModePostCapture,
569 std::size(kLensFiltersAblationModePostCapture), nullptr},
570 {"(LVF)", kLensFiltersAblationModeLVF,
571 std::size(kLensFiltersAblationModeLVF), nullptr},
572 {"(Always)", kLensFiltersAblationModeAlways,
573 std::size(kLensFiltersAblationModeAlways), nullptr}};
574
575// Uses int values from Lens translate toggle mode enum.
576const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
577 {kLensTranslateToggleMode, "0"}};
578const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
579 {kLensTranslateToggleMode, "1"}};
580const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
581 {kLensTranslateToggleMode, "2"}};
582const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
583 {kLensTranslateToggleMode, "3"}};
584
585const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
586 {"(Disabled)", kLensTranslateToggleModeDisabled,
587 std::size(kLensTranslateToggleModeDisabled), nullptr},
588 {"(Post Capture)", kLensTranslateToggleModePostCapture,
589 std::size(kLensTranslateToggleModePostCapture), nullptr},
590 {"(LVF)", kLensTranslateToggleModeLVF,
591 std::size(kLensTranslateToggleModeLVF), nullptr},
592 {"(Always)", kLensTranslateToggleModeAlways,
593 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04594
Ewann Pelle1f48f922025-01-13 11:43:34595const FeatureEntry::FeatureParam kTabGroupIndicatorAboveButtonsVisble[] = {
596 {kTabGroupIndicatorVisible, "true"},
597 {kTabGroupIndicatorBelowOmnibox, "false"},
598 {kTabGroupIndicatorButtonsUpdate, "true"}};
599const FeatureEntry::FeatureParam kTabGroupIndicatorBelowButtonsVisble[] = {
600 {kTabGroupIndicatorVisible, "true"},
601 {kTabGroupIndicatorBelowOmnibox, "true"},
602 {kTabGroupIndicatorButtonsUpdate, "true"}};
603const FeatureEntry::FeatureParam kTabGroupIndicatorAboveVisble[] = {
604 {kTabGroupIndicatorVisible, "true"},
605 {kTabGroupIndicatorBelowOmnibox, "false"},
606 {kTabGroupIndicatorButtonsUpdate, "false"}};
607const FeatureEntry::FeatureParam kTabGroupIndicatorBelowVisble[] = {
608 {kTabGroupIndicatorVisible, "true"},
609 {kTabGroupIndicatorBelowOmnibox, "true"},
610 {kTabGroupIndicatorButtonsUpdate, "false"}};
611const FeatureEntry::FeatureParam kTabGroupIndicatorButtons[] = {
612 {kTabGroupIndicatorVisible, "false"},
613 {kTabGroupIndicatorBelowOmnibox, "false"},
614 {kTabGroupIndicatorButtonsUpdate, "true"}};
615
616const FeatureEntry::FeatureVariation kTabGroupIndicatorVariations[] = {
617 {"Indicator above omnibox + buttons update",
618 kTabGroupIndicatorAboveButtonsVisble,
619 std::size(kTabGroupIndicatorAboveButtonsVisble), nullptr},
620 {"Indicator below omnibox + buttons update",
621 kTabGroupIndicatorBelowButtonsVisble,
622 std::size(kTabGroupIndicatorBelowButtonsVisble), nullptr},
623 {"Indicator above omnibox", kTabGroupIndicatorAboveVisble,
624 std::size(kTabGroupIndicatorAboveVisble), nullptr},
625 {"Indicator below omnibox", kTabGroupIndicatorBelowVisble,
626 std::size(kTabGroupIndicatorBelowVisble), nullptr},
627 {"buttons update only", kTabGroupIndicatorButtons,
628 std::size(kTabGroupIndicatorButtons), nullptr}};
629
Khalid Peer7cf75a22024-06-13 17:25:49630const FeatureEntry::FeatureParam
631 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
632 {"MlUrlPiecewiseMappedSearchBlending", "true"},
633 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
634 "0,550;0.018,1300;0.14,1398;1,1422"},
635 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
636 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
637const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41638 kMlUrlPiecewiseMappedSearchBlendingDemotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49639 {"MlUrlPiecewiseMappedSearchBlending", "true"},
640 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
641 "0,550;0.018,1250;0.14,1348;1,1422"},
642 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
643 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
644const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41645 kMlUrlPiecewiseMappedSearchBlendingPromotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49646 {"MlUrlPiecewiseMappedSearchBlending", "true"},
647 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41648 "0,550;0.018,1350;0.14,1448;1,1472"},
649 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1450"},
Khalid Peer7cf75a22024-06-13 17:25:49650 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
651const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41652 kMlUrlPiecewiseMappedSearchBlendingPromotedBy100[] = {
Khalid Peer7cf75a22024-06-13 17:25:49653 {"MlUrlPiecewiseMappedSearchBlending", "true"},
654 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41655 "0,550;0.018,1400;0.14,1498;1,1522"},
656 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1500"},
Khalid Peer7cf75a22024-06-13 17:25:49657 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer4501c1f2024-06-27 16:12:04658const FeatureEntry::FeatureParam
659 kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = {
660 {"MlUrlPiecewiseMappedSearchBlending", "true"},
661 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer5c9bd9e2024-07-17 17:16:42662 "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:04663 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"},
664 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer7cf75a22024-06-13 17:25:49665
666const FeatureEntry::FeatureVariation
667 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
668 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
669 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
Khalid Peer9c07798f2024-07-15 22:39:41670 {"demoted by 50", kMlUrlPiecewiseMappedSearchBlendingDemotedBy50,
671 std::size(kMlUrlPiecewiseMappedSearchBlendingDemotedBy50), nullptr},
672 {"promoted by 50", kMlUrlPiecewiseMappedSearchBlendingPromotedBy50,
673 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy50), nullptr},
674 {"promoted by 100", kMlUrlPiecewiseMappedSearchBlendingPromotedBy100,
675 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy100), nullptr},
Khalid Peer4501c1f2024-06-27 16:12:04676 {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping,
677 std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr},
Khalid Peer7cf75a22024-06-13 17:25:49678};
679
680const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
681 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
682 {"MlUrlScoringShortcutDocumentSignals", "true"},
683};
684const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
685 {
686 {"MlUrlScoringUnlimitedNumCandidates", "true"},
687 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
688 {"MlUrlScoringShortcutDocumentSignals", "true"},
689};
690// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
691// Document(512), and History Fuzzy(65536) providers max matches to 10.
692const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
693 {
694 {"MlUrlScoringMaxMatchesByProvider",
695 "1:10,4:10,8:10,64:10,512:10,65536:10"},
696 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
697 {"MlUrlScoringShortcutDocumentSignals", "true"},
698};
699
700const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
701 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
702 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
703 {"unlimited suggestion candidates",
704 kOmniboxMlUrlScoringUnlimitedNumCandidates,
705 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
706 {"Increase provider max limit to 10",
707 kOmniboxMlUrlScoringMaxMatchesByProvider10,
708 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
709};
710
711const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
712 {"MlUrlSearchBlending_StableSearchBlending", "true"},
713 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
714};
715const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
716 {
717 {"MlUrlSearchBlending_StableSearchBlending", "false"},
718 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
719 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
720 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
721 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
722};
723const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
724 {"MlUrlSearchBlending_StableSearchBlending", "false"},
725 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
726};
727const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
728 {"MlUrlSearchBlending_StableSearchBlending", "false"},
729 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
730 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
731 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
732 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
733};
734
735const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
736 {"Stable", kMlUrlSearchBlendingStable,
737 std::size(kMlUrlSearchBlendingStable), nullptr},
738 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
739 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
740 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
741 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
742 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
743 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
744};
745
Khalid Peer4501c1f2024-06-27 16:12:04746const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = {
747 {"Small model", nullptr, 0, "3379590"},
748 {"Full model", nullptr, 0, "3380197"},
749};
750
Benjamin Williams0594caf2024-07-09 17:51:38751const FeatureEntry::FeatureParam kSafetyCheckNotificationsVerbose[] = {
752 {kSafetyCheckNotificationsExperimentType, "0"}};
753const FeatureEntry::FeatureParam kSafetyCheckNotificationsSuccinct[] = {
754 {kSafetyCheckNotificationsExperimentType, "1"}};
755
756const FeatureEntry::FeatureVariation kSafetyCheckNotificationsVariations[] = {
757 {"Display multiple notifications at once", kSafetyCheckNotificationsVerbose,
758 std::size(kSafetyCheckNotificationsVerbose), nullptr},
759 {"Display one notification at a time", kSafetyCheckNotificationsSuccinct,
760 std::size(kSafetyCheckNotificationsSuccinct), nullptr}};
761
Elmehdi Rahmaouif5b76462024-06-24 10:44:46762const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = {
763 {kSaveToPhotosContextMenuImprovementParam, "true"},
764 {kSaveToPhotosTitleImprovementParam, "false"},
765 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
766};
767const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = {
768 {kSaveToPhotosContextMenuImprovementParam, "false"},
769 {kSaveToPhotosTitleImprovementParam, "true"},
770 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
771};
772const FeatureEntry::FeatureParam
773 kSaveToPhotosAccountDefaultChoiceImprovement[] = {
774 {kSaveToPhotosContextMenuImprovementParam, "false"},
775 {kSaveToPhotosTitleImprovementParam, "false"},
776 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"},
777};
778
779const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = {
780 {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement,
781 std::size(kSaveToPhotosContextMenuImprovement), nullptr},
782 {"With Title improvement Only", kSaveToPhotosTitleImprovement,
783 std::size(kSaveToPhotosTitleImprovement), nullptr},
784 {"With Account Default choice improvement Only",
785 kSaveToPhotosAccountDefaultChoiceImprovement,
786 std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr},
787};
788
Stephen McGruer8fe98b62024-07-16 13:10:13789// LINT.IfChange(AutofillUploadCardRequestTimeouts)
790const FeatureEntry::FeatureParam
791 kAutofillUploadCardRequestTimeout_6Point5Seconds[] = {
792 {"autofill_upload_card_request_timeout_milliseconds", "6500"}};
793const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_7Seconds[] =
794 {{"autofill_upload_card_request_timeout_milliseconds", "7000"}};
795const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_9Seconds[] =
796 {{"autofill_upload_card_request_timeout_milliseconds", "9000"}};
797const FeatureEntry::FeatureVariation
798 kAutofillUploadCardRequestTimeoutOptions[] = {
799 {"6.5 seconds", kAutofillUploadCardRequestTimeout_6Point5Seconds,
800 std::size(kAutofillUploadCardRequestTimeout_6Point5Seconds), nullptr},
801 {"7 seconds", kAutofillUploadCardRequestTimeout_7Seconds,
802 std::size(kAutofillUploadCardRequestTimeout_7Seconds), nullptr},
803 {"9 seconds", kAutofillUploadCardRequestTimeout_9Seconds,
804 std::size(kAutofillUploadCardRequestTimeout_9Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03805// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillUploadCardRequestTimeouts)
Stephen McGruer8fe98b62024-07-16 13:10:13806
Stephen McGruer0904cae2024-07-17 19:54:46807// LINT.IfChange(AutofillVcnEnrollRequestTimeouts)
808const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_5Seconds[] = {
809 {"autofill_vcn_enroll_request_timeout_milliseconds", "5000"}};
810const FeatureEntry::FeatureParam
811 kAutofillVcnEnrollRequestTimeout_7Point5Seconds[] = {
812 {"autofill_vcn_enroll_request_timeout_milliseconds", "7500"}};
813const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_10Seconds[] =
814 {{"autofill_vcn_enroll_request_timeout_milliseconds", "10000"}};
815const FeatureEntry::FeatureVariation kAutofillVcnEnrollRequestTimeoutOptions[] =
816 {{"5 seconds", kAutofillVcnEnrollRequestTimeout_5Seconds,
817 std::size(kAutofillVcnEnrollRequestTimeout_5Seconds), nullptr},
818 {"7.5 seconds", kAutofillVcnEnrollRequestTimeout_7Point5Seconds,
819 std::size(kAutofillVcnEnrollRequestTimeout_7Point5Seconds), nullptr},
820 {"10 seconds", kAutofillVcnEnrollRequestTimeout_10Seconds,
821 std::size(kAutofillVcnEnrollRequestTimeout_10Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03822// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillVcnEnrollRequestTimeouts)
Stephen McGruer0904cae2024-07-17 19:54:46823
Nicolas MacBethc738c4e2024-07-19 21:14:19824// Contextual Panel flag variations.
825const FeatureEntry::FeatureParam kContextualPanelRichIPHArms[] = {
826 {"entrypoint-highlight-iph", "true"},
827 {"entrypoint-rich-iph", "true"},
828};
829const FeatureEntry::FeatureParam kContextualPanelSmallIPHArm[] = {
830 {"entrypoint-highlight-iph", "false"},
831 {"entrypoint-rich-iph", "false"},
832};
833const FeatureEntry::FeatureParam
834 kContextualPanelSmallIPHWithBlueHighlightArm[] = {
835 {"entrypoint-highlight-iph", "true"},
836 {"entrypoint-rich-iph", "false"},
837};
838
839const FeatureEntry::FeatureVariation kContextualPanelEntrypointArmVariations[] =
840 {
841 {"- Rich IPH", kContextualPanelRichIPHArms,
842 std::size(kContextualPanelRichIPHArms), nullptr},
843 {"- Small IPH, no blue highlight", kContextualPanelSmallIPHArm,
844 std::size(kContextualPanelSmallIPHArm), nullptr},
845 {"- Small IPH with blue highlight",
846 kContextualPanelSmallIPHWithBlueHighlightArm,
847 std::size(kContextualPanelSmallIPHWithBlueHighlightArm), nullptr},
848};
849
Jood943cbb12025-02-20 17:02:27850const FeatureEntry::FeatureParam kIdentityDiscAccountMenuNoEllipsis[] = {
851 {kDisableAccountMenuEllipsisParam, "true"},
852};
Joodcbce3fe2025-03-12 15:34:57853const FeatureEntry::FeatureParam kIdentityDiscAccountMenuWithSettings[] = {
854 {kShowSettingsInAccountMenuParam, "true"},
855};
Jood943cbb12025-02-20 17:02:27856const FeatureEntry::FeatureVariation kIdentityDiscAccountMenuVariations[] = {
857 {" - without account menu ellipsis", kIdentityDiscAccountMenuNoEllipsis,
858 std::size(kIdentityDiscAccountMenuNoEllipsis), nullptr},
Joodcbce3fe2025-03-12 15:34:57859 {" - with settings button", kIdentityDiscAccountMenuWithSettings,
860 std::size(kIdentityDiscAccountMenuWithSettings), nullptr},
Jood943cbb12025-02-20 17:02:27861};
862
Jood Hajeer3867886d2024-07-29 16:15:35863const FeatureEntry::FeatureParam kIdentityConfirmationSnackbarTestingConfig[] =
Jood562c885f2024-09-05 17:06:55864 {{"IdentityConfirmationMinDisplayInterval1", "0"},
865 {"IdentityConfirmationMinDisplayInterval2", "0"},
866 {"IdentityConfirmationMinDisplayInterval3", "0"}};
Jood Hajeer3867886d2024-07-29 16:15:35867const FeatureEntry::FeatureVariation
868 kIdentityConfirmationSnackbarTestingVariations[] = {
869 {" - for testing", kIdentityConfirmationSnackbarTestingConfig,
870 std::size(kIdentityConfirmationSnackbarTestingConfig), nullptr}};
871
Chris Lu4c688e02024-09-07 00:48:08872const FeatureEntry::FeatureParam kPriceTrackingPromoForceShowArm[] = {
873 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05874 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08875};
876const FeatureEntry::FeatureParam kPriceTrackingPromoForceHideArm[] = {
877 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05878 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08879};
880
Gloria Fang02964a442025-02-06 19:21:18881// ShopCard variants
882const FeatureEntry::FeatureParam kPriceDropForTrackedProductsArm[] = {
883 {"ShopCardVariant", "arm_1"},
884};
885const FeatureEntry::FeatureParam kReviewsArm[] = {
886 {"ShopCardVariant", "arm_2"},
887};
888const FeatureEntry::FeatureParam kPriceDropOnTabArm[] = {
889 {"ShopCardVariant", "arm_3"},
890};
891const FeatureEntry::FeatureParam kPriceTrackableProductOnTabArm[] = {
892 {"ShopCardVariant", "arm_4"},
893};
894
Benjamin Williamsd7f854b2024-10-09 17:12:27895// Address Bar Position
896const FeatureEntry::FeatureParam kTipsAddressBarPositionForceShowArm[] = {
897 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31898 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27899};
900const FeatureEntry::FeatureParam kTipsAddressBarPositionForceHideArm[] = {
901 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31902 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27903};
904
905// Autofill Passwords
906const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceShowArm[] = {
907 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31908 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27909};
910const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceHideArm[] = {
911 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31912 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27913};
914
915// Enhanced Safe Browsing
916const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceShowArm[] = {
917 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31918 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27919};
920const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceHideArm[] = {
921 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31922 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27923};
924
925// Lens Search
926const FeatureEntry::FeatureParam kTipsLensSearchForceShowArm[] = {
927 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31928 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27929};
930const FeatureEntry::FeatureParam kTipsLensSearchForceHideArm[] = {
931 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31932 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27933};
934
935// Lens Shop
936const FeatureEntry::FeatureParam kTipsLensShopForceShowArm[] = {
937 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31938 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27939};
940const FeatureEntry::FeatureParam kTipsLensShopForceHideArm[] = {
941 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31942 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27943};
944
945// Lens Translate
946const FeatureEntry::FeatureParam kTipsLensTranslateForceShowArm[] = {
947 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31948 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27949};
950const FeatureEntry::FeatureParam kTipsLensTranslateForceHideArm[] = {
951 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31952 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27953};
954
955// Save Passwords
956const FeatureEntry::FeatureParam kTipsSavePasswordsForceShowArm[] = {
957 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31958 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27959};
960const FeatureEntry::FeatureParam kTipsSavePasswordsForceHideArm[] = {
961 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31962 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27963};
964
Hira Mahmood2ff5b5cb2024-10-25 19:24:31965const FeatureEntry::FeatureParam kSendTabPromoForceShowArm[] = {
966 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05967 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31968};
969const FeatureEntry::FeatureParam kSendTabPromoForceHideArm[] = {
970 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05971 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31972};
973
Gloria Fang02964a442025-02-06 19:21:18974// ShopCard experiment arms
975const FeatureEntry::FeatureVariation kShopCardOverrideOptions[] = {
976 {"Card 1 Price Drop", kPriceDropForTrackedProductsArm,
977 std::size(kPriceDropForTrackedProductsArm), nullptr},
978 {"Card 2 Reviews", kReviewsArm, std::size(kReviewsArm), nullptr},
979 {"Card 3 Price Drop on Tab Resumption", kPriceDropOnTabArm,
980 std::size(kPriceDropOnTabArm), nullptr},
981 {"Card 4 Price Trackable on Tab Resumption", kPriceTrackableProductOnTabArm,
982 std::size(kPriceTrackableProductOnTabArm), nullptr},
983};
984
Chris Lu4c688e02024-09-07 00:48:08985const FeatureEntry::FeatureVariation kEphemeralCardRankerCardOverrideOptions[] =
986 {
987 {"- Force Show Price Tracking Notification",
988 kPriceTrackingPromoForceShowArm,
989 std::size(kPriceTrackingPromoForceShowArm), nullptr},
990 {"- Force Hide Price Tracking Notification",
991 kPriceTrackingPromoForceHideArm,
992 std::size(kPriceTrackingPromoForceHideArm), nullptr},
Benjamin Williamsd7f854b2024-10-09 17:12:27993
994 // Address Bar Position
995 {"- Force Show Address Bar Position Tip",
996 kTipsAddressBarPositionForceShowArm,
997 std::size(kTipsAddressBarPositionForceShowArm), nullptr},
998 {"- Force Hide Address Bar Position Tip",
999 kTipsAddressBarPositionForceHideArm,
1000 std::size(kTipsAddressBarPositionForceHideArm), nullptr},
1001
1002 // Autofill Passwords
1003 {"- Force Show Autofill Passwords Tip",
1004 kTipsAutofillPasswordsForceShowArm,
1005 std::size(kTipsAutofillPasswordsForceShowArm), nullptr},
1006 {"- Force Hide Autofill Passwords Tip",
1007 kTipsAutofillPasswordsForceHideArm,
1008 std::size(kTipsAutofillPasswordsForceHideArm), nullptr},
1009
1010 // Enhanced Safe Browsing
1011 {"- Force Show Enhanced Safe Browsing Tip",
1012 kTipsEnhancedSafeBrowsingForceShowArm,
1013 std::size(kTipsEnhancedSafeBrowsingForceShowArm), nullptr},
1014 {"- Force Hide Enhanced Safe Browsing Tip",
1015 kTipsEnhancedSafeBrowsingForceHideArm,
1016 std::size(kTipsEnhancedSafeBrowsingForceHideArm), nullptr},
1017
1018 // Lens Search
1019 {"- Force Show Lens Search Tip", kTipsLensSearchForceShowArm,
1020 std::size(kTipsLensSearchForceShowArm), nullptr},
1021 {"- Force Hide Lens Search Tip", kTipsLensSearchForceHideArm,
1022 std::size(kTipsLensSearchForceHideArm), nullptr},
1023
1024 // Lens Shop
1025 {"- Force Show Lens Shop Tip", kTipsLensShopForceShowArm,
1026 std::size(kTipsLensShopForceShowArm), nullptr},
1027 {"- Force Hide Lens Shop Tip", kTipsLensShopForceHideArm,
1028 std::size(kTipsLensShopForceHideArm), nullptr},
1029
1030 // Lens Translate
1031 {"- Force Show Lens Translate Tip", kTipsLensTranslateForceShowArm,
1032 std::size(kTipsLensTranslateForceShowArm), nullptr},
1033 {"- Force Hide Lens Translate Tip", kTipsLensTranslateForceHideArm,
1034 std::size(kTipsLensTranslateForceHideArm), nullptr},
1035
1036 // Save Passwords
1037 {"- Force Show Save Passwords Tip", kTipsSavePasswordsForceShowArm,
1038 std::size(kTipsSavePasswordsForceShowArm), nullptr},
1039 {"- Force Hide Save Passwords Tip", kTipsSavePasswordsForceHideArm,
1040 std::size(kTipsSavePasswordsForceHideArm), nullptr},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311041
1042 // Send Tab Promo.
1043 {"- Force Show Send Tab Promo", kSendTabPromoForceShowArm,
1044 std::size(kSendTabPromoForceShowArm), nullptr},
1045 {"- Force Hide Send Tab Promo", kSendTabPromoForceHideArm,
1046 std::size(kSendTabPromoForceHideArm), nullptr},
Chris Lu4c688e02024-09-07 00:48:081047};
1048
Hira Mahmood00c17e52024-10-09 14:30:481049const FeatureEntry::FeatureParam
1050 kSendTabIOSPushNotificationsWithMagicStackCard[] = {
1051 {send_tab_to_self::kSendTabIOSPushNotificationsWithMagicStackCardParam,
1052 "true"}};
Hira Mahmood3db58ac2024-11-06 18:39:031053const FeatureEntry::FeatureParam kSendTabIOSPushNotificationsWithURLImage[] = {
1054 {send_tab_to_self::kSendTabIOSPushNotificationsURLImageParam, "true"}};
Benjamin Williams3dcd13102025-01-15 18:01:141055const FeatureEntry::FeatureParam
1056 kSendTabIOSPushNotificationsWithTabReminders[] = {
1057 {send_tab_to_self::kSendTabIOSPushNotificationsWithTabRemindersParam,
1058 "true"}};
1059
Hira Mahmood00c17e52024-10-09 14:30:481060const FeatureEntry::FeatureVariation kSendTabIOSPushNotificationsVariations[] =
1061 {
1062 {"With Magic Stack Card",
1063 kSendTabIOSPushNotificationsWithMagicStackCard,
1064 std::size(kSendTabIOSPushNotificationsWithMagicStackCard), nullptr},
Hira Mahmood3db58ac2024-11-06 18:39:031065 {"With URL Image", kSendTabIOSPushNotificationsWithURLImage,
1066 std::size(kSendTabIOSPushNotificationsWithURLImage), nullptr},
Benjamin Williams3dcd13102025-01-15 18:01:141067 {"With Tab Reminders", kSendTabIOSPushNotificationsWithTabReminders,
1068 std::size(kSendTabIOSPushNotificationsWithTabReminders), nullptr},
Hira Mahmood00c17e52024-10-09 14:30:481069};
1070
Briana McClurec2b62f92024-10-29 15:35:061071const FeatureEntry::FeatureParam kSegmentedDefaultBrowserStatic[] = {
1072 {kSegmentedDefaultBrowserExperimentType, "0"}};
1073const FeatureEntry::FeatureParam kSegmentedDefaultBrowserAnimated[] = {
1074 {kSegmentedDefaultBrowserExperimentType, "1"}};
1075
1076const FeatureEntry::FeatureVariation kSegmentedDefaultBrowserPromoVariations[] =
1077 {{" - Static Default Browser Promo", kSegmentedDefaultBrowserStatic,
1078 std::size(kSegmentedDefaultBrowserStatic), nullptr},
1079 {" - Animated Default Browser Promo", kSegmentedDefaultBrowserAnimated,
1080 std::size(kSegmentedDefaultBrowserAnimated), nullptr}};
1081
Rubin Deliallisi1d0b3ba2024-11-04 14:33:041082// Soft Lock
1083const FeatureEntry::FeatureParam kIOSSoftLockNoDelay[] = {
1084 {kIOSSoftLockBackgroundThresholdParam, "0m"},
1085};
1086
1087const FeatureEntry::FeatureVariation kIOSSoftLockVariations[] = {
1088 {" - No delay", kIOSSoftLockNoDelay, std::size(kIOSSoftLockNoDelay),
1089 nullptr}};
1090
Ameur Hosni3dc0ce1c2024-11-05 10:34:551091// Ipad ZPS limit.
1092const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total0Trends[] = {
1093 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "0"},
1094 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1095};
1096
1097const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total5Trends[] = {
1098 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "5"},
1099 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1100};
1101
1102constexpr FeatureEntry::FeatureVariation kIpadZpsLimitVariants[] = {
1103 {"20 total zps, 0 Trends on NTP", kIpadZPSOmniboxWith20Total0Trends,
1104 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1105 {"20 total zps, 5 Trends on NTP", kIpadZPSOmniboxWith20Total5Trends,
1106 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1107};
1108
Hira Mahmood431c8ab2024-11-05 17:16:291109const FeatureEntry::FeatureParam
1110 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm[] = {
1111 {kIOSStartTimeStartupRemediationsSaveNTPWebState, "true"},
1112};
1113const FeatureEntry::FeatureVariation
1114 kIOSStartTimeStartupRemediationsVariations[] = {
1115 {" - Save NTP Web State",
1116 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm,
1117 std::size(kIOSStartTimeStartupRemediationsSaveNTPWebStateArm),
1118 nullptr}};
1119
vincb7867dc042024-11-06 14:25:051120constexpr flags_ui::FeatureEntry::FeatureParam
1121 kAutofillThrottleDocFormScanShortPeriodParam[] = {{"period-ms", "250"}};
1122constexpr flags_ui::FeatureEntry::FeatureParam
1123 kAutofillThrottleDocFormScanMediumPeriodParam[] = {{"period-ms", "500"}};
1124constexpr flags_ui::FeatureEntry::FeatureParam
1125 kAutofillThrottleDocFormScanLongPeriodParam[] = {{"period-ms", "1000"}};
1126constexpr flags_ui::FeatureEntry::FeatureVariation
1127 kAutofillThrottleDocFormScanVariations[] = {
1128 {"Short period", kAutofillThrottleDocFormScanShortPeriodParam,
1129 std::size(kAutofillThrottleDocFormScanShortPeriodParam), nullptr},
1130 {"Medium period", kAutofillThrottleDocFormScanMediumPeriodParam,
1131 std::size(kAutofillThrottleDocFormScanMediumPeriodParam), nullptr},
1132 {"Long period", kAutofillThrottleDocFormScanLongPeriodParam,
1133 std::size(kAutofillThrottleDocFormScanLongPeriodParam), nullptr}};
1134
vincb2bf7f5c2024-11-06 17:18:091135constexpr flags_ui::FeatureEntry::FeatureParam
1136 kAutofillThrottleFilteredDocFormScanShortPeriodParam[] = {
1137 {"period-ms", "100"}};
1138constexpr flags_ui::FeatureEntry::FeatureParam
1139 kAutofillThrottleFilteredDocFormScanMediumPeriodParam[] = {
1140 {"period-ms", "250"}};
1141constexpr flags_ui::FeatureEntry::FeatureParam
1142 kAutofillThrottleFilteredDocFormScanLongPeriodParam[] = {
1143 {"period-ms", "500"}};
1144constexpr flags_ui::FeatureEntry::FeatureVariation
1145 kAutofillThrottleFilteredDocFormScanVariations[] = {
1146 {"Short period", kAutofillThrottleFilteredDocFormScanShortPeriodParam,
1147 std::size(kAutofillThrottleFilteredDocFormScanShortPeriodParam),
1148 nullptr},
1149 {"Medium period", kAutofillThrottleFilteredDocFormScanMediumPeriodParam,
1150 std::size(kAutofillThrottleFilteredDocFormScanMediumPeriodParam),
1151 nullptr},
1152 {"Long period", kAutofillThrottleFilteredDocFormScanLongPeriodParam,
1153 std::size(kAutofillThrottleFilteredDocFormScanLongPeriodParam),
1154 nullptr}};
1155
ginnnnnnny963c7fc2024-11-06 22:44:501156const FeatureEntry::FeatureParam kNewFeedPositioningArm2[] = {
1157 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1158 {kNewFeedPositioningCombinedMVTForMidEngaged, "false"},
1159 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501160};
1161
1162const FeatureEntry::FeatureParam kNewFeedPositioningArm3[] = {
1163 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1164 {kNewFeedPositioningCombinedMVTForMidEngaged, "true"},
1165 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501166};
1167
1168const FeatureEntry::FeatureVariation kNewFeedPositioningVariations[] = {
ginnnnnnnyd8c7b652024-12-19 19:11:471169 {"- update for high feed engagement", kNewFeedPositioningArm2,
ginnnnnnny963c7fc2024-11-06 22:44:501170 std::size(kNewFeedPositioningArm2), nullptr},
ginnnnnnnyd8c7b652024-12-19 19:11:471171 {"- update for high and mid feed engagement", kNewFeedPositioningArm3,
ginnnnnnny963c7fc2024-11-06 22:44:501172 std::size(kNewFeedPositioningArm3), nullptr},
ginnnnnnny963c7fc2024-11-06 22:44:501173};
1174
Hira Mahmoodf8533dc2024-11-12 16:24:251175const FeatureEntry::FeatureParam
1176 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm[] = {
1177 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "true"},
1178 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "false"}};
1179const FeatureEntry::FeatureParam
1180 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm[] = {
1181 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "true"},
1182 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "false"}};
1183const FeatureEntry::FeatureVariation
1184 kIOSStartTimeBrowserBackgroundRemediationsVariations[] = {
1185 {" - Avoid NTP Cleanup",
1186 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm,
1187 std::size(kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm),
1188 nullptr},
1189 {" - Update Feed Refresh",
1190 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm,
1191 std::size(
1192 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm),
1193 nullptr}};
1194
Hira Mahmood664449872024-11-18 23:55:221195const FeatureEntry::FeatureParam kSetUpListInFirstRunArm1[] = {
1196 {set_up_list::kSetUpListInFirstRunParam, "1"}};
1197const FeatureEntry::FeatureParam kSetUpListInFirstRunArm2[] = {
1198 {set_up_list::kSetUpListInFirstRunParam, "2"}};
1199const FeatureEntry::FeatureParam kSetUpListInFirstRunArm3[] = {
1200 {set_up_list::kSetUpListInFirstRunParam, "3"}};
1201
1202const FeatureEntry::FeatureVariation kSetUpListInFirstRunVariations[] = {
1203 {" - Variation 1", kSetUpListInFirstRunArm1,
1204 std::size(kSetUpListInFirstRunArm1), nullptr},
1205 {" - Variation 2", kSetUpListInFirstRunArm2,
1206 std::size(kSetUpListInFirstRunArm2), nullptr},
1207 {" - Variation 3", kSetUpListInFirstRunArm3,
1208 std::size(kSetUpListInFirstRunArm3), nullptr}};
1209
Hira Mahmood7577c9b672024-12-12 20:29:121210const FeatureEntry::FeatureParam kSetUpListDuration3Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531211 {set_up_list::kSetUpListDurationParam, "2"}};
Hira Mahmood7577c9b672024-12-12 20:29:121212const FeatureEntry::FeatureParam kSetUpListDuration5Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531213 {set_up_list::kSetUpListDurationParam, "4"}};
Hira Mahmood7577c9b672024-12-12 20:29:121214const FeatureEntry::FeatureParam kSetUpListDuration7Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531215 {set_up_list::kSetUpListDurationParam, "6"}};
Hira Mahmood7577c9b672024-12-12 20:29:121216
1217const FeatureEntry::FeatureVariation kSetUpListDurationVariations[] = {
1218 {" - 3 Days", kSetUpListDuration3Days, std::size(kSetUpListDuration3Days),
1219 nullptr},
1220 {" - 5 Days", kSetUpListDuration5Days, std::size(kSetUpListDuration5Days),
1221 nullptr},
1222 {" - 7 Days", kSetUpListDuration7Days, std::size(kSetUpListDuration7Days),
1223 nullptr}};
1224
Hira Mahmoodf6906a82025-01-02 17:55:091225const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm1[] = {
1226 {first_run::kUpdatedFirstRunSequenceParam, "1"}};
1227const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm2[] = {
1228 {first_run::kUpdatedFirstRunSequenceParam, "2"}};
1229const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm3[] = {
1230 {first_run::kUpdatedFirstRunSequenceParam, "3"}};
1231
1232const FeatureEntry::FeatureVariation kUpdatedFirstRunSequenceVariations[] = {
1233 {" - Default browser promo first", kUpdatedFirstRunSequenceArm1,
1234 std::size(kUpdatedFirstRunSequenceArm1), nullptr},
1235 {" - Remove sign in & sync conditionally", kUpdatedFirstRunSequenceArm2,
1236 std::size(kUpdatedFirstRunSequenceArm2), nullptr},
1237 {" - DB promo first and remove sign in & sync",
1238 kUpdatedFirstRunSequenceArm3, std::size(kUpdatedFirstRunSequenceArm3),
1239 nullptr}};
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481240
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421241const FeatureEntry::FeatureParam
1242 kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial[] = {
1243 {kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitialParam,
1244 "true"},
1245};
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481246
1247const FeatureEntry::FeatureParam kYoutubeIncognitoTargetAllowListed[] = {
1248 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsAllowlisted},
1249};
1250const FeatureEntry::FeatureParam kYoutubeIncognitoTargetFirstParty[] = {
1251 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsFirstParty},
1252};
1253const FeatureEntry::FeatureParam kYoutubeIncognitoTargetAll[] = {
1254 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsAll},
1255};
1256
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421257const FeatureEntry::FeatureVariation kYoutubeIncognitoVariations[] = {
1258 {"Error handling without Incognito Interstitial",
1259 kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial,
1260 std::size(kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial),
1261 nullptr},
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481262 {"Enable for listed apps", kYoutubeIncognitoTargetAllowListed,
1263 std::size(kYoutubeIncognitoTargetAllowListed), nullptr},
1264 {"Enable for first party apps", kYoutubeIncognitoTargetFirstParty,
1265 std::size(kYoutubeIncognitoTargetFirstParty), nullptr},
1266 {"Enable for all apps", kYoutubeIncognitoTargetAll,
1267 std::size(kYoutubeIncognitoTargetAll), nullptr},
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421268};
1269
“Prasanaa”96e15992025-01-30 15:44:351270const FeatureEntry::FeatureParam kSlowFullscreenTransitionSpeed[] = {
1271 {kFullscreenTransitionSpeedParam, "0"}};
1272const FeatureEntry::FeatureParam kDefaultFullscreenTransitionSpeed[] = {
1273 {kFullscreenTransitionSpeedParam, "1"}};
1274const FeatureEntry::FeatureParam kFastFullscreenTransitionSpeed[] = {
1275 {kFullscreenTransitionSpeedParam, "2"}};
1276const FeatureEntry::FeatureParam kMediumFullscreenTransitionOffset[] = {
1277 {kMediumFullscreenTransitionOffsetParam, "true"}};
1278
1279const FeatureEntry::FeatureVariation kFullscreenTransitionVariations[] = {
1280 {"Slow speed", kSlowFullscreenTransitionSpeed,
1281 std::size(kSlowFullscreenTransitionSpeed), nullptr},
1282 {"Default speed", kDefaultFullscreenTransitionSpeed,
1283 std::size(kDefaultFullscreenTransitionSpeed), nullptr},
1284 {"Fast speed", kFastFullscreenTransitionSpeed,
1285 std::size(kFastFullscreenTransitionSpeed), nullptr},
1286 {"Medium offset", kMediumFullscreenTransitionOffset,
1287 std::size(kMediumFullscreenTransitionOffset), nullptr}};
1288
ginnnnnnnyccce0952025-02-03 22:44:361289const FeatureEntry::FeatureParam
ginnnnnnny0e892172025-02-04 21:45:171290 kDeprecateFeedHeaderVariationRemoveFeedLabel[] = {
1291 {kDeprecateFeedHeaderParameterRemoveLabel, "true"}};
1292const FeatureEntry::FeatureParam
ginnnnnnnya0c62d82025-03-07 04:22:111293 kDeprecateFeedHeaderVariationAbovePlusMoreSpacing[] = {
ginnnnnnny0e892172025-02-04 21:45:171294 {kDeprecateFeedHeaderParameterRemoveLabel, "true"},
ginnnnnnnyf398da822025-03-12 10:15:551295 {kDeprecateFeedHeaderParameterTopPadding, "28.5"},
1296 {kDeprecateFeedHeaderParameterSearchFieldTopMargin, "30"},
1297 {kDeprecateFeedHeaderParameterHeaderBottomPadding, "3"},
1298 {kDeprecateFeedHeaderParameterSpaceBetweenModules, "16"}};
ginnnnnnny0e892172025-02-04 21:45:171299const FeatureEntry::FeatureParam
1300 kDeprecateFeedHeaderVariationAbovePlusEnlargeElements[] = {
1301 {kDeprecateFeedHeaderParameterRemoveLabel, "true"},
ginnnnnnnyf398da822025-03-12 10:15:551302 {kDeprecateFeedHeaderParameterTopPadding, "21.5"},
1303 {kDeprecateFeedHeaderParameterSearchFieldTopMargin, "32"},
ginnnnnnnyccce0952025-02-03 22:44:361304 {kDeprecateFeedHeaderParameterEnlargeLogoAndFakebox, "true"}};
1305
1306const FeatureEntry::FeatureVariation kDeprecateFeedHeaderVariations[] = {
ginnnnnnny0e892172025-02-04 21:45:171307 {" (remove feed label)", kDeprecateFeedHeaderVariationRemoveFeedLabel,
1308 std::size(kDeprecateFeedHeaderVariationRemoveFeedLabel), nullptr},
ginnnnnnnyf398da822025-03-12 10:15:551309 {" (also add more spacing)",
ginnnnnnnya0c62d82025-03-07 04:22:111310 kDeprecateFeedHeaderVariationAbovePlusMoreSpacing,
1311 std::size(kDeprecateFeedHeaderVariationAbovePlusMoreSpacing), nullptr},
ginnnnnnny0e892172025-02-04 21:45:171312 {" (and enlarge doodle too)",
1313 kDeprecateFeedHeaderVariationAbovePlusEnlargeElements,
1314 std::size(kDeprecateFeedHeaderVariationAbovePlusEnlargeElements),
ginnnnnnnyccce0952025-02-03 22:44:361315 nullptr}};
1316
Briana McClure21685c42025-02-06 15:18:221317const FeatureEntry::FeatureParam kAnimatedDBPInFREWithActionButtons[] = {
1318 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "0"}};
1319const FeatureEntry::FeatureParam kAnimatedDBPInFREWithShowMeHow[] = {
1320 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "1"}};
1321const FeatureEntry::FeatureParam kAnimatedDBPInFREWithInstructions[] = {
1322 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "2"}};
1323
1324const FeatureEntry::FeatureVariation
1325 kAnimatedDefaultBrowserPromoInFREVariations[] = {
1326 {" - with Action Buttons", kAnimatedDBPInFREWithActionButtons,
1327 std::size(kAnimatedDBPInFREWithActionButtons), nullptr},
1328 {" - with Show Me How", kAnimatedDBPInFREWithShowMeHow,
1329 std::size(kAnimatedDBPInFREWithShowMeHow), nullptr},
1330 {" - with Instructions", kAnimatedDBPInFREWithInstructions,
1331 std::size(kAnimatedDBPInFREWithInstructions), nullptr}};
1332
Hira Mahmooddcc63d7f2025-02-19 17:28:571333const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm1[] = {
1334 {first_run::kBestFeaturesScreenInFirstRunParam, "1"}};
1335const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm2[] = {
1336 {first_run::kBestFeaturesScreenInFirstRunParam, "2"}};
1337const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm3[] = {
1338 {first_run::kBestFeaturesScreenInFirstRunParam, "3"}};
1339const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm4[] = {
1340 {first_run::kBestFeaturesScreenInFirstRunParam, "4"}};
1341const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm5[] = {
1342 {first_run::kBestFeaturesScreenInFirstRunParam, "5"}};
1343const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm6[] = {
1344 {first_run::kBestFeaturesScreenInFirstRunParam, "6"}};
1345
1346const FeatureEntry::FeatureVariation kBestFeaturesScreenInFirstRunVariations[] =
1347 {{" - Variant A: General screen, after DB promo",
1348 kUpdatedFirstRunSequenceArm1,
1349 std::size(kBestFeaturesScreenInFirstRunArm1), nullptr},
1350 {" - Variant B: General screen, before DB promo",
1351 kBestFeaturesScreenInFirstRunArm2,
1352 std::size(kBestFeaturesScreenInFirstRunArm2), nullptr},
1353 {" - Variant C: General screen with passwords item",
1354 kBestFeaturesScreenInFirstRunArm3,
1355 std::size(kBestFeaturesScreenInFirstRunArm3), nullptr},
1356 {" - Variant D: Shopping users screen, variant C as fallback",
1357 kBestFeaturesScreenInFirstRunArm4,
1358 std::size(kBestFeaturesScreenInFirstRunArm4), nullptr},
1359 {" - Variant E: Show screen to signed-in users only",
1360 kBestFeaturesScreenInFirstRunArm5,
1361 std::size(kBestFeaturesScreenInFirstRunArm5), nullptr},
1362 {" - Variant F: Show address bar promo", kBestFeaturesScreenInFirstRunArm6,
1363 std::size(kBestFeaturesScreenInFirstRunArm6), nullptr}};
1364
Olivier ROBIN4d7cdb82025-03-11 09:33:471365const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionCrossValidate[] = {
1366 {kIOSOneTapMiniMapRestrictionCrossValidateParamName, "true"}};
1367const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionThreshold999[] = {
1368 {kIOSOneTapMiniMapRestrictionThreshholdParamName, "0.999"}};
1369const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionMinLength20[] = {
1370 {kIOSOneTapMiniMapRestrictionMinCharsParamName, "20"}};
1371const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionMaxSections6[] = {
1372 {kIOSOneTapMiniMapRestrictionMaxSectionsParamName, "6"}};
1373const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionLongWords4[] = {
1374 {kIOSOneTapMiniMapRestrictionLongestWordMinCharsParamName, "4"}};
1375const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionMinAlphaNum60[] = {
1376 {kIOSOneTapMiniMapRestrictionMinAlphanumProportionParamName, "0.6"}};
1377
1378const FeatureEntry::FeatureVariation kIOSOneTapMiniMapRestrictionsVariations[] =
1379 {{"Revalidate with NSDataDetector",
1380 kIOSOneTapMiniMapRestrictionCrossValidate,
1381 std::size(kIOSOneTapMiniMapRestrictionCrossValidate), nullptr},
1382 {"Confidence Level (0.999)", kIOSOneTapMiniMapRestrictionThreshold999,
1383 std::size(kIOSOneTapMiniMapRestrictionThreshold999), nullptr},
1384 {"Minimum address length (20 chars)",
1385 kIOSOneTapMiniMapRestrictionMinLength20,
1386 std::size(kIOSOneTapMiniMapRestrictionMinLength20), nullptr},
1387 {"Maximum sections (6)", kIOSOneTapMiniMapRestrictionMaxSections6,
1388 std::size(kIOSOneTapMiniMapRestrictionMaxSections6), nullptr},
1389 {"Longest word length (4)", kIOSOneTapMiniMapRestrictionLongWords4,
1390 std::size(kIOSOneTapMiniMapRestrictionLongWords4), nullptr},
1391 {"Proportion of alnum chars (60%)",
1392 kIOSOneTapMiniMapRestrictionMinAlphaNum60,
1393 std::size(kIOSOneTapMiniMapRestrictionMinAlphaNum60), nullptr}};
1394
Hira Mahmood4535b072025-03-14 16:45:591395const FeatureEntry::FeatureParam kFeedSwipeInProductHelpStaticInFirstRun[] = {
1396 {kFeedSwipeInProductHelpArmParam, "1"}};
1397const FeatureEntry::FeatureParam kFeedSwipeInProductHelpStaticInSecondRun[] = {
1398 {kFeedSwipeInProductHelpArmParam, "2"}};
1399const FeatureEntry::FeatureParam kFeedSwipeInProductHelpAnimated[] = {
1400 {kFeedSwipeInProductHelpArmParam, "3"}};
1401
1402const FeatureEntry::FeatureVariation kFeedSwipeInProductHelpVariations[] = {
1403 {" - Static IPH after the FRE", kFeedSwipeInProductHelpStaticInFirstRun,
1404 std::size(kFeedSwipeInProductHelpStaticInFirstRun), nullptr},
1405 {"- Static IPH after the second run",
1406 kFeedSwipeInProductHelpStaticInSecondRun,
1407 std::size(kFeedSwipeInProductHelpStaticInSecondRun), nullptr},
1408 {"- Animated IPH", kFeedSwipeInProductHelpAnimated,
1409 std::size(kFeedSwipeInProductHelpAnimated), nullptr}};
1410
Cooper Knaak1e026562017-07-26 05:22:281411// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:211412// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:281413// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
1414// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:211415// macro for this type supplying the command line to the macro.
1416// . MULTI_VALUE: a list of choices, the first of which should correspond to a
1417// deactivated state for this lab (i.e. no command line option). To specify
1418// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
1419// array of choices.
Cooper Knaak1e026562017-07-26 05:22:281420// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
1421// either enabled, disabled, or uses the default value of the associated
1422// base::Feature instance. To specify this type of entry use the macro
1423// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
1424// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
1425// base::Feature instance. Choices corresponding to the default state, a
1426// universally enabled state, and a universally disabled state are
1427// automatically included. To specify this type of entry use the macro
1428// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
1429// the array of choices.
1430//
sdefresne14900ee2015-11-27 14:43:211431// See the documentation of FeatureEntry for details on the fields.
1432//
1433// When adding a new choice, add it to the end of the list.
1434const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:281435 {"in-product-help-demo-mode-choice",
1436 flag_descriptions::kInProductHelpDemoModeName,
1437 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
1438 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:231439 feature_engagement::kIPHDemoMode,
1440 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:091441 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:221442 {"enable-autofill-credit-card-upload",
1443 flag_descriptions::kAutofillCreditCardUploadName,
1444 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:241445 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:231446 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
1447 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
1448 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:511449 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:231450 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
1451 {"wallet-service-use-sandbox",
1452 flag_descriptions::kWalletServiceUseSandboxName,
1453 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
1454 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
1455 autofill::switches::kWalletServiceUseSandbox,
1456 "1",
1457 autofill::switches::kWalletServiceUseSandbox,
1458 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:591459 {"show-autofill-type-predictions",
1460 flag_descriptions::kShowAutofillTypePredictionsName,
1461 flag_descriptions::kShowAutofillTypePredictionsDescription,
1462 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:501463 FEATURE_VALUE_TYPE(
1464 autofill::features::test::kAutofillShowTypePredictions)},
Benjamin Williamsdf18e7e2022-10-03 18:46:051465 {"fullscreen-promos-manager-skip-internal-limits",
1466 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
1467 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
1468 flags_ui::kOsIos,
1469 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:141470 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:531471 flag_descriptions::kFullscreenSmoothScrollingName,
1472 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:191473 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:061474 {"webpage-default-zoom-from-dynamic-type",
1475 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
1476 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
1477 flags_ui::kOsIos,
1478 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:561479 {"webpage-alternative-text-zoom",
1480 flag_descriptions::kWebPageAlternativeTextZoomName,
1481 flag_descriptions::kWebPageAlternativeTextZoomDescription,
1482 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:341483 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
1484 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
1485 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Ameur Hosni3dc0ce1c2024-11-05 10:34:551486 {"omnibox-ipad-zps-limit",
1487 flag_descriptions::kIpadZpsSuggestionMatchesLimitName,
1488 flag_descriptions::kIpadZpsSuggestionMatchesLimitDescription,
1489 flags_ui::kOsIos,
1490 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kIpadZeroSuggestMatches,
1491 kIpadZpsLimitVariants,
1492 "OmniboxBundledExperimentV1")},
Stepan Khapugincc4e9842019-01-23 13:38:131493 {"omnibox-ui-max-autocomplete-matches",
1494 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
1495 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
1496 flags_ui::kOsIos,
1497 FEATURE_WITH_PARAMS_VALUE_TYPE(
1498 omnibox::kUIExperimentMaxAutocompleteMatches,
1499 kOmniboxUIMaxAutocompleteMatchesVariations,
1500 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:351501 {"omnibox-local-history-zero-suggest-beyond-ntp",
1502 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
1503 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
1504 flags_ui::kOsIos,
1505 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:541506 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
1507 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
1508 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
1509 kOmniboxMaxZPSMatchesVariations,
1510 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:481511 {"force-startup-signin-promo",
1512 flag_descriptions::kForceStartupSigninPromoName,
1513 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:291514 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:411515 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
1516 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
1517 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:131518#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:451519 {"screen-time-integration-ios",
1520 flag_descriptions::kScreenTimeIntegrationName,
1521 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
1522 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:131523#endif
Nazerke3e993f72020-09-21 13:00:061524 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
1525 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
Gauthier Ambardb30ec785f2025-01-20 15:23:341526 FEATURE_VALUE_TYPE(kModernTabStrip)},
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")},
gogerald0ff29e52021-02-03 18:56:191550 {"start-surface", flag_descriptions::kStartSurfaceName,
1551 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:231552 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
1553 kStartSurfaceVariations,
1554 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:341555 {"wait-threshold-seconds-for-capabilities-api",
1556 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1557 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1558 flags_ui::kOsIos,
1559 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061560 {"content-notification-experiment",
1561 flag_descriptions::kContentNotificationExperimentName,
1562 flag_descriptions::kContentNotificationExperimentDescription,
1563 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251564 {"content-notification-provisional-ignore-conditions",
1565 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1566 flag_descriptions::
1567 kContentNotificationProvisionalIgnoreConditionsDescription,
1568 flags_ui::kOsIos,
1569 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241570 {"content-push-notifications",
1571 flag_descriptions::kContentPushNotificationsName,
1572 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521573 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1574 kContentPushNotificationsVariations,
1575 "ContentPushNotifications")},
Radu Nitescuee09a1a2024-12-10 17:11:391576 {"enable-lens-context-menu-unified-experience",
1577 flag_descriptions::kEnableLensContextMenuUnifiedExperienceName,
1578 flag_descriptions::kEnableLensContextMenuUnifiedExperienceDescription,
1579 flags_ui::kOsIos,
1580 FEATURE_VALUE_TYPE(kEnableLensContextMenuUnifiedExperience)},
Jason Hu67cfb0f2022-11-14 20:21:441581 {"enable-lens-in-omnibox-copied-image",
1582 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1583 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1584 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Radu Nitescuab5bf732024-09-18 14:07:401585 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1586 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1587 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Radu Nitescuf95b7d42024-12-04 10:18:011588 {"enable-lens-view-finder-unified-experience",
1589 flag_descriptions::kEnableLensViewFinderUnifiedExperienceName,
1590 flag_descriptions::kEnableLensViewFinderUnifiedExperienceDescription,
1591 flags_ui::kOsIos,
1592 FEATURE_VALUE_TYPE(kEnableLensViewFinderUnifiedExperience)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031593 {"enable-disco-feed-endpoint",
1594 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1595 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1596 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111597 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Tommy Martino7393d762021-10-12 17:59:281598 {"shared-highlighting-amp",
1599 flag_descriptions::kIOSSharedHighlightingAmpName,
1600 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1601 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
Matt Jones2e47b9692024-02-23 21:56:431602 {"track-by-default-mobile",
1603 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1604 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1605 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061606 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1607 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1608 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541609 {"ntp-view-hierarchy-repair",
1610 flag_descriptions::kNTPViewHierarchyRepairName,
1611 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201612 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Cheick Cisse39b6a182024-05-29 15:13:441613 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1614 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1615 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381616 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1617 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591618 flags_ui::kOsIos,
1619 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1620 kPriceInsightsVariations,
1621 "PriceInsightsIos")},
1622 {"price-insights-high-price-ios",
1623 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1624 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1625 flags_ui::kOsIos,
1626 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Vishwas Uppoor89303a92022-08-03 00:56:261627 {"autofill-enable-card-product-name",
1628 flag_descriptions::kAutofillEnableCardProductNameName,
1629 flag_descriptions::kAutofillEnableCardProductNameDescription,
1630 flags_ui::kOsIos,
1631 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Raj Tb95d813542022-11-16 21:27:521632 {"enable-download-service-foreground-session",
1633 flag_descriptions::kDownloadServiceForegroundSessionName,
1634 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1635 flags_ui::kOsIos,
1636 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231637 {"enable-tflite-language-detection",
1638 flag_descriptions::kTFLiteLanguageDetectionName,
1639 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1640 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201641 {"optimization-guide-debug-logs",
1642 flag_descriptions::kOptimizationGuideDebugLogsName,
1643 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1644 flags_ui::kOsIos,
1645 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551646 {"optimization-guide-push-notifications",
1647 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1648 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1649 flags_ui::kOsIos,
1650 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
David Jeanad303a92023-07-31 16:58:111651 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1652 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1653 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeandcc3e202024-05-22 08:36:331654 {"improve-parcel-detection",
1655 flag_descriptions::kEnableNewParcelTrackingNumberDetectionName,
1656 flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription,
1657 flags_ui::kOsIos,
1658 FEATURE_VALUE_TYPE(
1659 web::features::kEnableNewParcelTrackingNumberDetection)},
David Jeanf361ae9d2024-04-09 08:19:471660 {"enable-expkit-text-classifier-date",
1661 flag_descriptions::kEnableExpKitTextClassifierDateName,
1662 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1663 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1664 {"enable-expkit-text-classifier-address",
1665 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1666 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151667 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471668 FEATURE_WITH_PARAMS_VALUE_TYPE(
1669 kEnableExpKitTextClassifierAddress,
1670 kEnableExpKitTextClassifierAddressVariations,
1671 "ExpKitTextClassifierAddress")},
1672 {"enable-expkit-text-classifier-phonenumber",
1673 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1674 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1675 flags_ui::kOsIos,
1676 FEATURE_WITH_PARAMS_VALUE_TYPE(
1677 kEnableExpKitTextClassifierPhoneNumber,
1678 kEnableExpKitTextClassifierPhoneNumberVariations,
1679 "ExpKitTextClassifierPhoneNumber")},
1680 {"enable-expkit-text-classifier-email",
1681 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1682 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1683 flags_ui::kOsIos,
1684 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1685 kEnableExpKitTextClassifierEmailVariations,
1686 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331687 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1688 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461689 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1690 kOneTapForMapsWithVariations,
1691 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251692 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1693 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1694 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301695 {"autofill-enable-ranking-formula-address-profiles",
1696 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1697 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1698 flags_ui::kOsIos,
1699 FEATURE_VALUE_TYPE(
1700 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391701 {"autofill-enable-ranking-formula-credit-cards",
1702 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1703 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1704 flags_ui::kOsIos,
1705 FEATURE_VALUE_TYPE(
1706 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021707 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1708 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1709 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521710 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1711 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261712 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1713 kMagicStackVariations,
1714 flag_descriptions::kMagicStackName)},
Alexis Hetue0b0dc12025-02-06 18:14:471715 {"ios-keyboard-accessory-upgrade-for-ipad",
1716 flag_descriptions::kIOSKeyboardAccessoryUpgradeForIPadName,
1717 flag_descriptions::kIOSKeyboardAccessoryUpgradeForIPadDescription,
1718 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeForIPad)},
Noémie St-Onge9da904ef2024-10-01 14:16:051719 {"ios-keyboard-accessory-upgrade-short-manual-fill-menu",
1720 flag_descriptions::kIOSKeyboardAccessoryUpgradeShortManualFillMenuName,
1721 flag_descriptions::
1722 kIOSKeyboardAccessoryUpgradeShortManualFillMenuDescription,
1723 flags_ui::kOsIos,
1724 FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeShortManualFillMenu)},
Chris Lub0bad572023-08-07 18:13:291725 {"ios-magic-stack-segmentation-ranking",
1726 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1727 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1728 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301729 FEATURE_WITH_PARAMS_VALUE_TYPE(
1730 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1731 kSegmentationPlatformIosModuleRankerVariations,
1732 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321733 {"ios-magic-stack-segmentation-ranking-caching",
1734 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1735 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1736 flags_ui::kOsIos,
1737 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111738 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1739 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1740 flag_descriptions::
1741 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1742 flags_ui::kOsIos,
1743 FEATURE_VALUE_TYPE(
1744 segmentation_platform::features::
1745 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Alexis Hetu5e726602023-12-15 15:18:281746 {"ios-password-bottom-sheet-autofocus",
1747 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1748 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1749 flags_ui::kOsIos,
1750 FEATURE_VALUE_TYPE(
1751 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Charlotte Cloutier18f0a5362024-07-16 13:23:041752 {"ios-proactive-password-generation-bottom-sheet",
1753 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetName,
1754 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetDescription,
1755 flags_ui::kOsIos,
1756 FEATURE_VALUE_TYPE(password_manager::features::
1757 kIOSProactivePasswordGenerationBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241758 {"omnibox-zero-suggest-prefetching",
1759 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1760 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1761 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451762 {"omnibox-zero-suggest-prefetching-on-srp",
1763 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1764 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1765 flags_ui::kOsIos,
1766 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1767 {"omnibox-zero-suggest-prefetching-on-web",
1768 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1769 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1770 flags_ui::kOsIos,
1771 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471772 {"omnibox-zero-suggest-in-memory-caching",
1773 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1774 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1775 flags_ui::kOsIos,
1776 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351777 {"omnibox-on-device-tail-suggestions",
1778 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1779 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1780 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361781 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1782 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1783 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1784 kOmniboxMaxURLMatchesVariations,
1785 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201786 {"omnibox-most-visited-tiles-horizontal-render-group",
1787 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1788 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1789 flags_ui::kOsIos,
1790 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061791 {"metrickit-non-crash-reports",
1792 flag_descriptions::kMetrickitNonCrashReportName,
1793 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1794 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Robbie Gibson1f5a57192024-11-07 23:04:111795 {"default-browser-banner-promo",
1796 flag_descriptions::kDefaultBrowserBannerPromoName,
1797 flag_descriptions::kDefaultBrowserBannerPromoDescription, flags_ui::kOsIos,
Robbie Gibsonae87bc02024-11-13 14:45:101798 FEATURE_VALUE_TYPE(kDefaultBrowserBannerPromo)},
Gayane Petrosyan5960a172023-06-19 15:40:171799 {"default-browser-promo-trigger-criteria-experiment",
1800 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1801 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1802 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211803 FEATURE_VALUE_TYPE(
1804 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyancffeda12024-09-17 17:10:371805 {"blue-dot-on-tools-menu-button",
1806 flag_descriptions::kBlueDotOnToolsMenuButtonName,
1807 flag_descriptions::kBlueDotOnToolsMenuButtonDescription, flags_ui::kOsIos,
1808 FEATURE_VALUE_TYPE(kBlueDotOnToolsMenuButton)},
Ed Chin91e44992022-07-27 13:42:341809#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1810 {"feed-background-refresh-ios",
1811 flag_descriptions::kFeedBackgroundRefreshName,
1812 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1813 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1814 kFeedBackgroundRefreshVariations,
1815 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261816#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Petro Akzhygitov2e2322e2023-04-25 16:26:571817 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1818 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1819 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251820 {"iph-price-notifications-while-browsing",
1821 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1822 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1823 flags_ui::kOsIos,
1824 FEATURE_VALUE_TYPE(
1825 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391826 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1827 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1828 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481829 {"local-pdp-detection",
1830 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1831 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1832 flags_ui::kOsIos,
1833 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Ali Juma57849c42023-02-21 22:53:431834 {"notification-settings-menu-item",
1835 flag_descriptions::kNotificationSettingsMenuItemName,
1836 flag_descriptions::kNotificationSettingsMenuItemDescription,
1837 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
kalettucefb09e402023-02-27 18:35:531838 {"web-feed-feedback-reroute",
1839 flag_descriptions::kWebFeedFeedbackRerouteName,
1840 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1841 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Tina Wangd3f6f192023-04-05 05:22:431842 {"enable-follow-IPH-exp-params",
1843 flag_descriptions::kEnableFollowIPHExpParamsName,
1844 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1845 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251846 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1847 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1848 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Olivier ROBINa229d2132023-03-21 12:44:201849 {"ios-browser-edit-menu-metrics",
1850 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1851 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1852 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551853 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1854 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1855 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1856 kIOSDockingPromoVariations,
1857 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241858 {"omnibox-grouping-framework-non-zps",
1859 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1860 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1861 flags_ui::kOsIos,
1862 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Robbie Gibson0ea280602023-04-12 01:02:391863 {"only-access-clipboard-async",
1864 flag_descriptions::kOnlyAccessClipboardAsyncName,
1865 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1866 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Tina Wangcda2c902023-05-25 17:39:451867 {"enable-signed-out-view-demotion",
1868 flag_descriptions::kEnableSignedOutViewDemotionName,
1869 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1870 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stepan Khapugin72c74292024-06-19 16:48:331871 {"spotlight-never-retain-index",
1872 flag_descriptions::kSpotlightNeverRetainIndexName,
1873 flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos,
1874 FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)},
Huiting Yubc1bf4d2023-06-26 18:15:321875 {"ios-iph-for-safari-switcher",
1876 flag_descriptions::kIPHForSafariSwitcherName,
1877 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1878 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071879 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1880 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1881 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011882 {"tab-resumption", flag_descriptions::kTabResumptionName,
1883 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001884 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1885 kTabResumptionVariations,
1886 "TabResumption")},
Christian Xu07d600192023-07-24 12:29:521887 {"bottom-omnibox-default-setting",
1888 flag_descriptions::kBottomOmniboxDefaultSettingName,
1889 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1890 flags_ui::kOsIos,
1891 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1892 kBottomOmniboxDefaultSettingVariations,
1893 "BottomOmniboxDefaultSetting")},
Elmehdi Rahmaouif5b76462024-06-24 10:44:461894 {"enable-save-to-photos-improvements",
1895 flag_descriptions::kIOSSaveToPhotosImprovementsName,
1896 flag_descriptions::kIOSSaveToPhotosImprovementsDescription,
1897 flags_ui::kOsIos,
1898 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements,
1899 kSaveToPhotosImprovementsVariations,
1900 "IOSSaveToPhotosImprovements")},
Jérôme Lebelcc9523e2024-10-08 13:34:011901 {"enable-identity-in-auth-error",
1902 flag_descriptions::kEnableIdentityInAuthErrorName,
1903 flag_descriptions::kEnableIdentityInAuthErrorDescription, flags_ui::kOsIos,
1904 FEATURE_VALUE_TYPE(switches::kEnableIdentityInAuthError)},
Mihai Sardarescucca83442024-10-16 12:19:131905 {"enable-asweb-authentication-session",
1906 flag_descriptions::kEnableASWebAuthenticationSessionName,
1907 flag_descriptions::kEnableASWebAuthenticationSessionDescription,
1908 flags_ui::kOsIos,
1909 FEATURE_VALUE_TYPE(switches::kEnableASWebAuthenticationSession)},
Christian Xu90e952f2023-09-13 09:05:281910 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1911 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1912 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Rubin Deliallisi072bc842023-10-19 12:00:411913 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1914 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1915 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Aliona DANGLA5971a8b2023-11-10 11:55:351916 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1917 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1918 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Gauthier Ambard8cca29a2024-04-10 08:27:361919 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1920 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1921 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591922 {"autofill-enable-dynamically-loading-fields-on-input",
1923 flag_descriptions::
1924 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1925 flag_descriptions::
1926 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1927 flags_ui::kOsIos,
1928 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
aliaaborhamy00f89df2023-12-21 14:55:031929 {"share-in-web-context-menu-ios",
1930 flag_descriptions::kShareInWebContextMenuIOSName,
1931 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1932 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551933 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1934 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1935 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461936 {"contextual-panel", flag_descriptions::kContextualPanelName,
1937 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
Nicolas MacBethc738c4e2024-07-19 21:14:191938 FEATURE_WITH_PARAMS_VALUE_TYPE(kContextualPanel,
1939 kContextualPanelEntrypointArmVariations,
1940 "ContextualPanel")},
adamtad0e8cfc2024-01-16 18:43:471941 {"enable-ipad-feed-ghost-cards",
1942 flag_descriptions::kEnableiPadFeedGhostCardsName,
1943 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1944 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Jason Hud445445f2024-02-02 18:28:121945 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1946 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1947 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Alexander Tekleeebe42b92024-02-23 21:27:151948 {"autofill-enable-card-benefits-for-american-express",
1949 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1950 flag_descriptions::
1951 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1952 flags_ui::kOsIos,
1953 FEATURE_VALUE_TYPE(
1954 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
Yishui Liub88a38c2024-02-28 08:46:551955 {"autofill-enable-card-benefits-sync",
1956 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1957 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1958 flags_ui::kOsIos,
1959 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421960 {"linked-services-setting-ios",
1961 flag_descriptions::kLinkedServicesSettingIosName,
1962 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1963 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
hvs7c6cb402024-03-27 02:39:001964 {"autofill-enable-prefetching-risk-data-for-retrieval",
1965 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561966 flag_descriptions::
1967 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001968 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561969 FEATURE_VALUE_TYPE(
1970 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1971 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1972 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1973 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391974 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1975 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1976 FEATURE_VALUE_TYPE(
1977 page_content_annotations::features::kPageContentAnnotations)},
1978 {"page-content-annotations-persist-salient-image-metadata",
1979 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1980 flag_descriptions::
1981 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1982 flags_ui::kOsIos,
1983 FEATURE_VALUE_TYPE(
1984 page_content_annotations::features::
1985 kPageContentAnnotationsPersistSalientImageMetadata)},
1986 {"page-content-annotations-remote-page-metadata",
1987 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1988 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1989 flags_ui::kOsIos,
1990 FEATURE_VALUE_TYPE(
1991 page_content_annotations::features::kRemotePageMetadata)},
1992 {"page-visibility-page-content-annotations",
1993 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1994 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1995 flags_ui::kOsIos,
1996 FEATURE_VALUE_TYPE(page_content_annotations::features::
1997 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121998 {"enhanced-safe-browsing-promo",
1999 flag_descriptions::kEnhancedSafeBrowsingPromoName,
2000 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:022001 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Alexis Hetu37823762025-01-24 15:41:592002 {"cpe-automatic-passkey-upgrade",
2003 flag_descriptions::kCredentialProviderAutomaticPasskeyUpgradeName,
2004 flag_descriptions::kCredentialProviderAutomaticPasskeyUpgradeDescription,
2005 flags_ui::kOsIos,
2006 FEATURE_VALUE_TYPE(kCredentialProviderAutomaticPasskeyUpgrade)},
Alexis Hetu028acd32025-01-17 15:53:222007 {"cpe-passkey-prf-support",
2008 flag_descriptions::kCredentialProviderPasskeyPRFName,
2009 flag_descriptions::kCredentialProviderPasskeyPRFDescription,
2010 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kCredentialProviderPasskeyPRF)},
Sebsgfcd5b0b2024-04-09 08:18:322011 {"cpe-performance-improvements",
2012 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
2013 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
2014 flags_ui::kOsIos,
2015 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Maria Kazinova0ee4fdd2025-01-22 20:06:592016 {"password-form-clientside-classifier",
2017 flag_descriptions::kPasswordFormClientsideClassifierName,
2018 flag_descriptions::kPasswordFormClientsideClassifierDescription,
2019 flags_ui::kOsIos,
2020 FEATURE_VALUE_TYPE(
2021 password_manager::features::kPasswordFormClientsideClassifier)},
Vincent Boissellea1f27f322024-04-17 14:53:192022 {"password-manager-detect-username-in-uff",
2023 flag_descriptions::kIOSDetectUsernameInUffName,
vincbb01c53ed2024-08-22 13:09:562024 flag_descriptions::kIOSDetectUsernameInUffDescription, flags_ui::kOsIos,
Vincent Boissellea1f27f322024-04-17 14:53:192025 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Jérôme Lebel993c7e3d2024-07-08 14:05:352026 {"identity-disc-account-menu",
2027 flag_descriptions::kIdentityDiscAccountMenuName,
2028 flag_descriptions::kIdentityDiscAccountMenuDescription, flags_ui::kOsIos,
Jood943cbb12025-02-20 17:02:272029 FEATURE_WITH_PARAMS_VALUE_TYPE(kIdentityDiscAccountMenu,
2030 kIdentityDiscAccountMenuVariations,
2031 "IdentityDiscAccountMenu")},
Jood Hajeer3867886d2024-07-29 16:15:352032 {"identity-confirmation-snackbar",
2033 flag_descriptions::kIdentityConfirmationSnackbarName,
2034 flag_descriptions::kIdentityConfirmationSnackbarDescription,
2035 flags_ui::kOsIos,
2036 FEATURE_WITH_PARAMS_VALUE_TYPE(
2037 kIdentityConfirmationSnackbar,
2038 kIdentityConfirmationSnackbarTestingVariations,
2039 "IdentityConfirmationSnackbar")},
Filipa Senrabe00cbe2024-04-19 14:21:332040 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
2041 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
2042 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:002043 {"autofill-enable-verve-card-support",
2044 flag_descriptions::kAutofillEnableVerveCardSupportName,
2045 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
2046 flags_ui::kOsIos,
2047 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ewann Pelle34939b62024-08-22 10:45:492048 {"tab-group-sync", flag_descriptions::kTabGroupSyncName,
2049 flag_descriptions::kTabGroupSyncDescription, flags_ui::kOsIos,
Louis Romero5a84afc2024-04-25 10:29:202050 FEATURE_VALUE_TYPE(kTabGroupSync)},
Ameur Hosni3d764c92024-05-28 14:11:122051 {"omnibox-suggestion-answer-migration",
2052 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
2053 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
2054 flags_ui::kOsIos,
2055 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:302056 kOmniboxSuggestionAnswerMigration)},
2057 {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name,
2058 flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos,
Olivier Robinf8374f12024-06-05 19:00:042059 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5,
2060 kTabResumption15Variations,
2061 "TabResumption1_5")},
Hira Mahmood6e2a894e2024-05-31 15:18:192062 {"send-tab-ios-push-notifications",
2063 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
2064 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
2065 flags_ui::kOsIos,
Hira Mahmood00c17e52024-10-09 14:30:482066 FEATURE_WITH_PARAMS_VALUE_TYPE(
2067 send_tab_to_self::kSendTabToSelfIOSPushNotifications,
2068 kSendTabIOSPushNotificationsVariations,
2069 "SendTabToSelfIOSPushNotifications")},
Olivier Robin08bc56d02024-06-05 14:05:182070 {"tab-resumption-2", flag_descriptions::kTabResumption2Name,
2071 flag_descriptions::kTabResumption2Description, flags_ui::kOsIos,
Olivier ROBINb17c14b92024-10-09 13:49:132072 FEATURE_VALUE_TYPE(kTabResumption2)},
Olivier ROBINcb76f4fe2024-06-05 16:11:422073 {"page-image-service-optimization-guide-salient-images",
2074 flag_descriptions::kPageImageServiceSalientImageName,
2075 flag_descriptions::kPageImageServiceSalientImageDescription,
2076 flags_ui::kOsIos,
2077 FEATURE_WITH_PARAMS_VALUE_TYPE(
2078 page_image_service::kImageServiceOptimizationGuideSalientImages,
2079 kImageServiceOptimizationGuideSalientImagesVariations,
2080 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:222081 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
2082 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
2083 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Charles Yangf8e7adf2024-06-11 00:17:002084 {"lens-filters-ablation-mode-enabled",
2085 flag_descriptions::kLensFiltersAblationModeEnabledName,
2086 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
2087 flags_ui::kOsIos,
2088 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
2089 kLensFiltersAblationModeVariations,
2090 "LensFiltersAblationMode")},
2091 {"lens-translate-toogle-mode-enabled",
2092 flag_descriptions::kLensTranslateToggleModeEnabledName,
2093 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
2094 flags_ui::kOsIos,
2095 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
2096 kLensTranslateToggleModeVariations,
2097 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:592098 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
2099 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
2100 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:492101 {"omnibox-ml-log-url-scoring-signals",
2102 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
2103 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
2104 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
2105 {"omnibox-ml-url-piecewise-mapped-search-blending",
2106 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
2107 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
2108 flags_ui::kOsIos,
2109 FEATURE_WITH_PARAMS_VALUE_TYPE(
2110 omnibox::kMlUrlPiecewiseMappedSearchBlending,
2111 kMlUrlPiecewiseMappedSearchBlendingVariations,
2112 "MlUrlPiecewiseMappedSearchBlending")},
2113 {"omnibox-ml-url-score-caching",
2114 flag_descriptions::kOmniboxMlUrlScoreCachingName,
2115 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
2116 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
2117 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
2118 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
2119 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
2120 kOmniboxMlUrlScoringVariations,
2121 "MlUrlScoring")},
2122 {"omnibox-ml-url-search-blending",
2123 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
2124 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
2125 flags_ui::kOsIos,
2126 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
2127 kMlUrlSearchBlendingVariations,
2128 "MlUrlScoring")},
2129 {"omnibox-ml-url-scoring-model",
2130 flag_descriptions::kOmniboxMlUrlScoringModelName,
2131 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
Khalid Peer4501c1f2024-06-27 16:12:042132 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel,
2133 kUrlScoringModelVariations,
2134 "MlUrlScoring")},
Siyu An4a486f02024-06-18 19:41:282135 {"autofill-show-manual-fill-for-virtual-cards",
2136 flag_descriptions::kAutofillShowManualFillForVirtualCardsName,
2137 flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription,
2138 flags_ui::kOsIos,
2139 FEATURE_VALUE_TYPE(
2140 autofill::features::kAutofillShowManualFillForVirtualCards)},
adamtaf85e48d2024-07-08 17:13:292141 {"home-customization", flag_descriptions::kHomeCustomizationName,
2142 flag_descriptions::kHomeCustomizationDescription, flags_ui::kOsIos,
2143 FEATURE_VALUE_TYPE(kHomeCustomization)},
Benjamin Williams0594caf2024-07-09 17:51:382144 {"safety-check-notifications",
2145 flag_descriptions::kSafetyCheckNotificationsName,
2146 flag_descriptions::kSafetyCheckNotificationsDescription, flags_ui::kOsIos,
2147 FEATURE_WITH_PARAMS_VALUE_TYPE(kSafetyCheckNotifications,
2148 kSafetyCheckNotificationsVariations,
2149 "SafetyCheckNotifications")},
Federica Germinarioa1fe0902024-07-12 08:28:462150 {"app-background-refresh-ios", flag_descriptions::kAppBackgroundRefreshName,
2151 flag_descriptions::kAppBackgroundRefreshDescription, flags_ui::kOsIos,
2152 FEATURE_VALUE_TYPE(kEnableAppBackgroundRefresh)},
Chris Lu3eba26312024-07-12 20:21:382153 {"home-memory-improvements", flag_descriptions::kHomeMemoryImprovementsName,
2154 flag_descriptions::kHomeMemoryImprovementsDescription, flags_ui::kOsIos,
2155 FEATURE_VALUE_TYPE(kHomeMemoryImprovements)},
Stephen McGruer8fe98b62024-07-16 13:10:132156 {"autofill-upload-card-request-timeout",
2157 flag_descriptions::kAutofillUploadCardRequestTimeoutName,
2158 flag_descriptions::kAutofillUploadCardRequestTimeoutDescription,
2159 flags_ui::kOsIos,
2160 FEATURE_WITH_PARAMS_VALUE_TYPE(
2161 autofill::features::kAutofillUploadCardRequestTimeout,
2162 kAutofillUploadCardRequestTimeoutOptions,
2163 "AutofillUploadCardRequestTimeout")},
Stephen McGruer0904cae2024-07-17 19:54:462164 {"autofill-vcn-enroll-request-timeout",
2165 flag_descriptions::kAutofillVcnEnrollRequestTimeoutName,
2166 flag_descriptions::kAutofillVcnEnrollRequestTimeoutDescription,
2167 flags_ui::kOsIos,
2168 FEATURE_WITH_PARAMS_VALUE_TYPE(
2169 autofill::features::kAutofillVcnEnrollRequestTimeout,
2170 kAutofillVcnEnrollRequestTimeoutOptions,
2171 "AutofillVcnEnrollRequestTimeout")},
Charles Yang98bef0c2024-07-19 12:24:142172 {"lens-web-page-load-optimization-enabled",
2173 flag_descriptions::kLensWebPageLoadOptimizationEnabledName,
2174 flag_descriptions::kLensWebPageLoadOptimizationEnabledDescription,
2175 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageLoadOptimizationEnabled)},
Eric Ekey4a930592024-07-19 18:58:142176 {"segmented-default-browser-promo",
2177 flag_descriptions::kSegmentedDefaultBrowserPromoName,
2178 flag_descriptions::kSegmentedDefaultBrowserPromoDescription,
Briana McClurec2b62f92024-10-29 15:35:062179 flags_ui::kOsIos,
2180 FEATURE_WITH_PARAMS_VALUE_TYPE(kSegmentedDefaultBrowserPromo,
2181 kSegmentedDefaultBrowserPromoVariations,
2182 "SegmentedDBP-Animation")},
Junhui He52294652024-07-23 23:50:152183 {"autofill-unmask-card-request-timeout",
2184 flag_descriptions::kAutofillUnmaskCardRequestTimeoutName,
2185 flag_descriptions::kAutofillUnmaskCardRequestTimeoutDescription,
2186 flags_ui::kOsIos,
2187 FEATURE_VALUE_TYPE(autofill::features::kAutofillUnmaskCardRequestTimeout)},
vincbe1379832024-08-06 19:08:122188 {"autofill-across-iframes", flag_descriptions::kAutofillAcrossIframesName,
2189 flag_descriptions::kAutofillAcrossIframesDescription, flags_ui::kOsIos,
2190 FEATURE_VALUE_TYPE(autofill::features::kAutofillAcrossIframesIos)},
Cristian Ciacu62fe1912024-08-07 10:14:502191 {"ios-page-info-last-visited",
2192 flag_descriptions::kPageInfoLastVisitedIOSName,
2193 flag_descriptions::kPageInfoLastVisitedIOSDescription, flags_ui::kOsIos,
2194 FEATURE_VALUE_TYPE(kPageInfoLastVisitedIOS)},
Daniel White1ced9e62024-08-15 19:27:382195 {"enable-trait-collection-registration",
2196 flag_descriptions::kEnableTraitCollectionRegistrationName,
2197 flag_descriptions::kEnableTraitCollectionRegistrationDescription,
2198 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableTraitCollectionRegistration)},
Ernesto Izquierdo Cluaebe0a0252024-08-19 22:05:542199 {"autofill-isolated-world-ios",
2200 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSName,
2201 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSDescription,
2202 flags_ui::kOsIos,
2203 FEATURE_VALUE_TYPE(kAutofillIsolatedWorldForJavascriptIos)},
Ewann Pelle34939b62024-08-22 10:45:492204 {"tab-group-indicator", flag_descriptions::kTabGroupIndicatorName,
2205 flag_descriptions::kTabGroupIndicatorDescription, flags_ui::kOsIos,
Ewann Pelle1f48f922025-01-13 11:43:342206 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabGroupIndicator,
2207 kTabGroupIndicatorVariations,
2208 "TabGroupIndicator")},
thefrog8ed47452024-08-30 13:32:482209 {"safe-browsing-local-lists-use-sbv5",
2210 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Name,
2211 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Description,
2212 flags_ui::kOsIos, FEATURE_VALUE_TYPE(safe_browsing::kLocalListsUseSBv5)},
Chris Lu4c688e02024-09-07 00:48:082213 {"ios-price-tracking-notification-promo-card",
2214 flag_descriptions::kPriceTrackingPromoName,
2215 flag_descriptions::kPriceTrackingPromoDescription, flags_ui::kOsIos,
2216 FEATURE_VALUE_TYPE(commerce::kPriceTrackingPromo)},
Gloria Fang02964a442025-02-06 19:21:182217 {"ios-shop-card", flag_descriptions::kShopCardName,
2218 flag_descriptions::kShopCardDescription, flags_ui::kOsIos,
2219 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kShopCard,
2220 kShopCardOverrideOptions,
2221 "ShopCard")},
Chris Lu4c688e02024-09-07 00:48:082222 {"ios-segmentation-ephemeral-card-ranker",
2223 flag_descriptions::kSegmentationPlatformEphemeralCardRankerName,
2224 flag_descriptions::kSegmentationPlatformEphemeralCardRankerDescription,
2225 flags_ui::kOsIos,
2226 FEATURE_WITH_PARAMS_VALUE_TYPE(
2227 segmentation_platform::features::
2228 kSegmentationPlatformEphemeralCardRanker,
2229 kEphemeralCardRankerCardOverrideOptions,
2230 "SegmentationPlatformEphemeralCardRanker")},
Alexander Tekle8cf3c8e2024-09-13 21:38:072231 {"autofill-enable-log-form-events-to-all-parsed-form-types",
2232 flag_descriptions::kAutofillEnableLogFormEventsToAllParsedFormTypesName,
2233 flag_descriptions::
2234 kAutofillEnableLogFormEventsToAllParsedFormTypesDescription,
2235 flags_ui::kOsIos,
2236 FEATURE_VALUE_TYPE(
2237 autofill::features::kAutofillEnableLogFormEventsToAllParsedFormTypes)},
Radu Nitescu06133382024-10-21 18:33:292238 {"lens-overlay-enable-ipad-compatibility",
2239 flag_descriptions::kLensOverlayEnableIPadCompatibilityName,
2240 flag_descriptions::kLensOverlayEnableIPadCompatibilityDescription,
2241 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableIPadCompatibility)},
Radu Nitescub3e06f92025-02-06 17:32:252242 {"lens-overlay-enable-landscape-compatibility",
2243 flag_descriptions::kLensOverlayEnableLandscapeCompatibilityName,
2244 flag_descriptions::kLensOverlayEnableLandscapeCompatibilityDescription,
2245 flags_ui::kOsIos,
2246 FEATURE_VALUE_TYPE(kLensOverlayEnableLandscapeCompatibility)},
Ameur Hosni22b62d92024-09-25 10:51:022247 {"lens-overlay-force-show-onboarding-screen",
2248 flag_descriptions::kLensOverlayForceShowOnboardingScreenName,
2249 flag_descriptions::kLensOverlayForceShowOnboardingScreenDescription,
2250 flags_ui::kOsIos,
2251 FEATURE_VALUE_TYPE(kLensOverlayForceShowOnboardingScreen)},
Stepan Khapuginc5820242025-01-10 22:21:112252 {"lens-overlay-alternative-onboarding",
2253 flag_descriptions::kLensOverlayAlternativeOnboardingName,
2254 flag_descriptions::kLensOverlayAlternativeOnboardingDescription,
2255 flags_ui::kOsIos,
Radu Nitescu6e6dd7f52025-01-17 11:33:352256 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensOverlayAlternativeOnboarding,
2257 kLensOverlayOnboardingVariations,
2258 "kLensOverlayOnboarding")},
Gauthier Ambard766f4cf2024-09-26 16:56:252259 {"data-sharing", flag_descriptions::kDataSharingName,
2260 flag_descriptions::kDataSharingDescription, flags_ui::kOsIos,
2261 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingFeature)},
2262 {"data-sharing-join-only", flag_descriptions::kDataSharingJoinOnlyName,
2263 flag_descriptions::kDataSharingJoinOnlyDescription, flags_ui::kOsIos,
2264 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingJoinOnly)},
Rubin Deliallisib66a77a2024-10-02 18:09:482265 {"ios-soft-lock", flag_descriptions::kIOSSoftLockName,
2266 flag_descriptions::kIOSSoftLockDescription, flags_ui::kOsIos,
Rubin Deliallisi1d0b3ba2024-11-04 14:33:042267 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSoftLock,
2268 kIOSSoftLockVariations,
2269 "IOSSoftLock")},
Marc Treib31e4f9f2024-10-07 09:55:542270 {"separate-profiles-for-managed-accounts",
2271 flag_descriptions::kSeparateProfilesForManagedAccountsName,
2272 flag_descriptions::kSeparateProfilesForManagedAccountsDescription,
Olivier ROBINb17c14b92024-10-09 13:49:132273 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSeparateProfilesForManagedAccounts)},
2274 {"tab-resumption-2-reason", flag_descriptions::kTabResumption2ReasonName,
2275 flag_descriptions::kTabResumption2ReasonDescription, flags_ui::kOsIos,
2276 FEATURE_VALUE_TYPE(kTabResumption2Reason)},
2277 {"tab-resumption-images", flag_descriptions::kTabResumptionImagesName,
2278 flag_descriptions::kTabResumptionImagesDescription, flags_ui::kOsIos,
2279 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumptionImages,
2280 kTabResumptionImagesVariations,
2281 "TabResumption1_5")},
Benjamin Williamsd7f854b2024-10-09 17:12:272282 {"segmentation-platform-tips-ephemeral-card",
2283 flag_descriptions::kSegmentationPlatformTipsEphemeralCardName,
2284 flag_descriptions::kSegmentationPlatformTipsEphemeralCardDescription,
2285 flags_ui::kOsIos,
2286 FEATURE_VALUE_TYPE(segmentation_platform::features::
vincbf23f7332024-10-11 19:32:122287 kSegmentationPlatformTipsEphemeralCard)},
2288 {"ios-password-suggestion-bottom-sheet-v2",
2289 flag_descriptions::kPasswordSuggestionBottomSheetV2Name,
2290 flag_descriptions::kPasswordSuggestionBottomSheetV2Description,
2291 flags_ui::kOsIos,
Federica Germinariof58b5a7e2024-10-22 10:35:422292 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheetV2)},
Charles Yang11dd8ab2024-10-24 19:15:532293 {"lens-unary-apis-with-http-transport-enabled",
2294 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledName,
2295 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledDescription,
2296 flags_ui::kOsIos,
2297 FEATURE_VALUE_TYPE(kLensUnaryApisWithHttpTransportEnabled)},
Christian Xu6db322d2024-10-25 14:12:492298 {"lens-overlay-enable-same-tab-navigation",
2299 flag_descriptions::kLensOverlayEnableSameTabNavigationName,
2300 flag_descriptions::kLensOverlayEnableSameTabNavigationDescription,
2301 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableSameTabNavigation)},
Elmehdi Rahmaoui3c6e8012024-10-28 10:17:532302 {"ios-chrome-startup-parameters-async",
2303 flag_descriptions::kChromeStartupParametersAsyncName,
2304 flag_descriptions::kChromeStartupParametersAsyncDescription,
2305 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kChromeStartupParametersAsync)},
Elmehdi Rahmaoui63a0d8212025-01-07 11:42:482306 {"ios-youtube-incognito", flag_descriptions::kYoutubeIncognitoName,
2307 flag_descriptions::kYoutubeIncognitoDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui543d35f2025-01-16 10:09:422308 FEATURE_WITH_PARAMS_VALUE_TYPE(kYoutubeIncognito,
2309 kYoutubeIncognitoVariations,
2310 "IOSYoutubeIncognito")},
Christian Xua8459472024-10-31 13:39:082311 {"lens-overlay-enable-location-bar-entrypoint",
2312 flag_descriptions::kLensOverlayEnableLocationBarEntrypointName,
2313 flag_descriptions::kLensOverlayEnableLocationBarEntrypointDescription,
2314 flags_ui::kOsIos,
2315 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypoint)},
Radu Nitescuc42107b92025-02-13 17:32:272316 {"lens-overlay-enable-location-bar-entrypoint-on-srp",
2317 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPName,
2318 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPDescription,
2319 flags_ui::kOsIos,
2320 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypointOnSRP)},
2321 {"lens-overlay-enable-lvf-escape-hatch",
2322 flag_descriptions::kLensOverlayEnableLVFEscapeHatchName,
2323 flag_descriptions::kLensOverlayEnableLVFEscapeHatchDescription,
Radu Nitescu0c21e3c2025-02-13 21:27:192324 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableLVFEscapeHatch)},
Christian Xudddf1e012024-10-31 18:34:012325 {"lens-overlay-disable-price-insights",
2326 flag_descriptions::kLensOverlayDisablePriceInsightsName,
2327 flag_descriptions::kLensOverlayDisablePriceInsightsDescription,
2328 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayDisablePriceInsights)},
Chris Lu9fd38c62024-11-04 22:22:592329 {"ios-provisional-notification-alert",
2330 flag_descriptions::kProvisionalNotificationAlertName,
2331 flag_descriptions::kProvisionalNotificationAlertDescription,
2332 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kProvisionalNotificationAlert)},
Hira Mahmood431c8ab2024-11-05 17:16:292333 {"ios-start-time-startup-remediations",
2334 flag_descriptions::kIOSStartTimeStartupRemediationsName,
2335 flag_descriptions::kIOSStartTimeStartupRemediationsDescription,
2336 flags_ui::kOsIos,
2337 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSStartTimeStartupRemediations,
2338 kIOSStartTimeStartupRemediationsVariations,
2339 "IOSStartTimeStartupRemediations")},
vincb7867dc042024-11-06 14:25:052340 {"autofill-throttle-doc-form-scans",
2341 flag_descriptions::kAutofillThrottleDocumentFormScanName,
2342 flag_descriptions::kAutofillThrottleDocumentFormScanDescription,
2343 flags_ui::kOsIos,
2344 FEATURE_WITH_PARAMS_VALUE_TYPE(kAutofillThrottleDocumentFormScanIos,
2345 kAutofillThrottleDocFormScanVariations,
2346 "AutofillThrottleDocumentFormScan")},
vincb2bf7f5c2024-11-06 17:18:092347 {"autofill-throttle-filtered-doc-form-scan",
2348 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanName,
2349 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanDescription,
2350 flags_ui::kOsIos,
2351 FEATURE_WITH_PARAMS_VALUE_TYPE(
2352 kAutofillThrottleFilteredDocumentFormScanIos,
2353 kAutofillThrottleFilteredDocFormScanVariations,
2354 "AutofillThrottleFilteredDocumentFormScan")},
ginnnnnnny963c7fc2024-11-06 22:44:502355 {"ios-new-feed-positioning",
2356 flag_descriptions::kNewFeedPositioningExperimentName,
2357 flag_descriptions::kNewFeedPositioningExperimentDescription,
2358 flags_ui::kOsIos,
2359 FEATURE_WITH_PARAMS_VALUE_TYPE(kNewFeedPositioning,
2360 kNewFeedPositioningVariations,
2361 "IOSNewFeedPositioningStudy")},
Stephen McGruer5ac77b932024-11-07 20:09:432362 {"ios-disable-parcel-tracking",
2363 flag_descriptions::kIOSDisableParcelTrackingName,
2364 flag_descriptions::kIOSDisableParcelTrackingDescription, flags_ui::kOsIos,
2365 FEATURE_VALUE_TYPE(kIOSDisableParcelTracking)},
vincb91781772024-11-08 17:13:122366 {"autofill-payments-sheet-v2",
2367 flag_descriptions::kAutofillPaymentsSheetV2Name,
2368 flag_descriptions::kAutofillPaymentsSheetV2Description, flags_ui::kOsIos,
2369 FEATURE_VALUE_TYPE(kAutofillPaymentsSheetV2Ios)},
Hira Mahmoodf8533dc2024-11-12 16:24:252370 {"ios-start-time-browser-background-remediations",
2371 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsName,
2372 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsDescription,
2373 flags_ui::kOsIos,
2374 FEATURE_WITH_PARAMS_VALUE_TYPE(
2375 kIOSStartTimeBrowserBackgroundRemediations,
2376 kIOSStartTimeBrowserBackgroundRemediationsVariations,
2377 "IOSStartTimeStartupRemediations")},
Hira Mahmood664449872024-11-18 23:55:222378 {"set-up-list-in-first-run", flag_descriptions::kSetUpListInFirstRunName,
2379 flag_descriptions::kSetUpListInFirstRunNameDescription, flags_ui::kOsIos,
2380 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListInFirstRun,
2381 kSetUpListInFirstRunVariations,
2382 "SetUpListInFirstRun")},
Charles Yangf57489f2024-11-27 13:58:282383 {"lens-unary-http-transport-enabled",
2384 flag_descriptions::kLensUnaryHttpTransportEnabledName,
2385 flag_descriptions::kLensUnaryHttpTransportEnabledDescription,
2386 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryHttpTransportEnabled)},
Charles Yang8b4687c2024-12-11 02:42:192387 {"lens-clearcut-background-upload-enabled",
2388 flag_descriptions::kLensClearcutBackgroundUploadEnabledName,
2389 flag_descriptions::kLensClearcutBackgroundUploadEnabledDescription,
2390 flags_ui::kOsIos,
2391 FEATURE_VALUE_TYPE(kLensClearcutBackgroundUploadEnabled)},
2392 {"lens-clearcut-logger-fast-qos-enabled",
2393 flag_descriptions::kLensClearcutLoggerFastQosEnabledName,
2394 flag_descriptions::kLensClearcutLoggerFastQosEnabledDescription,
2395 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensClearcutLoggerFastQosEnabled)},
Hira Mahmood7577c9b672024-12-12 20:29:122396 {"set-up-list-shortened-duration",
2397 flag_descriptions::kSetUpListShortenedDurationName,
2398 flag_descriptions::kSetUpListShortenedDurationDescription,
2399 flags_ui::kOsIos,
2400 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListShortenedDuration,
2401 kSetUpListDurationVariations,
2402 "SetUpListShortenedDuration")},
Christian Xu375dcf72024-12-17 15:44:592403 {"enable-lens-overlay-price-insights-counterfactual",
2404 flag_descriptions::kLensOverlayPriceInsightsCounterfactualName,
2405 flag_descriptions::kLensOverlayPriceInsightsCounterfactualDescription,
2406 flags_ui::kOsIos,
2407 FEATURE_VALUE_TYPE(kLensOverlayPriceInsightsCounterfactual)},
Tommy Nyquiste1447512024-12-17 17:46:242408 {"collaboration-messaging", flag_descriptions::kCollaborationMessagingName,
2409 flag_descriptions::kCollaborationMessagingDescription, flags_ui::kOsIos,
Hailey Wang1f2d890a2024-12-26 20:23:562410 FEATURE_VALUE_TYPE(collaboration::features::kCollaborationMessaging)},
Charles Yangfd397e82024-12-19 17:11:452411 {"lens-single-tap-text-selection-disabled",
2412 flag_descriptions::kLensSingleTapTextSelectionDisabledName,
2413 flag_descriptions::kLensSingleTapTextSelectionDisabledDescription,
2414 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensSingleTapTextSelectionDisabled)},
Hira Mahmoodf6906a82025-01-02 17:55:092415 {"updated-fre-screens-sequence", flag_descriptions::kUpdatedFRESequenceName,
2416 flag_descriptions::kUpdatedFRESequenceDescription, flags_ui::kOsIos,
2417 FEATURE_WITH_PARAMS_VALUE_TYPE(first_run::kUpdatedFirstRunSequence,
2418 kUpdatedFirstRunSequenceVariations,
2419 "UpdatedFirstRunSequence")},
Hira Mahmood9f1c19092025-01-06 17:47:432420 {"set-up-list-without-sign-in-item",
2421 flag_descriptions::kSetUpListWithoutSignInItemName,
2422 flag_descriptions::kSetUpListWithoutSignInItemDescription,
2423 flags_ui::kOsIos,
2424 FEATURE_VALUE_TYPE(set_up_list::kSetUpListWithoutSignInItem)},
Fernando Ramirez3c16f9742025-01-07 22:40:362425 {"autofill-enable-card-benefits-for-bmo",
2426 flag_descriptions::kAutofillEnableCardBenefitsForBmoName,
2427 flag_descriptions::kAutofillEnableCardBenefitsForBmoDescription,
2428 flags_ui::kOsIos,
2429 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsForBmo)},
Olivier ROBIN1a0db2a2025-01-09 10:41:532430 {"ios-manage-account-storage",
2431 flag_descriptions::kIOSManageAccountStorageName,
2432 flag_descriptions::kIOSManageAccountStorageDescription, flags_ui::kOsIos,
2433 FEATURE_VALUE_TYPE(kIOSManageAccountStorage)},
Nohemi Fernandez4e66e7182025-01-16 10:57:322434 {"supervised-user-local-web-approvals",
2435 flag_descriptions::kSupervisedUserLocalWebApprovalsName,
2436 flag_descriptions::kSupervisedUserLocalWebApprovalsDescription,
2437 flags_ui::kOsIos, FEATURE_VALUE_TYPE(supervised_user::kLocalWebApprovals)},
Daniel Whitee4562ce2025-01-21 17:36:562438 {"download-auto-deletion", flag_descriptions::kDownloadAutoDeletionName,
2439 flag_descriptions::kDownloadAutoDeletionDescription, flags_ui::kOsIos,
2440 FEATURE_VALUE_TYPE(kDownloadAutoDeletionFeatureEnabled)},
Charles Yang8bd747632025-01-22 20:17:002441 {"lens-ink-multi-sample-mode-disabled",
2442 flag_descriptions::kLensInkMultiSampleModeDisabledName,
2443 flag_descriptions::kLensInkMultiSampleModeDisabledDescription,
2444 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensInkMultiSampleModeDisabled)},
Briana McClure09b0c3632025-01-23 21:57:182445 {"animated-default-browser-promo-in-fre",
2446 flag_descriptions::kAnimatedDefaultBrowserPromoInFREName,
2447 flag_descriptions::kAnimatedDefaultBrowserPromoInFREDescription,
2448 flags_ui::kOsIos,
Briana McClure21685c42025-02-06 15:18:222449 FEATURE_WITH_PARAMS_VALUE_TYPE(
2450 first_run::kAnimatedDefaultBrowserPromoInFRE,
2451 kAnimatedDefaultBrowserPromoInFREVariations,
2452 "AnimatedDBPInFRE-Layout")},
Fernando Ramirezfcdb52f2025-01-24 19:27:352453 {"autofill-enable-allowlist-for-bmo-card-category-benefits",
2454 flag_descriptions::kAutofillEnableAllowlistForBmoCardCategoryBenefitsName,
2455 flag_descriptions::
2456 kAutofillEnableAllowlistForBmoCardCategoryBenefitsDescription,
2457 flags_ui::kOsIos,
2458 FEATURE_VALUE_TYPE(
2459 autofill::features::
2460 kAutofillEnableAllowlistForBmoCardCategoryBenefits)},
Marc Treib921f3ef2025-01-27 16:51:012461 {"use-account-list-from-identity-manager",
2462 flag_descriptions::kUseAccountListFromIdentityManagerName,
2463 flag_descriptions::kUseAccountListFromIdentityManagerDescription,
2464 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kUseAccountListFromIdentityManager)},
“Prasanaa”96e15992025-01-30 15:44:352465 {"fullscreen-transition", flag_descriptions::kFullscreenTransitionName,
2466 flag_descriptions::kFullscreenTransitionDescription, flags_ui::kOsIos,
2467 FEATURE_WITH_PARAMS_VALUE_TYPE(kFullscreenTransition,
2468 kFullscreenTransitionVariations,
ginnnnnnny0e892172025-02-04 21:45:172469 "IOSFull`screenTransition")},
ginnnnnnnyccce0952025-02-03 22:44:362470 {"ios-deprecate-feed-header",
2471 flag_descriptions::kDeprecateFeedHeaderExperimentName,
2472 flag_descriptions::kDeprecateFeedHeaderExperimentDescription,
2473 flags_ui::kOsIos,
2474 FEATURE_WITH_PARAMS_VALUE_TYPE(kDeprecateFeedHeader,
2475 kDeprecateFeedHeaderVariations,
2476 "IOSDeprecateFeedHeader")},
“Prasanaa”6ad22342025-02-25 12:55:172477 {"refactor-toolbars-size", flag_descriptions::kRefactorToolbarsSizeName,
2478 flag_descriptions::kRefactorToolbarsSizeDescription, flags_ui::kOsIos,
2479 FEATURE_VALUE_TYPE(kRefactorToolbarsSize)},
Charles Yangfc3655b62025-02-05 21:49:262480 {"lens-gesture-text-selection-disabled",
2481 flag_descriptions::kLensGestureTextSelectionDisabledName,
2482 flag_descriptions::kLensGestureTextSelectionDisabledDescription,
2483 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensGestureTextSelectionDisabled)},
Sourav0691b752025-02-07 16:44:072484 {"add-address-manually", flag_descriptions::kAddAddressManuallyName,
2485 flag_descriptions::kAddAddressManuallyDescription, flags_ui::kOsIos,
2486 FEATURE_VALUE_TYPE(kAddAddressManually)},
Charles Yangca6175732025-02-11 18:21:392487 {"lens-vsint-param-enabled", flag_descriptions::kLensVsintParamEnabledName,
2488 flag_descriptions::kLensVsintParamEnabledDescription, flags_ui::kOsIos,
2489 FEATURE_VALUE_TYPE(kLensVsintParamEnabled)},
Charles Yang6b2639d2025-02-11 19:24:042490 {"lens-unary-client-data-header-enabled",
2491 flag_descriptions::kLensUnaryClientDataHeaderEnabledName,
2492 flag_descriptions::kLensUnaryClientDataHeaderEnabledDescription,
2493 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryClientDataHeaderEnabled)},
Elmehdi Rahmaoui8d7eb922025-02-13 11:40:542494 {"ios-new-share-extension", flag_descriptions::kNewShareExtensionName,
2495 flag_descriptions::kNewShareExtensionDescription, flags_ui::kOsIos,
2496 FEATURE_VALUE_TYPE(kNewShareExtension)},
Hira Mahmooddcc63d7f2025-02-19 17:28:572497 {"ios-best-features-screen",
2498 flag_descriptions::kBestFeaturesScreenInFirstRunName,
2499 flag_descriptions::kBestFeaturesScreenInFirstRunDescription,
2500 flags_ui::kOsIos,
2501 FEATURE_WITH_PARAMS_VALUE_TYPE(first_run::kBestFeaturesScreenInFirstRun,
2502 kBestFeaturesScreenInFirstRunVariations,
2503 "BestFeaturesScreenInFirstRun")},
Noémie St-Onge4a534a122025-02-25 19:14:092504 {"ios-passkeys-m2", flag_descriptions::kIOSPasskeysM2Name,
2505 flag_descriptions::kIOSPasskeysM2Description, flags_ui::kOsIos,
2506 FEATURE_VALUE_TYPE(kIOSPasskeysM2)},
Hira Mahmood51082d72025-02-26 21:04:402507 {"manual-log-uploads-in-the-fre",
2508 flag_descriptions::kManualLogUploadsInFREName,
2509 flag_descriptions::kManualLogUploadsInFREDescription, flags_ui::kOsIos,
2510 FEATURE_VALUE_TYPE(first_run::kManualLogUploadsInTheFRE)},
Kavita Soni42e1c422025-02-27 22:09:092511 {"autofill-disable-default-save-card-fix-flow-detection",
2512 flag_descriptions::kAutofillDisableDefaultSaveCardFixFlowDetectionName,
2513 flag_descriptions::
2514 kAutofillDisableDefaultSaveCardFixFlowDetectionDescription,
2515 flags_ui::kOsIos,
2516 FEATURE_VALUE_TYPE(
2517 autofill::features::kAutofillDisableDefaultSaveCardFixFlowDetection)},
Charles Yangbf00df62025-02-28 17:51:202518 {"lens-unary-api-salient-text-enabled",
2519 flag_descriptions::kLensUnaryApiSalientTextEnabledName,
2520 flag_descriptions::kLensUnaryApiSalientTextEnabledDescription,
2521 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryApiSalientTextEnabled)},
Ibrahim Kanouche16414ff82025-03-01 02:12:312522 {"non-modal-sign-in-promo", flag_descriptions::kNonModalSignInPromoName,
2523 flag_descriptions::kNonModalSignInPromoDescription, flags_ui::kOsIos,
2524 FEATURE_VALUE_TYPE(kNonModalSignInPromo)},
“Prasanaa”856d8272025-03-05 20:35:322525 {"suggest-strong-password-in-add-password",
2526 flag_descriptions::kSuggestStrongPasswordInAddPasswordName,
2527 flag_descriptions::kSuggestStrongPasswordInAddPasswordDescription,
2528 flags_ui::kOsIos,
2529 FEATURE_VALUE_TYPE(
2530 password_manager::features::kSuggestStrongPasswordInAddPassword)},
Kavita Soni754e40a2025-03-05 21:46:492531 {"autofill-save-card-bottomsheet",
2532 flag_descriptions::kAutofillSaveCardBottomSheetName,
2533 flag_descriptions::kAutofillSaveCardBottomSheetDescription,
2534 flags_ui::kOsIos,
2535 FEATURE_VALUE_TYPE(autofill::features::kAutofillSaveCardBottomSheet)},
Olivier ROBIN4d7cdb82025-03-11 09:33:472536 {"ios-one-tap-mini-map-restrictions",
2537 flag_descriptions::kIOSOneTapMiniMapRestrictionsName,
2538 flag_descriptions::kIOSOneTapMiniMapRestrictionsDescription,
2539 flags_ui::kOsIos,
2540 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSOneTapMiniMapRestrictions,
2541 kIOSOneTapMiniMapRestrictionsVariations,
2542 "IOSOneTapMiniMapRestrictions")},
Charles Yang3b1713c2025-03-11 17:14:152543 {"lens-block-fetch-objects-interaction-rpcs-on-separate-handshake",
2544 flag_descriptions::
2545 kLensBlockFetchObjectsInteractionRPCsOnSeparateHandshakeName,
2546 flag_descriptions::
2547 kLensBlockFetchObjectsInteractionRPCsOnSeparateHandshakeDescription,
2548 flags_ui::kOsIos,
2549 FEATURE_VALUE_TYPE(
2550 kLensBlockFetchObjectsInteractionRPCsOnSeparateHandshake)},
2551 {"lens-prewarm-hard-stickiness-in-input-selection",
2552 flag_descriptions::kLensPrewarmHardStickinessInInputSelectionName,
2553 flag_descriptions::kLensPrewarmHardStickinessInInputSelectionDescription,
2554 flags_ui::kOsIos,
2555 FEATURE_VALUE_TYPE(kLensPrewarmHardStickinessInInputSelection)},
2556 {"lens-prewarm-hard-stickiness-in-query-formulation",
2557 flag_descriptions::kLensPrewarmHardStickinessInQueryFormulationName,
2558 flag_descriptions::kLensPrewarmHardStickinessInQueryFormulationDescription,
2559 flags_ui::kOsIos,
2560 FEATURE_VALUE_TYPE(kLensPrewarmHardStickinessInQueryFormulation)},
Nicolas MacBeth12449f72025-03-11 21:19:482561 {"enhanced-calendar", flag_descriptions::kEnhancedCalendarName,
2562 flag_descriptions::kEnhancedCalendarDescription, flags_ui::kOsIos,
2563 FEATURE_VALUE_TYPE(kEnhancedCalendar)},
Gauthier Ambard5b124d302025-03-12 13:38:402564 {"data-sharing-debug-logs", flag_descriptions::kDataSharingDebugLogsName,
2565 flag_descriptions::kDataSharingDebugLogsDescription, flags_ui::kOsIos,
2566 SINGLE_VALUE_TYPE(data_sharing::kDataSharingDebugLoggingEnabled)},
Duong Dac9f84393332025-03-13 11:29:152567 {"supervised-user-block-interstitial-v3",
2568 flag_descriptions::kSupervisedUserBlockInterstitialV3Name,
2569 flag_descriptions::kSupervisedUserBlockInterstitialV3Description,
2570 flags_ui::kOsIos,
2571 FEATURE_VALUE_TYPE(supervised_user::kSupervisedUserBlockInterstitialV3)},
Charles Yang127155ae2025-03-13 21:00:382572 {"lens-fetch-srp-api-enabled",
2573 flag_descriptions::kLensFetchSrpApiEnabledName,
2574 flag_descriptions::kLensFetchSrpApiEnabledDescription, flags_ui::kOsIos,
2575 FEATURE_VALUE_TYPE(kLensFetchSrpApiEnabled)},
Joshua Tan07b01a62025-03-13 22:25:112576 {"autofill-enable-card-info-runtime-retrieval",
2577 flag_descriptions::kAutofillEnableCardInfoRuntimeRetrievalName,
2578 flag_descriptions::kAutofillEnableCardInfoRuntimeRetrievalDescription,
2579 flags_ui::kOsIos,
2580 FEATURE_VALUE_TYPE(
2581 autofill::features::kAutofillEnableCardInfoRuntimeRetrieval)},
Hira Mahmood4535b072025-03-14 16:45:592582 {"feed-swipe-iph", flag_descriptions::kFeedSwipeInProductHelpName,
2583 flag_descriptions::kFeedSwipeInProductHelpDescription, flags_ui::kOsIos,
2584 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedSwipeInProductHelp,
2585 kFeedSwipeInProductHelpVariations,
2586 "FeedSwipeInProductHelp")},
Charles Yang0b278cf2025-03-14 18:11:582587 {"lens-qr-code-parsing-fix", flag_descriptions::kLensQRCodeParsingFixName,
2588 flag_descriptions::kLensQRCodeParsingFixDescription, flags_ui::kOsIos,
2589 FEATURE_VALUE_TYPE(kLensQRCodeParsingFix)},
Federica Germinariof58b5a7e2024-10-22 10:35:422590};
sdefresne14900ee2015-11-27 14:43:212591
Rohit Raobed794c2020-04-27 15:27:452592bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
2593 return false;
2594}
2595
2596flags_ui::FlagsState& GetGlobalFlagsState() {
2597 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
2598 nullptr);
2599 return *flags_state;
2600}
David Jean5ca263c2021-08-18 09:19:302601// Creates the experimental test policies map, used by AsyncPolicyLoader and
2602// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342603NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:212604 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2605
Guillaume Jenkins25e9bd72020-08-27 17:39:062606 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:552607 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:062608 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:552609
Guillaume Jenkins25e9bd72020-08-27 17:39:062610 // Set some sample policy values for testing if EnableSamplePolicies is set to
2611 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:402612 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:552613 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:012614 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
2615
Guillaume Jenkinseeb7007c2020-06-25 22:55:402616 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
2617
2618 // 2 = Disable all variations
2619 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
2620
2621 // 2 = Do not allow any site to show popups
2622 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
2623
Tina Wang5abee802020-07-29 23:09:522624 // Set default search engine.
2625 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
2626 @YES,
2627 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
2628 @"http://www.google.com/search?q={searchTerms}",
2629 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:022630 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:522631
Tina Wang89068c82020-10-29 15:51:502632 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
2633
Gauthier Ambard21b23702021-04-16 16:11:272634 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
2635
Tina Wang59d0b7e2020-08-11 04:41:012636 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:532637
2638 // 2 = Enhanced safe browsing protection
2639 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
2640
2641 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:292642
2643 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:552644 }];
2645 }
2646
Ewann227a3c02021-04-19 12:04:542647 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:042648 NSString* sync_policy_key =
2649 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:302650 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:542651 }
Ewann227a3c02021-04-19 12:04:542652
Ewann570a6302021-08-17 07:22:422653 // SyncTypesListDisabled policy.
2654 NSString* Sync_types_list_disabled_key =
2655 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
2656 NSMutableArray* Sync_types_list_disabled_values =
2657 [[NSMutableArray alloc] init];
2658 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
2659 [Sync_types_list_disabled_values addObject:@"bookmarks"];
2660 }
2661 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
2662 [Sync_types_list_disabled_values addObject:@"readingList"];
2663 }
2664 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
2665 [Sync_types_list_disabled_values addObject:@"preferences"];
2666 }
2667 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
2668 [Sync_types_list_disabled_values addObject:@"passwords"];
2669 }
2670 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
2671 [Sync_types_list_disabled_values addObject:@"autofill"];
2672 }
2673 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
2674 [Sync_types_list_disabled_values addObject:@"typedUrls"];
2675 }
2676 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
2677 [Sync_types_list_disabled_values addObject:@"tabs"];
2678 }
2679 if ([Sync_types_list_disabled_values count]) {
2680 [testing_policies addEntriesFromDictionary:@{
2681 Sync_types_list_disabled_key : Sync_types_list_disabled_values
2682 }];
Ewann570a6302021-08-17 07:22:422683 }
2684
Gauthier Ambard073eaa92021-11-22 15:24:132685 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:522686 NSString* incognito_policy_key =
2687 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
2688 NSInteger incognito_mode_availability =
2689 [defaults integerForKey:incognito_policy_key];
2690 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:522691 [testing_policies addEntriesFromDictionary:@{
2692 incognito_policy_key : @(incognito_mode_availability),
2693 }];
2694 }
2695
Ewann40a8f8a2021-07-29 10:01:202696 NSString* restriction_pattern =
2697 [defaults stringForKey:@"RestrictAccountsToPatterns"];
2698 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:292699 NSString* restrict_key =
2700 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:202701 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:292702 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:202703 }];
2704 }
2705
Vincent Boisselle19200bc2021-09-01 17:58:252706 // If the sign-in policy is set (not "None"), add the policy key to the list
2707 // of enabled experimental policies, and set the value.
2708 NSString* const kSigninPolicyKey = @"BrowserSignin";
2709 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2710 if (signin_policy_mode) {
2711 // Remove the mode offset that was used to represent the unset policy.
2712 --signin_policy_mode;
2713 DCHECK(signin_policy_mode >= 0);
2714
Vincent Boisselle19200bc2021-09-01 17:58:252715 [testing_policies addEntriesFromDictionary:@{
2716 kSigninPolicyKey : @(signin_policy_mode),
2717 }];
2718 }
2719
Veronique Nguyen9b1044f2022-01-11 14:41:132720 // If the New Tab Page URL is set (not empty) add the value to the list of
2721 // test policies.
2722 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2723 if ([ntp_location length] > 0) {
2724 NSString* ntp_location_key =
2725 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2726 [testing_policies
2727 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572728 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132729 }
2730
Ali Juma9ec36d22022-03-28 14:53:122731 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2732 NSString* allow_backups_key =
2733 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2734 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2735 [allowed_experimental_policies addObject:allow_backups_key];
2736 }
2737
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242738 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2739 NSString* password_manager_key =
2740 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2741 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2742 [allowed_experimental_policies addObject:password_manager_key];
2743 }
Vincent Boisselle003569a72023-09-11 16:03:122744
2745 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2746 NSString* user_policy_merge_key =
2747 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2748 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2749 [allowed_experimental_policies addObject:user_policy_merge_key];
2750 }
2751
Arthur Milchiorbb44f5c82023-03-14 16:14:462752 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2753 NSString* managed_bookmarks_key =
2754 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2755 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572756 @"["
2757 // The following gets filtered out from
2758 // the JSON string when parsed.
2759 " {"
2760 " \"toplevel_name\": \"Managed Bookmarks\""
2761 " },"
2762 " {"
2763 " \"name\": \"Google\","
2764 " \"url\": \"google.com\""
2765 " },"
2766 " {"
2767 " \"name\": \"Empty Folder\","
2768 " \"children\": []"
2769 " },"
2770 " {"
2771 " \"name\": \"Big Folder\","
2772 " \"children\": ["
2773 " {"
2774 " \"name\": \"Youtube\","
2775 " \"url\": \"youtube.com\""
2776 " },"
2777 " {"
2778 " \"name\": \"Chromium\","
2779 " \"url\": \"chromium.org\""
2780 " },"
2781 " {"
2782 " \"name\": \"More Stuff\","
2783 " \"children\": ["
2784 " {"
2785 " \"name\": \"Bugs\","
2786 " \"url\": \"crbug.com\""
2787 " }"
2788 " ]"
2789 " }"
2790 " ]"
2791 " }"
2792 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462793 [testing_policies addEntriesFromDictionary:@{
2794 managed_bookmarks_key : managed_bookmarks_value
2795 }];
2796 [allowed_experimental_policies addObject:managed_bookmarks_key];
2797 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242798
Guillaume Jenkins25e9bd72020-08-27 17:39:062799 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2800 // policy.
2801 if ([allowed_experimental_policies count] > 0) {
2802 [testing_policies setValue:allowed_experimental_policies
2803 forKey:base::SysUTF8ToNSString(
2804 policy::key::kEnableExperimentalPolicies)];
2805 }
2806
jlebel2eb40222022-05-06 11:15:422807 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2808 switch ([defaults integerForKey:metrics_reporting_key]) {
2809 case 1:
2810 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132811 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422812 break;
2813 case 2:
2814 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132815 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422816 break;
2817 default:
2818 // Metrics reporting not managed.
2819 break;
2820 }
2821
David Jean6f85d44f2021-08-19 08:08:452822 // Warning: Add new flags to TestingPoliciesHash() below.
2823
David Jean5ca263c2021-08-18 09:19:302824 return testing_policies;
2825}
David Jean6f85d44f2021-08-19 08:08:452826
David Jean5ca263c2021-08-18 09:19:302827} // namespace
2828
Gauthier Ambard02dbf022022-08-23 08:28:472829// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302830void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2831 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2832
2833 // Set the UA flag if UseMobileSafariUA is enabled.
2834 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2835 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2836 // Chrome puts its product token.
2837 int32_t major = 0;
2838 int32_t minor = 0;
2839 int32_t bugfix = 0;
2840 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2841 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2842
2843 command_line->AppendSwitchASCII(switches::kUserAgent,
2844 web::BuildMobileUserAgent(product));
2845 }
2846
2847 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342848 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302849
2850 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2851 // Management to enabled and add the token to the list of policies.
2852 NSString* token_key =
2853 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2854 NSString* token = [defaults stringForKey:token_key];
2855
2856 if ([token length] > 0) {
2857 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2858 [testing_policies setValue:token forKey:token_key];
2859 }
2860
Guillaume Jenkins57606d72020-08-13 17:32:552861 // If some policies were set, commit them to the app's registration defaults.
2862 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402863 NSDictionary* registration_defaults =
2864 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2865 [defaults registerDefaults:registration_defaults];
2866 }
2867
sdefresne14900ee2015-11-27 14:43:212868 // Freeform commandline flags. These are added last, so that any flags added
2869 // earlier in this function take precedence.
2870 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2871 base::CommandLine::StringVector flags;
2872 // Append an empty "program" argument.
2873 flags.push_back("");
2874
2875 // The number of flags corresponds to the number of text fields in
2876 // Experimental.plist.
2877 const int kNumFreeformFlags = 5;
2878 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2879 NSString* key =
2880 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2881 NSString* flag = [defaults stringForKey:key];
2882 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332883 // iOS keyboard replaces -- with —, so undo that.
2884 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2885 withString:@"--"
2886 options:0
2887 range:NSMakeRange(0, 1)];
2888 // To make things easier, allow flags with no dashes by prepending them
2889 // here. This also allows for flags that just have one dash if they
2890 // exist.
2891 if (![flag hasPrefix:@"-"]) {
2892 flag = [@"--" stringByAppendingString:flag];
2893 }
sdefresne14900ee2015-11-27 14:43:212894 flags.push_back(base::SysNSStringToUTF8(flag));
2895 }
2896 }
2897
2898 base::CommandLine temp_command_line(flags);
2899 command_line->AppendArguments(temp_command_line, false);
2900 }
msardafc76f662017-02-24 12:46:282901
justincohendacc85d2017-06-28 23:34:102902 // Populate command line flag for 3rd party keyboard omnibox workaround.
2903 NSString* enableThirdPartyKeyboardWorkaround =
2904 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2905 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2906 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2907 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2908 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2909 }
2910
Sylvain Defresned3cd8d92022-01-18 13:35:082911 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212912}
2913
sdefresne14900ee2015-11-27 14:43:212914void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2915 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182916 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112917 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532918 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212919}
2920
jkrcalbf073372016-07-29 07:21:312921std::vector<std::string> RegisterAllFeatureVariationParameters(
2922 flags_ui::FlagsStorage* flags_storage,
2923 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182924 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2925 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312926}
2927
sdefresne14900ee2015-11-27 14:43:212928void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2929 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502930 base::Value::List& supported_entries,
2931 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182932 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212933 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512934 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212935}
2936
2937void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2938 const std::string& internal_name,
2939 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182940 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2941 enable);
sdefresne14900ee2015-11-27 14:43:212942}
2943
2944void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182945 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212946}
2947
Nicolas MacBeth972e2592023-02-23 15:22:092948bool IsRestartNeededToCommitChanges() {
2949 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2950}
2951
sdefresne14900ee2015-11-27 14:43:212952namespace testing {
2953
Elly Fong-Jones323ab1092021-08-23 22:36:312954base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2955 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532956 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212957}
2958
2959} // namespace testing