blob: ec605d61faeae2fda14d0a06ba27e995bf8d72c9 [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"
Daniel White89d57342025-04-01 14:16:1859#import "components/safe_browsing/ios/browser/web_ui/features.h"
Jérôme Lebele5718112025-03-28 14:51:0060#import "components/search_engines/search_engines_switches.h"
Benjamin Williamsbd411e892024-10-25 15:59:3161#import "components/segmentation_platform/embedder/home_modules/constants.h"
Chris Lu6fd4eaf2023-08-08 18:29:3062#import "components/segmentation_platform/public/constants.h"
Chris Lub0bad572023-08-07 18:13:2963#import "components/segmentation_platform/public/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2564#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5765#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
66#import "components/signin/core/browser/account_reconcilor.h"
67#import "components/signin/ios/browser/features.h"
68#import "components/signin/public/base/signin_switches.h"
69#import "components/strings/grit/components_strings.h"
Nohemi Fernandez64acf982023-08-04 09:27:1570#import "components/supervised_user/core/common/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5771#import "components/sync/base/command_line_switches.h"
72#import "components/sync/base/features.h"
73#import "components/sync/base/pref_names.h"
74#import "components/translate/core/browser/translate_prefs.h"
75#import "components/translate/core/common/translate_util.h"
Sven Zheng0631fc82025-03-28 01:22:5576#import "components/variations/net/variations_command_line.h"
rbpotter422d5eb2025-02-05 16:42:4877#import "components/webui/flags/feature_entry.h"
78#import "components/webui/flags/feature_entry_macros.h"
79#import "components/webui/flags/flags_storage.h"
80#import "components/webui/flags/flags_ui_switches.h"
Ed Chin91e44992022-07-27 13:42:3481#import "ios/chrome/app/background_mode_buildflags.h"
Gauthier Ambard5b7f3c22023-09-13 12:03:3082#import "ios/chrome/browser/browsing_data/model/browsing_data_features.h"
Aman Vermab6f55572023-09-28 11:40:5383#import "ios/chrome/browser/crash_report/model/features.h"
Sebsgfcd5b0b2024-04-09 08:18:3284#import "ios/chrome/browser/credential_provider/model/features.h"
Aman Vermaf8a157f62023-10-03 15:32:1185#import "ios/chrome/browser/default_browser/model/utils.h"
Daniel White37c85a22025-03-03 16:37:3686#import "ios/chrome/browser/download/ui/features.h"
mmrashadbc0ca942023-10-06 13:12:1487#import "ios/chrome/browser/find_in_page/model/util.h"
Hira Mahmoodf6906a82025-01-02 17:55:0988#import "ios/chrome/browser/first_run/ui_bundled/features.h"
Gauthier Ambard92605132022-08-26 13:25:1789#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5790#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Vincent Boisselle8b321bb2023-11-28 13:58:3191#import "ios/chrome/browser/follow/model/follow_features.h"
Rubin Deliallisib66a77a2024-10-02 18:09:4892#import "ios/chrome/browser/incognito_reauth/ui_bundled/features.h"
Nicolas MacBeth12449f72025-03-11 21:19:4893#import "ios/chrome/browser/intelligence/features/features.h"
Christian Xuff884802024-11-25 23:36:1894#import "ios/chrome/browser/lens/ui_bundled/features.h"
Hira Mahmood664449872024-11-18 23:55:2295#import "ios/chrome/browser/ntp/model/features.h"
Chris Lu09019af2024-08-28 08:38:4496#import "ios/chrome/browser/ntp/ui_bundled/new_tab_page_feature.h"
Christian Xua224fbd2025-01-30 14:55:2797#import "ios/chrome/browser/omnibox/public/omnibox_ui_features.h"
Stepan Khapugin34e459742024-12-06 09:39:5998#import "ios/chrome/browser/page_info/ui_bundled/features.h"
mmrashadd0c7f952023-12-14 13:36:3899#import "ios/chrome/browser/policy/model/policy_util.h"
Ameur Hosni51b5aaf2025-03-25 16:33:26100#import "ios/chrome/browser/popup_menu/ui_bundled/overflow_menu/feature_flags.h"
Cheick Cisse85457f22024-05-23 22:37:59101#import "ios/chrome/browser/price_insights/model/price_insights_feature.h"
Stepan Khapugin5694d702024-01-31 13:23:08102#import "ios/chrome/browser/promos_manager/model/features.h"
Nohemi Fernandez11751ec2025-03-26 18:24:37103#import "ios/chrome/browser/reader_mode/model/features.h"
mmrashadf158cad942023-10-03 09:15:48104#import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h"
Christian Xu51be15a2024-11-26 17:42:19105#import "ios/chrome/browser/settings/ui_bundled/clear_browsing_data/features.h"
Christian Xub0c68ff2024-11-28 11:50:47106#import "ios/chrome/browser/settings/ui_bundled/google_services/features.h"
Xu Li9854c992024-12-19 20:53:08107#import "ios/chrome/browser/settings/ui_bundled/password/password_manager_ui_features.h"
Christian Xu585a04512024-11-27 16:29:49108#import "ios/chrome/browser/settings/ui_bundled/privacy/privacy_guide/features.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:46109#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:35110#import "ios/chrome/browser/shared/public/features/system_flags.h"
Tina Wang75f21e82024-07-01 18:00:35111#import "ios/chrome/browser/start_surface/ui_bundled/start_surface_features.h"
Ewann Pelled2eaeba2023-09-19 09:15:28112#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Ewann Pelle1f48f922025-01-13 11:43:34113#import "ios/chrome/browser/toolbar/ui_bundled/tab_groups/tab_group_indicator_features_utils.h"
Weizhong Xia8b908bda2023-12-05 16:00:22114#import "ios/chrome/browser/web/model/features.h"
Gauthier Ambard8c115362025-03-19 13:45:24115#import "ios/chrome/browser/whats_new/coordinator/whats_new_util.h"
Gauthier Ambard999088c2022-09-13 08:36:57116#import "ios/chrome/grit/ios_strings.h"
117#import "ios/components/security_interstitials/https_only_mode/feature.h"
118#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
119#import "ios/web/common/features.h"
120#import "ios/web/common/user_agent.h"
121#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21122
Sylvain Defresne9c107082020-10-27 16:39:13123#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
mmrashadf158cad942023-10-03 09:15:48124#import "ios/chrome/browser/screen_time/model/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13125#endif
126
sdefresne14900ee2015-11-27 14:43:21127#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57128#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22129#endif
stkhapuginc1be1792016-12-13 14:30:53130
elawrence816f6790e2017-06-16 18:19:28131using flags_ui::FeatureEntry;
132
sdefresne14900ee2015-11-27 14:43:21133namespace {
Emily Starkbafa9062017-12-27 15:22:46134
Nohemi Fernandezc00842a2021-07-26 11:47:34135const FeatureEntry::Choice
136 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
137 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
138 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
139 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
140 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
141};
142
Radu Nitescu6e6dd7f52025-01-17 11:33:35143const char kLensOverlayOnboardingParamSpeedbumpMenu[] =
144 "kLensOverlayOnboardingParamSpeedbumpMenu";
145const char kLensOverlayOnboardingParamUpdatedStrings[] =
146 "kLensOverlayOnboardingParamUpdatedStrings";
147const char kLensOverlayOnboardingParamUpdatedStringsAndVisuals[] =
148 "kLensOverlayOnboardingParamUpdatedStringsAndVisuals";
149
150const FeatureEntry::FeatureParam kLensOverlayOnboardinSpeedbumpMenu[] = {
151 {kLensOverlayOnboardingParam, kLensOverlayOnboardingParamSpeedbumpMenu}};
152const FeatureEntry::FeatureParam kLensOverlayOnboardingUpdatedStrings[] = {
153 {kLensOverlayOnboardingParam, kLensOverlayOnboardingParamUpdatedStrings}};
154const FeatureEntry::FeatureParam
155 kLensOverlayOnboardingUpdatedStringsAndVisuals[] = {
156 {kLensOverlayOnboardingParam,
157 kLensOverlayOnboardingParamUpdatedStringsAndVisuals}};
158
159const FeatureEntry::FeatureVariation kLensOverlayOnboardingVariations[] = {
160 {"A: Speedbump menu", kLensOverlayOnboardinSpeedbumpMenu,
161 std::size(kLensOverlayOnboardinSpeedbumpMenu), nullptr},
162 {"B: Updated Strings", kLensOverlayOnboardingUpdatedStrings,
163 std::size(kLensOverlayOnboardingUpdatedStrings), nullptr},
164 {"C: Updated Strings and Graphics",
165 kLensOverlayOnboardingUpdatedStringsAndVisuals,
166 std::size(kLensOverlayOnboardingUpdatedStringsAndVisuals), nullptr},
Stepan Khapuginc5820242025-01-10 22:21:11167};
168
Stepan Khapugincc4e9842019-01-23 13:38:13169const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
170 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
171const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
172 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
173const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
174 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
175const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
176 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
177const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
178 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
179const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
180 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
181const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
182 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
183
184const FeatureEntry::FeatureVariation
185 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
186 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53187 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13188 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53189 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13190 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53191 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13192 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53193 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13194 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53195 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13196 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53197 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13198 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53199 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13200
Stepan Khapuginbac467e2022-05-06 21:11:54201const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
202 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
203const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
204 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
205const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
206 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
207
208const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
209 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
210 nullptr},
211 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
212 nullptr},
213 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
214 nullptr},
215};
216
Christian Xucf26d562022-07-06 09:28:36217const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
218 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
219const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
220 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
221const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
222 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
223
224const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
225 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
226 nullptr},
227 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
228 nullptr},
229 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
230 nullptr},
231};
232
Guillem Perez40086ef2023-11-20 20:03:52233const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = {
234 {kContentPushNotificationsExperimentType, "1"}};
235const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] =
236 {{kContentPushNotificationsExperimentType, "2"}};
Guillem Perez222b5b22024-01-20 02:16:27237const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] =
238 {{kContentPushNotificationsExperimentType, "3"}};
Tina Wangb7f5b3f2024-05-07 06:24:26239const FeatureEntry::FeatureParam
240 kContentPushNotificationsPromoRegistrationOnly[] = {
241 {kContentPushNotificationsExperimentType, "5"}};
242const FeatureEntry::FeatureParam
243 kContentPushNotificationsProvisionalRegistrationOnly[] = {
244 {kContentPushNotificationsExperimentType, "6"}};
245const FeatureEntry::FeatureParam
246 kContentPushNotificationsSetUpListRegistrationOnly[] = {
247 {kContentPushNotificationsExperimentType, "7"}};
Guillem Perez40086ef2023-11-20 20:03:52248
249const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = {
250 {"Promo", kContentPushNotificationsEnabledPromo,
251 std::size(kContentPushNotificationsEnabledPromo), nullptr},
252 {"Set up list", kContentPushNotificationsEnabledSetupLists,
Guillem Perez222b5b22024-01-20 02:16:27253 std::size(kContentPushNotificationsEnabledSetupLists), nullptr},
254 {"Provisional Notification", kContentPushNotificationsEnabledProvisional,
Guillem Perez749b3fc2024-02-13 19:29:49255 std::size(kContentPushNotificationsEnabledProvisional), nullptr},
Tina Wangb7f5b3f2024-05-07 06:24:26256 {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly,
257 std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr},
258 {"Provisional Notification Registeration Only",
259 kContentPushNotificationsProvisionalRegistrationOnly,
260 std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr},
261 {"Set up list Registeration Only",
262 kContentPushNotificationsSetUpListRegistrationOnly,
263 std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}};
Guillem Perez40086ef2023-11-20 20:03:52264
Chris Ludca9ce32023-09-20 16:53:50265const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35266 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50267const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35268 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08269
gogerald0e39e3aa2021-02-10 18:41:23270const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50271 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
272 std::size(kStartSurfaceTenSeconds), nullptr},
273 {"1h:Show Home Surface", kStartSurfaceOneHour,
274 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08275};
gogerald0e39e3aa2021-02-10 18:41:23276
Chris Luce928eb2023-05-12 21:36:26277const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
278 {kMagicStackMostVisitedModuleParam, "true"},
279 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22280const FeatureEntry::FeatureParam
281 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
282 {kMagicStackMostVisitedModuleParam, "true"},
283 {kReducedSpaceParam, "-80"},
284 {kHideIrrelevantModulesParam, "true"}};
Chris Lu8cf8ef82024-03-18 18:30:54285const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = {
Chris Luce928eb2023-05-12 21:36:26286 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu8cf8ef82024-03-18 18:30:54287 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26288
289const FeatureEntry::FeatureVariation kMagicStackVariations[]{
290 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
291 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22292 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
293 kMagicStackMostVisitedModuleHideIrrelevantModules,
294 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu8cf8ef82024-03-18 18:30:54295 {"Hide irrelevant modules", kMagicStackHidIrrelevantModules,
296 std::size(kMagicStackHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26297};
298
Chris Lu6fd4eaf2023-08-08 18:29:30299const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
300 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
301
302const FeatureEntry::FeatureVariation
303 kSegmentationPlatformIosModuleRankerVariations[]{
304 {"Enabled With Default Model Parameter (Must Set this!)",
305 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
306 };
307
Scott Yoderaf2bdf32024-01-30 20:26:15308const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31309 {kIOSTipsNotificationsUnknownTriggerTimeParam, "5s"},
310 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "5s"},
311 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "5s"},
Scott Yoderaf2bdf32024-01-30 20:26:15312};
313const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31314 {kIOSTipsNotificationsUnknownTriggerTimeParam, "10s"},
315 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "10s"},
316 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "10s"},
Scott Yoderaf2bdf32024-01-30 20:26:15317};
Scott Yoderd2dbc87f2024-03-07 18:23:37318const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31319 {kIOSTipsNotificationsUnknownTriggerTimeParam, "30s"},
320 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "30s"},
321 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "30s"},
Scott Yoderd2dbc87f2024-03-07 18:23:37322};
Scott Yoderaf2bdf32024-01-30 20:26:15323const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = {
324 {"(5s trigger)", kIOSTipsNotifications5SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07325 std::size(kIOSTipsNotifications5SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15326 {"(10s trigger)", kIOSTipsNotifications10SecondTrigger,
327 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderd2dbc87f2024-03-07 18:23:37328 {"(30s trigger)", kIOSTipsNotifications30SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07329 std::size(kIOSTipsNotifications30SecondTrigger), nullptr},
330};
331
332const FeatureEntry::FeatureParam
333 kIOSReactivationNotifications10SecondTrigger[] = {
334 {kIOSReactivationNotificationsTriggerTimeParam, "10s"},
335};
336const FeatureEntry::FeatureParam
337 kIOSReactivationNotifications30SecondTrigger[] = {
338 {kIOSReactivationNotificationsTriggerTimeParam, "30s"},
339};
340const FeatureEntry::FeatureVariation kIOSReactivationNotificationsVariations[] =
341 {
342 {"(10s trigger)", kIOSReactivationNotifications10SecondTrigger,
343 std::size(kIOSReactivationNotifications10SecondTrigger), nullptr},
344 {"(30s trigger)", kIOSReactivationNotifications30SecondTrigger,
345 std::size(kIOSReactivationNotifications30SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15346};
347
Ed Chin91e44992022-07-27 13:42:34348#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26349// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01350const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04351 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
352 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01353 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04354 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01355const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04356 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
357 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01358 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04359 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01360const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04361 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
362 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01363 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04364 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01365const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04366 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
367 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01368 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04369 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01370const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04371 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
372 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01373 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
374 {kBackgroundRefreshIntervalInSeconds, "0"}};
375const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04376 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
377 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01378 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
379 {kBackgroundRefreshIntervalInSeconds, "0"}};
380const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
381 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
382 {kEnableRecurringBackgroundRefreshSchedule, "false"},
383 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
384 {kBackgroundRefreshIntervalInSeconds, "0"}};
385const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
386 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
387 {kEnableRecurringBackgroundRefreshSchedule, "true"},
388 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
389 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04390
Ed Chin178ec2a2023-02-10 22:21:26391// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04392const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01393 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
394 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
395 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
396 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
397 {"1hr Interval 1hr Max Age Recurring",
398 kOneHourIntervalOneHourMaxAgeRecurring,
399 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
400 {"4hr Interval 6hr Max Age Recurring",
401 kFourHourIntervalSixHourMaxAgeRecurring,
402 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
403 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
404 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
405 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
406 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
407 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
408 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
409 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
410 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04411};
Ed Chin91e44992022-07-27 13:42:34412#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04413
David Jeanf361ae9d2024-04-09 08:19:47414const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = {
415 {kTextClassifierAddressParameterName, "true"}};
416const FeatureEntry::FeatureVariation
417 kEnableExpKitTextClassifierAddressVariations[] = {
418 {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap,
419 std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}};
420
421const FeatureEntry::FeatureParam
422 kEnableExpKitTextClassifierPhoneNumberOneTap[] = {
423 {kTextClassifierPhoneNumberParameterName, "true"}};
424const FeatureEntry::FeatureVariation
425 kEnableExpKitTextClassifierPhoneNumberVariations[] = {
426 {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap,
427 std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}};
428
429const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = {
430 {kTextClassifierEmailParameterName, "true"}};
431const FeatureEntry::FeatureVariation
432 kEnableExpKitTextClassifierEmailVariations[] = {
433 {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap,
434 std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15435
Christian Xu07d600192023-07-24 12:29:52436const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
437 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
438const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
439 {kBottomOmniboxDefaultSettingParam,
440 kBottomOmniboxDefaultSettingParamBottom}};
441const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
442 {{kBottomOmniboxDefaultSettingParam,
443 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
444const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
445 {
446 {"Top", kBottomOmniboxDefaultSettingTop,
447 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
448 {"Bottom", kBottomOmniboxDefaultSettingBottom,
449 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
450 {"Bottom for Safari Switcher",
451 kBottomOmniboxDefaultSettingSafariSwitcher,
452 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
453};
454
Cheick Cisse85457f22024-05-23 22:37:59455constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
456 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
457constexpr flags_ui::FeatureEntry::FeatureParam
458 kPriceInsightsGoodDealNowParam[] = {
459 {kLowPriceParam, kLowPriceParamGoodDealNow}};
460constexpr flags_ui::FeatureEntry::FeatureParam
461 kPriceInsightsSeePriceHistoryParam[] = {
462 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
463constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
464 {{"Price is low", kPriceInsightsPriceIsLowParam,
465 std::size(kPriceInsightsPriceIsLowParam), nullptr},
466 {"Good deal now", kPriceInsightsGoodDealNowParam,
467 std::size(kPriceInsightsGoodDealNowParam), nullptr},
468 {"See price history", kPriceInsightsSeePriceHistoryParam,
469 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
470
Olivier ROBIN82b67002023-07-31 14:34:46471const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
472 {web::features::kOneTapForMapsConsentModeParamTitle,
473 web::features::kOneTapForMapsConsentModeDefaultParam}};
474const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
475 {web::features::kOneTapForMapsConsentModeParamTitle,
476 web::features::kOneTapForMapsConsentModeForcedParam}};
477const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
478 {web::features::kOneTapForMapsConsentModeParamTitle,
479 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31480const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
481 {web::features::kOneTapForMapsConsentModeParamTitle,
482 web::features::kOneTapForMapsConsentModeIPHParam}};
483const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
484 {web::features::kOneTapForMapsConsentModeParamTitle,
485 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46486const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
487 {"Consent Default", kOneTapForMapsConsentModeDefault,
488 std::size(kOneTapForMapsConsentModeDefault), nullptr},
489 {"Consent Forced", kOneTapForMapsConsentModeForced,
490 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31491 {"Consent IPH", kOneTapForMapsConsentModeIPH,
492 std::size(kOneTapForMapsConsentModeIPH), nullptr},
493 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
494 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46495 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
496 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
497};
498
Benjamin Williams1dc8f2342024-01-04 21:25:55499const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
500 {kIOSDockingPromoExperimentType, "0"}};
501const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
502 {kIOSDockingPromoExperimentType, "1"}};
503const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
504 {kIOSDockingPromoExperimentType, "2"}};
505
506const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
507 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
508 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
509 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
510 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
511 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
512 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
513
Olivier ROBINcb76f4fe2024-06-05 16:11:42514const FeatureEntry::FeatureVariation
515 kImageServiceOptimizationGuideSalientImagesVariations[] = {
516 {"High Performance Canonicalization", nullptr, 0, "3362133"},
517};
518
Olivier ROBINb17c14b92024-10-09 13:49:13519const FeatureEntry::FeatureParam kTabResumptionImagesOnlyThumbnail[] = {
520 {kTabResumptionImagesTypes, kTabResumptionImagesTypesThumbnails}};
521const FeatureEntry::FeatureParam kTabResumptionImagesOnlySalient[] = {
522 {kTabResumptionImagesTypes, kTabResumptionImagesTypesSalient}};
523
524const FeatureEntry::FeatureVariation kTabResumptionImagesVariations[] = {
525 {"Only thumbnails", kTabResumptionImagesOnlyThumbnail,
526 std::size(kTabResumptionImagesOnlyThumbnail), nullptr},
527 {"Only salient", kTabResumptionImagesOnlySalient,
528 std::size(kTabResumptionImagesOnlySalient), nullptr},
529};
530
Charles Yangf8e7adf2024-06-11 00:17:00531// Uses int values from Lens filters ablation mode enum.
532const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
533 {kLensFiltersAblationMode, "0"}};
534const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
535 {kLensFiltersAblationMode, "1"}};
536const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
537 {kLensFiltersAblationMode, "2"}};
538const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
539 {kLensFiltersAblationMode, "3"}};
540
541const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
542 {"(Disabled)", kLensFiltersAblationModeDisabled,
543 std::size(kLensFiltersAblationModeDisabled), nullptr},
544 {"(Post Capture)", kLensFiltersAblationModePostCapture,
545 std::size(kLensFiltersAblationModePostCapture), nullptr},
546 {"(LVF)", kLensFiltersAblationModeLVF,
547 std::size(kLensFiltersAblationModeLVF), nullptr},
548 {"(Always)", kLensFiltersAblationModeAlways,
549 std::size(kLensFiltersAblationModeAlways), nullptr}};
550
551// Uses int values from Lens translate toggle mode enum.
552const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
553 {kLensTranslateToggleMode, "0"}};
554const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
555 {kLensTranslateToggleMode, "1"}};
556const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
557 {kLensTranslateToggleMode, "2"}};
558const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
559 {kLensTranslateToggleMode, "3"}};
560
561const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
562 {"(Disabled)", kLensTranslateToggleModeDisabled,
563 std::size(kLensTranslateToggleModeDisabled), nullptr},
564 {"(Post Capture)", kLensTranslateToggleModePostCapture,
565 std::size(kLensTranslateToggleModePostCapture), nullptr},
566 {"(LVF)", kLensTranslateToggleModeLVF,
567 std::size(kLensTranslateToggleModeLVF), nullptr},
568 {"(Always)", kLensTranslateToggleModeAlways,
569 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04570
Ewann Pelle1f48f922025-01-13 11:43:34571const FeatureEntry::FeatureParam kTabGroupIndicatorAboveButtonsVisble[] = {
572 {kTabGroupIndicatorVisible, "true"},
573 {kTabGroupIndicatorBelowOmnibox, "false"},
574 {kTabGroupIndicatorButtonsUpdate, "true"}};
575const FeatureEntry::FeatureParam kTabGroupIndicatorBelowButtonsVisble[] = {
576 {kTabGroupIndicatorVisible, "true"},
577 {kTabGroupIndicatorBelowOmnibox, "true"},
578 {kTabGroupIndicatorButtonsUpdate, "true"}};
579const FeatureEntry::FeatureParam kTabGroupIndicatorAboveVisble[] = {
580 {kTabGroupIndicatorVisible, "true"},
581 {kTabGroupIndicatorBelowOmnibox, "false"},
582 {kTabGroupIndicatorButtonsUpdate, "false"}};
583const FeatureEntry::FeatureParam kTabGroupIndicatorBelowVisble[] = {
584 {kTabGroupIndicatorVisible, "true"},
585 {kTabGroupIndicatorBelowOmnibox, "true"},
586 {kTabGroupIndicatorButtonsUpdate, "false"}};
587const FeatureEntry::FeatureParam kTabGroupIndicatorButtons[] = {
588 {kTabGroupIndicatorVisible, "false"},
589 {kTabGroupIndicatorBelowOmnibox, "false"},
590 {kTabGroupIndicatorButtonsUpdate, "true"}};
591
592const FeatureEntry::FeatureVariation kTabGroupIndicatorVariations[] = {
593 {"Indicator above omnibox + buttons update",
594 kTabGroupIndicatorAboveButtonsVisble,
595 std::size(kTabGroupIndicatorAboveButtonsVisble), nullptr},
596 {"Indicator below omnibox + buttons update",
597 kTabGroupIndicatorBelowButtonsVisble,
598 std::size(kTabGroupIndicatorBelowButtonsVisble), nullptr},
599 {"Indicator above omnibox", kTabGroupIndicatorAboveVisble,
600 std::size(kTabGroupIndicatorAboveVisble), nullptr},
601 {"Indicator below omnibox", kTabGroupIndicatorBelowVisble,
602 std::size(kTabGroupIndicatorBelowVisble), nullptr},
603 {"buttons update only", kTabGroupIndicatorButtons,
604 std::size(kTabGroupIndicatorButtons), nullptr}};
605
Khalid Peer7cf75a22024-06-13 17:25:49606const FeatureEntry::FeatureParam
607 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
608 {"MlUrlPiecewiseMappedSearchBlending", "true"},
609 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
610 "0,550;0.018,1300;0.14,1398;1,1422"},
611 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
612 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
613const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41614 kMlUrlPiecewiseMappedSearchBlendingDemotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49615 {"MlUrlPiecewiseMappedSearchBlending", "true"},
616 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
617 "0,550;0.018,1250;0.14,1348;1,1422"},
618 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
619 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
620const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41621 kMlUrlPiecewiseMappedSearchBlendingPromotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49622 {"MlUrlPiecewiseMappedSearchBlending", "true"},
623 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41624 "0,550;0.018,1350;0.14,1448;1,1472"},
625 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1450"},
Khalid Peer7cf75a22024-06-13 17:25:49626 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
627const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41628 kMlUrlPiecewiseMappedSearchBlendingPromotedBy100[] = {
Khalid Peer7cf75a22024-06-13 17:25:49629 {"MlUrlPiecewiseMappedSearchBlending", "true"},
630 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41631 "0,550;0.018,1400;0.14,1498;1,1522"},
632 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1500"},
Khalid Peer7cf75a22024-06-13 17:25:49633 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer4501c1f2024-06-27 16:12:04634const FeatureEntry::FeatureParam
635 kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = {
636 {"MlUrlPiecewiseMappedSearchBlending", "true"},
637 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer5c9bd9e2024-07-17 17:16:42638 "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:04639 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"},
640 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer7cf75a22024-06-13 17:25:49641
642const FeatureEntry::FeatureVariation
643 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
644 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
645 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
Khalid Peer9c07798f2024-07-15 22:39:41646 {"demoted by 50", kMlUrlPiecewiseMappedSearchBlendingDemotedBy50,
647 std::size(kMlUrlPiecewiseMappedSearchBlendingDemotedBy50), nullptr},
648 {"promoted by 50", kMlUrlPiecewiseMappedSearchBlendingPromotedBy50,
649 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy50), nullptr},
650 {"promoted by 100", kMlUrlPiecewiseMappedSearchBlendingPromotedBy100,
651 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy100), nullptr},
Khalid Peer4501c1f2024-06-27 16:12:04652 {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping,
653 std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr},
Khalid Peer7cf75a22024-06-13 17:25:49654};
655
656const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
657 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
658 {"MlUrlScoringShortcutDocumentSignals", "true"},
659};
660const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
661 {
662 {"MlUrlScoringUnlimitedNumCandidates", "true"},
663 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
664 {"MlUrlScoringShortcutDocumentSignals", "true"},
665};
666// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
667// Document(512), and History Fuzzy(65536) providers max matches to 10.
668const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
669 {
670 {"MlUrlScoringMaxMatchesByProvider",
671 "1:10,4:10,8:10,64:10,512:10,65536:10"},
672 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
673 {"MlUrlScoringShortcutDocumentSignals", "true"},
674};
675
676const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
677 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
678 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
679 {"unlimited suggestion candidates",
680 kOmniboxMlUrlScoringUnlimitedNumCandidates,
681 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
682 {"Increase provider max limit to 10",
683 kOmniboxMlUrlScoringMaxMatchesByProvider10,
684 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
685};
686
687const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
688 {"MlUrlSearchBlending_StableSearchBlending", "true"},
689 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
690};
691const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
692 {
693 {"MlUrlSearchBlending_StableSearchBlending", "false"},
694 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
695 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
696 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
697 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
698};
699const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
700 {"MlUrlSearchBlending_StableSearchBlending", "false"},
701 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
702};
703const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
704 {"MlUrlSearchBlending_StableSearchBlending", "false"},
705 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
706 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
707 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
708 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
709};
710
711const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
712 {"Stable", kMlUrlSearchBlendingStable,
713 std::size(kMlUrlSearchBlendingStable), nullptr},
714 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
715 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
716 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
717 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
718 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
719 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
720};
721
Khalid Peer4501c1f2024-06-27 16:12:04722const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = {
723 {"Small model", nullptr, 0, "3379590"},
724 {"Full model", nullptr, 0, "3380197"},
725};
726
Benjamin Williams0594caf2024-07-09 17:51:38727const FeatureEntry::FeatureParam kSafetyCheckNotificationsVerbose[] = {
728 {kSafetyCheckNotificationsExperimentType, "0"}};
729const FeatureEntry::FeatureParam kSafetyCheckNotificationsSuccinct[] = {
730 {kSafetyCheckNotificationsExperimentType, "1"}};
731
732const FeatureEntry::FeatureVariation kSafetyCheckNotificationsVariations[] = {
733 {"Display multiple notifications at once", kSafetyCheckNotificationsVerbose,
734 std::size(kSafetyCheckNotificationsVerbose), nullptr},
735 {"Display one notification at a time", kSafetyCheckNotificationsSuccinct,
736 std::size(kSafetyCheckNotificationsSuccinct), nullptr}};
737
Elmehdi Rahmaouif5b76462024-06-24 10:44:46738const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = {
739 {kSaveToPhotosContextMenuImprovementParam, "true"},
740 {kSaveToPhotosTitleImprovementParam, "false"},
741 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
742};
743const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = {
744 {kSaveToPhotosContextMenuImprovementParam, "false"},
745 {kSaveToPhotosTitleImprovementParam, "true"},
746 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
747};
748const FeatureEntry::FeatureParam
749 kSaveToPhotosAccountDefaultChoiceImprovement[] = {
750 {kSaveToPhotosContextMenuImprovementParam, "false"},
751 {kSaveToPhotosTitleImprovementParam, "false"},
752 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"},
753};
754
755const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = {
756 {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement,
757 std::size(kSaveToPhotosContextMenuImprovement), nullptr},
758 {"With Title improvement Only", kSaveToPhotosTitleImprovement,
759 std::size(kSaveToPhotosTitleImprovement), nullptr},
760 {"With Account Default choice improvement Only",
761 kSaveToPhotosAccountDefaultChoiceImprovement,
762 std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr},
763};
764
Stephen McGruer8fe98b62024-07-16 13:10:13765// LINT.IfChange(AutofillUploadCardRequestTimeouts)
766const FeatureEntry::FeatureParam
767 kAutofillUploadCardRequestTimeout_6Point5Seconds[] = {
768 {"autofill_upload_card_request_timeout_milliseconds", "6500"}};
769const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_7Seconds[] =
770 {{"autofill_upload_card_request_timeout_milliseconds", "7000"}};
771const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_9Seconds[] =
772 {{"autofill_upload_card_request_timeout_milliseconds", "9000"}};
773const FeatureEntry::FeatureVariation
774 kAutofillUploadCardRequestTimeoutOptions[] = {
775 {"6.5 seconds", kAutofillUploadCardRequestTimeout_6Point5Seconds,
776 std::size(kAutofillUploadCardRequestTimeout_6Point5Seconds), nullptr},
777 {"7 seconds", kAutofillUploadCardRequestTimeout_7Seconds,
778 std::size(kAutofillUploadCardRequestTimeout_7Seconds), nullptr},
779 {"9 seconds", kAutofillUploadCardRequestTimeout_9Seconds,
780 std::size(kAutofillUploadCardRequestTimeout_9Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03781// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillUploadCardRequestTimeouts)
Stephen McGruer8fe98b62024-07-16 13:10:13782
Stephen McGruer0904cae2024-07-17 19:54:46783// LINT.IfChange(AutofillVcnEnrollRequestTimeouts)
784const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_5Seconds[] = {
785 {"autofill_vcn_enroll_request_timeout_milliseconds", "5000"}};
786const FeatureEntry::FeatureParam
787 kAutofillVcnEnrollRequestTimeout_7Point5Seconds[] = {
788 {"autofill_vcn_enroll_request_timeout_milliseconds", "7500"}};
789const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_10Seconds[] =
790 {{"autofill_vcn_enroll_request_timeout_milliseconds", "10000"}};
791const FeatureEntry::FeatureVariation kAutofillVcnEnrollRequestTimeoutOptions[] =
792 {{"5 seconds", kAutofillVcnEnrollRequestTimeout_5Seconds,
793 std::size(kAutofillVcnEnrollRequestTimeout_5Seconds), nullptr},
794 {"7.5 seconds", kAutofillVcnEnrollRequestTimeout_7Point5Seconds,
795 std::size(kAutofillVcnEnrollRequestTimeout_7Point5Seconds), nullptr},
796 {"10 seconds", kAutofillVcnEnrollRequestTimeout_10Seconds,
797 std::size(kAutofillVcnEnrollRequestTimeout_10Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03798// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillVcnEnrollRequestTimeouts)
Stephen McGruer0904cae2024-07-17 19:54:46799
Nicolas MacBethc738c4e2024-07-19 21:14:19800// Contextual Panel flag variations.
801const FeatureEntry::FeatureParam kContextualPanelRichIPHArms[] = {
802 {"entrypoint-highlight-iph", "true"},
803 {"entrypoint-rich-iph", "true"},
804};
805const FeatureEntry::FeatureParam kContextualPanelSmallIPHArm[] = {
806 {"entrypoint-highlight-iph", "false"},
807 {"entrypoint-rich-iph", "false"},
808};
809const FeatureEntry::FeatureParam
810 kContextualPanelSmallIPHWithBlueHighlightArm[] = {
811 {"entrypoint-highlight-iph", "true"},
812 {"entrypoint-rich-iph", "false"},
813};
814
815const FeatureEntry::FeatureVariation kContextualPanelEntrypointArmVariations[] =
816 {
817 {"- Rich IPH", kContextualPanelRichIPHArms,
818 std::size(kContextualPanelRichIPHArms), nullptr},
819 {"- Small IPH, no blue highlight", kContextualPanelSmallIPHArm,
820 std::size(kContextualPanelSmallIPHArm), nullptr},
821 {"- Small IPH with blue highlight",
822 kContextualPanelSmallIPHWithBlueHighlightArm,
823 std::size(kContextualPanelSmallIPHWithBlueHighlightArm), nullptr},
824};
825
Jood943cbb12025-02-20 17:02:27826const FeatureEntry::FeatureParam kIdentityDiscAccountMenuNoEllipsis[] = {
827 {kDisableAccountMenuEllipsisParam, "true"},
828};
Joodcbce3fe2025-03-12 15:34:57829const FeatureEntry::FeatureParam kIdentityDiscAccountMenuWithSettings[] = {
830 {kShowSettingsInAccountMenuParam, "true"},
831};
Jood943cbb12025-02-20 17:02:27832const FeatureEntry::FeatureVariation kIdentityDiscAccountMenuVariations[] = {
833 {" - without account menu ellipsis", kIdentityDiscAccountMenuNoEllipsis,
834 std::size(kIdentityDiscAccountMenuNoEllipsis), nullptr},
Joodcbce3fe2025-03-12 15:34:57835 {" - with settings button", kIdentityDiscAccountMenuWithSettings,
836 std::size(kIdentityDiscAccountMenuWithSettings), nullptr},
Jood943cbb12025-02-20 17:02:27837};
838
Jood Hajeer3867886d2024-07-29 16:15:35839const FeatureEntry::FeatureParam kIdentityConfirmationSnackbarTestingConfig[] =
Jood562c885f2024-09-05 17:06:55840 {{"IdentityConfirmationMinDisplayInterval1", "0"},
841 {"IdentityConfirmationMinDisplayInterval2", "0"},
842 {"IdentityConfirmationMinDisplayInterval3", "0"}};
Jood Hajeer3867886d2024-07-29 16:15:35843const FeatureEntry::FeatureVariation
844 kIdentityConfirmationSnackbarTestingVariations[] = {
845 {" - for testing", kIdentityConfirmationSnackbarTestingConfig,
846 std::size(kIdentityConfirmationSnackbarTestingConfig), nullptr}};
847
Chris Lu4c688e02024-09-07 00:48:08848const FeatureEntry::FeatureParam kPriceTrackingPromoForceShowArm[] = {
849 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05850 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08851};
852const FeatureEntry::FeatureParam kPriceTrackingPromoForceHideArm[] = {
853 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05854 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08855};
856
Gloria Fang02964a442025-02-06 19:21:18857// ShopCard variants
858const FeatureEntry::FeatureParam kPriceDropForTrackedProductsArm[] = {
859 {"ShopCardVariant", "arm_1"},
860};
861const FeatureEntry::FeatureParam kReviewsArm[] = {
862 {"ShopCardVariant", "arm_2"},
863};
864const FeatureEntry::FeatureParam kPriceDropOnTabArm[] = {
865 {"ShopCardVariant", "arm_3"},
866};
867const FeatureEntry::FeatureParam kPriceTrackableProductOnTabArm[] = {
868 {"ShopCardVariant", "arm_4"},
869};
870
Benjamin Williamsd7f854b2024-10-09 17:12:27871// Address Bar Position
872const FeatureEntry::FeatureParam kTipsAddressBarPositionForceShowArm[] = {
873 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31874 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27875};
876const FeatureEntry::FeatureParam kTipsAddressBarPositionForceHideArm[] = {
877 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31878 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27879};
880
881// Autofill Passwords
882const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceShowArm[] = {
883 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31884 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27885};
886const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceHideArm[] = {
887 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31888 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27889};
890
891// Enhanced Safe Browsing
892const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceShowArm[] = {
893 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31894 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27895};
896const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceHideArm[] = {
897 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31898 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27899};
900
901// Lens Search
902const FeatureEntry::FeatureParam kTipsLensSearchForceShowArm[] = {
903 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31904 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27905};
906const FeatureEntry::FeatureParam kTipsLensSearchForceHideArm[] = {
907 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31908 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27909};
910
911// Lens Shop
912const FeatureEntry::FeatureParam kTipsLensShopForceShowArm[] = {
913 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31914 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27915};
916const FeatureEntry::FeatureParam kTipsLensShopForceHideArm[] = {
917 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31918 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27919};
920
921// Lens Translate
922const FeatureEntry::FeatureParam kTipsLensTranslateForceShowArm[] = {
923 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31924 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27925};
926const FeatureEntry::FeatureParam kTipsLensTranslateForceHideArm[] = {
927 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31928 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27929};
930
931// Save Passwords
932const FeatureEntry::FeatureParam kTipsSavePasswordsForceShowArm[] = {
933 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31934 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27935};
936const FeatureEntry::FeatureParam kTipsSavePasswordsForceHideArm[] = {
937 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31938 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27939};
940
Hira Mahmood2ff5b5cb2024-10-25 19:24:31941const FeatureEntry::FeatureParam kSendTabPromoForceShowArm[] = {
942 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05943 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31944};
945const FeatureEntry::FeatureParam kSendTabPromoForceHideArm[] = {
946 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05947 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31948};
949
Gloria Fang02964a442025-02-06 19:21:18950// ShopCard experiment arms
951const FeatureEntry::FeatureVariation kShopCardOverrideOptions[] = {
952 {"Card 1 Price Drop", kPriceDropForTrackedProductsArm,
953 std::size(kPriceDropForTrackedProductsArm), nullptr},
954 {"Card 2 Reviews", kReviewsArm, std::size(kReviewsArm), nullptr},
955 {"Card 3 Price Drop on Tab Resumption", kPriceDropOnTabArm,
956 std::size(kPriceDropOnTabArm), nullptr},
957 {"Card 4 Price Trackable on Tab Resumption", kPriceTrackableProductOnTabArm,
958 std::size(kPriceTrackableProductOnTabArm), nullptr},
959};
960
Chris Lu4c688e02024-09-07 00:48:08961const FeatureEntry::FeatureVariation kEphemeralCardRankerCardOverrideOptions[] =
962 {
963 {"- Force Show Price Tracking Notification",
964 kPriceTrackingPromoForceShowArm,
965 std::size(kPriceTrackingPromoForceShowArm), nullptr},
966 {"- Force Hide Price Tracking Notification",
967 kPriceTrackingPromoForceHideArm,
968 std::size(kPriceTrackingPromoForceHideArm), nullptr},
Benjamin Williamsd7f854b2024-10-09 17:12:27969
970 // Address Bar Position
971 {"- Force Show Address Bar Position Tip",
972 kTipsAddressBarPositionForceShowArm,
973 std::size(kTipsAddressBarPositionForceShowArm), nullptr},
974 {"- Force Hide Address Bar Position Tip",
975 kTipsAddressBarPositionForceHideArm,
976 std::size(kTipsAddressBarPositionForceHideArm), nullptr},
977
978 // Autofill Passwords
979 {"- Force Show Autofill Passwords Tip",
980 kTipsAutofillPasswordsForceShowArm,
981 std::size(kTipsAutofillPasswordsForceShowArm), nullptr},
982 {"- Force Hide Autofill Passwords Tip",
983 kTipsAutofillPasswordsForceHideArm,
984 std::size(kTipsAutofillPasswordsForceHideArm), nullptr},
985
986 // Enhanced Safe Browsing
987 {"- Force Show Enhanced Safe Browsing Tip",
988 kTipsEnhancedSafeBrowsingForceShowArm,
989 std::size(kTipsEnhancedSafeBrowsingForceShowArm), nullptr},
990 {"- Force Hide Enhanced Safe Browsing Tip",
991 kTipsEnhancedSafeBrowsingForceHideArm,
992 std::size(kTipsEnhancedSafeBrowsingForceHideArm), nullptr},
993
994 // Lens Search
995 {"- Force Show Lens Search Tip", kTipsLensSearchForceShowArm,
996 std::size(kTipsLensSearchForceShowArm), nullptr},
997 {"- Force Hide Lens Search Tip", kTipsLensSearchForceHideArm,
998 std::size(kTipsLensSearchForceHideArm), nullptr},
999
1000 // Lens Shop
1001 {"- Force Show Lens Shop Tip", kTipsLensShopForceShowArm,
1002 std::size(kTipsLensShopForceShowArm), nullptr},
1003 {"- Force Hide Lens Shop Tip", kTipsLensShopForceHideArm,
1004 std::size(kTipsLensShopForceHideArm), nullptr},
1005
1006 // Lens Translate
1007 {"- Force Show Lens Translate Tip", kTipsLensTranslateForceShowArm,
1008 std::size(kTipsLensTranslateForceShowArm), nullptr},
1009 {"- Force Hide Lens Translate Tip", kTipsLensTranslateForceHideArm,
1010 std::size(kTipsLensTranslateForceHideArm), nullptr},
1011
1012 // Save Passwords
1013 {"- Force Show Save Passwords Tip", kTipsSavePasswordsForceShowArm,
1014 std::size(kTipsSavePasswordsForceShowArm), nullptr},
1015 {"- Force Hide Save Passwords Tip", kTipsSavePasswordsForceHideArm,
1016 std::size(kTipsSavePasswordsForceHideArm), nullptr},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311017
1018 // Send Tab Promo.
1019 {"- Force Show Send Tab Promo", kSendTabPromoForceShowArm,
1020 std::size(kSendTabPromoForceShowArm), nullptr},
1021 {"- Force Hide Send Tab Promo", kSendTabPromoForceHideArm,
1022 std::size(kSendTabPromoForceHideArm), nullptr},
Chris Lu4c688e02024-09-07 00:48:081023};
1024
Hira Mahmood00c17e52024-10-09 14:30:481025const FeatureEntry::FeatureParam
1026 kSendTabIOSPushNotificationsWithMagicStackCard[] = {
1027 {send_tab_to_self::kSendTabIOSPushNotificationsWithMagicStackCardParam,
1028 "true"}};
Hira Mahmood3db58ac2024-11-06 18:39:031029const FeatureEntry::FeatureParam kSendTabIOSPushNotificationsWithURLImage[] = {
1030 {send_tab_to_self::kSendTabIOSPushNotificationsURLImageParam, "true"}};
Benjamin Williams3dcd13102025-01-15 18:01:141031const FeatureEntry::FeatureParam
1032 kSendTabIOSPushNotificationsWithTabReminders[] = {
1033 {send_tab_to_self::kSendTabIOSPushNotificationsWithTabRemindersParam,
1034 "true"}};
1035
Hira Mahmood00c17e52024-10-09 14:30:481036const FeatureEntry::FeatureVariation kSendTabIOSPushNotificationsVariations[] =
1037 {
1038 {"With Magic Stack Card",
1039 kSendTabIOSPushNotificationsWithMagicStackCard,
1040 std::size(kSendTabIOSPushNotificationsWithMagicStackCard), nullptr},
Hira Mahmood3db58ac2024-11-06 18:39:031041 {"With URL Image", kSendTabIOSPushNotificationsWithURLImage,
1042 std::size(kSendTabIOSPushNotificationsWithURLImage), nullptr},
Benjamin Williams3dcd13102025-01-15 18:01:141043 {"With Tab Reminders", kSendTabIOSPushNotificationsWithTabReminders,
1044 std::size(kSendTabIOSPushNotificationsWithTabReminders), nullptr},
Hira Mahmood00c17e52024-10-09 14:30:481045};
1046
Briana McClurec2b62f92024-10-29 15:35:061047const FeatureEntry::FeatureParam kSegmentedDefaultBrowserStatic[] = {
1048 {kSegmentedDefaultBrowserExperimentType, "0"}};
1049const FeatureEntry::FeatureParam kSegmentedDefaultBrowserAnimated[] = {
1050 {kSegmentedDefaultBrowserExperimentType, "1"}};
1051
1052const FeatureEntry::FeatureVariation kSegmentedDefaultBrowserPromoVariations[] =
1053 {{" - Static Default Browser Promo", kSegmentedDefaultBrowserStatic,
1054 std::size(kSegmentedDefaultBrowserStatic), nullptr},
1055 {" - Animated Default Browser Promo", kSegmentedDefaultBrowserAnimated,
1056 std::size(kSegmentedDefaultBrowserAnimated), nullptr}};
1057
Rubin Deliallisi1d0b3ba2024-11-04 14:33:041058// Soft Lock
1059const FeatureEntry::FeatureParam kIOSSoftLockNoDelay[] = {
1060 {kIOSSoftLockBackgroundThresholdParam, "0m"},
1061};
1062
1063const FeatureEntry::FeatureVariation kIOSSoftLockVariations[] = {
1064 {" - No delay", kIOSSoftLockNoDelay, std::size(kIOSSoftLockNoDelay),
1065 nullptr}};
1066
Ameur Hosni3dc0ce1c2024-11-05 10:34:551067// Ipad ZPS limit.
1068const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total0Trends[] = {
1069 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "0"},
1070 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1071};
1072
1073const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total5Trends[] = {
1074 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "5"},
1075 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1076};
1077
1078constexpr FeatureEntry::FeatureVariation kIpadZpsLimitVariants[] = {
1079 {"20 total zps, 0 Trends on NTP", kIpadZPSOmniboxWith20Total0Trends,
1080 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1081 {"20 total zps, 5 Trends on NTP", kIpadZPSOmniboxWith20Total5Trends,
1082 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1083};
1084
Hira Mahmood431c8ab2024-11-05 17:16:291085const FeatureEntry::FeatureParam
1086 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm[] = {
1087 {kIOSStartTimeStartupRemediationsSaveNTPWebState, "true"},
1088};
1089const FeatureEntry::FeatureVariation
1090 kIOSStartTimeStartupRemediationsVariations[] = {
1091 {" - Save NTP Web State",
1092 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm,
1093 std::size(kIOSStartTimeStartupRemediationsSaveNTPWebStateArm),
1094 nullptr}};
1095
vincb7867dc042024-11-06 14:25:051096constexpr flags_ui::FeatureEntry::FeatureParam
1097 kAutofillThrottleDocFormScanShortPeriodParam[] = {{"period-ms", "250"}};
1098constexpr flags_ui::FeatureEntry::FeatureParam
1099 kAutofillThrottleDocFormScanMediumPeriodParam[] = {{"period-ms", "500"}};
1100constexpr flags_ui::FeatureEntry::FeatureParam
1101 kAutofillThrottleDocFormScanLongPeriodParam[] = {{"period-ms", "1000"}};
1102constexpr flags_ui::FeatureEntry::FeatureVariation
1103 kAutofillThrottleDocFormScanVariations[] = {
1104 {"Short period", kAutofillThrottleDocFormScanShortPeriodParam,
1105 std::size(kAutofillThrottleDocFormScanShortPeriodParam), nullptr},
1106 {"Medium period", kAutofillThrottleDocFormScanMediumPeriodParam,
1107 std::size(kAutofillThrottleDocFormScanMediumPeriodParam), nullptr},
1108 {"Long period", kAutofillThrottleDocFormScanLongPeriodParam,
1109 std::size(kAutofillThrottleDocFormScanLongPeriodParam), nullptr}};
1110
vincb2bf7f5c2024-11-06 17:18:091111constexpr flags_ui::FeatureEntry::FeatureParam
1112 kAutofillThrottleFilteredDocFormScanShortPeriodParam[] = {
1113 {"period-ms", "100"}};
1114constexpr flags_ui::FeatureEntry::FeatureParam
1115 kAutofillThrottleFilteredDocFormScanMediumPeriodParam[] = {
1116 {"period-ms", "250"}};
1117constexpr flags_ui::FeatureEntry::FeatureParam
1118 kAutofillThrottleFilteredDocFormScanLongPeriodParam[] = {
1119 {"period-ms", "500"}};
1120constexpr flags_ui::FeatureEntry::FeatureVariation
1121 kAutofillThrottleFilteredDocFormScanVariations[] = {
1122 {"Short period", kAutofillThrottleFilteredDocFormScanShortPeriodParam,
1123 std::size(kAutofillThrottleFilteredDocFormScanShortPeriodParam),
1124 nullptr},
1125 {"Medium period", kAutofillThrottleFilteredDocFormScanMediumPeriodParam,
1126 std::size(kAutofillThrottleFilteredDocFormScanMediumPeriodParam),
1127 nullptr},
1128 {"Long period", kAutofillThrottleFilteredDocFormScanLongPeriodParam,
1129 std::size(kAutofillThrottleFilteredDocFormScanLongPeriodParam),
1130 nullptr}};
1131
ginnnnnnny963c7fc2024-11-06 22:44:501132const FeatureEntry::FeatureParam kNewFeedPositioningArm2[] = {
1133 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1134 {kNewFeedPositioningCombinedMVTForMidEngaged, "false"},
1135 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501136};
1137
1138const FeatureEntry::FeatureParam kNewFeedPositioningArm3[] = {
1139 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1140 {kNewFeedPositioningCombinedMVTForMidEngaged, "true"},
1141 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501142};
1143
1144const FeatureEntry::FeatureVariation kNewFeedPositioningVariations[] = {
ginnnnnnnyd8c7b652024-12-19 19:11:471145 {"- update for high feed engagement", kNewFeedPositioningArm2,
ginnnnnnny963c7fc2024-11-06 22:44:501146 std::size(kNewFeedPositioningArm2), nullptr},
ginnnnnnnyd8c7b652024-12-19 19:11:471147 {"- update for high and mid feed engagement", kNewFeedPositioningArm3,
ginnnnnnny963c7fc2024-11-06 22:44:501148 std::size(kNewFeedPositioningArm3), nullptr},
ginnnnnnny963c7fc2024-11-06 22:44:501149};
1150
Hira Mahmoodf8533dc2024-11-12 16:24:251151const FeatureEntry::FeatureParam
1152 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm[] = {
1153 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "true"},
1154 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "false"}};
1155const FeatureEntry::FeatureParam
1156 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm[] = {
1157 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "true"},
1158 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "false"}};
1159const FeatureEntry::FeatureVariation
1160 kIOSStartTimeBrowserBackgroundRemediationsVariations[] = {
1161 {" - Avoid NTP Cleanup",
1162 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm,
1163 std::size(kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm),
1164 nullptr},
1165 {" - Update Feed Refresh",
1166 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm,
1167 std::size(
1168 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm),
1169 nullptr}};
1170
Hira Mahmood664449872024-11-18 23:55:221171const FeatureEntry::FeatureParam kSetUpListInFirstRunArm1[] = {
1172 {set_up_list::kSetUpListInFirstRunParam, "1"}};
1173const FeatureEntry::FeatureParam kSetUpListInFirstRunArm2[] = {
1174 {set_up_list::kSetUpListInFirstRunParam, "2"}};
1175const FeatureEntry::FeatureParam kSetUpListInFirstRunArm3[] = {
1176 {set_up_list::kSetUpListInFirstRunParam, "3"}};
1177
1178const FeatureEntry::FeatureVariation kSetUpListInFirstRunVariations[] = {
1179 {" - Variation 1", kSetUpListInFirstRunArm1,
1180 std::size(kSetUpListInFirstRunArm1), nullptr},
1181 {" - Variation 2", kSetUpListInFirstRunArm2,
1182 std::size(kSetUpListInFirstRunArm2), nullptr},
1183 {" - Variation 3", kSetUpListInFirstRunArm3,
1184 std::size(kSetUpListInFirstRunArm3), nullptr}};
1185
Hira Mahmood7577c9b672024-12-12 20:29:121186const FeatureEntry::FeatureParam kSetUpListDuration3Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531187 {set_up_list::kSetUpListDurationParam, "2"}};
Hira Mahmood7577c9b672024-12-12 20:29:121188const FeatureEntry::FeatureParam kSetUpListDuration5Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531189 {set_up_list::kSetUpListDurationParam, "4"}};
Hira Mahmood7577c9b672024-12-12 20:29:121190const FeatureEntry::FeatureParam kSetUpListDuration7Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531191 {set_up_list::kSetUpListDurationParam, "6"}};
Hira Mahmood7577c9b672024-12-12 20:29:121192
1193const FeatureEntry::FeatureVariation kSetUpListDurationVariations[] = {
1194 {" - 3 Days", kSetUpListDuration3Days, std::size(kSetUpListDuration3Days),
1195 nullptr},
1196 {" - 5 Days", kSetUpListDuration5Days, std::size(kSetUpListDuration5Days),
1197 nullptr},
1198 {" - 7 Days", kSetUpListDuration7Days, std::size(kSetUpListDuration7Days),
1199 nullptr}};
1200
Hira Mahmoodf6906a82025-01-02 17:55:091201const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm1[] = {
1202 {first_run::kUpdatedFirstRunSequenceParam, "1"}};
1203const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm2[] = {
1204 {first_run::kUpdatedFirstRunSequenceParam, "2"}};
1205const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm3[] = {
1206 {first_run::kUpdatedFirstRunSequenceParam, "3"}};
1207
1208const FeatureEntry::FeatureVariation kUpdatedFirstRunSequenceVariations[] = {
1209 {" - Default browser promo first", kUpdatedFirstRunSequenceArm1,
1210 std::size(kUpdatedFirstRunSequenceArm1), nullptr},
1211 {" - Remove sign in & sync conditionally", kUpdatedFirstRunSequenceArm2,
1212 std::size(kUpdatedFirstRunSequenceArm2), nullptr},
1213 {" - DB promo first and remove sign in & sync",
1214 kUpdatedFirstRunSequenceArm3, std::size(kUpdatedFirstRunSequenceArm3),
1215 nullptr}};
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481216
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421217const FeatureEntry::FeatureParam
1218 kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial[] = {
1219 {kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitialParam,
1220 "true"},
1221};
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481222
1223const FeatureEntry::FeatureParam kYoutubeIncognitoTargetAllowListed[] = {
1224 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsAllowlisted},
1225};
1226const FeatureEntry::FeatureParam kYoutubeIncognitoTargetFirstParty[] = {
1227 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsFirstParty},
1228};
1229const FeatureEntry::FeatureParam kYoutubeIncognitoTargetAll[] = {
1230 {kYoutubeIncognitoTargetApps, kYoutubeIncognitoTargetAppsAll},
1231};
1232
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421233const FeatureEntry::FeatureVariation kYoutubeIncognitoVariations[] = {
1234 {"Error handling without Incognito Interstitial",
1235 kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial,
1236 std::size(kYoutubeIncognitoErrorHandlingWithoutIncognitoInterstitial),
1237 nullptr},
Elmehdi Rahmaoui2fc19782025-01-28 15:36:481238 {"Enable for listed apps", kYoutubeIncognitoTargetAllowListed,
1239 std::size(kYoutubeIncognitoTargetAllowListed), nullptr},
1240 {"Enable for first party apps", kYoutubeIncognitoTargetFirstParty,
1241 std::size(kYoutubeIncognitoTargetFirstParty), nullptr},
1242 {"Enable for all apps", kYoutubeIncognitoTargetAll,
1243 std::size(kYoutubeIncognitoTargetAll), nullptr},
Elmehdi Rahmaoui543d35f2025-01-16 10:09:421244};
1245
“Prasanaa”96e15992025-01-30 15:44:351246const FeatureEntry::FeatureParam kSlowFullscreenTransitionSpeed[] = {
1247 {kFullscreenTransitionSpeedParam, "0"}};
1248const FeatureEntry::FeatureParam kDefaultFullscreenTransitionSpeed[] = {
1249 {kFullscreenTransitionSpeedParam, "1"}};
1250const FeatureEntry::FeatureParam kFastFullscreenTransitionSpeed[] = {
1251 {kFullscreenTransitionSpeedParam, "2"}};
1252const FeatureEntry::FeatureParam kMediumFullscreenTransitionOffset[] = {
1253 {kMediumFullscreenTransitionOffsetParam, "true"}};
1254
1255const FeatureEntry::FeatureVariation kFullscreenTransitionVariations[] = {
1256 {"Slow speed", kSlowFullscreenTransitionSpeed,
1257 std::size(kSlowFullscreenTransitionSpeed), nullptr},
1258 {"Default speed", kDefaultFullscreenTransitionSpeed,
1259 std::size(kDefaultFullscreenTransitionSpeed), nullptr},
1260 {"Fast speed", kFastFullscreenTransitionSpeed,
1261 std::size(kFastFullscreenTransitionSpeed), nullptr},
1262 {"Medium offset", kMediumFullscreenTransitionOffset,
1263 std::size(kMediumFullscreenTransitionOffset), nullptr}};
1264
ginnnnnnnyccce0952025-02-03 22:44:361265const FeatureEntry::FeatureParam
ginnnnnnny0e892172025-02-04 21:45:171266 kDeprecateFeedHeaderVariationRemoveFeedLabel[] = {
1267 {kDeprecateFeedHeaderParameterRemoveLabel, "true"}};
1268const FeatureEntry::FeatureParam
ginnnnnnnya0c62d82025-03-07 04:22:111269 kDeprecateFeedHeaderVariationAbovePlusMoreSpacing[] = {
ginnnnnnny0e892172025-02-04 21:45:171270 {kDeprecateFeedHeaderParameterRemoveLabel, "true"},
ginnnnnnnyf398da822025-03-12 10:15:551271 {kDeprecateFeedHeaderParameterTopPadding, "28.5"},
1272 {kDeprecateFeedHeaderParameterSearchFieldTopMargin, "30"},
1273 {kDeprecateFeedHeaderParameterHeaderBottomPadding, "3"},
1274 {kDeprecateFeedHeaderParameterSpaceBetweenModules, "16"}};
ginnnnnnny0e892172025-02-04 21:45:171275const FeatureEntry::FeatureParam
1276 kDeprecateFeedHeaderVariationAbovePlusEnlargeElements[] = {
1277 {kDeprecateFeedHeaderParameterRemoveLabel, "true"},
ginnnnnnnyf398da822025-03-12 10:15:551278 {kDeprecateFeedHeaderParameterTopPadding, "21.5"},
1279 {kDeprecateFeedHeaderParameterSearchFieldTopMargin, "32"},
ginnnnnnnyccce0952025-02-03 22:44:361280 {kDeprecateFeedHeaderParameterEnlargeLogoAndFakebox, "true"}};
1281
1282const FeatureEntry::FeatureVariation kDeprecateFeedHeaderVariations[] = {
ginnnnnnny0e892172025-02-04 21:45:171283 {" (remove feed label)", kDeprecateFeedHeaderVariationRemoveFeedLabel,
1284 std::size(kDeprecateFeedHeaderVariationRemoveFeedLabel), nullptr},
ginnnnnnnyf398da822025-03-12 10:15:551285 {" (also add more spacing)",
ginnnnnnnya0c62d82025-03-07 04:22:111286 kDeprecateFeedHeaderVariationAbovePlusMoreSpacing,
1287 std::size(kDeprecateFeedHeaderVariationAbovePlusMoreSpacing), nullptr},
ginnnnnnny0e892172025-02-04 21:45:171288 {" (and enlarge doodle too)",
1289 kDeprecateFeedHeaderVariationAbovePlusEnlargeElements,
1290 std::size(kDeprecateFeedHeaderVariationAbovePlusEnlargeElements),
ginnnnnnnyccce0952025-02-03 22:44:361291 nullptr}};
1292
Briana McClure21685c42025-02-06 15:18:221293const FeatureEntry::FeatureParam kAnimatedDBPInFREWithActionButtons[] = {
1294 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "0"}};
1295const FeatureEntry::FeatureParam kAnimatedDBPInFREWithShowMeHow[] = {
1296 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "1"}};
1297const FeatureEntry::FeatureParam kAnimatedDBPInFREWithInstructions[] = {
1298 {first_run::kAnimatedDefaultBrowserPromoInFREExperimentType, "2"}};
1299
1300const FeatureEntry::FeatureVariation
1301 kAnimatedDefaultBrowserPromoInFREVariations[] = {
1302 {" - with Action Buttons", kAnimatedDBPInFREWithActionButtons,
1303 std::size(kAnimatedDBPInFREWithActionButtons), nullptr},
1304 {" - with Show Me How", kAnimatedDBPInFREWithShowMeHow,
1305 std::size(kAnimatedDBPInFREWithShowMeHow), nullptr},
1306 {" - with Instructions", kAnimatedDBPInFREWithInstructions,
1307 std::size(kAnimatedDBPInFREWithInstructions), nullptr}};
1308
Hira Mahmooddcc63d7f2025-02-19 17:28:571309const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm1[] = {
1310 {first_run::kBestFeaturesScreenInFirstRunParam, "1"}};
1311const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm2[] = {
1312 {first_run::kBestFeaturesScreenInFirstRunParam, "2"}};
1313const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm3[] = {
1314 {first_run::kBestFeaturesScreenInFirstRunParam, "3"}};
1315const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm4[] = {
1316 {first_run::kBestFeaturesScreenInFirstRunParam, "4"}};
1317const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm5[] = {
1318 {first_run::kBestFeaturesScreenInFirstRunParam, "5"}};
1319const FeatureEntry::FeatureParam kBestFeaturesScreenInFirstRunArm6[] = {
1320 {first_run::kBestFeaturesScreenInFirstRunParam, "6"}};
1321
1322const FeatureEntry::FeatureVariation kBestFeaturesScreenInFirstRunVariations[] =
1323 {{" - Variant A: General screen, after DB promo",
1324 kUpdatedFirstRunSequenceArm1,
1325 std::size(kBestFeaturesScreenInFirstRunArm1), nullptr},
1326 {" - Variant B: General screen, before DB promo",
1327 kBestFeaturesScreenInFirstRunArm2,
1328 std::size(kBestFeaturesScreenInFirstRunArm2), nullptr},
1329 {" - Variant C: General screen with passwords item",
1330 kBestFeaturesScreenInFirstRunArm3,
1331 std::size(kBestFeaturesScreenInFirstRunArm3), nullptr},
1332 {" - Variant D: Shopping users screen, variant C as fallback",
1333 kBestFeaturesScreenInFirstRunArm4,
1334 std::size(kBestFeaturesScreenInFirstRunArm4), nullptr},
1335 {" - Variant E: Show screen to signed-in users only",
1336 kBestFeaturesScreenInFirstRunArm5,
1337 std::size(kBestFeaturesScreenInFirstRunArm5), nullptr},
1338 {" - Variant F: Show address bar promo", kBestFeaturesScreenInFirstRunArm6,
1339 std::size(kBestFeaturesScreenInFirstRunArm6), nullptr}};
1340
Olivier ROBIN4d7cdb82025-03-11 09:33:471341const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionCrossValidate[] = {
1342 {kIOSOneTapMiniMapRestrictionCrossValidateParamName, "true"}};
1343const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionThreshold999[] = {
1344 {kIOSOneTapMiniMapRestrictionThreshholdParamName, "0.999"}};
1345const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionMinLength20[] = {
1346 {kIOSOneTapMiniMapRestrictionMinCharsParamName, "20"}};
1347const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionMaxSections6[] = {
1348 {kIOSOneTapMiniMapRestrictionMaxSectionsParamName, "6"}};
1349const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionLongWords4[] = {
1350 {kIOSOneTapMiniMapRestrictionLongestWordMinCharsParamName, "4"}};
1351const FeatureEntry::FeatureParam kIOSOneTapMiniMapRestrictionMinAlphaNum60[] = {
1352 {kIOSOneTapMiniMapRestrictionMinAlphanumProportionParamName, "0.6"}};
1353
1354const FeatureEntry::FeatureVariation kIOSOneTapMiniMapRestrictionsVariations[] =
1355 {{"Revalidate with NSDataDetector",
1356 kIOSOneTapMiniMapRestrictionCrossValidate,
1357 std::size(kIOSOneTapMiniMapRestrictionCrossValidate), nullptr},
1358 {"Confidence Level (0.999)", kIOSOneTapMiniMapRestrictionThreshold999,
1359 std::size(kIOSOneTapMiniMapRestrictionThreshold999), nullptr},
1360 {"Minimum address length (20 chars)",
1361 kIOSOneTapMiniMapRestrictionMinLength20,
1362 std::size(kIOSOneTapMiniMapRestrictionMinLength20), nullptr},
1363 {"Maximum sections (6)", kIOSOneTapMiniMapRestrictionMaxSections6,
1364 std::size(kIOSOneTapMiniMapRestrictionMaxSections6), nullptr},
1365 {"Longest word length (4)", kIOSOneTapMiniMapRestrictionLongWords4,
1366 std::size(kIOSOneTapMiniMapRestrictionLongWords4), nullptr},
1367 {"Proportion of alnum chars (60%)",
1368 kIOSOneTapMiniMapRestrictionMinAlphaNum60,
1369 std::size(kIOSOneTapMiniMapRestrictionMinAlphaNum60), nullptr}};
1370
Hira Mahmood4535b072025-03-14 16:45:591371const FeatureEntry::FeatureParam kFeedSwipeInProductHelpStaticInFirstRun[] = {
1372 {kFeedSwipeInProductHelpArmParam, "1"}};
1373const FeatureEntry::FeatureParam kFeedSwipeInProductHelpStaticInSecondRun[] = {
1374 {kFeedSwipeInProductHelpArmParam, "2"}};
1375const FeatureEntry::FeatureParam kFeedSwipeInProductHelpAnimated[] = {
1376 {kFeedSwipeInProductHelpArmParam, "3"}};
1377
1378const FeatureEntry::FeatureVariation kFeedSwipeInProductHelpVariations[] = {
1379 {" - Static IPH after the FRE", kFeedSwipeInProductHelpStaticInFirstRun,
1380 std::size(kFeedSwipeInProductHelpStaticInFirstRun), nullptr},
1381 {"- Static IPH after the second run",
1382 kFeedSwipeInProductHelpStaticInSecondRun,
1383 std::size(kFeedSwipeInProductHelpStaticInSecondRun), nullptr},
1384 {"- Animated IPH", kFeedSwipeInProductHelpAnimated,
1385 std::size(kFeedSwipeInProductHelpAnimated), nullptr}};
1386
Nohemi Fernandez11751ec2025-03-26 18:24:371387constexpr flags_ui::FeatureEntry::FeatureParam
1388 kReaderModeDistillerPageLoadHeuristicAlwaysEnabledParam[] = {
Nohemi Fernandez96ea08da2025-03-28 10:51:041389 {kReaderModeDistillerPageLoadProbabilityName, "1"},
Nohemi Fernandez11751ec2025-03-26 18:24:371390 {kReaderModeDistillerPageLoadDelayDurationStringName, "0"}};
Nohemi Fernandez96ea08da2025-03-28 10:51:041391const FeatureEntry::FeatureVariation kReaderModeDistillerHeuristicOptions[] = {
1392 {"no sampling with no delay",
1393 kReaderModeDistillerPageLoadHeuristicAlwaysEnabledParam,
1394 std::size(kReaderModeDistillerPageLoadHeuristicAlwaysEnabledParam),
1395 nullptr},
Nohemi Fernandez11751ec2025-03-26 18:24:371396};
1397
“Prasanaa”1dcc85bf2025-03-28 16:32:141398const FeatureEntry::FeatureParam kBeforeSearchExplainGeminiEditMenu[] = {
1399 {kExplainGeminiEditMenuParams, "1"}};
1400const FeatureEntry::FeatureParam kAfterSearchExplainGeminiEditMenu[] = {
1401 {kExplainGeminiEditMenuParams, "2"}};
1402
1403const FeatureEntry::FeatureVariation kExplainGeminiEditMenuVariations[] = {
1404 {"Before Search Gemini Edit Menu", kBeforeSearchExplainGeminiEditMenu,
1405 std::size(kBeforeSearchExplainGeminiEditMenu), nullptr},
1406 {"After Search Gemini Edit Menu", kAfterSearchExplainGeminiEditMenu,
1407 std::size(kAfterSearchExplainGeminiEditMenu), nullptr}};
1408
Cooper Knaak1e026562017-07-26 05:22:281409// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:211410// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:281411// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
1412// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:211413// macro for this type supplying the command line to the macro.
1414// . MULTI_VALUE: a list of choices, the first of which should correspond to a
1415// deactivated state for this lab (i.e. no command line option). To specify
1416// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
1417// array of choices.
Cooper Knaak1e026562017-07-26 05:22:281418// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
1419// either enabled, disabled, or uses the default value of the associated
1420// base::Feature instance. To specify this type of entry use the macro
1421// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
1422// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
1423// base::Feature instance. Choices corresponding to the default state, a
1424// universally enabled state, and a universally disabled state are
1425// automatically included. To specify this type of entry use the macro
1426// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
1427// the array of choices.
1428//
sdefresne14900ee2015-11-27 14:43:211429// See the documentation of FeatureEntry for details on the fields.
1430//
1431// When adding a new choice, add it to the end of the list.
1432const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:281433 {"in-product-help-demo-mode-choice",
1434 flag_descriptions::kInProductHelpDemoModeName,
1435 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
1436 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:231437 feature_engagement::kIPHDemoMode,
1438 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:091439 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:221440 {"enable-autofill-credit-card-upload",
1441 flag_descriptions::kAutofillCreditCardUploadName,
1442 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:241443 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:231444 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
1445 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
1446 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:511447 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:231448 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
1449 {"wallet-service-use-sandbox",
1450 flag_descriptions::kWalletServiceUseSandboxName,
1451 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
1452 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
1453 autofill::switches::kWalletServiceUseSandbox,
1454 "1",
1455 autofill::switches::kWalletServiceUseSandbox,
1456 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:591457 {"show-autofill-type-predictions",
1458 flag_descriptions::kShowAutofillTypePredictionsName,
1459 flag_descriptions::kShowAutofillTypePredictionsDescription,
1460 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:501461 FEATURE_VALUE_TYPE(
1462 autofill::features::test::kAutofillShowTypePredictions)},
Pier-Alexandre Bouchard4b20c08f2025-03-21 17:04:441463 {"sign-in-button-no-avatar", flag_descriptions::kSignInButtonNoAvatarName,
1464 flag_descriptions::kSignInButtonNoAvatarDescription, flags_ui::kOsIos,
1465 FEATURE_VALUE_TYPE(kSignInButtonNoAvatar)},
Pier-Alexandre Bouchard3b017bd62025-03-27 17:38:281466 {"ntp-background-customization",
1467 flag_descriptions::kNTPBackgroundCustomizationName,
1468 flag_descriptions::kNTPBackgroundCustomizationDescription,
1469 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNTPBackgroundCustomization)},
Benjamin Williamsdf18e7e2022-10-03 18:46:051470 {"fullscreen-promos-manager-skip-internal-limits",
1471 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
1472 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
1473 flags_ui::kOsIos,
1474 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:141475 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:531476 flag_descriptions::kFullscreenSmoothScrollingName,
1477 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:191478 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:061479 {"webpage-default-zoom-from-dynamic-type",
1480 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
1481 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
1482 flags_ui::kOsIos,
1483 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:561484 {"webpage-alternative-text-zoom",
1485 flag_descriptions::kWebPageAlternativeTextZoomName,
1486 flag_descriptions::kWebPageAlternativeTextZoomDescription,
1487 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:341488 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
1489 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
1490 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Ameur Hosni3dc0ce1c2024-11-05 10:34:551491 {"omnibox-ipad-zps-limit",
1492 flag_descriptions::kIpadZpsSuggestionMatchesLimitName,
1493 flag_descriptions::kIpadZpsSuggestionMatchesLimitDescription,
1494 flags_ui::kOsIos,
1495 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kIpadZeroSuggestMatches,
1496 kIpadZpsLimitVariants,
1497 "OmniboxBundledExperimentV1")},
Stepan Khapugincc4e9842019-01-23 13:38:131498 {"omnibox-ui-max-autocomplete-matches",
1499 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
1500 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
1501 flags_ui::kOsIos,
1502 FEATURE_WITH_PARAMS_VALUE_TYPE(
1503 omnibox::kUIExperimentMaxAutocompleteMatches,
1504 kOmniboxUIMaxAutocompleteMatchesVariations,
1505 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:351506 {"omnibox-local-history-zero-suggest-beyond-ntp",
1507 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
1508 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
1509 flags_ui::kOsIos,
1510 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:541511 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
1512 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
1513 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
1514 kOmniboxMaxZPSMatchesVariations,
1515 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:481516 {"force-startup-signin-promo",
1517 flag_descriptions::kForceStartupSigninPromoName,
1518 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:291519 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:411520 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
1521 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
1522 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:131523#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:451524 {"screen-time-integration-ios",
1525 flag_descriptions::kScreenTimeIntegrationName,
1526 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
1527 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:131528#endif
Xu Li9854c992024-12-19 20:53:081529 {"ios-enable-delete-all-saved-credentials",
1530 flag_descriptions::kIOSEnableDeleteAllSavedCredentialsName,
1531 flag_descriptions::kIOSEnableDeleteAllSavedCredentialsDescription,
1532 flags_ui::kOsIos,
1533 FEATURE_VALUE_TYPE(
1534 password_manager::features::kIOSEnableDeleteAllSavedCredentials)},
Cheick Cisse76ade3d2020-12-16 00:15:111535 {"ios-shared-highlighting-color-change",
1536 flag_descriptions::kIOSSharedHighlightingColorChangeName,
1537 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:071538 flags_ui::kOsIos,
1539 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Scott Yoderc0cd99d2024-01-10 19:54:511540 {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName,
1541 flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos,
Scott Yoderaf2bdf32024-01-30 20:26:151542 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications,
1543 kIOSTipsNotificationsVariations,
1544 "IOSTipsNotifications")},
Scott Yoderf8a821482024-10-28 19:32:551545 {"ios-reactivation-notifications",
1546 flag_descriptions::kIOSReactivationNotificationsName,
1547 flag_descriptions::kIOSReactivationNotificationsDescription,
Scott Yoderef1a0542024-11-04 17:23:071548 flags_ui::kOsIos,
1549 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSReactivationNotifications,
1550 kIOSReactivationNotificationsVariations,
1551 "IOSReactivationNotifications")},
Jérôme Lebele5718112025-03-28 14:51:001552 {"ios-prompt-search-engine-choice-after-device-restore",
1553 flag_descriptions::kIOSPromptSearchEngineChoiceAfterDeviceRestoreName,
1554 flag_descriptions::
1555 kIOSPromptSearchEngineChoiceAfterDeviceRestoreDescription,
1556 flags_ui::kOsIos,
1557 FEATURE_VALUE_TYPE(
1558 switches::kIOSPromptSearchEngineChoiceAfterDeviceRestore)},
Scott Yoder88976342025-03-20 17:49:231559 {"ios-provides-app-notification-settings",
1560 flag_descriptions::kIOSProvidesAppNotificationSettingsName,
1561 flag_descriptions::kIOSProvidesAppNotificationSettingsDescription,
1562 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSProvidesAppNotificationSettings)},
gogerald0ff29e52021-02-03 18:56:191563 {"start-surface", flag_descriptions::kStartSurfaceName,
1564 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:231565 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
1566 kStartSurfaceVariations,
1567 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:341568 {"wait-threshold-seconds-for-capabilities-api",
1569 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1570 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1571 flags_ui::kOsIos,
1572 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061573 {"content-notification-experiment",
1574 flag_descriptions::kContentNotificationExperimentName,
1575 flag_descriptions::kContentNotificationExperimentDescription,
1576 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251577 {"content-notification-provisional-ignore-conditions",
1578 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1579 flag_descriptions::
1580 kContentNotificationProvisionalIgnoreConditionsDescription,
1581 flags_ui::kOsIos,
1582 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241583 {"content-push-notifications",
1584 flag_descriptions::kContentPushNotificationsName,
1585 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521586 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1587 kContentPushNotificationsVariations,
1588 "ContentPushNotifications")},
Radu Nitescuee09a1a2024-12-10 17:11:391589 {"enable-lens-context-menu-unified-experience",
1590 flag_descriptions::kEnableLensContextMenuUnifiedExperienceName,
1591 flag_descriptions::kEnableLensContextMenuUnifiedExperienceDescription,
1592 flags_ui::kOsIos,
1593 FEATURE_VALUE_TYPE(kEnableLensContextMenuUnifiedExperience)},
Jason Hu67cfb0f2022-11-14 20:21:441594 {"enable-lens-in-omnibox-copied-image",
1595 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1596 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1597 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Radu Nitescuab5bf732024-09-18 14:07:401598 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1599 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1600 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Radu Nitescuf95b7d42024-12-04 10:18:011601 {"enable-lens-view-finder-unified-experience",
1602 flag_descriptions::kEnableLensViewFinderUnifiedExperienceName,
1603 flag_descriptions::kEnableLensViewFinderUnifiedExperienceDescription,
1604 flags_ui::kOsIos,
1605 FEATURE_VALUE_TYPE(kEnableLensViewFinderUnifiedExperience)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031606 {"enable-disco-feed-endpoint",
1607 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1608 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1609 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111610 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Tommy Martino7393d762021-10-12 17:59:281611 {"shared-highlighting-amp",
1612 flag_descriptions::kIOSSharedHighlightingAmpName,
1613 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1614 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
Matt Jones2e47b9692024-02-23 21:56:431615 {"track-by-default-mobile",
1616 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1617 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1618 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061619 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1620 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1621 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541622 {"ntp-view-hierarchy-repair",
1623 flag_descriptions::kNTPViewHierarchyRepairName,
1624 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201625 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Cheick Cisse39b6a182024-05-29 15:13:441626 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1627 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1628 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381629 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1630 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591631 flags_ui::kOsIos,
1632 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1633 kPriceInsightsVariations,
1634 "PriceInsightsIos")},
1635 {"price-insights-high-price-ios",
1636 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1637 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1638 flags_ui::kOsIos,
1639 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Raj Tb95d813542022-11-16 21:27:521640 {"enable-download-service-foreground-session",
1641 flag_descriptions::kDownloadServiceForegroundSessionName,
1642 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1643 flags_ui::kOsIos,
1644 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231645 {"enable-tflite-language-detection",
1646 flag_descriptions::kTFLiteLanguageDetectionName,
1647 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1648 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201649 {"optimization-guide-debug-logs",
1650 flag_descriptions::kOptimizationGuideDebugLogsName,
1651 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1652 flags_ui::kOsIos,
1653 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551654 {"optimization-guide-push-notifications",
1655 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1656 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1657 flags_ui::kOsIos,
1658 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
David Jeanad303a92023-07-31 16:58:111659 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1660 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1661 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeanf361ae9d2024-04-09 08:19:471662 {"enable-expkit-text-classifier-date",
1663 flag_descriptions::kEnableExpKitTextClassifierDateName,
1664 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1665 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1666 {"enable-expkit-text-classifier-address",
1667 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1668 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151669 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471670 FEATURE_WITH_PARAMS_VALUE_TYPE(
1671 kEnableExpKitTextClassifierAddress,
1672 kEnableExpKitTextClassifierAddressVariations,
1673 "ExpKitTextClassifierAddress")},
1674 {"enable-expkit-text-classifier-phonenumber",
1675 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1676 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1677 flags_ui::kOsIos,
1678 FEATURE_WITH_PARAMS_VALUE_TYPE(
1679 kEnableExpKitTextClassifierPhoneNumber,
1680 kEnableExpKitTextClassifierPhoneNumberVariations,
1681 "ExpKitTextClassifierPhoneNumber")},
1682 {"enable-expkit-text-classifier-email",
1683 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1684 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1685 flags_ui::kOsIos,
1686 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1687 kEnableExpKitTextClassifierEmailVariations,
1688 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331689 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1690 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461691 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1692 kOneTapForMapsWithVariations,
1693 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251694 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1695 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1696 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301697 {"autofill-enable-ranking-formula-address-profiles",
1698 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1699 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1700 flags_ui::kOsIos,
1701 FEATURE_VALUE_TYPE(
1702 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391703 {"autofill-enable-ranking-formula-credit-cards",
1704 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1705 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1706 flags_ui::kOsIos,
1707 FEATURE_VALUE_TYPE(
1708 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021709 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1710 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1711 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521712 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1713 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261714 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1715 kMagicStackVariations,
1716 flag_descriptions::kMagicStackName)},
Alexis Hetue0b0dc12025-02-06 18:14:471717 {"ios-keyboard-accessory-upgrade-for-ipad",
1718 flag_descriptions::kIOSKeyboardAccessoryUpgradeForIPadName,
1719 flag_descriptions::kIOSKeyboardAccessoryUpgradeForIPadDescription,
1720 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeForIPad)},
Noémie St-Onge9da904ef2024-10-01 14:16:051721 {"ios-keyboard-accessory-upgrade-short-manual-fill-menu",
1722 flag_descriptions::kIOSKeyboardAccessoryUpgradeShortManualFillMenuName,
1723 flag_descriptions::
1724 kIOSKeyboardAccessoryUpgradeShortManualFillMenuDescription,
1725 flags_ui::kOsIos,
1726 FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeShortManualFillMenu)},
Chris Lub0bad572023-08-07 18:13:291727 {"ios-magic-stack-segmentation-ranking",
1728 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1729 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1730 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301731 FEATURE_WITH_PARAMS_VALUE_TYPE(
1732 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1733 kSegmentationPlatformIosModuleRankerVariations,
1734 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321735 {"ios-magic-stack-segmentation-ranking-caching",
1736 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1737 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1738 flags_ui::kOsIos,
1739 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111740 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1741 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1742 flag_descriptions::
1743 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1744 flags_ui::kOsIos,
1745 FEATURE_VALUE_TYPE(
1746 segmentation_platform::features::
1747 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Alexis Hetu5e726602023-12-15 15:18:281748 {"ios-password-bottom-sheet-autofocus",
1749 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1750 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1751 flags_ui::kOsIos,
1752 FEATURE_VALUE_TYPE(
1753 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Charlotte Cloutier18f0a5362024-07-16 13:23:041754 {"ios-proactive-password-generation-bottom-sheet",
1755 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetName,
1756 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetDescription,
1757 flags_ui::kOsIos,
1758 FEATURE_VALUE_TYPE(password_manager::features::
1759 kIOSProactivePasswordGenerationBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241760 {"omnibox-zero-suggest-prefetching",
1761 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1762 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1763 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451764 {"omnibox-zero-suggest-prefetching-on-srp",
1765 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1766 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1767 flags_ui::kOsIos,
1768 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1769 {"omnibox-zero-suggest-prefetching-on-web",
1770 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1771 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1772 flags_ui::kOsIos,
1773 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471774 {"omnibox-zero-suggest-in-memory-caching",
1775 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1776 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1777 flags_ui::kOsIos,
1778 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351779 {"omnibox-on-device-tail-suggestions",
1780 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1781 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1782 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361783 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1784 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1785 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1786 kOmniboxMaxURLMatchesVariations,
1787 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201788 {"omnibox-most-visited-tiles-horizontal-render-group",
1789 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1790 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1791 flags_ui::kOsIos,
1792 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061793 {"metrickit-non-crash-reports",
1794 flag_descriptions::kMetrickitNonCrashReportName,
1795 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1796 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Robbie Gibson1f5a57192024-11-07 23:04:111797 {"default-browser-banner-promo",
1798 flag_descriptions::kDefaultBrowserBannerPromoName,
1799 flag_descriptions::kDefaultBrowserBannerPromoDescription, flags_ui::kOsIos,
Robbie Gibsonae87bc02024-11-13 14:45:101800 FEATURE_VALUE_TYPE(kDefaultBrowserBannerPromo)},
Gayane Petrosyan5960a172023-06-19 15:40:171801 {"default-browser-promo-trigger-criteria-experiment",
1802 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1803 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1804 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211805 FEATURE_VALUE_TYPE(
1806 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyancffeda12024-09-17 17:10:371807 {"blue-dot-on-tools-menu-button",
1808 flag_descriptions::kBlueDotOnToolsMenuButtonName,
1809 flag_descriptions::kBlueDotOnToolsMenuButtonDescription, flags_ui::kOsIos,
1810 FEATURE_VALUE_TYPE(kBlueDotOnToolsMenuButton)},
Ed Chin91e44992022-07-27 13:42:341811#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1812 {"feed-background-refresh-ios",
1813 flag_descriptions::kFeedBackgroundRefreshName,
1814 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1815 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1816 kFeedBackgroundRefreshVariations,
1817 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261818#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Petro Akzhygitov2e2322e2023-04-25 16:26:571819 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1820 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1821 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251822 {"iph-price-notifications-while-browsing",
1823 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1824 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1825 flags_ui::kOsIos,
1826 FEATURE_VALUE_TYPE(
1827 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391828 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1829 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1830 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481831 {"local-pdp-detection",
1832 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1833 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1834 flags_ui::kOsIos,
1835 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Ali Juma57849c42023-02-21 22:53:431836 {"notification-settings-menu-item",
1837 flag_descriptions::kNotificationSettingsMenuItemName,
1838 flag_descriptions::kNotificationSettingsMenuItemDescription,
1839 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
kalettucefb09e402023-02-27 18:35:531840 {"web-feed-feedback-reroute",
1841 flag_descriptions::kWebFeedFeedbackRerouteName,
1842 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1843 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Tina Wangd3f6f192023-04-05 05:22:431844 {"enable-follow-IPH-exp-params",
1845 flag_descriptions::kEnableFollowIPHExpParamsName,
1846 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1847 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251848 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1849 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1850 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Olivier ROBINa229d2132023-03-21 12:44:201851 {"ios-browser-edit-menu-metrics",
1852 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1853 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1854 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551855 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1856 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1857 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1858 kIOSDockingPromoVariations,
1859 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241860 {"omnibox-grouping-framework-non-zps",
1861 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1862 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1863 flags_ui::kOsIos,
1864 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Robbie Gibson0ea280602023-04-12 01:02:391865 {"only-access-clipboard-async",
1866 flag_descriptions::kOnlyAccessClipboardAsyncName,
1867 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1868 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Tina Wangcda2c902023-05-25 17:39:451869 {"enable-signed-out-view-demotion",
1870 flag_descriptions::kEnableSignedOutViewDemotionName,
1871 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1872 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stepan Khapugin72c74292024-06-19 16:48:331873 {"spotlight-never-retain-index",
1874 flag_descriptions::kSpotlightNeverRetainIndexName,
1875 flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos,
1876 FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)},
Benjamin Williams9773edd42023-06-26 20:22:071877 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1878 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1879 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011880 {"tab-resumption", flag_descriptions::kTabResumptionName,
1881 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Olivier ROBIN953cc9a2025-03-17 11:40:461882 FEATURE_VALUE_TYPE(kTabResumption)},
Christian Xu07d600192023-07-24 12:29:521883 {"bottom-omnibox-default-setting",
1884 flag_descriptions::kBottomOmniboxDefaultSettingName,
1885 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1886 flags_ui::kOsIos,
1887 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1888 kBottomOmniboxDefaultSettingVariations,
1889 "BottomOmniboxDefaultSetting")},
Elmehdi Rahmaouif5b76462024-06-24 10:44:461890 {"enable-save-to-photos-improvements",
1891 flag_descriptions::kIOSSaveToPhotosImprovementsName,
1892 flag_descriptions::kIOSSaveToPhotosImprovementsDescription,
1893 flags_ui::kOsIos,
1894 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements,
1895 kSaveToPhotosImprovementsVariations,
1896 "IOSSaveToPhotosImprovements")},
Jérôme Lebelcc9523e2024-10-08 13:34:011897 {"enable-identity-in-auth-error",
1898 flag_descriptions::kEnableIdentityInAuthErrorName,
1899 flag_descriptions::kEnableIdentityInAuthErrorDescription, flags_ui::kOsIos,
1900 FEATURE_VALUE_TYPE(switches::kEnableIdentityInAuthError)},
Mihai Sardarescucca83442024-10-16 12:19:131901 {"enable-asweb-authentication-session",
1902 flag_descriptions::kEnableASWebAuthenticationSessionName,
1903 flag_descriptions::kEnableASWebAuthenticationSessionDescription,
1904 flags_ui::kOsIos,
1905 FEATURE_VALUE_TYPE(switches::kEnableASWebAuthenticationSession)},
Christian Xu90e952f2023-09-13 09:05:281906 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1907 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1908 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Rubin Deliallisi072bc842023-10-19 12:00:411909 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1910 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1911 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Aliona DANGLA5971a8b2023-11-10 11:55:351912 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1913 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1914 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Gauthier Ambard8cca29a2024-04-10 08:27:361915 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1916 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1917 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591918 {"autofill-enable-dynamically-loading-fields-on-input",
1919 flag_descriptions::
1920 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1921 flag_descriptions::
1922 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1923 flags_ui::kOsIos,
1924 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
aliaaborhamy00f89df2023-12-21 14:55:031925 {"share-in-web-context-menu-ios",
1926 flag_descriptions::kShareInWebContextMenuIOSName,
1927 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1928 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551929 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1930 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1931 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461932 {"contextual-panel", flag_descriptions::kContextualPanelName,
1933 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
Nicolas MacBethc738c4e2024-07-19 21:14:191934 FEATURE_WITH_PARAMS_VALUE_TYPE(kContextualPanel,
1935 kContextualPanelEntrypointArmVariations,
1936 "ContextualPanel")},
adamtad0e8cfc2024-01-16 18:43:471937 {"enable-ipad-feed-ghost-cards",
1938 flag_descriptions::kEnableiPadFeedGhostCardsName,
1939 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1940 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Jason Hud445445f2024-02-02 18:28:121941 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1942 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1943 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Alexander Tekleeebe42b92024-02-23 21:27:151944 {"autofill-enable-card-benefits-for-american-express",
1945 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1946 flag_descriptions::
1947 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1948 flags_ui::kOsIos,
1949 FEATURE_VALUE_TYPE(
1950 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
Yishui Liub88a38c2024-02-28 08:46:551951 {"autofill-enable-card-benefits-sync",
1952 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1953 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1954 flags_ui::kOsIos,
1955 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421956 {"linked-services-setting-ios",
1957 flag_descriptions::kLinkedServicesSettingIosName,
1958 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1959 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
hvs7c6cb402024-03-27 02:39:001960 {"autofill-enable-prefetching-risk-data-for-retrieval",
1961 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561962 flag_descriptions::
1963 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001964 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561965 FEATURE_VALUE_TYPE(
1966 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1967 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1968 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1969 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391970 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1971 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1972 FEATURE_VALUE_TYPE(
1973 page_content_annotations::features::kPageContentAnnotations)},
1974 {"page-content-annotations-persist-salient-image-metadata",
1975 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1976 flag_descriptions::
1977 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1978 flags_ui::kOsIos,
1979 FEATURE_VALUE_TYPE(
1980 page_content_annotations::features::
1981 kPageContentAnnotationsPersistSalientImageMetadata)},
1982 {"page-content-annotations-remote-page-metadata",
1983 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1984 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1985 flags_ui::kOsIos,
1986 FEATURE_VALUE_TYPE(
1987 page_content_annotations::features::kRemotePageMetadata)},
1988 {"page-visibility-page-content-annotations",
1989 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1990 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1991 flags_ui::kOsIos,
1992 FEATURE_VALUE_TYPE(page_content_annotations::features::
1993 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121994 {"enhanced-safe-browsing-promo",
1995 flag_descriptions::kEnhancedSafeBrowsingPromoName,
1996 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:021997 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Alexis Hetu37823762025-01-24 15:41:591998 {"cpe-automatic-passkey-upgrade",
1999 flag_descriptions::kCredentialProviderAutomaticPasskeyUpgradeName,
2000 flag_descriptions::kCredentialProviderAutomaticPasskeyUpgradeDescription,
2001 flags_ui::kOsIos,
2002 FEATURE_VALUE_TYPE(kCredentialProviderAutomaticPasskeyUpgrade)},
Alexis Hetu028acd32025-01-17 15:53:222003 {"cpe-passkey-prf-support",
2004 flag_descriptions::kCredentialProviderPasskeyPRFName,
2005 flag_descriptions::kCredentialProviderPasskeyPRFDescription,
2006 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kCredentialProviderPasskeyPRF)},
Sebsgfcd5b0b2024-04-09 08:18:322007 {"cpe-performance-improvements",
2008 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
2009 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
2010 flags_ui::kOsIos,
2011 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Maria Kazinova0ee4fdd2025-01-22 20:06:592012 {"password-form-clientside-classifier",
2013 flag_descriptions::kPasswordFormClientsideClassifierName,
2014 flag_descriptions::kPasswordFormClientsideClassifierDescription,
2015 flags_ui::kOsIos,
2016 FEATURE_VALUE_TYPE(
2017 password_manager::features::kPasswordFormClientsideClassifier)},
Vincent Boissellea1f27f322024-04-17 14:53:192018 {"password-manager-detect-username-in-uff",
2019 flag_descriptions::kIOSDetectUsernameInUffName,
vincbb01c53ed2024-08-22 13:09:562020 flag_descriptions::kIOSDetectUsernameInUffDescription, flags_ui::kOsIos,
Vincent Boissellea1f27f322024-04-17 14:53:192021 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Jérôme Lebel993c7e3d2024-07-08 14:05:352022 {"identity-disc-account-menu",
2023 flag_descriptions::kIdentityDiscAccountMenuName,
2024 flag_descriptions::kIdentityDiscAccountMenuDescription, flags_ui::kOsIos,
Jood943cbb12025-02-20 17:02:272025 FEATURE_WITH_PARAMS_VALUE_TYPE(kIdentityDiscAccountMenu,
2026 kIdentityDiscAccountMenuVariations,
2027 "IdentityDiscAccountMenu")},
Jood Hajeer3867886d2024-07-29 16:15:352028 {"identity-confirmation-snackbar",
2029 flag_descriptions::kIdentityConfirmationSnackbarName,
2030 flag_descriptions::kIdentityConfirmationSnackbarDescription,
2031 flags_ui::kOsIos,
2032 FEATURE_WITH_PARAMS_VALUE_TYPE(
2033 kIdentityConfirmationSnackbar,
2034 kIdentityConfirmationSnackbarTestingVariations,
2035 "IdentityConfirmationSnackbar")},
Filipa Senrabe00cbe2024-04-19 14:21:332036 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
2037 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
2038 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:002039 {"autofill-enable-verve-card-support",
2040 flag_descriptions::kAutofillEnableVerveCardSupportName,
2041 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
2042 flags_ui::kOsIos,
2043 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ewann Pelle34939b62024-08-22 10:45:492044 {"tab-group-sync", flag_descriptions::kTabGroupSyncName,
2045 flag_descriptions::kTabGroupSyncDescription, flags_ui::kOsIos,
Louis Romero5a84afc2024-04-25 10:29:202046 FEATURE_VALUE_TYPE(kTabGroupSync)},
Ameur Hosni3d764c92024-05-28 14:11:122047 {"omnibox-suggestion-answer-migration",
2048 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
2049 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
2050 flags_ui::kOsIos,
2051 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:302052 kOmniboxSuggestionAnswerMigration)},
Hira Mahmood6e2a894e2024-05-31 15:18:192053 {"send-tab-ios-push-notifications",
2054 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
2055 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
2056 flags_ui::kOsIos,
Hira Mahmood00c17e52024-10-09 14:30:482057 FEATURE_WITH_PARAMS_VALUE_TYPE(
2058 send_tab_to_self::kSendTabToSelfIOSPushNotifications,
2059 kSendTabIOSPushNotificationsVariations,
2060 "SendTabToSelfIOSPushNotifications")},
Olivier ROBINcb76f4fe2024-06-05 16:11:422061 {"page-image-service-optimization-guide-salient-images",
2062 flag_descriptions::kPageImageServiceSalientImageName,
2063 flag_descriptions::kPageImageServiceSalientImageDescription,
2064 flags_ui::kOsIos,
2065 FEATURE_WITH_PARAMS_VALUE_TYPE(
2066 page_image_service::kImageServiceOptimizationGuideSalientImages,
2067 kImageServiceOptimizationGuideSalientImagesVariations,
2068 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:222069 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
2070 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
2071 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Charles Yangf8e7adf2024-06-11 00:17:002072 {"lens-filters-ablation-mode-enabled",
2073 flag_descriptions::kLensFiltersAblationModeEnabledName,
2074 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
2075 flags_ui::kOsIos,
2076 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
2077 kLensFiltersAblationModeVariations,
2078 "LensFiltersAblationMode")},
2079 {"lens-translate-toogle-mode-enabled",
2080 flag_descriptions::kLensTranslateToggleModeEnabledName,
2081 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
2082 flags_ui::kOsIos,
2083 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
2084 kLensTranslateToggleModeVariations,
2085 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:592086 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
2087 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
2088 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:492089 {"omnibox-ml-log-url-scoring-signals",
2090 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
2091 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
2092 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
2093 {"omnibox-ml-url-piecewise-mapped-search-blending",
2094 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
2095 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
2096 flags_ui::kOsIos,
2097 FEATURE_WITH_PARAMS_VALUE_TYPE(
2098 omnibox::kMlUrlPiecewiseMappedSearchBlending,
2099 kMlUrlPiecewiseMappedSearchBlendingVariations,
2100 "MlUrlPiecewiseMappedSearchBlending")},
2101 {"omnibox-ml-url-score-caching",
2102 flag_descriptions::kOmniboxMlUrlScoreCachingName,
2103 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
2104 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
2105 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
2106 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
2107 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
2108 kOmniboxMlUrlScoringVariations,
2109 "MlUrlScoring")},
2110 {"omnibox-ml-url-search-blending",
2111 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
2112 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
2113 flags_ui::kOsIos,
2114 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
2115 kMlUrlSearchBlendingVariations,
2116 "MlUrlScoring")},
2117 {"omnibox-ml-url-scoring-model",
2118 flag_descriptions::kOmniboxMlUrlScoringModelName,
2119 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
Khalid Peer4501c1f2024-06-27 16:12:042120 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel,
2121 kUrlScoringModelVariations,
2122 "MlUrlScoring")},
Siyu An4a486f02024-06-18 19:41:282123 {"autofill-show-manual-fill-for-virtual-cards",
2124 flag_descriptions::kAutofillShowManualFillForVirtualCardsName,
2125 flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription,
2126 flags_ui::kOsIos,
2127 FEATURE_VALUE_TYPE(
2128 autofill::features::kAutofillShowManualFillForVirtualCards)},
Benjamin Williams0594caf2024-07-09 17:51:382129 {"safety-check-notifications",
2130 flag_descriptions::kSafetyCheckNotificationsName,
2131 flag_descriptions::kSafetyCheckNotificationsDescription, flags_ui::kOsIos,
2132 FEATURE_WITH_PARAMS_VALUE_TYPE(kSafetyCheckNotifications,
2133 kSafetyCheckNotificationsVariations,
2134 "SafetyCheckNotifications")},
Federica Germinarioa1fe0902024-07-12 08:28:462135 {"app-background-refresh-ios", flag_descriptions::kAppBackgroundRefreshName,
2136 flag_descriptions::kAppBackgroundRefreshDescription, flags_ui::kOsIos,
2137 FEATURE_VALUE_TYPE(kEnableAppBackgroundRefresh)},
Chris Lu3eba26312024-07-12 20:21:382138 {"home-memory-improvements", flag_descriptions::kHomeMemoryImprovementsName,
2139 flag_descriptions::kHomeMemoryImprovementsDescription, flags_ui::kOsIos,
2140 FEATURE_VALUE_TYPE(kHomeMemoryImprovements)},
Stephen McGruer8fe98b62024-07-16 13:10:132141 {"autofill-upload-card-request-timeout",
2142 flag_descriptions::kAutofillUploadCardRequestTimeoutName,
2143 flag_descriptions::kAutofillUploadCardRequestTimeoutDescription,
2144 flags_ui::kOsIos,
2145 FEATURE_WITH_PARAMS_VALUE_TYPE(
2146 autofill::features::kAutofillUploadCardRequestTimeout,
2147 kAutofillUploadCardRequestTimeoutOptions,
2148 "AutofillUploadCardRequestTimeout")},
Stephen McGruer0904cae2024-07-17 19:54:462149 {"autofill-vcn-enroll-request-timeout",
2150 flag_descriptions::kAutofillVcnEnrollRequestTimeoutName,
2151 flag_descriptions::kAutofillVcnEnrollRequestTimeoutDescription,
2152 flags_ui::kOsIos,
2153 FEATURE_WITH_PARAMS_VALUE_TYPE(
2154 autofill::features::kAutofillVcnEnrollRequestTimeout,
2155 kAutofillVcnEnrollRequestTimeoutOptions,
2156 "AutofillVcnEnrollRequestTimeout")},
Charles Yang98bef0c2024-07-19 12:24:142157 {"lens-web-page-load-optimization-enabled",
2158 flag_descriptions::kLensWebPageLoadOptimizationEnabledName,
2159 flag_descriptions::kLensWebPageLoadOptimizationEnabledDescription,
2160 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageLoadOptimizationEnabled)},
Eric Ekey4a930592024-07-19 18:58:142161 {"segmented-default-browser-promo",
2162 flag_descriptions::kSegmentedDefaultBrowserPromoName,
2163 flag_descriptions::kSegmentedDefaultBrowserPromoDescription,
Briana McClurec2b62f92024-10-29 15:35:062164 flags_ui::kOsIos,
2165 FEATURE_WITH_PARAMS_VALUE_TYPE(kSegmentedDefaultBrowserPromo,
2166 kSegmentedDefaultBrowserPromoVariations,
2167 "SegmentedDBP-Animation")},
Junhui He52294652024-07-23 23:50:152168 {"autofill-unmask-card-request-timeout",
2169 flag_descriptions::kAutofillUnmaskCardRequestTimeoutName,
2170 flag_descriptions::kAutofillUnmaskCardRequestTimeoutDescription,
2171 flags_ui::kOsIos,
2172 FEATURE_VALUE_TYPE(autofill::features::kAutofillUnmaskCardRequestTimeout)},
vincbe1379832024-08-06 19:08:122173 {"autofill-across-iframes", flag_descriptions::kAutofillAcrossIframesName,
2174 flag_descriptions::kAutofillAcrossIframesDescription, flags_ui::kOsIos,
2175 FEATURE_VALUE_TYPE(autofill::features::kAutofillAcrossIframesIos)},
Cristian Ciacu62fe1912024-08-07 10:14:502176 {"ios-page-info-last-visited",
2177 flag_descriptions::kPageInfoLastVisitedIOSName,
2178 flag_descriptions::kPageInfoLastVisitedIOSDescription, flags_ui::kOsIos,
2179 FEATURE_VALUE_TYPE(kPageInfoLastVisitedIOS)},
Daniel White1ced9e62024-08-15 19:27:382180 {"enable-trait-collection-registration",
2181 flag_descriptions::kEnableTraitCollectionRegistrationName,
2182 flag_descriptions::kEnableTraitCollectionRegistrationDescription,
2183 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableTraitCollectionRegistration)},
Ernesto Izquierdo Cluaebe0a0252024-08-19 22:05:542184 {"autofill-isolated-world-ios",
2185 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSName,
2186 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSDescription,
2187 flags_ui::kOsIos,
2188 FEATURE_VALUE_TYPE(kAutofillIsolatedWorldForJavascriptIos)},
Ewann Pelle34939b62024-08-22 10:45:492189 {"tab-group-indicator", flag_descriptions::kTabGroupIndicatorName,
2190 flag_descriptions::kTabGroupIndicatorDescription, flags_ui::kOsIos,
Ewann Pelle1f48f922025-01-13 11:43:342191 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabGroupIndicator,
2192 kTabGroupIndicatorVariations,
2193 "TabGroupIndicator")},
thefrog8ed47452024-08-30 13:32:482194 {"safe-browsing-local-lists-use-sbv5",
2195 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Name,
2196 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Description,
2197 flags_ui::kOsIos, FEATURE_VALUE_TYPE(safe_browsing::kLocalListsUseSBv5)},
Chris Lu4c688e02024-09-07 00:48:082198 {"ios-price-tracking-notification-promo-card",
2199 flag_descriptions::kPriceTrackingPromoName,
2200 flag_descriptions::kPriceTrackingPromoDescription, flags_ui::kOsIos,
2201 FEATURE_VALUE_TYPE(commerce::kPriceTrackingPromo)},
Gloria Fang02964a442025-02-06 19:21:182202 {"ios-shop-card", flag_descriptions::kShopCardName,
2203 flag_descriptions::kShopCardDescription, flags_ui::kOsIos,
2204 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kShopCard,
2205 kShopCardOverrideOptions,
2206 "ShopCard")},
David Maunder9b9dd1a2025-04-04 20:08:242207 {"ios-shop-card-impression-limits",
2208 flag_descriptions::kShopCardImpressionLimitsName,
2209 flag_descriptions::kShopCardImpressionLimitsDescription, flags_ui::kOsIos,
2210 FEATURE_VALUE_TYPE(commerce::kShopCardImpressionLimits)},
Chris Lu4c688e02024-09-07 00:48:082211 {"ios-segmentation-ephemeral-card-ranker",
2212 flag_descriptions::kSegmentationPlatformEphemeralCardRankerName,
2213 flag_descriptions::kSegmentationPlatformEphemeralCardRankerDescription,
2214 flags_ui::kOsIos,
2215 FEATURE_WITH_PARAMS_VALUE_TYPE(
2216 segmentation_platform::features::
2217 kSegmentationPlatformEphemeralCardRanker,
2218 kEphemeralCardRankerCardOverrideOptions,
2219 "SegmentationPlatformEphemeralCardRanker")},
Alexander Tekle8cf3c8e2024-09-13 21:38:072220 {"autofill-enable-log-form-events-to-all-parsed-form-types",
2221 flag_descriptions::kAutofillEnableLogFormEventsToAllParsedFormTypesName,
2222 flag_descriptions::
2223 kAutofillEnableLogFormEventsToAllParsedFormTypesDescription,
2224 flags_ui::kOsIos,
2225 FEATURE_VALUE_TYPE(
2226 autofill::features::kAutofillEnableLogFormEventsToAllParsedFormTypes)},
Radu Nitescu06133382024-10-21 18:33:292227 {"lens-overlay-enable-ipad-compatibility",
2228 flag_descriptions::kLensOverlayEnableIPadCompatibilityName,
2229 flag_descriptions::kLensOverlayEnableIPadCompatibilityDescription,
2230 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableIPadCompatibility)},
Radu Nitescub3e06f92025-02-06 17:32:252231 {"lens-overlay-enable-landscape-compatibility",
2232 flag_descriptions::kLensOverlayEnableLandscapeCompatibilityName,
2233 flag_descriptions::kLensOverlayEnableLandscapeCompatibilityDescription,
2234 flags_ui::kOsIos,
2235 FEATURE_VALUE_TYPE(kLensOverlayEnableLandscapeCompatibility)},
Ameur Hosni22b62d92024-09-25 10:51:022236 {"lens-overlay-force-show-onboarding-screen",
2237 flag_descriptions::kLensOverlayForceShowOnboardingScreenName,
2238 flag_descriptions::kLensOverlayForceShowOnboardingScreenDescription,
2239 flags_ui::kOsIos,
2240 FEATURE_VALUE_TYPE(kLensOverlayForceShowOnboardingScreen)},
Stepan Khapuginc5820242025-01-10 22:21:112241 {"lens-overlay-alternative-onboarding",
2242 flag_descriptions::kLensOverlayAlternativeOnboardingName,
2243 flag_descriptions::kLensOverlayAlternativeOnboardingDescription,
2244 flags_ui::kOsIos,
Radu Nitescu6e6dd7f52025-01-17 11:33:352245 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensOverlayAlternativeOnboarding,
2246 kLensOverlayOnboardingVariations,
2247 "kLensOverlayOnboarding")},
Gauthier Ambard766f4cf2024-09-26 16:56:252248 {"data-sharing", flag_descriptions::kDataSharingName,
2249 flag_descriptions::kDataSharingDescription, flags_ui::kOsIos,
2250 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingFeature)},
2251 {"data-sharing-join-only", flag_descriptions::kDataSharingJoinOnlyName,
2252 flag_descriptions::kDataSharingJoinOnlyDescription, flags_ui::kOsIos,
2253 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingJoinOnly)},
Rubin Deliallisib66a77a2024-10-02 18:09:482254 {"ios-soft-lock", flag_descriptions::kIOSSoftLockName,
2255 flag_descriptions::kIOSSoftLockDescription, flags_ui::kOsIos,
Rubin Deliallisi1d0b3ba2024-11-04 14:33:042256 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSoftLock,
2257 kIOSSoftLockVariations,
2258 "IOSSoftLock")},
Marc Treib31e4f9f2024-10-07 09:55:542259 {"separate-profiles-for-managed-accounts",
2260 flag_descriptions::kSeparateProfilesForManagedAccountsName,
2261 flag_descriptions::kSeparateProfilesForManagedAccountsDescription,
Olivier ROBINb17c14b92024-10-09 13:49:132262 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSeparateProfilesForManagedAccounts)},
Olivier ROBINb17c14b92024-10-09 13:49:132263 {"tab-resumption-images", flag_descriptions::kTabResumptionImagesName,
2264 flag_descriptions::kTabResumptionImagesDescription, flags_ui::kOsIos,
2265 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumptionImages,
2266 kTabResumptionImagesVariations,
2267 "TabResumption1_5")},
Benjamin Williamsd7f854b2024-10-09 17:12:272268 {"segmentation-platform-tips-ephemeral-card",
2269 flag_descriptions::kSegmentationPlatformTipsEphemeralCardName,
2270 flag_descriptions::kSegmentationPlatformTipsEphemeralCardDescription,
2271 flags_ui::kOsIos,
2272 FEATURE_VALUE_TYPE(segmentation_platform::features::
vincbf23f7332024-10-11 19:32:122273 kSegmentationPlatformTipsEphemeralCard)},
2274 {"ios-password-suggestion-bottom-sheet-v2",
2275 flag_descriptions::kPasswordSuggestionBottomSheetV2Name,
2276 flag_descriptions::kPasswordSuggestionBottomSheetV2Description,
2277 flags_ui::kOsIos,
Federica Germinariof58b5a7e2024-10-22 10:35:422278 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheetV2)},
Charles Yang11dd8ab2024-10-24 19:15:532279 {"lens-unary-apis-with-http-transport-enabled",
2280 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledName,
2281 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledDescription,
2282 flags_ui::kOsIos,
2283 FEATURE_VALUE_TYPE(kLensUnaryApisWithHttpTransportEnabled)},
Christian Xu6db322d2024-10-25 14:12:492284 {"lens-overlay-enable-same-tab-navigation",
2285 flag_descriptions::kLensOverlayEnableSameTabNavigationName,
2286 flag_descriptions::kLensOverlayEnableSameTabNavigationDescription,
2287 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableSameTabNavigation)},
Elmehdi Rahmaoui3c6e8012024-10-28 10:17:532288 {"ios-chrome-startup-parameters-async",
2289 flag_descriptions::kChromeStartupParametersAsyncName,
2290 flag_descriptions::kChromeStartupParametersAsyncDescription,
2291 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kChromeStartupParametersAsync)},
Elmehdi Rahmaoui63a0d8212025-01-07 11:42:482292 {"ios-youtube-incognito", flag_descriptions::kYoutubeIncognitoName,
2293 flag_descriptions::kYoutubeIncognitoDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui543d35f2025-01-16 10:09:422294 FEATURE_WITH_PARAMS_VALUE_TYPE(kYoutubeIncognito,
2295 kYoutubeIncognitoVariations,
2296 "IOSYoutubeIncognito")},
Christian Xua8459472024-10-31 13:39:082297 {"lens-overlay-enable-location-bar-entrypoint",
2298 flag_descriptions::kLensOverlayEnableLocationBarEntrypointName,
2299 flag_descriptions::kLensOverlayEnableLocationBarEntrypointDescription,
2300 flags_ui::kOsIos,
2301 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypoint)},
Radu Nitescuc42107b92025-02-13 17:32:272302 {"lens-overlay-enable-location-bar-entrypoint-on-srp",
2303 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPName,
2304 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPDescription,
2305 flags_ui::kOsIos,
2306 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypointOnSRP)},
2307 {"lens-overlay-enable-lvf-escape-hatch",
2308 flag_descriptions::kLensOverlayEnableLVFEscapeHatchName,
2309 flag_descriptions::kLensOverlayEnableLVFEscapeHatchDescription,
Radu Nitescu0c21e3c2025-02-13 21:27:192310 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableLVFEscapeHatch)},
Christian Xudddf1e012024-10-31 18:34:012311 {"lens-overlay-disable-price-insights",
2312 flag_descriptions::kLensOverlayDisablePriceInsightsName,
2313 flag_descriptions::kLensOverlayDisablePriceInsightsDescription,
2314 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayDisablePriceInsights)},
Chris Lu9fd38c62024-11-04 22:22:592315 {"ios-provisional-notification-alert",
2316 flag_descriptions::kProvisionalNotificationAlertName,
2317 flag_descriptions::kProvisionalNotificationAlertDescription,
2318 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kProvisionalNotificationAlert)},
Hira Mahmood431c8ab2024-11-05 17:16:292319 {"ios-start-time-startup-remediations",
2320 flag_descriptions::kIOSStartTimeStartupRemediationsName,
2321 flag_descriptions::kIOSStartTimeStartupRemediationsDescription,
2322 flags_ui::kOsIos,
2323 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSStartTimeStartupRemediations,
2324 kIOSStartTimeStartupRemediationsVariations,
2325 "IOSStartTimeStartupRemediations")},
vincb7867dc042024-11-06 14:25:052326 {"autofill-throttle-doc-form-scans",
2327 flag_descriptions::kAutofillThrottleDocumentFormScanName,
2328 flag_descriptions::kAutofillThrottleDocumentFormScanDescription,
2329 flags_ui::kOsIos,
2330 FEATURE_WITH_PARAMS_VALUE_TYPE(kAutofillThrottleDocumentFormScanIos,
2331 kAutofillThrottleDocFormScanVariations,
2332 "AutofillThrottleDocumentFormScan")},
vincb2bf7f5c2024-11-06 17:18:092333 {"autofill-throttle-filtered-doc-form-scan",
2334 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanName,
2335 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanDescription,
2336 flags_ui::kOsIos,
2337 FEATURE_WITH_PARAMS_VALUE_TYPE(
2338 kAutofillThrottleFilteredDocumentFormScanIos,
2339 kAutofillThrottleFilteredDocFormScanVariations,
2340 "AutofillThrottleFilteredDocumentFormScan")},
ginnnnnnny963c7fc2024-11-06 22:44:502341 {"ios-new-feed-positioning",
2342 flag_descriptions::kNewFeedPositioningExperimentName,
2343 flag_descriptions::kNewFeedPositioningExperimentDescription,
2344 flags_ui::kOsIos,
2345 FEATURE_WITH_PARAMS_VALUE_TYPE(kNewFeedPositioning,
2346 kNewFeedPositioningVariations,
2347 "IOSNewFeedPositioningStudy")},
vincb91781772024-11-08 17:13:122348 {"autofill-payments-sheet-v2",
2349 flag_descriptions::kAutofillPaymentsSheetV2Name,
2350 flag_descriptions::kAutofillPaymentsSheetV2Description, flags_ui::kOsIos,
2351 FEATURE_VALUE_TYPE(kAutofillPaymentsSheetV2Ios)},
Hira Mahmoodf8533dc2024-11-12 16:24:252352 {"ios-start-time-browser-background-remediations",
2353 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsName,
2354 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsDescription,
2355 flags_ui::kOsIos,
2356 FEATURE_WITH_PARAMS_VALUE_TYPE(
2357 kIOSStartTimeBrowserBackgroundRemediations,
2358 kIOSStartTimeBrowserBackgroundRemediationsVariations,
2359 "IOSStartTimeStartupRemediations")},
Hira Mahmood664449872024-11-18 23:55:222360 {"set-up-list-in-first-run", flag_descriptions::kSetUpListInFirstRunName,
2361 flag_descriptions::kSetUpListInFirstRunNameDescription, flags_ui::kOsIos,
2362 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListInFirstRun,
2363 kSetUpListInFirstRunVariations,
2364 "SetUpListInFirstRun")},
Charles Yangf57489f2024-11-27 13:58:282365 {"lens-unary-http-transport-enabled",
2366 flag_descriptions::kLensUnaryHttpTransportEnabledName,
2367 flag_descriptions::kLensUnaryHttpTransportEnabledDescription,
2368 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryHttpTransportEnabled)},
Charles Yang8b4687c2024-12-11 02:42:192369 {"lens-clearcut-background-upload-enabled",
2370 flag_descriptions::kLensClearcutBackgroundUploadEnabledName,
2371 flag_descriptions::kLensClearcutBackgroundUploadEnabledDescription,
2372 flags_ui::kOsIos,
2373 FEATURE_VALUE_TYPE(kLensClearcutBackgroundUploadEnabled)},
2374 {"lens-clearcut-logger-fast-qos-enabled",
2375 flag_descriptions::kLensClearcutLoggerFastQosEnabledName,
2376 flag_descriptions::kLensClearcutLoggerFastQosEnabledDescription,
2377 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensClearcutLoggerFastQosEnabled)},
Hira Mahmood7577c9b672024-12-12 20:29:122378 {"set-up-list-shortened-duration",
2379 flag_descriptions::kSetUpListShortenedDurationName,
2380 flag_descriptions::kSetUpListShortenedDurationDescription,
2381 flags_ui::kOsIos,
2382 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListShortenedDuration,
2383 kSetUpListDurationVariations,
2384 "SetUpListShortenedDuration")},
Christian Xu375dcf72024-12-17 15:44:592385 {"enable-lens-overlay-price-insights-counterfactual",
2386 flag_descriptions::kLensOverlayPriceInsightsCounterfactualName,
2387 flag_descriptions::kLensOverlayPriceInsightsCounterfactualDescription,
2388 flags_ui::kOsIos,
2389 FEATURE_VALUE_TYPE(kLensOverlayPriceInsightsCounterfactual)},
Tommy Nyquiste1447512024-12-17 17:46:242390 {"collaboration-messaging", flag_descriptions::kCollaborationMessagingName,
2391 flag_descriptions::kCollaborationMessagingDescription, flags_ui::kOsIos,
Hailey Wang1f2d890a2024-12-26 20:23:562392 FEATURE_VALUE_TYPE(collaboration::features::kCollaborationMessaging)},
Charles Yangfd397e82024-12-19 17:11:452393 {"lens-single-tap-text-selection-disabled",
2394 flag_descriptions::kLensSingleTapTextSelectionDisabledName,
2395 flag_descriptions::kLensSingleTapTextSelectionDisabledDescription,
2396 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensSingleTapTextSelectionDisabled)},
Hira Mahmoodf6906a82025-01-02 17:55:092397 {"updated-fre-screens-sequence", flag_descriptions::kUpdatedFRESequenceName,
2398 flag_descriptions::kUpdatedFRESequenceDescription, flags_ui::kOsIos,
2399 FEATURE_WITH_PARAMS_VALUE_TYPE(first_run::kUpdatedFirstRunSequence,
2400 kUpdatedFirstRunSequenceVariations,
2401 "UpdatedFirstRunSequence")},
Hira Mahmood9f1c19092025-01-06 17:47:432402 {"set-up-list-without-sign-in-item",
2403 flag_descriptions::kSetUpListWithoutSignInItemName,
2404 flag_descriptions::kSetUpListWithoutSignInItemDescription,
2405 flags_ui::kOsIos,
2406 FEATURE_VALUE_TYPE(set_up_list::kSetUpListWithoutSignInItem)},
Fernando Ramirez3c16f9742025-01-07 22:40:362407 {"autofill-enable-card-benefits-for-bmo",
2408 flag_descriptions::kAutofillEnableCardBenefitsForBmoName,
2409 flag_descriptions::kAutofillEnableCardBenefitsForBmoDescription,
2410 flags_ui::kOsIos,
2411 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsForBmo)},
Olivier ROBIN1a0db2a2025-01-09 10:41:532412 {"ios-manage-account-storage",
2413 flag_descriptions::kIOSManageAccountStorageName,
2414 flag_descriptions::kIOSManageAccountStorageDescription, flags_ui::kOsIos,
2415 FEATURE_VALUE_TYPE(kIOSManageAccountStorage)},
Nohemi Fernandez4e66e7182025-01-16 10:57:322416 {"supervised-user-local-web-approvals",
2417 flag_descriptions::kSupervisedUserLocalWebApprovalsName,
2418 flag_descriptions::kSupervisedUserLocalWebApprovalsDescription,
2419 flags_ui::kOsIos, FEATURE_VALUE_TYPE(supervised_user::kLocalWebApprovals)},
Daniel Whitee4562ce2025-01-21 17:36:562420 {"download-auto-deletion", flag_descriptions::kDownloadAutoDeletionName,
2421 flag_descriptions::kDownloadAutoDeletionDescription, flags_ui::kOsIos,
2422 FEATURE_VALUE_TYPE(kDownloadAutoDeletionFeatureEnabled)},
Charles Yang8bd747632025-01-22 20:17:002423 {"lens-ink-multi-sample-mode-disabled",
2424 flag_descriptions::kLensInkMultiSampleModeDisabledName,
2425 flag_descriptions::kLensInkMultiSampleModeDisabledDescription,
2426 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensInkMultiSampleModeDisabled)},
Briana McClure09b0c3632025-01-23 21:57:182427 {"animated-default-browser-promo-in-fre",
2428 flag_descriptions::kAnimatedDefaultBrowserPromoInFREName,
2429 flag_descriptions::kAnimatedDefaultBrowserPromoInFREDescription,
2430 flags_ui::kOsIos,
Briana McClure21685c42025-02-06 15:18:222431 FEATURE_WITH_PARAMS_VALUE_TYPE(
2432 first_run::kAnimatedDefaultBrowserPromoInFRE,
2433 kAnimatedDefaultBrowserPromoInFREVariations,
2434 "AnimatedDBPInFRE-Layout")},
Fernando Ramirezfcdb52f2025-01-24 19:27:352435 {"autofill-enable-allowlist-for-bmo-card-category-benefits",
2436 flag_descriptions::kAutofillEnableAllowlistForBmoCardCategoryBenefitsName,
2437 flag_descriptions::
2438 kAutofillEnableAllowlistForBmoCardCategoryBenefitsDescription,
2439 flags_ui::kOsIos,
2440 FEATURE_VALUE_TYPE(
2441 autofill::features::
2442 kAutofillEnableAllowlistForBmoCardCategoryBenefits)},
“Prasanaa”96e15992025-01-30 15:44:352443 {"fullscreen-transition", flag_descriptions::kFullscreenTransitionName,
2444 flag_descriptions::kFullscreenTransitionDescription, flags_ui::kOsIos,
2445 FEATURE_WITH_PARAMS_VALUE_TYPE(kFullscreenTransition,
2446 kFullscreenTransitionVariations,
ginnnnnnny0e892172025-02-04 21:45:172447 "IOSFull`screenTransition")},
ginnnnnnnyccce0952025-02-03 22:44:362448 {"ios-deprecate-feed-header",
2449 flag_descriptions::kDeprecateFeedHeaderExperimentName,
2450 flag_descriptions::kDeprecateFeedHeaderExperimentDescription,
2451 flags_ui::kOsIos,
2452 FEATURE_WITH_PARAMS_VALUE_TYPE(kDeprecateFeedHeader,
2453 kDeprecateFeedHeaderVariations,
2454 "IOSDeprecateFeedHeader")},
“Prasanaa”6ad22342025-02-25 12:55:172455 {"refactor-toolbars-size", flag_descriptions::kRefactorToolbarsSizeName,
2456 flag_descriptions::kRefactorToolbarsSizeDescription, flags_ui::kOsIos,
2457 FEATURE_VALUE_TYPE(kRefactorToolbarsSize)},
Charles Yangfc3655b62025-02-05 21:49:262458 {"lens-gesture-text-selection-disabled",
2459 flag_descriptions::kLensGestureTextSelectionDisabledName,
2460 flag_descriptions::kLensGestureTextSelectionDisabledDescription,
2461 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensGestureTextSelectionDisabled)},
Sourav0691b752025-02-07 16:44:072462 {"add-address-manually", flag_descriptions::kAddAddressManuallyName,
2463 flag_descriptions::kAddAddressManuallyDescription, flags_ui::kOsIos,
2464 FEATURE_VALUE_TYPE(kAddAddressManually)},
Charles Yangca6175732025-02-11 18:21:392465 {"lens-vsint-param-enabled", flag_descriptions::kLensVsintParamEnabledName,
2466 flag_descriptions::kLensVsintParamEnabledDescription, flags_ui::kOsIos,
2467 FEATURE_VALUE_TYPE(kLensVsintParamEnabled)},
Charles Yang6b2639d2025-02-11 19:24:042468 {"lens-unary-client-data-header-enabled",
2469 flag_descriptions::kLensUnaryClientDataHeaderEnabledName,
2470 flag_descriptions::kLensUnaryClientDataHeaderEnabledDescription,
2471 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryClientDataHeaderEnabled)},
Elmehdi Rahmaoui8d7eb922025-02-13 11:40:542472 {"ios-new-share-extension", flag_descriptions::kNewShareExtensionName,
2473 flag_descriptions::kNewShareExtensionDescription, flags_ui::kOsIos,
2474 FEATURE_VALUE_TYPE(kNewShareExtension)},
Hira Mahmooddcc63d7f2025-02-19 17:28:572475 {"ios-best-features-screen",
2476 flag_descriptions::kBestFeaturesScreenInFirstRunName,
2477 flag_descriptions::kBestFeaturesScreenInFirstRunDescription,
2478 flags_ui::kOsIos,
2479 FEATURE_WITH_PARAMS_VALUE_TYPE(first_run::kBestFeaturesScreenInFirstRun,
2480 kBestFeaturesScreenInFirstRunVariations,
2481 "BestFeaturesScreenInFirstRun")},
Noémie St-Onge4a534a122025-02-25 19:14:092482 {"ios-passkeys-m2", flag_descriptions::kIOSPasskeysM2Name,
2483 flag_descriptions::kIOSPasskeysM2Description, flags_ui::kOsIos,
2484 FEATURE_VALUE_TYPE(kIOSPasskeysM2)},
Hira Mahmood51082d72025-02-26 21:04:402485 {"manual-log-uploads-in-the-fre",
2486 flag_descriptions::kManualLogUploadsInFREName,
2487 flag_descriptions::kManualLogUploadsInFREDescription, flags_ui::kOsIos,
2488 FEATURE_VALUE_TYPE(first_run::kManualLogUploadsInTheFRE)},
Kavita Soni42e1c422025-02-27 22:09:092489 {"autofill-disable-default-save-card-fix-flow-detection",
2490 flag_descriptions::kAutofillDisableDefaultSaveCardFixFlowDetectionName,
2491 flag_descriptions::
2492 kAutofillDisableDefaultSaveCardFixFlowDetectionDescription,
2493 flags_ui::kOsIos,
2494 FEATURE_VALUE_TYPE(
2495 autofill::features::kAutofillDisableDefaultSaveCardFixFlowDetection)},
Charles Yangbf00df62025-02-28 17:51:202496 {"lens-unary-api-salient-text-enabled",
2497 flag_descriptions::kLensUnaryApiSalientTextEnabledName,
2498 flag_descriptions::kLensUnaryApiSalientTextEnabledDescription,
2499 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryApiSalientTextEnabled)},
Ibrahim Kanouche16414ff82025-03-01 02:12:312500 {"non-modal-sign-in-promo", flag_descriptions::kNonModalSignInPromoName,
2501 flag_descriptions::kNonModalSignInPromoDescription, flags_ui::kOsIos,
2502 FEATURE_VALUE_TYPE(kNonModalSignInPromo)},
“Prasanaa”856d8272025-03-05 20:35:322503 {"suggest-strong-password-in-add-password",
2504 flag_descriptions::kSuggestStrongPasswordInAddPasswordName,
2505 flag_descriptions::kSuggestStrongPasswordInAddPasswordDescription,
2506 flags_ui::kOsIos,
2507 FEATURE_VALUE_TYPE(
2508 password_manager::features::kSuggestStrongPasswordInAddPassword)},
Kavita Soni754e40a2025-03-05 21:46:492509 {"autofill-save-card-bottomsheet",
2510 flag_descriptions::kAutofillSaveCardBottomSheetName,
2511 flag_descriptions::kAutofillSaveCardBottomSheetDescription,
2512 flags_ui::kOsIos,
2513 FEATURE_VALUE_TYPE(autofill::features::kAutofillSaveCardBottomSheet)},
Olivier ROBIN4d7cdb82025-03-11 09:33:472514 {"ios-one-tap-mini-map-restrictions",
2515 flag_descriptions::kIOSOneTapMiniMapRestrictionsName,
2516 flag_descriptions::kIOSOneTapMiniMapRestrictionsDescription,
2517 flags_ui::kOsIos,
2518 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSOneTapMiniMapRestrictions,
2519 kIOSOneTapMiniMapRestrictionsVariations,
2520 "IOSOneTapMiniMapRestrictions")},
Charles Yang3b1713c2025-03-11 17:14:152521 {"lens-block-fetch-objects-interaction-rpcs-on-separate-handshake",
2522 flag_descriptions::
2523 kLensBlockFetchObjectsInteractionRPCsOnSeparateHandshakeName,
2524 flag_descriptions::
2525 kLensBlockFetchObjectsInteractionRPCsOnSeparateHandshakeDescription,
2526 flags_ui::kOsIos,
2527 FEATURE_VALUE_TYPE(
2528 kLensBlockFetchObjectsInteractionRPCsOnSeparateHandshake)},
2529 {"lens-prewarm-hard-stickiness-in-input-selection",
2530 flag_descriptions::kLensPrewarmHardStickinessInInputSelectionName,
2531 flag_descriptions::kLensPrewarmHardStickinessInInputSelectionDescription,
2532 flags_ui::kOsIos,
2533 FEATURE_VALUE_TYPE(kLensPrewarmHardStickinessInInputSelection)},
2534 {"lens-prewarm-hard-stickiness-in-query-formulation",
2535 flag_descriptions::kLensPrewarmHardStickinessInQueryFormulationName,
2536 flag_descriptions::kLensPrewarmHardStickinessInQueryFormulationDescription,
2537 flags_ui::kOsIos,
2538 FEATURE_VALUE_TYPE(kLensPrewarmHardStickinessInQueryFormulation)},
Nicolas MacBeth12449f72025-03-11 21:19:482539 {"enhanced-calendar", flag_descriptions::kEnhancedCalendarName,
2540 flag_descriptions::kEnhancedCalendarDescription, flags_ui::kOsIos,
2541 FEATURE_VALUE_TYPE(kEnhancedCalendar)},
Gauthier Ambard5b124d302025-03-12 13:38:402542 {"data-sharing-debug-logs", flag_descriptions::kDataSharingDebugLogsName,
2543 flag_descriptions::kDataSharingDebugLogsDescription, flags_ui::kOsIos,
2544 SINGLE_VALUE_TYPE(data_sharing::kDataSharingDebugLoggingEnabled)},
Duong Dac9f84393332025-03-13 11:29:152545 {"supervised-user-block-interstitial-v3",
2546 flag_descriptions::kSupervisedUserBlockInterstitialV3Name,
2547 flag_descriptions::kSupervisedUserBlockInterstitialV3Description,
2548 flags_ui::kOsIos,
2549 FEATURE_VALUE_TYPE(supervised_user::kSupervisedUserBlockInterstitialV3)},
Charles Yang127155ae2025-03-13 21:00:382550 {"lens-fetch-srp-api-enabled",
2551 flag_descriptions::kLensFetchSrpApiEnabledName,
2552 flag_descriptions::kLensFetchSrpApiEnabledDescription, flags_ui::kOsIos,
2553 FEATURE_VALUE_TYPE(kLensFetchSrpApiEnabled)},
Joshua Tan07b01a62025-03-13 22:25:112554 {"autofill-enable-card-info-runtime-retrieval",
2555 flag_descriptions::kAutofillEnableCardInfoRuntimeRetrievalName,
2556 flag_descriptions::kAutofillEnableCardInfoRuntimeRetrievalDescription,
2557 flags_ui::kOsIos,
2558 FEATURE_VALUE_TYPE(
2559 autofill::features::kAutofillEnableCardInfoRuntimeRetrieval)},
Hira Mahmood4535b072025-03-14 16:45:592560 {"feed-swipe-iph", flag_descriptions::kFeedSwipeInProductHelpName,
2561 flag_descriptions::kFeedSwipeInProductHelpDescription, flags_ui::kOsIos,
2562 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedSwipeInProductHelp,
2563 kFeedSwipeInProductHelpVariations,
2564 "FeedSwipeInProductHelp")},
Charles Yang0b278cf2025-03-14 18:11:582565 {"lens-qr-code-parsing-fix", flag_descriptions::kLensQRCodeParsingFixName,
2566 flag_descriptions::kLensQRCodeParsingFixDescription, flags_ui::kOsIos,
2567 FEATURE_VALUE_TYPE(kLensQRCodeParsingFix)},
Chris Lu62796892025-03-18 15:02:152568 {"notification-collision-management",
2569 flag_descriptions::kNotificationCollisionManagementName,
2570 flag_descriptions::kNotificationCollisionManagementDescription,
2571 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationCollisionManagement)},
Olivier ROBIN2ee3dbad2025-03-19 11:48:332572 {"ios-one-tap-mini-map-remove-section-breaks",
2573 flag_descriptions::kIOSOneTapMiniMapRemoveSectionBreaksName,
2574 flag_descriptions::kIOSOneTapMiniMapRemoveSectionBreaksDescription,
2575 flags_ui::kOsIos,
2576 FEATURE_VALUE_TYPE(kIOSOneTapMiniMapRemoveSectionsBreaks)},
Julia Sobiech562e2c42025-03-25 14:06:552577 {"autofill-enable-support-for-home-and-work",
2578 flag_descriptions::kAutofillEnableSupportForHomeAndWorkName,
2579 flag_descriptions::kAutofillEnableSupportForHomeAndWorkDescription,
2580 flags_ui::kOsIos,
2581 FEATURE_VALUE_TYPE(
2582 autofill::features::kAutofillEnableSupportForHomeAndWork)},
Nohemi Fernandez11751ec2025-03-26 18:24:372583 {"reader-mode-distiller-heuristic-enabled",
2584 flag_descriptions::kReaderModeDistillerHeuristicName,
2585 flag_descriptions::kReaderModeDistillerHeuristicDescription,
Nohemi Fernandez11751ec2025-03-26 18:24:372586 flags_ui::kOsIos,
2587 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableReaderModeDistillerHeuristic,
Nohemi Fernandez96ea08da2025-03-28 10:51:042588 kReaderModeDistillerHeuristicOptions,
Nohemi Fernandez11751ec2025-03-26 18:24:372589 "ReaderModeHeuristicSampling")},
Nohemi Fernandez96ea08da2025-03-28 10:51:042590 {"reader-mode-distiller-enabled",
2591 flag_descriptions::kReaderModeDistillerName,
2592 flag_descriptions::kReaderModeDistillerDescription, flags_ui::kOsIos,
2593 FEATURE_VALUE_TYPE(kEnableReaderModeDistiller)},
Christian Xuac188552025-03-26 13:24:132594 {"lens-overlay-navigation-history",
2595 flag_descriptions::kLensOverlayNavigationHistoryName,
2596 flag_descriptions::kLensOverlayNavigationHistoryDescription,
2597 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayNavigationHistory)},
adamtae89640512025-03-27 20:30:132598 {"page-action-menu", flag_descriptions::kPageActionMenuName,
2599 flag_descriptions::kPageActionMenuDescription, flags_ui::kOsIos,
2600 FEATURE_VALUE_TYPE(kPageActionMenu)},
Sven Zheng0631fc82025-03-28 01:22:552601 {"feedback-include-variations",
2602 flag_descriptions::kFeedbackIncludeVariationsName,
2603 flag_descriptions::kFeedbackIncludeVariationsDescription, flags_ui::kOsIos,
2604 FEATURE_VALUE_TYPE(variations::kFeedbackIncludeVariations)},
“Prasanaa”1dcc85bf2025-03-28 16:32:142605 {"explain-gemini-edit-menu", flag_descriptions::kExplainGeminiEditMenuName,
2606 flag_descriptions::kExplainGeminiEditMenuDescription, flags_ui::kOsIos,
2607 FEATURE_WITH_PARAMS_VALUE_TYPE(kExplainGeminiEditMenu,
2608 kExplainGeminiEditMenuVariations,
2609 "IOSExplainGeminiEditMenu")},
Daniel White89d57342025-04-01 14:16:182610 {"safe-browsing-trusted-url",
2611 flag_descriptions::kSafeBrowsingTrustedURLName,
2612 flag_descriptions::kSafeBrowsingTrustedURLDescription, flags_ui::kOsIos,
2613 FEATURE_VALUE_TYPE(kSafeBrowsingTrustedURL)},
Gauthier Ambard46298c162025-04-03 10:28:102614 {"contained-tab-group", flag_descriptions::kContainedTabGroupName,
2615 flag_descriptions::kContainedTabGroupDescription, flags_ui::kOsIos,
2616 FEATURE_VALUE_TYPE(kContainedTabGroup)},
Federica Germinariof58b5a7e2024-10-22 10:35:422617};
sdefresne14900ee2015-11-27 14:43:212618
Rohit Raobed794c2020-04-27 15:27:452619bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
2620 return false;
2621}
2622
2623flags_ui::FlagsState& GetGlobalFlagsState() {
2624 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
2625 nullptr);
2626 return *flags_state;
2627}
David Jean5ca263c2021-08-18 09:19:302628// Creates the experimental test policies map, used by AsyncPolicyLoader and
2629// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342630NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:212631 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2632
Guillaume Jenkins25e9bd72020-08-27 17:39:062633 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:552634 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:062635 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:552636
Guillaume Jenkins25e9bd72020-08-27 17:39:062637 // Set some sample policy values for testing if EnableSamplePolicies is set to
2638 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:402639 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:552640 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:012641 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
2642
Guillaume Jenkinseeb7007c2020-06-25 22:55:402643 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
2644
2645 // 2 = Disable all variations
2646 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
2647
2648 // 2 = Do not allow any site to show popups
2649 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
2650
Tina Wang5abee802020-07-29 23:09:522651 // Set default search engine.
2652 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
2653 @YES,
2654 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
2655 @"http://www.google.com/search?q={searchTerms}",
2656 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:022657 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:522658
Tina Wang89068c82020-10-29 15:51:502659 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
2660
Gauthier Ambard21b23702021-04-16 16:11:272661 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
2662
Tina Wang59d0b7e2020-08-11 04:41:012663 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:532664
2665 // 2 = Enhanced safe browsing protection
2666 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
2667
2668 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:292669
2670 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:552671 }];
2672 }
2673
Ewann227a3c02021-04-19 12:04:542674 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:042675 NSString* sync_policy_key =
2676 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:302677 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:542678 }
Ewann227a3c02021-04-19 12:04:542679
Ewann570a6302021-08-17 07:22:422680 // SyncTypesListDisabled policy.
2681 NSString* Sync_types_list_disabled_key =
2682 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
2683 NSMutableArray* Sync_types_list_disabled_values =
2684 [[NSMutableArray alloc] init];
2685 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
2686 [Sync_types_list_disabled_values addObject:@"bookmarks"];
2687 }
2688 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
2689 [Sync_types_list_disabled_values addObject:@"readingList"];
2690 }
2691 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
2692 [Sync_types_list_disabled_values addObject:@"preferences"];
2693 }
2694 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
2695 [Sync_types_list_disabled_values addObject:@"passwords"];
2696 }
2697 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
2698 [Sync_types_list_disabled_values addObject:@"autofill"];
2699 }
2700 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
2701 [Sync_types_list_disabled_values addObject:@"typedUrls"];
2702 }
2703 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
2704 [Sync_types_list_disabled_values addObject:@"tabs"];
2705 }
2706 if ([Sync_types_list_disabled_values count]) {
2707 [testing_policies addEntriesFromDictionary:@{
2708 Sync_types_list_disabled_key : Sync_types_list_disabled_values
2709 }];
Ewann570a6302021-08-17 07:22:422710 }
2711
Gauthier Ambard073eaa92021-11-22 15:24:132712 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:522713 NSString* incognito_policy_key =
2714 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
2715 NSInteger incognito_mode_availability =
2716 [defaults integerForKey:incognito_policy_key];
2717 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:522718 [testing_policies addEntriesFromDictionary:@{
2719 incognito_policy_key : @(incognito_mode_availability),
2720 }];
2721 }
2722
Ewann40a8f8a2021-07-29 10:01:202723 NSString* restriction_pattern =
2724 [defaults stringForKey:@"RestrictAccountsToPatterns"];
2725 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:292726 NSString* restrict_key =
2727 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:202728 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:292729 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:202730 }];
2731 }
2732
Vincent Boisselle19200bc2021-09-01 17:58:252733 // If the sign-in policy is set (not "None"), add the policy key to the list
2734 // of enabled experimental policies, and set the value.
2735 NSString* const kSigninPolicyKey = @"BrowserSignin";
2736 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2737 if (signin_policy_mode) {
2738 // Remove the mode offset that was used to represent the unset policy.
2739 --signin_policy_mode;
2740 DCHECK(signin_policy_mode >= 0);
2741
Vincent Boisselle19200bc2021-09-01 17:58:252742 [testing_policies addEntriesFromDictionary:@{
2743 kSigninPolicyKey : @(signin_policy_mode),
2744 }];
2745 }
2746
Veronique Nguyen9b1044f2022-01-11 14:41:132747 // If the New Tab Page URL is set (not empty) add the value to the list of
2748 // test policies.
2749 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2750 if ([ntp_location length] > 0) {
2751 NSString* ntp_location_key =
2752 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2753 [testing_policies
2754 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572755 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132756 }
2757
Ali Juma9ec36d2b2022-03-28 14:53:122758 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2759 NSString* allow_backups_key =
2760 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2761 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2762 [allowed_experimental_policies addObject:allow_backups_key];
2763 }
2764
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242765 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2766 NSString* password_manager_key =
2767 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2768 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2769 [allowed_experimental_policies addObject:password_manager_key];
2770 }
Vincent Boisselle003569a72023-09-11 16:03:122771
2772 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2773 NSString* user_policy_merge_key =
2774 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2775 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2776 [allowed_experimental_policies addObject:user_policy_merge_key];
2777 }
2778
Arthur Milchiorbb44f5c82023-03-14 16:14:462779 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2780 NSString* managed_bookmarks_key =
2781 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2782 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572783 @"["
2784 // The following gets filtered out from
2785 // the JSON string when parsed.
2786 " {"
2787 " \"toplevel_name\": \"Managed Bookmarks\""
2788 " },"
2789 " {"
2790 " \"name\": \"Google\","
2791 " \"url\": \"google.com\""
2792 " },"
2793 " {"
2794 " \"name\": \"Empty Folder\","
2795 " \"children\": []"
2796 " },"
2797 " {"
2798 " \"name\": \"Big Folder\","
2799 " \"children\": ["
2800 " {"
2801 " \"name\": \"Youtube\","
2802 " \"url\": \"youtube.com\""
2803 " },"
2804 " {"
2805 " \"name\": \"Chromium\","
2806 " \"url\": \"chromium.org\""
2807 " },"
2808 " {"
2809 " \"name\": \"More Stuff\","
2810 " \"children\": ["
2811 " {"
2812 " \"name\": \"Bugs\","
2813 " \"url\": \"crbug.com\""
2814 " }"
2815 " ]"
2816 " }"
2817 " ]"
2818 " }"
2819 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462820 [testing_policies addEntriesFromDictionary:@{
2821 managed_bookmarks_key : managed_bookmarks_value
2822 }];
2823 [allowed_experimental_policies addObject:managed_bookmarks_key];
2824 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242825
Guillaume Jenkins25e9bd72020-08-27 17:39:062826 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2827 // policy.
2828 if ([allowed_experimental_policies count] > 0) {
2829 [testing_policies setValue:allowed_experimental_policies
2830 forKey:base::SysUTF8ToNSString(
2831 policy::key::kEnableExperimentalPolicies)];
2832 }
2833
jlebel2eb40222022-05-06 11:15:422834 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2835 switch ([defaults integerForKey:metrics_reporting_key]) {
2836 case 1:
2837 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132838 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422839 break;
2840 case 2:
2841 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132842 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422843 break;
2844 default:
2845 // Metrics reporting not managed.
2846 break;
2847 }
2848
David Jean6f85d44f2021-08-19 08:08:452849 // Warning: Add new flags to TestingPoliciesHash() below.
2850
David Jean5ca263c2021-08-18 09:19:302851 return testing_policies;
2852}
David Jean6f85d44f2021-08-19 08:08:452853
David Jean5ca263c2021-08-18 09:19:302854} // namespace
2855
Gauthier Ambard02dbf022022-08-23 08:28:472856// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302857void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2858 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2859
2860 // Set the UA flag if UseMobileSafariUA is enabled.
2861 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2862 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2863 // Chrome puts its product token.
2864 int32_t major = 0;
2865 int32_t minor = 0;
2866 int32_t bugfix = 0;
2867 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2868 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2869
2870 command_line->AppendSwitchASCII(switches::kUserAgent,
2871 web::BuildMobileUserAgent(product));
2872 }
2873
2874 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342875 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302876
2877 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2878 // Management to enabled and add the token to the list of policies.
2879 NSString* token_key =
2880 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2881 NSString* token = [defaults stringForKey:token_key];
2882
2883 if ([token length] > 0) {
2884 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2885 [testing_policies setValue:token forKey:token_key];
2886 }
2887
Guillaume Jenkins57606d72020-08-13 17:32:552888 // If some policies were set, commit them to the app's registration defaults.
2889 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402890 NSDictionary* registration_defaults =
2891 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2892 [defaults registerDefaults:registration_defaults];
2893 }
2894
sdefresne14900ee2015-11-27 14:43:212895 // Freeform commandline flags. These are added last, so that any flags added
2896 // earlier in this function take precedence.
2897 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2898 base::CommandLine::StringVector flags;
2899 // Append an empty "program" argument.
2900 flags.push_back("");
2901
2902 // The number of flags corresponds to the number of text fields in
2903 // Experimental.plist.
2904 const int kNumFreeformFlags = 5;
2905 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2906 NSString* key =
2907 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2908 NSString* flag = [defaults stringForKey:key];
2909 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332910 // iOS keyboard replaces -- with —, so undo that.
2911 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2912 withString:@"--"
2913 options:0
2914 range:NSMakeRange(0, 1)];
2915 // To make things easier, allow flags with no dashes by prepending them
2916 // here. This also allows for flags that just have one dash if they
2917 // exist.
2918 if (![flag hasPrefix:@"-"]) {
2919 flag = [@"--" stringByAppendingString:flag];
2920 }
sdefresne14900ee2015-11-27 14:43:212921 flags.push_back(base::SysNSStringToUTF8(flag));
2922 }
2923 }
2924
2925 base::CommandLine temp_command_line(flags);
2926 command_line->AppendArguments(temp_command_line, false);
2927 }
msardafc76f662017-02-24 12:46:282928
justincohendacc85d2017-06-28 23:34:102929 // Populate command line flag for 3rd party keyboard omnibox workaround.
2930 NSString* enableThirdPartyKeyboardWorkaround =
2931 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2932 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2933 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2934 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2935 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2936 }
2937
Sylvain Defresned3cd8d92022-01-18 13:35:082938 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212939}
2940
sdefresne14900ee2015-11-27 14:43:212941void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2942 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182943 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112944 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532945 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212946}
2947
jkrcalbf073372016-07-29 07:21:312948std::vector<std::string> RegisterAllFeatureVariationParameters(
2949 flags_ui::FlagsStorage* flags_storage,
2950 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182951 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2952 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312953}
2954
sdefresne14900ee2015-11-27 14:43:212955void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2956 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502957 base::Value::List& supported_entries,
2958 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182959 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212960 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512961 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212962}
2963
2964void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2965 const std::string& internal_name,
2966 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182967 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2968 enable);
sdefresne14900ee2015-11-27 14:43:212969}
2970
2971void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182972 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212973}
2974
Nicolas MacBeth972e2592023-02-23 15:22:092975bool IsRestartNeededToCommitChanges() {
2976 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2977}
2978
sdefresne14900ee2015-11-27 14:43:212979namespace testing {
2980
Elly Fong-Jones323ab1092021-08-23 22:36:312981base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2982 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532983 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212984}
2985
2986} // namespace testing