blob: 08b5bc10f2b6c29a9a4805ab9d82e5bff52b299a [file] [log] [blame]
Avi Drissmanea1be232022-09-14 23:29:061// Copyright 2012 The Chromium Authors
sdefresne14900ee2015-11-27 14:43:212// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Implementation of about_flags for iOS that sets flags based on experimental
6// settings.
7
Gauthier Ambard999088c2022-09-13 08:36:578#import "ios/chrome/browser/flags/about_flags.h"
sdefresne14900ee2015-11-27 14:43:219
Nazerke9c259052019-06-26 15:30:1010#import <UIKit/UIKit.h>
Gauthier Ambard999088c2022-09-13 08:36:5711#import <stddef.h>
12#import <stdint.h>
sdefresne14900ee2015-11-27 14:43:2113
Avi Drissmaneac566b02023-08-18 02:56:2114#import "base/apple/foundation_util.h"
Gauthier Ambard999088c2022-09-13 08:36:5715#import "base/base_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5716#import "base/check_op.h"
Peter Boström3f798572022-07-26 23:44:3617#import "base/debug/debugging_buildflags.h"
Avi Drissmancac43f22023-01-12 00:58:4118#import "base/functional/bind.h"
19#import "base/functional/callback_helpers.h"
Gauthier Ambard999088c2022-09-13 08:36:5720#import "base/no_destructor.h"
21#import "base/strings/stringprintf.h"
22#import "base/strings/sys_string_conversions.h"
23#import "base/system/sys_info.h"
24#import "components/autofill/core/common/autofill_features.h"
25#import "components/autofill/core/common/autofill_payments_features.h"
26#import "components/autofill/core/common/autofill_switches.h"
Vidhan Jain1199e202024-03-15 14:42:5927#import "components/autofill/ios/common/features.h"
Menghan YANGf3fe2de52023-02-27 16:38:5028#import "components/bookmarks/common/bookmark_features.h"
Marc Treib1f6c5db992024-01-04 20:25:1429#import "components/browser_sync/browser_sync_switches.h"
Tommy Nyquiste1447512024-12-17 17:46:2430#import "components/collaboration/public/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5731#import "components/commerce/core/commerce_feature_list.h"
32#import "components/commerce/core/flag_descriptions.h"
33#import "components/content_settings/core/common/features.h"
Asami Doi93db79e2024-09-06 18:16:5534#import "components/data_sharing/public/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5735#import "components/dom_distiller/core/dom_distiller_switches.h"
Raj Tb95d813542022-11-16 21:27:5236#import "components/download/public/background_service/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5737#import "components/enterprise/browser/enterprise_switches.h"
38#import "components/feature_engagement/public/feature_constants.h"
39#import "components/feature_engagement/public/feature_list.h"
40#import "components/feed/feed_feature_list.h"
41#import "components/flags_ui/feature_entry.h"
42#import "components/flags_ui/feature_entry_macros.h"
43#import "components/flags_ui/flags_storage.h"
44#import "components/flags_ui/flags_ui_switches.h"
Benjamin Williams11f39912023-04-13 19:00:2545#import "components/history/core/browser/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5746#import "components/invalidation/impl/invalidation_switches.h"
Benjamin Williamsaa8da8142022-11-14 19:51:0347#import "components/ntp_tiles/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5748#import "components/ntp_tiles/switches.h"
49#import "components/omnibox/browser/omnibox_field_trial.h"
Fabio Tirelo7d1f1ba2024-12-18 23:01:1250#import "components/omnibox/common/omnibox_feature_configs.h"
Gauthier Ambard999088c2022-09-13 08:36:5751#import "components/omnibox/common/omnibox_features.h"
52#import "components/optimization_guide/core/optimization_guide_features.h"
Raj Ta921ffc2022-08-25 19:00:2053#import "components/optimization_guide/core/optimization_guide_switches.h"
Raj Tc66dd122024-04-01 18:48:3954#import "components/page_content_annotations/core/page_content_annotations_features.h"
Olivier ROBINcb76f4fe2024-06-05 16:11:4255#import "components/page_image_service/features.h"
Vasilii Sukhanov32b14452023-10-12 17:31:2756#import "components/password_manager/core/browser/features/password_features.h"
Gauthier Ambard999088c2022-09-13 08:36:5757#import "components/password_manager/core/common/password_manager_features.h"
58#import "components/payments/core/features.h"
Guillaume Jenkinseeb7007c2020-06-25 22:55:4059#import "components/policy/core/common/policy_loader_ios_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5760#import "components/policy/policy_constants.h"
61#import "components/safe_browsing/core/common/features.h"
Benjamin Williamsbd411e892024-10-25 15:59:3162#import "components/segmentation_platform/embedder/home_modules/constants.h"
Chris Lu6fd4eaf2023-08-08 18:29:3063#import "components/segmentation_platform/public/constants.h"
Chris Lub0bad572023-08-07 18:13:2964#import "components/segmentation_platform/public/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2565#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5766#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
67#import "components/signin/core/browser/account_reconcilor.h"
68#import "components/signin/ios/browser/features.h"
69#import "components/signin/public/base/signin_switches.h"
70#import "components/strings/grit/components_strings.h"
Nohemi Fernandez64acf982023-08-04 09:27:1571#import "components/supervised_user/core/common/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5772#import "components/sync/base/command_line_switches.h"
73#import "components/sync/base/features.h"
74#import "components/sync/base/pref_names.h"
75#import "components/translate/core/browser/translate_prefs.h"
76#import "components/translate/core/common/translate_util.h"
Ed Chin91e44992022-07-27 13:42:3477#import "ios/chrome/app/background_mode_buildflags.h"
Stepan Khapugin923665732025-01-02 16:23:3878#import "ios/chrome/browser/authentication/ui_bundled/signin/interruptible_chrome_coordinator.h"
Gauthier Ambard5b7f3c22023-09-13 12:03:3079#import "ios/chrome/browser/browsing_data/model/browsing_data_features.h"
Aman Vermab6f55572023-09-28 11:40:5380#import "ios/chrome/browser/crash_report/model/features.h"
Sebsgfcd5b0b2024-04-09 08:18:3281#import "ios/chrome/browser/credential_provider/model/features.h"
Aman Vermaf8a157f62023-10-03 15:32:1182#import "ios/chrome/browser/default_browser/model/utils.h"
Nan Lina498c412024-06-13 15:33:3283#import "ios/chrome/browser/download/ui_bundled/features.h"
mmrashadbc0ca942023-10-06 13:12:1484#import "ios/chrome/browser/find_in_page/model/util.h"
Hira Mahmoodf6906a82025-01-02 17:55:0985#import "ios/chrome/browser/first_run/ui_bundled/features.h"
Gauthier Ambard92605132022-08-26 13:25:1786#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5787#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Vincent Boisselle8b321bb2023-11-28 13:58:3188#import "ios/chrome/browser/follow/model/follow_features.h"
Rubin Deliallisib66a77a2024-10-02 18:09:4889#import "ios/chrome/browser/incognito_reauth/ui_bundled/features.h"
Ali Jumad29dc1872023-10-19 13:33:5890#import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h"
Christian Xuff884802024-11-25 23:36:1891#import "ios/chrome/browser/lens/ui_bundled/features.h"
Hira Mahmood664449872024-11-18 23:55:2292#import "ios/chrome/browser/ntp/model/features.h"
Chris Lu09019af2024-08-28 08:38:4493#import "ios/chrome/browser/ntp/ui_bundled/new_tab_page_feature.h"
Christian Xu7d865f9b2024-11-22 14:36:1794#import "ios/chrome/browser/omnibox/ui_bundled/omnibox_ui_features.h"
Stepan Khapugin34e459742024-12-06 09:39:5995#import "ios/chrome/browser/page_info/ui_bundled/features.h"
Stephen McGruer5ac77b932024-11-07 20:09:4396#import "ios/chrome/browser/parcel_tracking/features.h"
mmrashadd0c7f952023-12-14 13:36:3897#import "ios/chrome/browser/policy/model/policy_util.h"
Cheick Cisse85457f22024-05-23 22:37:5998#import "ios/chrome/browser/price_insights/model/price_insights_feature.h"
Stepan Khapugin5694d702024-01-31 13:23:0899#import "ios/chrome/browser/promos_manager/model/features.h"
mmrashadf158cad942023-10-03 09:15:48100#import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h"
Christian Xu51be15a2024-11-26 17:42:19101#import "ios/chrome/browser/settings/ui_bundled/clear_browsing_data/features.h"
Christian Xub0c68ff2024-11-28 11:50:47102#import "ios/chrome/browser/settings/ui_bundled/google_services/features.h"
Xu Li9854c992024-12-19 20:53:08103#import "ios/chrome/browser/settings/ui_bundled/password/password_manager_ui_features.h"
Christian Xu585a04512024-11-27 16:29:49104#import "ios/chrome/browser/settings/ui_bundled/privacy/privacy_guide/features.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:46105#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:35106#import "ios/chrome/browser/shared/public/features/system_flags.h"
Tina Wang75f21e82024-07-01 18:00:35107#import "ios/chrome/browser/start_surface/ui_bundled/start_surface_features.h"
Robbie Gibson596fe292023-10-27 01:00:36108#import "ios/chrome/browser/tabs/model/inactive_tabs/features.h"
Ewann Pelled2eaeba2023-09-19 09:15:28109#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Robbie Gibson686c56732021-10-04 17:11:45110#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58111#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Weizhong Xia8b908bda2023-12-05 16:00:22112#import "ios/chrome/browser/web/model/features.h"
Gauthier Ambard999088c2022-09-13 08:36:57113#import "ios/chrome/grit/ios_strings.h"
114#import "ios/components/security_interstitials/https_only_mode/feature.h"
115#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
116#import "ios/web/common/features.h"
117#import "ios/web/common/user_agent.h"
118#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21119
Sylvain Defresne9c107082020-10-27 16:39:13120#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
mmrashadf158cad942023-10-03 09:15:48121#import "ios/chrome/browser/screen_time/model/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13122#endif
123
sdefresne14900ee2015-11-27 14:43:21124#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57125#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22126#endif
stkhapuginc1be1792016-12-13 14:30:53127
elawrence816f6790e2017-06-16 18:19:28128using flags_ui::FeatureEntry;
129
sdefresne14900ee2015-11-27 14:43:21130namespace {
Emily Starkbafa9062017-12-27 15:22:46131
Nohemi Fernandezc00842a2021-07-26 11:47:34132const FeatureEntry::Choice
133 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
134 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
135 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
136 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
137 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
138};
139
Stepan Khapugincc4e9842019-01-23 13:38:13140const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
141 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
142const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
143 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
144const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
145 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
146const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
147 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
148const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
149 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
150const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
151 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
152const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
153 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
154
155const FeatureEntry::FeatureVariation
156 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
157 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53158 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13159 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53160 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13161 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53162 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13163 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53164 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13165 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53166 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13167 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53168 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13169 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53170 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13171
Stepan Khapuginbac467e2022-05-06 21:11:54172const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
173 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
174const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
175 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
176const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
177 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
178
179const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
180 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
181 nullptr},
182 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
183 nullptr},
184 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
185 nullptr},
186};
187
Christian Xucf26d562022-07-06 09:28:36188const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
189 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
190const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
191 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
192const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
193 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
194
195const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
196 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
197 nullptr},
198 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
199 nullptr},
200 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
201 nullptr},
202};
203
Guillem Perez40086ef2023-11-20 20:03:52204const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = {
205 {kContentPushNotificationsExperimentType, "1"}};
206const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] =
207 {{kContentPushNotificationsExperimentType, "2"}};
Guillem Perez222b5b22024-01-20 02:16:27208const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] =
209 {{kContentPushNotificationsExperimentType, "3"}};
Tina Wangb7f5b3f2024-05-07 06:24:26210const FeatureEntry::FeatureParam
211 kContentPushNotificationsPromoRegistrationOnly[] = {
212 {kContentPushNotificationsExperimentType, "5"}};
213const FeatureEntry::FeatureParam
214 kContentPushNotificationsProvisionalRegistrationOnly[] = {
215 {kContentPushNotificationsExperimentType, "6"}};
216const FeatureEntry::FeatureParam
217 kContentPushNotificationsSetUpListRegistrationOnly[] = {
218 {kContentPushNotificationsExperimentType, "7"}};
Guillem Perez40086ef2023-11-20 20:03:52219
220const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = {
221 {"Promo", kContentPushNotificationsEnabledPromo,
222 std::size(kContentPushNotificationsEnabledPromo), nullptr},
223 {"Set up list", kContentPushNotificationsEnabledSetupLists,
Guillem Perez222b5b22024-01-20 02:16:27224 std::size(kContentPushNotificationsEnabledSetupLists), nullptr},
225 {"Provisional Notification", kContentPushNotificationsEnabledProvisional,
Guillem Perez749b3fc2024-02-13 19:29:49226 std::size(kContentPushNotificationsEnabledProvisional), nullptr},
Tina Wangb7f5b3f2024-05-07 06:24:26227 {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly,
228 std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr},
229 {"Provisional Notification Registeration Only",
230 kContentPushNotificationsProvisionalRegistrationOnly,
231 std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr},
232 {"Set up list Registeration Only",
233 kContentPushNotificationsSetUpListRegistrationOnly,
234 std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}};
Guillem Perez40086ef2023-11-20 20:03:52235
Chris Ludca9ce32023-09-20 16:53:50236const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35237 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50238const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35239 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08240
gogerald0e39e3aa2021-02-10 18:41:23241const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50242 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
243 std::size(kStartSurfaceTenSeconds), nullptr},
244 {"1h:Show Home Surface", kStartSurfaceOneHour,
245 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08246};
gogerald0e39e3aa2021-02-10 18:41:23247
Chris Luce928eb2023-05-12 21:36:26248const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
249 {kMagicStackMostVisitedModuleParam, "true"},
250 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22251const FeatureEntry::FeatureParam
252 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
253 {kMagicStackMostVisitedModuleParam, "true"},
254 {kReducedSpaceParam, "-80"},
255 {kHideIrrelevantModulesParam, "true"}};
Chris Lu8cf8ef82024-03-18 18:30:54256const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = {
Chris Luce928eb2023-05-12 21:36:26257 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu8cf8ef82024-03-18 18:30:54258 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26259
260const FeatureEntry::FeatureVariation kMagicStackVariations[]{
261 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
262 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22263 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
264 kMagicStackMostVisitedModuleHideIrrelevantModules,
265 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu8cf8ef82024-03-18 18:30:54266 {"Hide irrelevant modules", kMagicStackHidIrrelevantModules,
267 std::size(kMagicStackHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26268};
269
Chris Lu6fd4eaf2023-08-08 18:29:30270const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
271 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
272
273const FeatureEntry::FeatureVariation
274 kSegmentationPlatformIosModuleRankerVariations[]{
275 {"Enabled With Default Model Parameter (Must Set this!)",
276 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
277 };
278
Scott Yoderaf2bdf32024-01-30 20:26:15279const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31280 {kIOSTipsNotificationsUnknownTriggerTimeParam, "5s"},
281 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "5s"},
282 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "5s"},
Scott Yoderaf2bdf32024-01-30 20:26:15283};
284const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31285 {kIOSTipsNotificationsUnknownTriggerTimeParam, "10s"},
286 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "10s"},
287 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "10s"},
Scott Yoderaf2bdf32024-01-30 20:26:15288};
Scott Yoderd2dbc87f2024-03-07 18:23:37289const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31290 {kIOSTipsNotificationsUnknownTriggerTimeParam, "30s"},
291 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "30s"},
292 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "30s"},
Scott Yoderd2dbc87f2024-03-07 18:23:37293};
Scott Yoderaf2bdf32024-01-30 20:26:15294const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = {
295 {"(5s trigger)", kIOSTipsNotifications5SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07296 std::size(kIOSTipsNotifications5SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15297 {"(10s trigger)", kIOSTipsNotifications10SecondTrigger,
298 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderd2dbc87f2024-03-07 18:23:37299 {"(30s trigger)", kIOSTipsNotifications30SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07300 std::size(kIOSTipsNotifications30SecondTrigger), nullptr},
301};
302
303const FeatureEntry::FeatureParam
304 kIOSReactivationNotifications10SecondTrigger[] = {
305 {kIOSReactivationNotificationsTriggerTimeParam, "10s"},
306};
307const FeatureEntry::FeatureParam
308 kIOSReactivationNotifications30SecondTrigger[] = {
309 {kIOSReactivationNotificationsTriggerTimeParam, "30s"},
310};
311const FeatureEntry::FeatureVariation kIOSReactivationNotificationsVariations[] =
312 {
313 {"(10s trigger)", kIOSReactivationNotifications10SecondTrigger,
314 std::size(kIOSReactivationNotifications10SecondTrigger), nullptr},
315 {"(30s trigger)", kIOSReactivationNotifications30SecondTrigger,
316 std::size(kIOSReactivationNotifications30SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15317};
318
Ed Chin91e44992022-07-27 13:42:34319#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26320// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01321const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04322 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
323 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01324 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04325 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01326const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04327 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
328 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01329 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04330 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01331const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04332 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
333 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01334 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04335 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01336const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04337 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
338 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01339 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04340 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01341const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04342 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
343 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01344 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
345 {kBackgroundRefreshIntervalInSeconds, "0"}};
346const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04347 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
348 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01349 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
350 {kBackgroundRefreshIntervalInSeconds, "0"}};
351const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
352 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
353 {kEnableRecurringBackgroundRefreshSchedule, "false"},
354 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
355 {kBackgroundRefreshIntervalInSeconds, "0"}};
356const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
357 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
358 {kEnableRecurringBackgroundRefreshSchedule, "true"},
359 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
360 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04361
Ed Chin178ec2a2023-02-10 22:21:26362// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04363const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01364 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
365 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
366 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
367 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
368 {"1hr Interval 1hr Max Age Recurring",
369 kOneHourIntervalOneHourMaxAgeRecurring,
370 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
371 {"4hr Interval 6hr Max Age Recurring",
372 kFourHourIntervalSixHourMaxAgeRecurring,
373 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
374 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
375 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
376 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
377 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
378 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
379 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
380 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
381 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04382};
Ed Chin91e44992022-07-27 13:42:34383#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04384
David Jeanf361ae9d2024-04-09 08:19:47385const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = {
386 {kTextClassifierAddressParameterName, "true"}};
387const FeatureEntry::FeatureVariation
388 kEnableExpKitTextClassifierAddressVariations[] = {
389 {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap,
390 std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}};
391
392const FeatureEntry::FeatureParam
393 kEnableExpKitTextClassifierPhoneNumberOneTap[] = {
394 {kTextClassifierPhoneNumberParameterName, "true"}};
395const FeatureEntry::FeatureVariation
396 kEnableExpKitTextClassifierPhoneNumberVariations[] = {
397 {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap,
398 std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}};
399
400const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = {
401 {kTextClassifierEmailParameterName, "true"}};
402const FeatureEntry::FeatureVariation
403 kEnableExpKitTextClassifierEmailVariations[] = {
404 {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap,
405 std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15406
Ewann Pellea2bcb3a2023-08-28 13:53:00407const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = {
408 {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}};
409const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = {
410 {kTabResumptionParameterName, kTabResumptionAllTabsParam}};
Ewann Pelleb08ee062023-10-16 10:04:48411const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = {
Olivier Robinbb46d05d2024-06-25 17:56:35412 {kTabResumptionParameterName, kTabResumptionAllTabsParam},
413 {kTabResumptionThresholdParameterName, /* 24 hours */ "86400"}};
Ewann Pellea2bcb3a2023-08-28 13:53:00414
415const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
416 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
417 std::size(kTabResumptionMostRecentTabOnly), nullptr},
Ewann Pelleb08ee062023-10-16 10:04:48418 {"Most recent tab and last synced tab (12 hours threshold)",
419 kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr},
420 {"Most recent tab and last synced tab (24 hours threshold)",
421 kTabResumptionAllTabsOneDayThreshold,
Olivier Robin08bc56d02024-06-05 14:05:18422 std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}};
Ewann Pelle6eecb8f2023-06-23 14:31:37423
Olivier ROBIN2613bcd02023-04-20 10:00:47424
Christian Xu07d600192023-07-24 12:29:52425const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
426 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
427const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
428 {kBottomOmniboxDefaultSettingParam,
429 kBottomOmniboxDefaultSettingParamBottom}};
430const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
431 {{kBottomOmniboxDefaultSettingParam,
432 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
433const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
434 {
435 {"Top", kBottomOmniboxDefaultSettingTop,
436 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
437 {"Bottom", kBottomOmniboxDefaultSettingBottom,
438 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
439 {"Bottom for Safari Switcher",
440 kBottomOmniboxDefaultSettingSafariSwitcher,
441 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
442};
443
Cheick Cisse85457f22024-05-23 22:37:59444constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
445 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
446constexpr flags_ui::FeatureEntry::FeatureParam
447 kPriceInsightsGoodDealNowParam[] = {
448 {kLowPriceParam, kLowPriceParamGoodDealNow}};
449constexpr flags_ui::FeatureEntry::FeatureParam
450 kPriceInsightsSeePriceHistoryParam[] = {
451 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
452constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
453 {{"Price is low", kPriceInsightsPriceIsLowParam,
454 std::size(kPriceInsightsPriceIsLowParam), nullptr},
455 {"Good deal now", kPriceInsightsGoodDealNowParam,
456 std::size(kPriceInsightsGoodDealNowParam), nullptr},
457 {"See price history", kPriceInsightsSeePriceHistoryParam,
458 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
459
Olivier ROBIN82b67002023-07-31 14:34:46460const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
461 {web::features::kOneTapForMapsConsentModeParamTitle,
462 web::features::kOneTapForMapsConsentModeDefaultParam}};
463const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
464 {web::features::kOneTapForMapsConsentModeParamTitle,
465 web::features::kOneTapForMapsConsentModeForcedParam}};
466const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
467 {web::features::kOneTapForMapsConsentModeParamTitle,
468 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31469const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
470 {web::features::kOneTapForMapsConsentModeParamTitle,
471 web::features::kOneTapForMapsConsentModeIPHParam}};
472const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
473 {web::features::kOneTapForMapsConsentModeParamTitle,
474 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46475const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
476 {"Consent Default", kOneTapForMapsConsentModeDefault,
477 std::size(kOneTapForMapsConsentModeDefault), nullptr},
478 {"Consent Forced", kOneTapForMapsConsentModeForced,
479 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31480 {"Consent IPH", kOneTapForMapsConsentModeIPH,
481 std::size(kOneTapForMapsConsentModeIPH), nullptr},
482 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
483 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46484 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
485 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
486};
487
Benjamin Williams1dc8f2342024-01-04 21:25:55488const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
489 {kIOSDockingPromoExperimentType, "0"}};
490const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
491 {kIOSDockingPromoExperimentType, "1"}};
492const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
493 {kIOSDockingPromoExperimentType, "2"}};
494
495const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
496 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
497 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
498 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
499 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
500 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
501 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
502
Ewann Pellec8634ab2024-02-23 16:50:35503const FeatureEntry::FeatureParam kModernTabStripNTBDynamic[] = {
504 {kModernTabStripParameterName, kModernTabStripNTBDynamicParam}};
505const FeatureEntry::FeatureParam kModernTabStripNTBStatic[] = {
506 {kModernTabStripParameterName, kModernTabStripNTBStaticParam}};
Gauthier Ambardf1cd72f2024-10-08 16:15:33507const FeatureEntry::FeatureParam kModernTabStripCloserNTBOption[] = {
508 {kModernTabStripCloserNTB, "true"},
509 {kModernTabStripBiggerNTB, "true"}};
510const FeatureEntry::FeatureParam kModernTabStripDarkerBackgroundOption[] = {
511 {kModernTabStripDarkerBackground, "true"},
512 {kModernTabStripBiggerNTB, "true"}};
513const FeatureEntry::FeatureParam
514 kModernTabStripCloserNTBDarkerBackgroundOption[] = {
515 {kModernTabStripDarkerBackground, "true"},
516 {kModernTabStripCloserNTB, "true"},
517 {kModernTabStripBiggerNTB, "true"}};
518const FeatureEntry::FeatureParam kModernTabStripNTBNoBackgroundOption[] = {
519 {kModernTabStripNTBNoBackground, "true"},
520 {kModernTabStripBiggerNTB, "true"}};
521const FeatureEntry::FeatureParam kModernTabStripBlackBackgroundOption[] = {
522 {kModernTabStripBlackBackground, "true"},
523 {kModernTabStripNTBNoBackground, "true"},
524 {kModernTabStripBiggerNTB, "true"}};
Ewann Pellec8634ab2024-02-23 16:50:35525
Gauthier Ambard13b1a742024-10-09 07:53:22526const FeatureEntry::FeatureParam kModernTabStripCloseButtonVisibleOption[] = {
Gauthier Ambard5ae1e11c2024-10-09 15:11:25527 {kModernTabStripCloseButtonsVisible, "true"},
528 {kModernTabStripCloserNTB, "true"},
Gauthier Ambard6a26ebd2024-10-14 11:12:41529 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25530 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambard13b1a742024-10-09 07:53:22531const FeatureEntry::FeatureParam
532 kModernTabStripInactiveTabsHighContrastOption[] = {
533 {kModernTabStripInactiveTabsHighContrast, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25534 {kModernTabStripCloserNTB, "true"},
535 {kModernTabStripDarkerBackgroundV3, "true"},
Gauthier Ambard6a26ebd2024-10-14 11:12:41536 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25537 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambard13b1a742024-10-09 07:53:22538const FeatureEntry::FeatureParam kModernTabStripHighContrastNTBOption[] = {
Gauthier Ambard5ae1e11c2024-10-09 15:11:25539 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard4934d1c2024-10-10 13:49:50540 {kModernTabStripNTBNoBackground, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25541 {kModernTabStripCloserNTB, "true"},
542 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambardcfa64ec02024-10-11 14:56:42543const FeatureEntry::FeatureParam kModernTabStripV3AllOptions[] = {
Gauthier Ambard13b1a742024-10-09 07:53:22544 {kModernTabStripCloseButtonsVisible, "true"},
Gauthier Ambard4934d1c2024-10-10 13:49:50545 {kModernTabStripNTBNoBackground, "true"},
Gauthier Ambard13b1a742024-10-09 07:53:22546 {kModernTabStripInactiveTabsHighContrast, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25547 {kModernTabStripCloserNTB, "true"},
Gauthier Ambard13b1a742024-10-09 07:53:22548 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25549 {kModernTabStripDarkerBackgroundV3, "true"},
550 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambardcfa64ec02024-10-11 14:56:42551const FeatureEntry::FeatureParam kModernTabStripDetachedTabsOptions[] = {
552 {kModernTabStripCloseButtonsVisible, "true"},
553 {kModernTabStripHighContrastNTB, "true"},
554 {kModernTabStripInactiveTabsHighContrast, "true"},
Gauthier Ambard6a26ebd2024-10-14 11:12:41555 {kModernTabStripDarkerBackgroundV3, "true"},
Gauthier Ambardcfa64ec02024-10-11 14:56:42556 {kModernTabStripDetachedTabs, "true"},
557 {kModernTabStripCloserNTB, "true"},
558 {kModernTabStripNTBNoBackground, "true"},
559 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambard13b1a742024-10-09 07:53:22560
Ewann Pellec8634ab2024-02-23 16:50:35561const FeatureEntry::FeatureVariation kModernTabStripVariations[] = {
562 {"New tab button dynamic", kModernTabStripNTBDynamic,
563 std::size(kModernTabStripNTBDynamic), nullptr},
564 {"New tab button static", kModernTabStripNTBStatic,
565 std::size(kModernTabStripNTBStatic), nullptr},
Gauthier Ambardf1cd72f2024-10-08 16:15:33566 {"Closer NTB", kModernTabStripCloserNTBOption,
567 std::size(kModernTabStripCloserNTBOption), nullptr},
568 {"Darker background", kModernTabStripDarkerBackgroundOption,
569 std::size(kModernTabStripDarkerBackgroundOption), nullptr},
570 {"Closer NTB + darker background",
571 kModernTabStripCloserNTBDarkerBackgroundOption,
572 std::size(kModernTabStripCloserNTBDarkerBackgroundOption), nullptr},
573 {"NTB no background", kModernTabStripNTBNoBackgroundOption,
574 std::size(kModernTabStripNTBNoBackgroundOption), nullptr},
575 {"Black background", kModernTabStripBlackBackgroundOption,
576 std::size(kModernTabStripBlackBackgroundOption), nullptr},
Gauthier Ambard13b1a742024-10-09 07:53:22577 {"V3 Close buttons", kModernTabStripCloseButtonVisibleOption,
578 std::size(kModernTabStripCloseButtonVisibleOption), nullptr},
579 {"V3 High Contrast tabs", kModernTabStripInactiveTabsHighContrastOption,
580 std::size(kModernTabStripInactiveTabsHighContrastOption), nullptr},
581 {"V3 Visible NTB", kModernTabStripHighContrastNTBOption,
582 std::size(kModernTabStripHighContrastNTBOption), nullptr},
Gauthier Ambardcfa64ec02024-10-11 14:56:42583 {"V3 all options", kModernTabStripV3AllOptions,
584 std::size(kModernTabStripV3AllOptions), nullptr},
585 {"V3 detached tabs", kModernTabStripDetachedTabsOptions,
586 std::size(kModernTabStripDetachedTabsOptions), nullptr},
Ewann Pellec8634ab2024-02-23 16:50:35587};
588
Olivier ROBINcb76f4fe2024-06-05 16:11:42589const FeatureEntry::FeatureVariation
590 kImageServiceOptimizationGuideSalientImagesVariations[] = {
591 {"High Performance Canonicalization", nullptr, 0, "3362133"},
592};
593
Olivier Robinf8374f12024-06-05 19:00:04594const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] =
595 {{kTR15SeeMoreButtonParam, "false"}};
Olivier Robinf8374f12024-06-05 19:00:04596
597const FeatureEntry::FeatureVariation kTabResumption15Variations[] = {
Olivier Robinf8374f12024-06-05 19:00:04598 {"No See More Button", kTabResumption15DisableSeeMoreButtonImages,
599 std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr},
Olivier Robinf8374f12024-06-05 19:00:04600};
Olivier ROBINb17c14b92024-10-09 13:49:13601
602const FeatureEntry::FeatureParam kTabResumptionImagesOnlyThumbnail[] = {
603 {kTabResumptionImagesTypes, kTabResumptionImagesTypesThumbnails}};
604const FeatureEntry::FeatureParam kTabResumptionImagesOnlySalient[] = {
605 {kTabResumptionImagesTypes, kTabResumptionImagesTypesSalient}};
606
607const FeatureEntry::FeatureVariation kTabResumptionImagesVariations[] = {
608 {"Only thumbnails", kTabResumptionImagesOnlyThumbnail,
609 std::size(kTabResumptionImagesOnlyThumbnail), nullptr},
610 {"Only salient", kTabResumptionImagesOnlySalient,
611 std::size(kTabResumptionImagesOnlySalient), nullptr},
612};
613
Charles Yangf8e7adf2024-06-11 00:17:00614// Uses int values from Lens filters ablation mode enum.
615const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
616 {kLensFiltersAblationMode, "0"}};
617const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
618 {kLensFiltersAblationMode, "1"}};
619const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
620 {kLensFiltersAblationMode, "2"}};
621const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
622 {kLensFiltersAblationMode, "3"}};
623
624const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
625 {"(Disabled)", kLensFiltersAblationModeDisabled,
626 std::size(kLensFiltersAblationModeDisabled), nullptr},
627 {"(Post Capture)", kLensFiltersAblationModePostCapture,
628 std::size(kLensFiltersAblationModePostCapture), nullptr},
629 {"(LVF)", kLensFiltersAblationModeLVF,
630 std::size(kLensFiltersAblationModeLVF), nullptr},
631 {"(Always)", kLensFiltersAblationModeAlways,
632 std::size(kLensFiltersAblationModeAlways), nullptr}};
633
634// Uses int values from Lens translate toggle mode enum.
635const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
636 {kLensTranslateToggleMode, "0"}};
637const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
638 {kLensTranslateToggleMode, "1"}};
639const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
640 {kLensTranslateToggleMode, "2"}};
641const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
642 {kLensTranslateToggleMode, "3"}};
643
644const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
645 {"(Disabled)", kLensTranslateToggleModeDisabled,
646 std::size(kLensTranslateToggleModeDisabled), nullptr},
647 {"(Post Capture)", kLensTranslateToggleModePostCapture,
648 std::size(kLensTranslateToggleModePostCapture), nullptr},
649 {"(LVF)", kLensTranslateToggleModeLVF,
650 std::size(kLensTranslateToggleModeLVF), nullptr},
651 {"(Always)", kLensTranslateToggleModeAlways,
652 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04653
Khalid Peer7cf75a22024-06-13 17:25:49654const FeatureEntry::FeatureParam
655 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
656 {"MlUrlPiecewiseMappedSearchBlending", "true"},
657 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
658 "0,550;0.018,1300;0.14,1398;1,1422"},
659 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
660 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
661const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41662 kMlUrlPiecewiseMappedSearchBlendingDemotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49663 {"MlUrlPiecewiseMappedSearchBlending", "true"},
664 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
665 "0,550;0.018,1250;0.14,1348;1,1422"},
666 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
667 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
668const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41669 kMlUrlPiecewiseMappedSearchBlendingPromotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49670 {"MlUrlPiecewiseMappedSearchBlending", "true"},
671 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41672 "0,550;0.018,1350;0.14,1448;1,1472"},
673 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1450"},
Khalid Peer7cf75a22024-06-13 17:25:49674 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
675const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41676 kMlUrlPiecewiseMappedSearchBlendingPromotedBy100[] = {
Khalid Peer7cf75a22024-06-13 17:25:49677 {"MlUrlPiecewiseMappedSearchBlending", "true"},
678 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41679 "0,550;0.018,1400;0.14,1498;1,1522"},
680 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1500"},
Khalid Peer7cf75a22024-06-13 17:25:49681 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer4501c1f2024-06-27 16:12:04682const FeatureEntry::FeatureParam
683 kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = {
684 {"MlUrlPiecewiseMappedSearchBlending", "true"},
685 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer5c9bd9e2024-07-17 17:16:42686 "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:04687 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"},
688 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer7cf75a22024-06-13 17:25:49689
690const FeatureEntry::FeatureVariation
691 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
692 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
693 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
Khalid Peer9c07798f2024-07-15 22:39:41694 {"demoted by 50", kMlUrlPiecewiseMappedSearchBlendingDemotedBy50,
695 std::size(kMlUrlPiecewiseMappedSearchBlendingDemotedBy50), nullptr},
696 {"promoted by 50", kMlUrlPiecewiseMappedSearchBlendingPromotedBy50,
697 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy50), nullptr},
698 {"promoted by 100", kMlUrlPiecewiseMappedSearchBlendingPromotedBy100,
699 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy100), nullptr},
Khalid Peer4501c1f2024-06-27 16:12:04700 {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping,
701 std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr},
Khalid Peer7cf75a22024-06-13 17:25:49702};
703
704const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
705 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
706 {"MlUrlScoringShortcutDocumentSignals", "true"},
707};
708const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
709 {
710 {"MlUrlScoringUnlimitedNumCandidates", "true"},
711 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
712 {"MlUrlScoringShortcutDocumentSignals", "true"},
713};
714// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
715// Document(512), and History Fuzzy(65536) providers max matches to 10.
716const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
717 {
718 {"MlUrlScoringMaxMatchesByProvider",
719 "1:10,4:10,8:10,64:10,512:10,65536:10"},
720 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
721 {"MlUrlScoringShortcutDocumentSignals", "true"},
722};
723
724const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
725 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
726 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
727 {"unlimited suggestion candidates",
728 kOmniboxMlUrlScoringUnlimitedNumCandidates,
729 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
730 {"Increase provider max limit to 10",
731 kOmniboxMlUrlScoringMaxMatchesByProvider10,
732 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
733};
734
735const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
736 {"MlUrlSearchBlending_StableSearchBlending", "true"},
737 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
738};
739const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
740 {
741 {"MlUrlSearchBlending_StableSearchBlending", "false"},
742 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
743 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
744 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
745 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
746};
747const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
748 {"MlUrlSearchBlending_StableSearchBlending", "false"},
749 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
750};
751const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
752 {"MlUrlSearchBlending_StableSearchBlending", "false"},
753 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
754 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
755 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
756 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
757};
758
759const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
760 {"Stable", kMlUrlSearchBlendingStable,
761 std::size(kMlUrlSearchBlendingStable), nullptr},
762 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
763 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
764 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
765 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
766 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
767 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
768};
769
Khalid Peer4501c1f2024-06-27 16:12:04770const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = {
771 {"Small model", nullptr, 0, "3379590"},
772 {"Full model", nullptr, 0, "3380197"},
773};
774
Benjamin Williams0594caf2024-07-09 17:51:38775const FeatureEntry::FeatureParam kSafetyCheckNotificationsVerbose[] = {
776 {kSafetyCheckNotificationsExperimentType, "0"}};
777const FeatureEntry::FeatureParam kSafetyCheckNotificationsSuccinct[] = {
778 {kSafetyCheckNotificationsExperimentType, "1"}};
779
780const FeatureEntry::FeatureVariation kSafetyCheckNotificationsVariations[] = {
781 {"Display multiple notifications at once", kSafetyCheckNotificationsVerbose,
782 std::size(kSafetyCheckNotificationsVerbose), nullptr},
783 {"Display one notification at a time", kSafetyCheckNotificationsSuccinct,
784 std::size(kSafetyCheckNotificationsSuccinct), nullptr}};
785
Elmehdi Rahmaouif5b76462024-06-24 10:44:46786const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = {
787 {kSaveToPhotosContextMenuImprovementParam, "true"},
788 {kSaveToPhotosTitleImprovementParam, "false"},
789 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
790};
791const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = {
792 {kSaveToPhotosContextMenuImprovementParam, "false"},
793 {kSaveToPhotosTitleImprovementParam, "true"},
794 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
795};
796const FeatureEntry::FeatureParam
797 kSaveToPhotosAccountDefaultChoiceImprovement[] = {
798 {kSaveToPhotosContextMenuImprovementParam, "false"},
799 {kSaveToPhotosTitleImprovementParam, "false"},
800 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"},
801};
802
803const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = {
804 {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement,
805 std::size(kSaveToPhotosContextMenuImprovement), nullptr},
806 {"With Title improvement Only", kSaveToPhotosTitleImprovement,
807 std::size(kSaveToPhotosTitleImprovement), nullptr},
808 {"With Account Default choice improvement Only",
809 kSaveToPhotosAccountDefaultChoiceImprovement,
810 std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr},
811};
812
Stephen McGruer8fe98b62024-07-16 13:10:13813// LINT.IfChange(AutofillUploadCardRequestTimeouts)
814const FeatureEntry::FeatureParam
815 kAutofillUploadCardRequestTimeout_6Point5Seconds[] = {
816 {"autofill_upload_card_request_timeout_milliseconds", "6500"}};
817const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_7Seconds[] =
818 {{"autofill_upload_card_request_timeout_milliseconds", "7000"}};
819const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_9Seconds[] =
820 {{"autofill_upload_card_request_timeout_milliseconds", "9000"}};
821const FeatureEntry::FeatureVariation
822 kAutofillUploadCardRequestTimeoutOptions[] = {
823 {"6.5 seconds", kAutofillUploadCardRequestTimeout_6Point5Seconds,
824 std::size(kAutofillUploadCardRequestTimeout_6Point5Seconds), nullptr},
825 {"7 seconds", kAutofillUploadCardRequestTimeout_7Seconds,
826 std::size(kAutofillUploadCardRequestTimeout_7Seconds), nullptr},
827 {"9 seconds", kAutofillUploadCardRequestTimeout_9Seconds,
828 std::size(kAutofillUploadCardRequestTimeout_9Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03829// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillUploadCardRequestTimeouts)
Stephen McGruer8fe98b62024-07-16 13:10:13830
Stephen McGruer0904cae2024-07-17 19:54:46831// LINT.IfChange(AutofillVcnEnrollRequestTimeouts)
832const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_5Seconds[] = {
833 {"autofill_vcn_enroll_request_timeout_milliseconds", "5000"}};
834const FeatureEntry::FeatureParam
835 kAutofillVcnEnrollRequestTimeout_7Point5Seconds[] = {
836 {"autofill_vcn_enroll_request_timeout_milliseconds", "7500"}};
837const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_10Seconds[] =
838 {{"autofill_vcn_enroll_request_timeout_milliseconds", "10000"}};
839const FeatureEntry::FeatureVariation kAutofillVcnEnrollRequestTimeoutOptions[] =
840 {{"5 seconds", kAutofillVcnEnrollRequestTimeout_5Seconds,
841 std::size(kAutofillVcnEnrollRequestTimeout_5Seconds), nullptr},
842 {"7.5 seconds", kAutofillVcnEnrollRequestTimeout_7Point5Seconds,
843 std::size(kAutofillVcnEnrollRequestTimeout_7Point5Seconds), nullptr},
844 {"10 seconds", kAutofillVcnEnrollRequestTimeout_10Seconds,
845 std::size(kAutofillVcnEnrollRequestTimeout_10Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03846// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillVcnEnrollRequestTimeouts)
Stephen McGruer0904cae2024-07-17 19:54:46847
Nicolas MacBethc738c4e2024-07-19 21:14:19848// Contextual Panel flag variations.
849const FeatureEntry::FeatureParam kContextualPanelRichIPHArms[] = {
850 {"entrypoint-highlight-iph", "true"},
851 {"entrypoint-rich-iph", "true"},
852};
853const FeatureEntry::FeatureParam kContextualPanelSmallIPHArm[] = {
854 {"entrypoint-highlight-iph", "false"},
855 {"entrypoint-rich-iph", "false"},
856};
857const FeatureEntry::FeatureParam
858 kContextualPanelSmallIPHWithBlueHighlightArm[] = {
859 {"entrypoint-highlight-iph", "true"},
860 {"entrypoint-rich-iph", "false"},
861};
862
863const FeatureEntry::FeatureVariation kContextualPanelEntrypointArmVariations[] =
864 {
865 {"- Rich IPH", kContextualPanelRichIPHArms,
866 std::size(kContextualPanelRichIPHArms), nullptr},
867 {"- Small IPH, no blue highlight", kContextualPanelSmallIPHArm,
868 std::size(kContextualPanelSmallIPHArm), nullptr},
869 {"- Small IPH with blue highlight",
870 kContextualPanelSmallIPHWithBlueHighlightArm,
871 std::size(kContextualPanelSmallIPHWithBlueHighlightArm), nullptr},
872};
873
Jood Hajeer3867886d2024-07-29 16:15:35874const FeatureEntry::FeatureParam kIdentityConfirmationSnackbarTestingConfig[] =
Jood562c885f2024-09-05 17:06:55875 {{"IdentityConfirmationMinDisplayInterval1", "0"},
876 {"IdentityConfirmationMinDisplayInterval2", "0"},
877 {"IdentityConfirmationMinDisplayInterval3", "0"}};
Jood Hajeer3867886d2024-07-29 16:15:35878const FeatureEntry::FeatureVariation
879 kIdentityConfirmationSnackbarTestingVariations[] = {
880 {" - for testing", kIdentityConfirmationSnackbarTestingConfig,
881 std::size(kIdentityConfirmationSnackbarTestingConfig), nullptr}};
882
Chris Lu4c688e02024-09-07 00:48:08883const FeatureEntry::FeatureParam kPriceTrackingPromoForceShowArm[] = {
884 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05885 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08886};
887const FeatureEntry::FeatureParam kPriceTrackingPromoForceHideArm[] = {
888 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05889 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08890};
891
Benjamin Williamsd7f854b2024-10-09 17:12:27892// Address Bar Position
893const FeatureEntry::FeatureParam kTipsAddressBarPositionForceShowArm[] = {
894 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31895 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27896};
897const FeatureEntry::FeatureParam kTipsAddressBarPositionForceHideArm[] = {
898 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31899 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27900};
901
902// Autofill Passwords
903const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceShowArm[] = {
904 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31905 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27906};
907const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceHideArm[] = {
908 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31909 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27910};
911
912// Enhanced Safe Browsing
913const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceShowArm[] = {
914 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31915 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27916};
917const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceHideArm[] = {
918 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31919 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27920};
921
922// Lens Search
923const FeatureEntry::FeatureParam kTipsLensSearchForceShowArm[] = {
924 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31925 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27926};
927const FeatureEntry::FeatureParam kTipsLensSearchForceHideArm[] = {
928 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31929 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27930};
931
932// Lens Shop
933const FeatureEntry::FeatureParam kTipsLensShopForceShowArm[] = {
934 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31935 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27936};
937const FeatureEntry::FeatureParam kTipsLensShopForceHideArm[] = {
938 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31939 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27940};
941
942// Lens Translate
943const FeatureEntry::FeatureParam kTipsLensTranslateForceShowArm[] = {
944 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31945 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27946};
947const FeatureEntry::FeatureParam kTipsLensTranslateForceHideArm[] = {
948 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31949 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27950};
951
952// Save Passwords
953const FeatureEntry::FeatureParam kTipsSavePasswordsForceShowArm[] = {
954 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31955 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27956};
957const FeatureEntry::FeatureParam kTipsSavePasswordsForceHideArm[] = {
958 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31959 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27960};
961
Hira Mahmood2ff5b5cb2024-10-25 19:24:31962const FeatureEntry::FeatureParam kSendTabPromoForceShowArm[] = {
963 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05964 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31965};
966const FeatureEntry::FeatureParam kSendTabPromoForceHideArm[] = {
967 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05968 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:31969};
970
Chris Lu4c688e02024-09-07 00:48:08971const FeatureEntry::FeatureVariation kEphemeralCardRankerCardOverrideOptions[] =
972 {
973 {"- Force Show Price Tracking Notification",
974 kPriceTrackingPromoForceShowArm,
975 std::size(kPriceTrackingPromoForceShowArm), nullptr},
976 {"- Force Hide Price Tracking Notification",
977 kPriceTrackingPromoForceHideArm,
978 std::size(kPriceTrackingPromoForceHideArm), nullptr},
Benjamin Williamsd7f854b2024-10-09 17:12:27979
980 // Address Bar Position
981 {"- Force Show Address Bar Position Tip",
982 kTipsAddressBarPositionForceShowArm,
983 std::size(kTipsAddressBarPositionForceShowArm), nullptr},
984 {"- Force Hide Address Bar Position Tip",
985 kTipsAddressBarPositionForceHideArm,
986 std::size(kTipsAddressBarPositionForceHideArm), nullptr},
987
988 // Autofill Passwords
989 {"- Force Show Autofill Passwords Tip",
990 kTipsAutofillPasswordsForceShowArm,
991 std::size(kTipsAutofillPasswordsForceShowArm), nullptr},
992 {"- Force Hide Autofill Passwords Tip",
993 kTipsAutofillPasswordsForceHideArm,
994 std::size(kTipsAutofillPasswordsForceHideArm), nullptr},
995
996 // Enhanced Safe Browsing
997 {"- Force Show Enhanced Safe Browsing Tip",
998 kTipsEnhancedSafeBrowsingForceShowArm,
999 std::size(kTipsEnhancedSafeBrowsingForceShowArm), nullptr},
1000 {"- Force Hide Enhanced Safe Browsing Tip",
1001 kTipsEnhancedSafeBrowsingForceHideArm,
1002 std::size(kTipsEnhancedSafeBrowsingForceHideArm), nullptr},
1003
1004 // Lens Search
1005 {"- Force Show Lens Search Tip", kTipsLensSearchForceShowArm,
1006 std::size(kTipsLensSearchForceShowArm), nullptr},
1007 {"- Force Hide Lens Search Tip", kTipsLensSearchForceHideArm,
1008 std::size(kTipsLensSearchForceHideArm), nullptr},
1009
1010 // Lens Shop
1011 {"- Force Show Lens Shop Tip", kTipsLensShopForceShowArm,
1012 std::size(kTipsLensShopForceShowArm), nullptr},
1013 {"- Force Hide Lens Shop Tip", kTipsLensShopForceHideArm,
1014 std::size(kTipsLensShopForceHideArm), nullptr},
1015
1016 // Lens Translate
1017 {"- Force Show Lens Translate Tip", kTipsLensTranslateForceShowArm,
1018 std::size(kTipsLensTranslateForceShowArm), nullptr},
1019 {"- Force Hide Lens Translate Tip", kTipsLensTranslateForceHideArm,
1020 std::size(kTipsLensTranslateForceHideArm), nullptr},
1021
1022 // Save Passwords
1023 {"- Force Show Save Passwords Tip", kTipsSavePasswordsForceShowArm,
1024 std::size(kTipsSavePasswordsForceShowArm), nullptr},
1025 {"- Force Hide Save Passwords Tip", kTipsSavePasswordsForceHideArm,
1026 std::size(kTipsSavePasswordsForceHideArm), nullptr},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311027
1028 // Send Tab Promo.
1029 {"- Force Show Send Tab Promo", kSendTabPromoForceShowArm,
1030 std::size(kSendTabPromoForceShowArm), nullptr},
1031 {"- Force Hide Send Tab Promo", kSendTabPromoForceHideArm,
1032 std::size(kSendTabPromoForceHideArm), nullptr},
Chris Lu4c688e02024-09-07 00:48:081033};
1034
Hira Mahmood00c17e52024-10-09 14:30:481035const FeatureEntry::FeatureParam
1036 kSendTabIOSPushNotificationsWithMagicStackCard[] = {
1037 {send_tab_to_self::kSendTabIOSPushNotificationsWithMagicStackCardParam,
1038 "true"}};
Hira Mahmood3db58ac2024-11-06 18:39:031039const FeatureEntry::FeatureParam kSendTabIOSPushNotificationsWithURLImage[] = {
1040 {send_tab_to_self::kSendTabIOSPushNotificationsURLImageParam, "true"}};
Hira Mahmood00c17e52024-10-09 14:30:481041const FeatureEntry::FeatureVariation kSendTabIOSPushNotificationsVariations[] =
1042 {
1043 {"With Magic Stack Card",
1044 kSendTabIOSPushNotificationsWithMagicStackCard,
1045 std::size(kSendTabIOSPushNotificationsWithMagicStackCard), nullptr},
Hira Mahmood3db58ac2024-11-06 18:39:031046 {"With URL Image", kSendTabIOSPushNotificationsWithURLImage,
1047 std::size(kSendTabIOSPushNotificationsWithURLImage), nullptr},
Hira Mahmood00c17e52024-10-09 14:30:481048};
1049
Briana McClurec2b62f92024-10-29 15:35:061050const FeatureEntry::FeatureParam kSegmentedDefaultBrowserStatic[] = {
1051 {kSegmentedDefaultBrowserExperimentType, "0"}};
1052const FeatureEntry::FeatureParam kSegmentedDefaultBrowserAnimated[] = {
1053 {kSegmentedDefaultBrowserExperimentType, "1"}};
1054
1055const FeatureEntry::FeatureVariation kSegmentedDefaultBrowserPromoVariations[] =
1056 {{" - Static Default Browser Promo", kSegmentedDefaultBrowserStatic,
1057 std::size(kSegmentedDefaultBrowserStatic), nullptr},
1058 {" - Animated Default Browser Promo", kSegmentedDefaultBrowserAnimated,
1059 std::size(kSegmentedDefaultBrowserAnimated), nullptr}};
1060
Rubin Deliallisi1d0b3ba2024-11-04 14:33:041061// Soft Lock
1062const FeatureEntry::FeatureParam kIOSSoftLockNoDelay[] = {
1063 {kIOSSoftLockBackgroundThresholdParam, "0m"},
1064};
1065
1066const FeatureEntry::FeatureVariation kIOSSoftLockVariations[] = {
1067 {" - No delay", kIOSSoftLockNoDelay, std::size(kIOSSoftLockNoDelay),
1068 nullptr}};
1069
Ameur Hosni3dc0ce1c2024-11-05 10:34:551070// Ipad ZPS limit.
1071const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total0Trends[] = {
1072 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "0"},
1073 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1074};
1075
1076const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total5Trends[] = {
1077 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "5"},
1078 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1079};
1080
1081constexpr FeatureEntry::FeatureVariation kIpadZpsLimitVariants[] = {
1082 {"20 total zps, 0 Trends on NTP", kIpadZPSOmniboxWith20Total0Trends,
1083 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1084 {"20 total zps, 5 Trends on NTP", kIpadZPSOmniboxWith20Total5Trends,
1085 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1086};
1087
Hira Mahmood431c8ab2024-11-05 17:16:291088const FeatureEntry::FeatureParam
1089 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm[] = {
1090 {kIOSStartTimeStartupRemediationsSaveNTPWebState, "true"},
1091};
1092const FeatureEntry::FeatureVariation
1093 kIOSStartTimeStartupRemediationsVariations[] = {
1094 {" - Save NTP Web State",
1095 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm,
1096 std::size(kIOSStartTimeStartupRemediationsSaveNTPWebStateArm),
1097 nullptr}};
1098
vincb7867dc042024-11-06 14:25:051099constexpr flags_ui::FeatureEntry::FeatureParam
1100 kAutofillThrottleDocFormScanShortPeriodParam[] = {{"period-ms", "250"}};
1101constexpr flags_ui::FeatureEntry::FeatureParam
1102 kAutofillThrottleDocFormScanMediumPeriodParam[] = {{"period-ms", "500"}};
1103constexpr flags_ui::FeatureEntry::FeatureParam
1104 kAutofillThrottleDocFormScanLongPeriodParam[] = {{"period-ms", "1000"}};
1105constexpr flags_ui::FeatureEntry::FeatureVariation
1106 kAutofillThrottleDocFormScanVariations[] = {
1107 {"Short period", kAutofillThrottleDocFormScanShortPeriodParam,
1108 std::size(kAutofillThrottleDocFormScanShortPeriodParam), nullptr},
1109 {"Medium period", kAutofillThrottleDocFormScanMediumPeriodParam,
1110 std::size(kAutofillThrottleDocFormScanMediumPeriodParam), nullptr},
1111 {"Long period", kAutofillThrottleDocFormScanLongPeriodParam,
1112 std::size(kAutofillThrottleDocFormScanLongPeriodParam), nullptr}};
1113
vincb2bf7f5c2024-11-06 17:18:091114constexpr flags_ui::FeatureEntry::FeatureParam
1115 kAutofillThrottleFilteredDocFormScanShortPeriodParam[] = {
1116 {"period-ms", "100"}};
1117constexpr flags_ui::FeatureEntry::FeatureParam
1118 kAutofillThrottleFilteredDocFormScanMediumPeriodParam[] = {
1119 {"period-ms", "250"}};
1120constexpr flags_ui::FeatureEntry::FeatureParam
1121 kAutofillThrottleFilteredDocFormScanLongPeriodParam[] = {
1122 {"period-ms", "500"}};
1123constexpr flags_ui::FeatureEntry::FeatureVariation
1124 kAutofillThrottleFilteredDocFormScanVariations[] = {
1125 {"Short period", kAutofillThrottleFilteredDocFormScanShortPeriodParam,
1126 std::size(kAutofillThrottleFilteredDocFormScanShortPeriodParam),
1127 nullptr},
1128 {"Medium period", kAutofillThrottleFilteredDocFormScanMediumPeriodParam,
1129 std::size(kAutofillThrottleFilteredDocFormScanMediumPeriodParam),
1130 nullptr},
1131 {"Long period", kAutofillThrottleFilteredDocFormScanLongPeriodParam,
1132 std::size(kAutofillThrottleFilteredDocFormScanLongPeriodParam),
1133 nullptr}};
1134
ginnnnnnny963c7fc2024-11-06 22:44:501135const FeatureEntry::FeatureParam kNewFeedPositioningArm2[] = {
1136 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1137 {kNewFeedPositioningCombinedMVTForMidEngaged, "false"},
1138 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501139};
1140
1141const FeatureEntry::FeatureParam kNewFeedPositioningArm3[] = {
1142 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1143 {kNewFeedPositioningCombinedMVTForMidEngaged, "true"},
1144 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
ginnnnnnny963c7fc2024-11-06 22:44:501145};
1146
1147const FeatureEntry::FeatureVariation kNewFeedPositioningVariations[] = {
ginnnnnnnyd8c7b652024-12-19 19:11:471148 {"- update for high feed engagement", kNewFeedPositioningArm2,
ginnnnnnny963c7fc2024-11-06 22:44:501149 std::size(kNewFeedPositioningArm2), nullptr},
ginnnnnnnyd8c7b652024-12-19 19:11:471150 {"- update for high and mid feed engagement", kNewFeedPositioningArm3,
ginnnnnnny963c7fc2024-11-06 22:44:501151 std::size(kNewFeedPositioningArm3), nullptr},
ginnnnnnny963c7fc2024-11-06 22:44:501152};
1153
Hira Mahmoodf8533dc2024-11-12 16:24:251154const FeatureEntry::FeatureParam
1155 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm[] = {
1156 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "true"},
1157 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "false"}};
1158const FeatureEntry::FeatureParam
1159 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm[] = {
1160 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "true"},
1161 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "false"}};
1162const FeatureEntry::FeatureVariation
1163 kIOSStartTimeBrowserBackgroundRemediationsVariations[] = {
1164 {" - Avoid NTP Cleanup",
1165 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm,
1166 std::size(kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm),
1167 nullptr},
1168 {" - Update Feed Refresh",
1169 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm,
1170 std::size(
1171 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm),
1172 nullptr}};
1173
Hira Mahmood664449872024-11-18 23:55:221174const FeatureEntry::FeatureParam kSetUpListInFirstRunArm1[] = {
1175 {set_up_list::kSetUpListInFirstRunParam, "1"}};
1176const FeatureEntry::FeatureParam kSetUpListInFirstRunArm2[] = {
1177 {set_up_list::kSetUpListInFirstRunParam, "2"}};
1178const FeatureEntry::FeatureParam kSetUpListInFirstRunArm3[] = {
1179 {set_up_list::kSetUpListInFirstRunParam, "3"}};
1180
1181const FeatureEntry::FeatureVariation kSetUpListInFirstRunVariations[] = {
1182 {" - Variation 1", kSetUpListInFirstRunArm1,
1183 std::size(kSetUpListInFirstRunArm1), nullptr},
1184 {" - Variation 2", kSetUpListInFirstRunArm2,
1185 std::size(kSetUpListInFirstRunArm2), nullptr},
1186 {" - Variation 3", kSetUpListInFirstRunArm3,
1187 std::size(kSetUpListInFirstRunArm3), nullptr}};
1188
Hira Mahmood7577c9b672024-12-12 20:29:121189const FeatureEntry::FeatureParam kSetUpListDuration3Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531190 {set_up_list::kSetUpListDurationParam, "2"}};
Hira Mahmood7577c9b672024-12-12 20:29:121191const FeatureEntry::FeatureParam kSetUpListDuration5Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531192 {set_up_list::kSetUpListDurationParam, "4"}};
Hira Mahmood7577c9b672024-12-12 20:29:121193const FeatureEntry::FeatureParam kSetUpListDuration7Days[] = {
Hira Mahmoodea14d202024-12-17 20:30:531194 {set_up_list::kSetUpListDurationParam, "6"}};
Hira Mahmood7577c9b672024-12-12 20:29:121195
1196const FeatureEntry::FeatureVariation kSetUpListDurationVariations[] = {
1197 {" - 3 Days", kSetUpListDuration3Days, std::size(kSetUpListDuration3Days),
1198 nullptr},
1199 {" - 5 Days", kSetUpListDuration5Days, std::size(kSetUpListDuration5Days),
1200 nullptr},
1201 {" - 7 Days", kSetUpListDuration7Days, std::size(kSetUpListDuration7Days),
1202 nullptr}};
1203
Hira Mahmoodf6906a82025-01-02 17:55:091204const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm1[] = {
1205 {first_run::kUpdatedFirstRunSequenceParam, "1"}};
1206const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm2[] = {
1207 {first_run::kUpdatedFirstRunSequenceParam, "2"}};
1208const FeatureEntry::FeatureParam kUpdatedFirstRunSequenceArm3[] = {
1209 {first_run::kUpdatedFirstRunSequenceParam, "3"}};
1210
1211const FeatureEntry::FeatureVariation kUpdatedFirstRunSequenceVariations[] = {
1212 {" - Default browser promo first", kUpdatedFirstRunSequenceArm1,
1213 std::size(kUpdatedFirstRunSequenceArm1), nullptr},
1214 {" - Remove sign in & sync conditionally", kUpdatedFirstRunSequenceArm2,
1215 std::size(kUpdatedFirstRunSequenceArm2), nullptr},
1216 {" - DB promo first and remove sign in & sync",
1217 kUpdatedFirstRunSequenceArm3, std::size(kUpdatedFirstRunSequenceArm3),
1218 nullptr}};
1219
Cooper Knaak1e026562017-07-26 05:22:281220// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:211221// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:281222// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
1223// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:211224// macro for this type supplying the command line to the macro.
1225// . MULTI_VALUE: a list of choices, the first of which should correspond to a
1226// deactivated state for this lab (i.e. no command line option). To specify
1227// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
1228// array of choices.
Cooper Knaak1e026562017-07-26 05:22:281229// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
1230// either enabled, disabled, or uses the default value of the associated
1231// base::Feature instance. To specify this type of entry use the macro
1232// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
1233// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
1234// base::Feature instance. Choices corresponding to the default state, a
1235// universally enabled state, and a universally disabled state are
1236// automatically included. To specify this type of entry use the macro
1237// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
1238// the array of choices.
1239//
sdefresne14900ee2015-11-27 14:43:211240// See the documentation of FeatureEntry for details on the fields.
1241//
1242// When adding a new choice, add it to the end of the list.
1243const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:281244 {"in-product-help-demo-mode-choice",
1245 flag_descriptions::kInProductHelpDemoModeName,
1246 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
1247 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:231248 feature_engagement::kIPHDemoMode,
1249 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:091250 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:221251 {"enable-autofill-credit-card-upload",
1252 flag_descriptions::kAutofillCreditCardUploadName,
1253 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:241254 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:231255 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
1256 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
1257 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:511258 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:231259 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
1260 {"wallet-service-use-sandbox",
1261 flag_descriptions::kWalletServiceUseSandboxName,
1262 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
1263 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
1264 autofill::switches::kWalletServiceUseSandbox,
1265 "1",
1266 autofill::switches::kWalletServiceUseSandbox,
1267 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:591268 {"show-autofill-type-predictions",
1269 flag_descriptions::kShowAutofillTypePredictionsName,
1270 flag_descriptions::kShowAutofillTypePredictionsDescription,
1271 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:501272 FEATURE_VALUE_TYPE(
1273 autofill::features::test::kAutofillShowTypePredictions)},
Benjamin Williamsdf18e7e2022-10-03 18:46:051274 {"fullscreen-promos-manager-skip-internal-limits",
1275 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
1276 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
1277 flags_ui::kOsIos,
1278 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:141279 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:531280 flag_descriptions::kFullscreenSmoothScrollingName,
1281 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:191282 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:061283 {"webpage-default-zoom-from-dynamic-type",
1284 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
1285 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
1286 flags_ui::kOsIos,
1287 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:561288 {"webpage-alternative-text-zoom",
1289 flag_descriptions::kWebPageAlternativeTextZoomName,
1290 flag_descriptions::kWebPageAlternativeTextZoomDescription,
1291 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:341292 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
1293 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
1294 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Ameur Hosni3dc0ce1c2024-11-05 10:34:551295 {"omnibox-ipad-zps-limit",
1296 flag_descriptions::kIpadZpsSuggestionMatchesLimitName,
1297 flag_descriptions::kIpadZpsSuggestionMatchesLimitDescription,
1298 flags_ui::kOsIos,
1299 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kIpadZeroSuggestMatches,
1300 kIpadZpsLimitVariants,
1301 "OmniboxBundledExperimentV1")},
Stepan Khapugincc4e9842019-01-23 13:38:131302 {"omnibox-ui-max-autocomplete-matches",
1303 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
1304 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
1305 flags_ui::kOsIos,
1306 FEATURE_WITH_PARAMS_VALUE_TYPE(
1307 omnibox::kUIExperimentMaxAutocompleteMatches,
1308 kOmniboxUIMaxAutocompleteMatchesVariations,
1309 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:351310 {"omnibox-local-history-zero-suggest-beyond-ntp",
1311 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
1312 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
1313 flags_ui::kOsIos,
1314 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:541315 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
1316 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
1317 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
1318 kOmniboxMaxZPSMatchesVariations,
1319 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:481320 {"force-startup-signin-promo",
1321 flag_descriptions::kForceStartupSigninPromoName,
1322 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:291323 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:411324 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
1325 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
1326 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:131327#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:451328 {"screen-time-integration-ios",
1329 flag_descriptions::kScreenTimeIntegrationName,
1330 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
1331 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:131332#endif
Nazerke3e993f72020-09-21 13:00:061333 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
1334 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
Ewann Pellec8634ab2024-02-23 16:50:351335 FEATURE_WITH_PARAMS_VALUE_TYPE(kModernTabStrip,
1336 kModernTabStripVariations,
1337 "ModernTabStrip")},
Xu Li9854c992024-12-19 20:53:081338 {"ios-enable-delete-all-saved-credentials",
1339 flag_descriptions::kIOSEnableDeleteAllSavedCredentialsName,
1340 flag_descriptions::kIOSEnableDeleteAllSavedCredentialsDescription,
1341 flags_ui::kOsIos,
1342 FEATURE_VALUE_TYPE(
1343 password_manager::features::kIOSEnableDeleteAllSavedCredentials)},
Cheick Cisse76ade3d2020-12-16 00:15:111344 {"ios-shared-highlighting-color-change",
1345 flag_descriptions::kIOSSharedHighlightingColorChangeName,
1346 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:071347 flags_ui::kOsIos,
1348 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Scott Yoderc0cd99d2024-01-10 19:54:511349 {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName,
1350 flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos,
Scott Yoderaf2bdf32024-01-30 20:26:151351 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications,
1352 kIOSTipsNotificationsVariations,
1353 "IOSTipsNotifications")},
Scott Yoderf8a821482024-10-28 19:32:551354 {"ios-reactivation-notifications",
1355 flag_descriptions::kIOSReactivationNotificationsName,
1356 flag_descriptions::kIOSReactivationNotificationsDescription,
Scott Yoderef1a0542024-11-04 17:23:071357 flags_ui::kOsIos,
1358 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSReactivationNotifications,
1359 kIOSReactivationNotificationsVariations,
1360 "IOSReactivationNotifications")},
gogerald0ff29e52021-02-03 18:56:191361 {"start-surface", flag_descriptions::kStartSurfaceName,
1362 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:231363 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
1364 kStartSurfaceVariations,
1365 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:341366 {"wait-threshold-seconds-for-capabilities-api",
1367 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1368 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1369 flags_ui::kOsIos,
1370 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061371 {"content-notification-experiment",
1372 flag_descriptions::kContentNotificationExperimentName,
1373 flag_descriptions::kContentNotificationExperimentDescription,
1374 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251375 {"content-notification-provisional-ignore-conditions",
1376 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1377 flag_descriptions::
1378 kContentNotificationProvisionalIgnoreConditionsDescription,
1379 flags_ui::kOsIos,
1380 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241381 {"content-push-notifications",
1382 flag_descriptions::kContentPushNotificationsName,
1383 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521384 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1385 kContentPushNotificationsVariations,
1386 "ContentPushNotifications")},
Radu Nitescuee09a1a2024-12-10 17:11:391387 {"enable-lens-context-menu-unified-experience",
1388 flag_descriptions::kEnableLensContextMenuUnifiedExperienceName,
1389 flag_descriptions::kEnableLensContextMenuUnifiedExperienceDescription,
1390 flags_ui::kOsIos,
1391 FEATURE_VALUE_TYPE(kEnableLensContextMenuUnifiedExperience)},
Jason Hu67cfb0f2022-11-14 20:21:441392 {"enable-lens-in-omnibox-copied-image",
1393 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1394 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1395 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Radu Nitescuab5bf732024-09-18 14:07:401396 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1397 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1398 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Radu Nitescuf95b7d42024-12-04 10:18:011399 {"enable-lens-view-finder-unified-experience",
1400 flag_descriptions::kEnableLensViewFinderUnifiedExperienceName,
1401 flag_descriptions::kEnableLensViewFinderUnifiedExperienceDescription,
1402 flags_ui::kOsIos,
1403 FEATURE_VALUE_TYPE(kEnableLensViewFinderUnifiedExperience)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031404 {"enable-disco-feed-endpoint",
1405 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1406 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1407 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111408 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Tommy Martino7393d762021-10-12 17:59:281409 {"shared-highlighting-amp",
1410 flag_descriptions::kIOSSharedHighlightingAmpName,
1411 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1412 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
Matt Jones2e47b9692024-02-23 21:56:431413 {"track-by-default-mobile",
1414 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1415 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1416 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061417 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1418 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1419 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541420 {"ntp-view-hierarchy-repair",
1421 flag_descriptions::kNTPViewHierarchyRepairName,
1422 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201423 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Cheick Cisse39b6a182024-05-29 15:13:441424 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1425 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1426 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381427 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1428 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591429 flags_ui::kOsIos,
1430 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1431 kPriceInsightsVariations,
1432 "PriceInsightsIos")},
1433 {"price-insights-high-price-ios",
1434 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1435 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1436 flags_ui::kOsIos,
1437 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Vishwas Uppoor89303a92022-08-03 00:56:261438 {"autofill-enable-card-product-name",
1439 flag_descriptions::kAutofillEnableCardProductNameName,
1440 flag_descriptions::kAutofillEnableCardProductNameDescription,
1441 flags_ui::kOsIos,
1442 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Raj Tb95d813542022-11-16 21:27:521443 {"enable-download-service-foreground-session",
1444 flag_descriptions::kDownloadServiceForegroundSessionName,
1445 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1446 flags_ui::kOsIos,
1447 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231448 {"enable-tflite-language-detection",
1449 flag_descriptions::kTFLiteLanguageDetectionName,
1450 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1451 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201452 {"optimization-guide-debug-logs",
1453 flag_descriptions::kOptimizationGuideDebugLogsName,
1454 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1455 flags_ui::kOsIos,
1456 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551457 {"optimization-guide-push-notifications",
1458 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1459 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1460 flags_ui::kOsIos,
1461 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
David Jeanad303a92023-07-31 16:58:111462 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1463 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1464 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeandcc3e202024-05-22 08:36:331465 {"improve-parcel-detection",
1466 flag_descriptions::kEnableNewParcelTrackingNumberDetectionName,
1467 flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription,
1468 flags_ui::kOsIos,
1469 FEATURE_VALUE_TYPE(
1470 web::features::kEnableNewParcelTrackingNumberDetection)},
David Jeanf361ae9d2024-04-09 08:19:471471 {"enable-expkit-text-classifier-date",
1472 flag_descriptions::kEnableExpKitTextClassifierDateName,
1473 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1474 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1475 {"enable-expkit-text-classifier-address",
1476 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1477 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151478 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471479 FEATURE_WITH_PARAMS_VALUE_TYPE(
1480 kEnableExpKitTextClassifierAddress,
1481 kEnableExpKitTextClassifierAddressVariations,
1482 "ExpKitTextClassifierAddress")},
1483 {"enable-expkit-text-classifier-phonenumber",
1484 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1485 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1486 flags_ui::kOsIos,
1487 FEATURE_WITH_PARAMS_VALUE_TYPE(
1488 kEnableExpKitTextClassifierPhoneNumber,
1489 kEnableExpKitTextClassifierPhoneNumberVariations,
1490 "ExpKitTextClassifierPhoneNumber")},
1491 {"enable-expkit-text-classifier-email",
1492 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1493 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1494 flags_ui::kOsIos,
1495 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1496 kEnableExpKitTextClassifierEmailVariations,
1497 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331498 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1499 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461500 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1501 kOneTapForMapsWithVariations,
1502 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251503 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1504 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1505 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301506 {"autofill-enable-ranking-formula-address-profiles",
1507 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1508 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1509 flags_ui::kOsIos,
1510 FEATURE_VALUE_TYPE(
1511 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391512 {"autofill-enable-ranking-formula-credit-cards",
1513 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1514 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1515 flags_ui::kOsIos,
1516 FEATURE_VALUE_TYPE(
1517 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021518 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1519 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1520 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521521 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1522 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261523 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1524 kMagicStackVariations,
1525 flag_descriptions::kMagicStackName)},
Alexis Hetuec9d70c2023-11-13 16:27:311526 {"ios-keyboard-accessory-upgrade",
1527 flag_descriptions::kIOSKeyboardAccessoryUpgradeName,
1528 flag_descriptions::kIOSKeyboardAccessoryUpgradeDescription,
1529 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgrade)},
Noémie St-Onge9da904ef2024-10-01 14:16:051530 {"ios-keyboard-accessory-upgrade-short-manual-fill-menu",
1531 flag_descriptions::kIOSKeyboardAccessoryUpgradeShortManualFillMenuName,
1532 flag_descriptions::
1533 kIOSKeyboardAccessoryUpgradeShortManualFillMenuDescription,
1534 flags_ui::kOsIos,
1535 FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeShortManualFillMenu)},
Scott Yoder7b9e51f2023-09-13 23:47:261536 {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName,
1537 flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos,
1538 FEATURE_VALUE_TYPE(kIOSLargeFakebox)},
Chris Lub0bad572023-08-07 18:13:291539 {"ios-magic-stack-segmentation-ranking",
1540 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1541 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1542 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301543 FEATURE_WITH_PARAMS_VALUE_TYPE(
1544 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1545 kSegmentationPlatformIosModuleRankerVariations,
1546 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321547 {"ios-magic-stack-segmentation-ranking-caching",
1548 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1549 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1550 flags_ui::kOsIos,
1551 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111552 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1553 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1554 flag_descriptions::
1555 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1556 flags_ui::kOsIos,
1557 FEATURE_VALUE_TYPE(
1558 segmentation_platform::features::
1559 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Alexis Hetu5e726602023-12-15 15:18:281560 {"ios-password-bottom-sheet-autofocus",
1561 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1562 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1563 flags_ui::kOsIos,
1564 FEATURE_VALUE_TYPE(
1565 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Charlotte Cloutier18f0a5362024-07-16 13:23:041566 {"ios-proactive-password-generation-bottom-sheet",
1567 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetName,
1568 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetDescription,
1569 flags_ui::kOsIos,
1570 FEATURE_VALUE_TYPE(password_manager::features::
1571 kIOSProactivePasswordGenerationBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241572 {"omnibox-zero-suggest-prefetching",
1573 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1574 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1575 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451576 {"omnibox-zero-suggest-prefetching-on-srp",
1577 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1578 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1579 flags_ui::kOsIos,
1580 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1581 {"omnibox-zero-suggest-prefetching-on-web",
1582 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1583 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1584 flags_ui::kOsIos,
1585 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471586 {"omnibox-zero-suggest-in-memory-caching",
1587 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1588 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1589 flags_ui::kOsIos,
1590 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351591 {"omnibox-on-device-tail-suggestions",
1592 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1593 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1594 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361595 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1596 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1597 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1598 kOmniboxMaxURLMatchesVariations,
1599 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201600 {"omnibox-most-visited-tiles-horizontal-render-group",
1601 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1602 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1603 flags_ui::kOsIos,
1604 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061605 {"metrickit-non-crash-reports",
1606 flag_descriptions::kMetrickitNonCrashReportName,
1607 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1608 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Nakul Vaidya13ca2042022-07-27 01:59:551609 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1610 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1611 flag_descriptions::
1612 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1613 flags_ui::kOsIos,
1614 FEATURE_VALUE_TYPE(
1615 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Robbie Gibson1f5a57192024-11-07 23:04:111616 {"default-browser-banner-promo",
1617 flag_descriptions::kDefaultBrowserBannerPromoName,
1618 flag_descriptions::kDefaultBrowserBannerPromoDescription, flags_ui::kOsIos,
Robbie Gibsonae87bc02024-11-13 14:45:101619 FEATURE_VALUE_TYPE(kDefaultBrowserBannerPromo)},
Gayane Petrosyan5960a172023-06-19 15:40:171620 {"default-browser-promo-trigger-criteria-experiment",
1621 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1622 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1623 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211624 FEATURE_VALUE_TYPE(
1625 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyancffeda12024-09-17 17:10:371626 {"blue-dot-on-tools-menu-button",
1627 flag_descriptions::kBlueDotOnToolsMenuButtonName,
1628 flag_descriptions::kBlueDotOnToolsMenuButtonDescription, flags_ui::kOsIos,
1629 FEATURE_VALUE_TYPE(kBlueDotOnToolsMenuButton)},
Ed Chin91e44992022-07-27 13:42:341630#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1631 {"feed-background-refresh-ios",
1632 flag_descriptions::kFeedBackgroundRefreshName,
1633 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1634 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1635 kFeedBackgroundRefreshVariations,
1636 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261637#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Petro Akzhygitov2e2322e2023-04-25 16:26:571638 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1639 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1640 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251641 {"iph-price-notifications-while-browsing",
1642 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1643 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1644 flags_ui::kOsIos,
1645 FEATURE_VALUE_TYPE(
1646 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391647 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1648 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1649 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481650 {"local-pdp-detection",
1651 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1652 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1653 flags_ui::kOsIos,
1654 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Gauthier Ambard8c9b7332024-10-24 16:24:041655 {"inactive-tabs", flag_descriptions::kInactiveTabsIPadName,
1656 flag_descriptions::kInactiveTabsIPadDescription, flags_ui::kOsIos,
1657 FEATURE_VALUE_TYPE(kInactiveTabsIPadFeature)},
Ali Juma57849c42023-02-21 22:53:431658 {"notification-settings-menu-item",
1659 flag_descriptions::kNotificationSettingsMenuItemName,
1660 flag_descriptions::kNotificationSettingsMenuItemDescription,
1661 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
kalettucefb09e402023-02-27 18:35:531662 {"web-feed-feedback-reroute",
1663 flag_descriptions::kWebFeedFeedbackRerouteName,
1664 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1665 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Tina Wangd3f6f192023-04-05 05:22:431666 {"enable-follow-IPH-exp-params",
1667 flag_descriptions::kEnableFollowIPHExpParamsName,
1668 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1669 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251670 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1671 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1672 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Olivier ROBINa229d2132023-03-21 12:44:201673 {"ios-browser-edit-menu-metrics",
1674 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1675 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1676 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551677 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1678 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1679 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1680 kIOSDockingPromoVariations,
1681 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241682 {"omnibox-grouping-framework-non-zps",
1683 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1684 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1685 flags_ui::kOsIos,
1686 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Robbie Gibson0ea280602023-04-12 01:02:391687 {"only-access-clipboard-async",
1688 flag_descriptions::kOnlyAccessClipboardAsyncName,
1689 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1690 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Stephen McGruer9afca1a2023-05-18 20:55:171691 {"autofill-enable-card-art-image",
1692 flag_descriptions::kAutofillEnableCardArtImageName,
1693 flag_descriptions::kAutofillEnableCardArtImageDescription,
1694 flags_ui::kOsIos,
1695 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)},
Tina Wangcda2c902023-05-25 17:39:451696 {"enable-signed-out-view-demotion",
1697 flag_descriptions::kEnableSignedOutViewDemotionName,
1698 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1699 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stepan Khapugin72c74292024-06-19 16:48:331700 {"spotlight-never-retain-index",
1701 flag_descriptions::kSpotlightNeverRetainIndexName,
1702 flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos,
1703 FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)},
Huiting Yubc1bf4d2023-06-26 18:15:321704 {"ios-iph-for-safari-switcher",
1705 flag_descriptions::kIPHForSafariSwitcherName,
1706 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1707 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071708 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1709 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1710 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011711 {"tab-resumption", flag_descriptions::kTabResumptionName,
1712 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001713 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1714 kTabResumptionVariations,
1715 "TabResumption")},
Christian Xu07d600192023-07-24 12:29:521716 {"bottom-omnibox-default-setting",
1717 flag_descriptions::kBottomOmniboxDefaultSettingName,
1718 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1719 flags_ui::kOsIos,
1720 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1721 kBottomOmniboxDefaultSettingVariations,
1722 "BottomOmniboxDefaultSetting")},
Joemer Ramos46ca6f52024-09-27 18:12:291723 {"enable-async-real-time-check",
1724 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckName,
1725 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckDescription,
1726 flags_ui::kOsIos,
1727 FEATURE_VALUE_TYPE(safe_browsing::kSafeBrowsingAsyncRealTimeCheck)},
Elmehdi Rahmaouif5b76462024-06-24 10:44:461728 {"enable-save-to-photos-improvements",
1729 flag_descriptions::kIOSSaveToPhotosImprovementsName,
1730 flag_descriptions::kIOSSaveToPhotosImprovementsDescription,
1731 flags_ui::kOsIos,
1732 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements,
1733 kSaveToPhotosImprovementsVariations,
1734 "IOSSaveToPhotosImprovements")},
Jérôme Lebelcc9523e2024-10-08 13:34:011735 {"enable-identity-in-auth-error",
1736 flag_descriptions::kEnableIdentityInAuthErrorName,
1737 flag_descriptions::kEnableIdentityInAuthErrorDescription, flags_ui::kOsIos,
1738 FEATURE_VALUE_TYPE(switches::kEnableIdentityInAuthError)},
Mihai Sardarescucca83442024-10-16 12:19:131739 {"enable-asweb-authentication-session",
1740 flag_descriptions::kEnableASWebAuthenticationSessionName,
1741 flag_descriptions::kEnableASWebAuthenticationSessionDescription,
1742 flags_ui::kOsIos,
1743 FEATURE_VALUE_TYPE(switches::kEnableASWebAuthenticationSession)},
Christian Xu90e952f2023-09-13 09:05:281744 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1745 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1746 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Rubin Deliallisi072bc842023-10-19 12:00:411747 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1748 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1749 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Aliona DANGLA5971a8b2023-11-10 11:55:351750 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1751 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1752 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Gauthier Ambard8cca29a2024-04-10 08:27:361753 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1754 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1755 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591756 {"autofill-enable-dynamically-loading-fields-on-input",
1757 flag_descriptions::
1758 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1759 flag_descriptions::
1760 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1761 flags_ui::kOsIos,
1762 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
aliaaborhamy00f89df2023-12-21 14:55:031763 {"share-in-web-context-menu-ios",
1764 flag_descriptions::kShareInWebContextMenuIOSName,
1765 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1766 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Marc Treib1f6c5db992024-01-04 20:25:141767 {"migrate-syncing-user-to-signed-in",
1768 flag_descriptions::kMigrateSyncingUserToSignedInName,
1769 flag_descriptions::kMigrateSyncingUserToSignedInDescription,
1770 flags_ui::kOsIos,
1771 FEATURE_VALUE_TYPE(switches::kMigrateSyncingUserToSignedIn)},
1772 {"undo-migration-of-syncing-user-to-signed-in",
1773 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInName,
1774 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInDescription,
1775 flags_ui::kOsIos,
1776 FEATURE_VALUE_TYPE(switches::kUndoMigrationOfSyncingUserToSignedIn)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551777 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1778 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1779 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461780 {"contextual-panel", flag_descriptions::kContextualPanelName,
1781 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
Nicolas MacBethc738c4e2024-07-19 21:14:191782 FEATURE_WITH_PARAMS_VALUE_TYPE(kContextualPanel,
1783 kContextualPanelEntrypointArmVariations,
1784 "ContextualPanel")},
Nicolas MacBeth47d6b622024-01-16 17:05:391785 {"contextual-panel-force-show-entrypoint",
1786 flag_descriptions::kContextualPanelForceShowEntrypointName,
1787 flag_descriptions::kContextualPanelForceShowEntrypointDescription,
1788 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContextualPanelForceShowEntrypoint)},
adamtad0e8cfc2024-01-16 18:43:471789 {"enable-ipad-feed-ghost-cards",
1790 flag_descriptions::kEnableiPadFeedGhostCardsName,
1791 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1792 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Jason Hud445445f2024-02-02 18:28:121793 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1794 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1795 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Alexander Tekleeebe42b92024-02-23 21:27:151796 {"autofill-enable-card-benefits-for-american-express",
1797 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1798 flag_descriptions::
1799 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1800 flags_ui::kOsIos,
1801 FEATURE_VALUE_TYPE(
1802 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
1803 {"autofill-enable-card-benefits-for-capital-one",
1804 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneName,
1805 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneDescription,
1806 flags_ui::kOsIos,
1807 FEATURE_VALUE_TYPE(
1808 autofill::features::kAutofillEnableCardBenefitsForCapitalOne)},
Yishui Liub88a38c2024-02-28 08:46:551809 {"autofill-enable-card-benefits-sync",
1810 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1811 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1812 flags_ui::kOsIos,
1813 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421814 {"linked-services-setting-ios",
1815 flag_descriptions::kLinkedServicesSettingIosName,
1816 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1817 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
hvs7c6cb402024-03-27 02:39:001818 {"autofill-enable-prefetching-risk-data-for-retrieval",
1819 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561820 flag_descriptions::
1821 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001822 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561823 FEATURE_VALUE_TYPE(
1824 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1825 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1826 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1827 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391828 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1829 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1830 FEATURE_VALUE_TYPE(
1831 page_content_annotations::features::kPageContentAnnotations)},
1832 {"page-content-annotations-persist-salient-image-metadata",
1833 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1834 flag_descriptions::
1835 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1836 flags_ui::kOsIos,
1837 FEATURE_VALUE_TYPE(
1838 page_content_annotations::features::
1839 kPageContentAnnotationsPersistSalientImageMetadata)},
1840 {"page-content-annotations-remote-page-metadata",
1841 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1842 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1843 flags_ui::kOsIos,
1844 FEATURE_VALUE_TYPE(
1845 page_content_annotations::features::kRemotePageMetadata)},
1846 {"page-visibility-page-content-annotations",
1847 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1848 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1849 flags_ui::kOsIos,
1850 FEATURE_VALUE_TYPE(page_content_annotations::features::
1851 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121852 {"enhanced-safe-browsing-promo",
1853 flag_descriptions::kEnhancedSafeBrowsingPromoName,
1854 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:021855 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Sebsgfcd5b0b2024-04-09 08:18:321856 {"cpe-performance-improvements",
1857 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
1858 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
1859 flags_ui::kOsIos,
1860 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Vincent Boissellea1f27f322024-04-17 14:53:191861 {"password-manager-detect-username-in-uff",
1862 flag_descriptions::kIOSDetectUsernameInUffName,
vincbb01c53ed2024-08-22 13:09:561863 flag_descriptions::kIOSDetectUsernameInUffDescription, flags_ui::kOsIos,
Vincent Boissellea1f27f322024-04-17 14:53:191864 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Jérôme Lebel993c7e3d2024-07-08 14:05:351865 {"identity-disc-account-menu",
1866 flag_descriptions::kIdentityDiscAccountMenuName,
1867 flag_descriptions::kIdentityDiscAccountMenuDescription, flags_ui::kOsIos,
1868 FEATURE_VALUE_TYPE(kIdentityDiscAccountMenu)},
Jood Hajeer3867886d2024-07-29 16:15:351869 {"identity-confirmation-snackbar",
1870 flag_descriptions::kIdentityConfirmationSnackbarName,
1871 flag_descriptions::kIdentityConfirmationSnackbarDescription,
1872 flags_ui::kOsIos,
1873 FEATURE_WITH_PARAMS_VALUE_TYPE(
1874 kIdentityConfirmationSnackbar,
1875 kIdentityConfirmationSnackbarTestingVariations,
1876 "IdentityConfirmationSnackbar")},
Arthur Milchior4d8bd9302024-12-10 15:24:491877 {"ios-interruptible-coordinator-always-dismissed",
1878 flag_descriptions::kIOSInterruptibleCoordinatorAlwaysDismissedName,
1879 flag_descriptions::kIOSInterruptibleCoordinatorAlwaysDismissedDescription,
1880 flags_ui::kOsIos,
1881 FEATURE_VALUE_TYPE(kIOSInterruptibleCoordinatorStoppedSynchronously)},
Arthur Milchior35ee54f2024-12-06 13:07:461882 {"ios-interruptible-coordinator-stop-synchronously",
Arthur Milchiora41d18d52024-12-10 14:01:101883 flag_descriptions::kIOSInterruptibleCoordinatorStoppedSynchronouslyName,
1884 flag_descriptions::
1885 kIOSInterruptibleCoordinatorStoppedSynchronouslyDescription,
Arthur Milchior35ee54f2024-12-06 13:07:461886 flags_ui::kOsIos,
Arthur Milchiora41d18d52024-12-10 14:01:101887 FEATURE_VALUE_TYPE(kIOSInterruptibleCoordinatorStoppedSynchronously)},
Filipa Senrabe00cbe2024-04-19 14:21:331888 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
1889 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
1890 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:001891 {"autofill-enable-verve-card-support",
1892 flag_descriptions::kAutofillEnableVerveCardSupportName,
1893 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
1894 flags_ui::kOsIos,
1895 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ameur Hosni20b75fe52024-04-24 16:36:021896 {"omnibox-actions-in-suggest",
1897 flag_descriptions::kOmniboxActionsInSuggestName,
1898 flag_descriptions::kOmniboxActionsInSuggestDescription, flags_ui::kOsIos,
1899 FEATURE_VALUE_TYPE(kOmniboxActionsInSuggest)},
Ewann Pelle34939b62024-08-22 10:45:491900 {"tab-group-sync", flag_descriptions::kTabGroupSyncName,
1901 flag_descriptions::kTabGroupSyncDescription, flags_ui::kOsIos,
Louis Romero5a84afc2024-04-25 10:29:201902 FEATURE_VALUE_TYPE(kTabGroupSync)},
Kavita Sonic8eaa982024-05-16 17:09:111903 {"autofill-enable-save-card-loading-and-confirmation",
1904 flag_descriptions::kAutofillEnableSaveCardLoadingAndConfirmationName,
1905 flag_descriptions::
1906 kAutofillEnableSaveCardLoadingAndConfirmationDescription,
1907 flags_ui::kOsIos,
1908 FEATURE_VALUE_TYPE(
1909 autofill::features::kAutofillEnableSaveCardLoadingAndConfirmation)},
1910 {"autofill-enable-save-card-local-save-fallback",
1911 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackName,
1912 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackDescription,
1913 flags_ui::kOsIos,
1914 FEATURE_VALUE_TYPE(
1915 autofill::features::kAutofillEnableSaveCardLocalSaveFallback)},
1916 {"autofill-enable-vcn-enroll-loading-and-confirmation",
1917 flag_descriptions::kAutofillEnableVcnEnrollLoadingAndConfirmationName,
1918 flag_descriptions::
1919 kAutofillEnableVcnEnrollLoadingAndConfirmationDescription,
1920 flags_ui::kOsIos,
1921 FEATURE_VALUE_TYPE(
1922 autofill::features::kAutofillEnableVcnEnrollLoadingAndConfirmation)},
Ameur Hosni3d764c92024-05-28 14:11:121923 {"omnibox-suggestion-answer-migration",
1924 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
1925 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
1926 flags_ui::kOsIos,
1927 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:301928 kOmniboxSuggestionAnswerMigration)},
1929 {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name,
1930 flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos,
Olivier Robinf8374f12024-06-05 19:00:041931 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5,
1932 kTabResumption15Variations,
1933 "TabResumption1_5")},
Hira Mahmood6e2a894e2024-05-31 15:18:191934 {"send-tab-ios-push-notifications",
1935 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
1936 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
1937 flags_ui::kOsIos,
Hira Mahmood00c17e52024-10-09 14:30:481938 FEATURE_WITH_PARAMS_VALUE_TYPE(
1939 send_tab_to_self::kSendTabToSelfIOSPushNotifications,
1940 kSendTabIOSPushNotificationsVariations,
1941 "SendTabToSelfIOSPushNotifications")},
Olivier Robin08bc56d02024-06-05 14:05:181942 {"tab-resumption-2", flag_descriptions::kTabResumption2Name,
1943 flag_descriptions::kTabResumption2Description, flags_ui::kOsIos,
Olivier ROBINb17c14b92024-10-09 13:49:131944 FEATURE_VALUE_TYPE(kTabResumption2)},
Olivier ROBINcb76f4fe2024-06-05 16:11:421945 {"page-image-service-optimization-guide-salient-images",
1946 flag_descriptions::kPageImageServiceSalientImageName,
1947 flag_descriptions::kPageImageServiceSalientImageDescription,
1948 flags_ui::kOsIos,
1949 FEATURE_WITH_PARAMS_VALUE_TYPE(
1950 page_image_service::kImageServiceOptimizationGuideSalientImages,
1951 kImageServiceOptimizationGuideSalientImagesVariations,
1952 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:221953 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
1954 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
1955 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Charles Yangf8e7adf2024-06-11 00:17:001956 {"lens-filters-ablation-mode-enabled",
1957 flag_descriptions::kLensFiltersAblationModeEnabledName,
1958 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
1959 flags_ui::kOsIos,
1960 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
1961 kLensFiltersAblationModeVariations,
1962 "LensFiltersAblationMode")},
1963 {"lens-translate-toogle-mode-enabled",
1964 flag_descriptions::kLensTranslateToggleModeEnabledName,
1965 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
1966 flags_ui::kOsIos,
1967 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
1968 kLensTranslateToggleModeVariations,
1969 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:591970 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
1971 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
1972 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:491973 {"omnibox-ml-log-url-scoring-signals",
1974 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
1975 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
1976 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
1977 {"omnibox-ml-url-piecewise-mapped-search-blending",
1978 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
1979 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
1980 flags_ui::kOsIos,
1981 FEATURE_WITH_PARAMS_VALUE_TYPE(
1982 omnibox::kMlUrlPiecewiseMappedSearchBlending,
1983 kMlUrlPiecewiseMappedSearchBlendingVariations,
1984 "MlUrlPiecewiseMappedSearchBlending")},
1985 {"omnibox-ml-url-score-caching",
1986 flag_descriptions::kOmniboxMlUrlScoreCachingName,
1987 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
1988 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
1989 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
1990 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
1991 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
1992 kOmniboxMlUrlScoringVariations,
1993 "MlUrlScoring")},
1994 {"omnibox-ml-url-search-blending",
1995 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
1996 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
1997 flags_ui::kOsIos,
1998 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
1999 kMlUrlSearchBlendingVariations,
2000 "MlUrlScoring")},
2001 {"omnibox-ml-url-scoring-model",
2002 flag_descriptions::kOmniboxMlUrlScoringModelName,
2003 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
Khalid Peer4501c1f2024-06-27 16:12:042004 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel,
2005 kUrlScoringModelVariations,
2006 "MlUrlScoring")},
Siyu An4a486f02024-06-18 19:41:282007 {"autofill-show-manual-fill-for-virtual-cards",
2008 flag_descriptions::kAutofillShowManualFillForVirtualCardsName,
2009 flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription,
2010 flags_ui::kOsIos,
2011 FEATURE_VALUE_TYPE(
2012 autofill::features::kAutofillShowManualFillForVirtualCards)},
adamtaf85e48d2024-07-08 17:13:292013 {"home-customization", flag_descriptions::kHomeCustomizationName,
2014 flag_descriptions::kHomeCustomizationDescription, flags_ui::kOsIos,
2015 FEATURE_VALUE_TYPE(kHomeCustomization)},
Benjamin Williams0594caf2024-07-09 17:51:382016 {"safety-check-notifications",
2017 flag_descriptions::kSafetyCheckNotificationsName,
2018 flag_descriptions::kSafetyCheckNotificationsDescription, flags_ui::kOsIos,
2019 FEATURE_WITH_PARAMS_VALUE_TYPE(kSafetyCheckNotifications,
2020 kSafetyCheckNotificationsVariations,
2021 "SafetyCheckNotifications")},
Federica Germinarioa1fe0902024-07-12 08:28:462022 {"app-background-refresh-ios", flag_descriptions::kAppBackgroundRefreshName,
2023 flag_descriptions::kAppBackgroundRefreshDescription, flags_ui::kOsIos,
2024 FEATURE_VALUE_TYPE(kEnableAppBackgroundRefresh)},
Chris Lu3eba26312024-07-12 20:21:382025 {"home-memory-improvements", flag_descriptions::kHomeMemoryImprovementsName,
2026 flag_descriptions::kHomeMemoryImprovementsDescription, flags_ui::kOsIos,
2027 FEATURE_VALUE_TYPE(kHomeMemoryImprovements)},
Stephen McGruer8fe98b62024-07-16 13:10:132028 {"autofill-upload-card-request-timeout",
2029 flag_descriptions::kAutofillUploadCardRequestTimeoutName,
2030 flag_descriptions::kAutofillUploadCardRequestTimeoutDescription,
2031 flags_ui::kOsIos,
2032 FEATURE_WITH_PARAMS_VALUE_TYPE(
2033 autofill::features::kAutofillUploadCardRequestTimeout,
2034 kAutofillUploadCardRequestTimeoutOptions,
2035 "AutofillUploadCardRequestTimeout")},
Karol Sygiet6ac82c82024-07-16 14:22:392036 {"clear-undecryptable-passwords",
2037 flag_descriptions::kClearUndecryptablePasswordsName,
2038 flag_descriptions::kClearUndecryptablePasswordsDescription,
2039 flags_ui::kOsIos,
2040 FEATURE_VALUE_TYPE(
2041 password_manager::features::kClearUndecryptablePasswords)},
Stephen McGruer0904cae2024-07-17 19:54:462042 {"autofill-vcn-enroll-request-timeout",
2043 flag_descriptions::kAutofillVcnEnrollRequestTimeoutName,
2044 flag_descriptions::kAutofillVcnEnrollRequestTimeoutDescription,
2045 flags_ui::kOsIos,
2046 FEATURE_WITH_PARAMS_VALUE_TYPE(
2047 autofill::features::kAutofillVcnEnrollRequestTimeout,
2048 kAutofillVcnEnrollRequestTimeoutOptions,
2049 "AutofillVcnEnrollRequestTimeout")},
Charles Yang98bef0c2024-07-19 12:24:142050 {"lens-web-page-load-optimization-enabled",
2051 flag_descriptions::kLensWebPageLoadOptimizationEnabledName,
2052 flag_descriptions::kLensWebPageLoadOptimizationEnabledDescription,
2053 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageLoadOptimizationEnabled)},
Eric Ekey4a930592024-07-19 18:58:142054 {"segmented-default-browser-promo",
2055 flag_descriptions::kSegmentedDefaultBrowserPromoName,
2056 flag_descriptions::kSegmentedDefaultBrowserPromoDescription,
Briana McClurec2b62f92024-10-29 15:35:062057 flags_ui::kOsIos,
2058 FEATURE_WITH_PARAMS_VALUE_TYPE(kSegmentedDefaultBrowserPromo,
2059 kSegmentedDefaultBrowserPromoVariations,
2060 "SegmentedDBP-Animation")},
Nicolas MacBethc738c4e2024-07-19 21:14:192061 {"rich-bubble-without-image",
2062 flag_descriptions::kRichBubbleWithoutImageName,
2063 flag_descriptions::kRichBubbleWithoutImageDescription, flags_ui::kOsIos,
2064 FEATURE_VALUE_TYPE(kRichBubbleWithoutImage)},
Junhui He52294652024-07-23 23:50:152065 {"autofill-unmask-card-request-timeout",
2066 flag_descriptions::kAutofillUnmaskCardRequestTimeoutName,
2067 flag_descriptions::kAutofillUnmaskCardRequestTimeoutDescription,
2068 flags_ui::kOsIos,
2069 FEATURE_VALUE_TYPE(autofill::features::kAutofillUnmaskCardRequestTimeout)},
vincbe1379832024-08-06 19:08:122070 {"autofill-across-iframes", flag_descriptions::kAutofillAcrossIframesName,
2071 flag_descriptions::kAutofillAcrossIframesDescription, flags_ui::kOsIos,
2072 FEATURE_VALUE_TYPE(autofill::features::kAutofillAcrossIframesIos)},
Cristian Ciacu62fe1912024-08-07 10:14:502073 {"ios-page-info-last-visited",
2074 flag_descriptions::kPageInfoLastVisitedIOSName,
2075 flag_descriptions::kPageInfoLastVisitedIOSDescription, flags_ui::kOsIos,
2076 FEATURE_VALUE_TYPE(kPageInfoLastVisitedIOS)},
Daniel White1ced9e62024-08-15 19:27:382077 {"enable-trait-collection-registration",
2078 flag_descriptions::kEnableTraitCollectionRegistrationName,
2079 flag_descriptions::kEnableTraitCollectionRegistrationDescription,
2080 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableTraitCollectionRegistration)},
Ernesto Izquierdo Cluaebe0a0252024-08-19 22:05:542081 {"autofill-isolated-world-ios",
2082 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSName,
2083 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSDescription,
2084 flags_ui::kOsIos,
2085 FEATURE_VALUE_TYPE(kAutofillIsolatedWorldForJavascriptIos)},
Ewann Pelle34939b62024-08-22 10:45:492086 {"tab-group-indicator", flag_descriptions::kTabGroupIndicatorName,
2087 flag_descriptions::kTabGroupIndicatorDescription, flags_ui::kOsIos,
2088 FEATURE_VALUE_TYPE(kTabGroupIndicator)},
thefrog8ed47452024-08-30 13:32:482089 {"safe-browsing-local-lists-use-sbv5",
2090 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Name,
2091 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Description,
2092 flags_ui::kOsIos, FEATURE_VALUE_TYPE(safe_browsing::kLocalListsUseSBv5)},
Chris Lu4c688e02024-09-07 00:48:082093 {"ios-price-tracking-notification-promo-card",
2094 flag_descriptions::kPriceTrackingPromoName,
2095 flag_descriptions::kPriceTrackingPromoDescription, flags_ui::kOsIos,
2096 FEATURE_VALUE_TYPE(commerce::kPriceTrackingPromo)},
2097 {"ios-segmentation-ephemeral-card-ranker",
2098 flag_descriptions::kSegmentationPlatformEphemeralCardRankerName,
2099 flag_descriptions::kSegmentationPlatformEphemeralCardRankerDescription,
2100 flags_ui::kOsIos,
2101 FEATURE_WITH_PARAMS_VALUE_TYPE(
2102 segmentation_platform::features::
2103 kSegmentationPlatformEphemeralCardRanker,
2104 kEphemeralCardRankerCardOverrideOptions,
2105 "SegmentationPlatformEphemeralCardRanker")},
Asami Doi55f87dd2024-09-12 12:55:482106 {"new-sync-opt-in-illustration",
2107 flag_descriptions::kNewSyncOptInIllustrationName,
2108 flag_descriptions::kNewSyncOptInIllustrationDescription, flags_ui::kOsIos,
2109 FEATURE_VALUE_TYPE(kNewSyncOptInIllustration)},
Alexander Tekle8cf3c8e2024-09-13 21:38:072110 {"autofill-enable-log-form-events-to-all-parsed-form-types",
2111 flag_descriptions::kAutofillEnableLogFormEventsToAllParsedFormTypesName,
2112 flag_descriptions::
2113 kAutofillEnableLogFormEventsToAllParsedFormTypesDescription,
2114 flags_ui::kOsIos,
2115 FEATURE_VALUE_TYPE(
2116 autofill::features::kAutofillEnableLogFormEventsToAllParsedFormTypes)},
Radu Nitescu06133382024-10-21 18:33:292117 {"lens-overlay-enable-ipad-compatibility",
2118 flag_descriptions::kLensOverlayEnableIPadCompatibilityName,
2119 flag_descriptions::kLensOverlayEnableIPadCompatibilityDescription,
2120 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableIPadCompatibility)},
Ameur Hosni22b62d92024-09-25 10:51:022121 {"lens-overlay-force-show-onboarding-screen",
2122 flag_descriptions::kLensOverlayForceShowOnboardingScreenName,
2123 flag_descriptions::kLensOverlayForceShowOnboardingScreenDescription,
2124 flags_ui::kOsIos,
2125 FEATURE_VALUE_TYPE(kLensOverlayForceShowOnboardingScreen)},
Gauthier Ambard766f4cf2024-09-26 16:56:252126 {"data-sharing", flag_descriptions::kDataSharingName,
2127 flag_descriptions::kDataSharingDescription, flags_ui::kOsIos,
2128 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingFeature)},
2129 {"data-sharing-join-only", flag_descriptions::kDataSharingJoinOnlyName,
2130 flag_descriptions::kDataSharingJoinOnlyDescription, flags_ui::kOsIos,
2131 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingJoinOnly)},
Rubin Deliallisib66a77a2024-10-02 18:09:482132 {"ios-soft-lock", flag_descriptions::kIOSSoftLockName,
2133 flag_descriptions::kIOSSoftLockDescription, flags_ui::kOsIos,
Rubin Deliallisi1d0b3ba2024-11-04 14:33:042134 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSoftLock,
2135 kIOSSoftLockVariations,
2136 "IOSSoftLock")},
Marc Treib31e4f9f2024-10-07 09:55:542137 {"separate-profiles-for-managed-accounts",
2138 flag_descriptions::kSeparateProfilesForManagedAccountsName,
2139 flag_descriptions::kSeparateProfilesForManagedAccountsDescription,
Olivier ROBINb17c14b92024-10-09 13:49:132140 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSeparateProfilesForManagedAccounts)},
Yann Dago59ebf5b2024-12-03 16:52:022141 {"managed-profile-creation-updated-screen",
2142 flag_descriptions::kManagedProfileCreationUpdatedScreenName,
2143 flag_descriptions::kManagedProfileCreationUpdatedScreenDescription,
2144 flags_ui::kOsIos,
2145 FEATURE_VALUE_TYPE(kManagedProfileCreationUpdatedScreen)},
Olivier ROBINb17c14b92024-10-09 13:49:132146 {"tab-resumption-2-reason", flag_descriptions::kTabResumption2ReasonName,
2147 flag_descriptions::kTabResumption2ReasonDescription, flags_ui::kOsIos,
2148 FEATURE_VALUE_TYPE(kTabResumption2Reason)},
2149 {"tab-resumption-images", flag_descriptions::kTabResumptionImagesName,
2150 flag_descriptions::kTabResumptionImagesDescription, flags_ui::kOsIos,
2151 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumptionImages,
2152 kTabResumptionImagesVariations,
2153 "TabResumption1_5")},
Benjamin Williamsd7f854b2024-10-09 17:12:272154 {"segmentation-platform-tips-ephemeral-card",
2155 flag_descriptions::kSegmentationPlatformTipsEphemeralCardName,
2156 flag_descriptions::kSegmentationPlatformTipsEphemeralCardDescription,
2157 flags_ui::kOsIos,
2158 FEATURE_VALUE_TYPE(segmentation_platform::features::
vincbf23f7332024-10-11 19:32:122159 kSegmentationPlatformTipsEphemeralCard)},
2160 {"ios-password-suggestion-bottom-sheet-v2",
2161 flag_descriptions::kPasswordSuggestionBottomSheetV2Name,
2162 flag_descriptions::kPasswordSuggestionBottomSheetV2Description,
2163 flags_ui::kOsIos,
Federica Germinariof58b5a7e2024-10-22 10:35:422164 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheetV2)},
Charles Yang11dd8ab2024-10-24 19:15:532165 {"lens-unary-apis-with-http-transport-enabled",
2166 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledName,
2167 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledDescription,
2168 flags_ui::kOsIos,
2169 FEATURE_VALUE_TYPE(kLensUnaryApisWithHttpTransportEnabled)},
Christian Xu6db322d2024-10-25 14:12:492170 {"lens-overlay-enable-same-tab-navigation",
2171 flag_descriptions::kLensOverlayEnableSameTabNavigationName,
2172 flag_descriptions::kLensOverlayEnableSameTabNavigationDescription,
2173 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableSameTabNavigation)},
Elmehdi Rahmaoui3c6e8012024-10-28 10:17:532174 {"ios-chrome-startup-parameters-async",
2175 flag_descriptions::kChromeStartupParametersAsyncName,
2176 flag_descriptions::kChromeStartupParametersAsyncDescription,
2177 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kChromeStartupParametersAsync)},
Christian Xua8459472024-10-31 13:39:082178 {"lens-overlay-enable-location-bar-entrypoint",
2179 flag_descriptions::kLensOverlayEnableLocationBarEntrypointName,
2180 flag_descriptions::kLensOverlayEnableLocationBarEntrypointDescription,
2181 flags_ui::kOsIos,
2182 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypoint)},
Christian Xudddf1e012024-10-31 18:34:012183 {"lens-overlay-disable-price-insights",
2184 flag_descriptions::kLensOverlayDisablePriceInsightsName,
2185 flag_descriptions::kLensOverlayDisablePriceInsightsDescription,
2186 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayDisablePriceInsights)},
Chris Lu9fd38c62024-11-04 22:22:592187 {"ios-provisional-notification-alert",
2188 flag_descriptions::kProvisionalNotificationAlertName,
2189 flag_descriptions::kProvisionalNotificationAlertDescription,
2190 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kProvisionalNotificationAlert)},
Hira Mahmood431c8ab2024-11-05 17:16:292191 {"ios-start-time-startup-remediations",
2192 flag_descriptions::kIOSStartTimeStartupRemediationsName,
2193 flag_descriptions::kIOSStartTimeStartupRemediationsDescription,
2194 flags_ui::kOsIos,
2195 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSStartTimeStartupRemediations,
2196 kIOSStartTimeStartupRemediationsVariations,
2197 "IOSStartTimeStartupRemediations")},
vincb7867dc042024-11-06 14:25:052198 {"autofill-throttle-doc-form-scans",
2199 flag_descriptions::kAutofillThrottleDocumentFormScanName,
2200 flag_descriptions::kAutofillThrottleDocumentFormScanDescription,
2201 flags_ui::kOsIos,
2202 FEATURE_WITH_PARAMS_VALUE_TYPE(kAutofillThrottleDocumentFormScanIos,
2203 kAutofillThrottleDocFormScanVariations,
2204 "AutofillThrottleDocumentFormScan")},
vincb2bf7f5c2024-11-06 17:18:092205 {"autofill-throttle-filtered-doc-form-scan",
2206 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanName,
2207 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanDescription,
2208 flags_ui::kOsIos,
2209 FEATURE_WITH_PARAMS_VALUE_TYPE(
2210 kAutofillThrottleFilteredDocumentFormScanIos,
2211 kAutofillThrottleFilteredDocFormScanVariations,
2212 "AutofillThrottleFilteredDocumentFormScan")},
ginnnnnnny963c7fc2024-11-06 22:44:502213 {"ios-new-feed-positioning",
2214 flag_descriptions::kNewFeedPositioningExperimentName,
2215 flag_descriptions::kNewFeedPositioningExperimentDescription,
2216 flags_ui::kOsIos,
2217 FEATURE_WITH_PARAMS_VALUE_TYPE(kNewFeedPositioning,
2218 kNewFeedPositioningVariations,
2219 "IOSNewFeedPositioningStudy")},
Stephen McGruer5ac77b932024-11-07 20:09:432220 {"ios-disable-parcel-tracking",
2221 flag_descriptions::kIOSDisableParcelTrackingName,
2222 flag_descriptions::kIOSDisableParcelTrackingDescription, flags_ui::kOsIos,
2223 FEATURE_VALUE_TYPE(kIOSDisableParcelTracking)},
vincb91781772024-11-08 17:13:122224 {"autofill-payments-sheet-v2",
2225 flag_descriptions::kAutofillPaymentsSheetV2Name,
2226 flag_descriptions::kAutofillPaymentsSheetV2Description, flags_ui::kOsIos,
2227 FEATURE_VALUE_TYPE(kAutofillPaymentsSheetV2Ios)},
Hira Mahmoodf8533dc2024-11-12 16:24:252228 {"ios-start-time-browser-background-remediations",
2229 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsName,
2230 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsDescription,
2231 flags_ui::kOsIos,
2232 FEATURE_WITH_PARAMS_VALUE_TYPE(
2233 kIOSStartTimeBrowserBackgroundRemediations,
2234 kIOSStartTimeBrowserBackgroundRemediationsVariations,
2235 "IOSStartTimeStartupRemediations")},
Hira Mahmood664449872024-11-18 23:55:222236 {"set-up-list-in-first-run", flag_descriptions::kSetUpListInFirstRunName,
2237 flag_descriptions::kSetUpListInFirstRunNameDescription, flags_ui::kOsIos,
2238 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListInFirstRun,
2239 kSetUpListInFirstRunVariations,
2240 "SetUpListInFirstRun")},
Charles Yangf57489f2024-11-27 13:58:282241 {"lens-unary-http-transport-enabled",
2242 flag_descriptions::kLensUnaryHttpTransportEnabledName,
2243 flag_descriptions::kLensUnaryHttpTransportEnabledDescription,
2244 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensUnaryHttpTransportEnabled)},
Charles Yang8b4687c2024-12-11 02:42:192245 {"lens-clearcut-background-upload-enabled",
2246 flag_descriptions::kLensClearcutBackgroundUploadEnabledName,
2247 flag_descriptions::kLensClearcutBackgroundUploadEnabledDescription,
2248 flags_ui::kOsIos,
2249 FEATURE_VALUE_TYPE(kLensClearcutBackgroundUploadEnabled)},
2250 {"lens-clearcut-logger-fast-qos-enabled",
2251 flag_descriptions::kLensClearcutLoggerFastQosEnabledName,
2252 flag_descriptions::kLensClearcutLoggerFastQosEnabledDescription,
2253 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensClearcutLoggerFastQosEnabled)},
Hira Mahmood7577c9b672024-12-12 20:29:122254 {"set-up-list-shortened-duration",
2255 flag_descriptions::kSetUpListShortenedDurationName,
2256 flag_descriptions::kSetUpListShortenedDurationDescription,
2257 flags_ui::kOsIos,
2258 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListShortenedDuration,
2259 kSetUpListDurationVariations,
2260 "SetUpListShortenedDuration")},
ginnnnnnnydcd9eeb2024-12-16 18:05:162261 // TODO(crbug.com/359325090): Update value type to include params needed for
2262 // the multi-arm experiment.
2263 {"ios-new-following-feed-entry-points",
2264 flag_descriptions::kIOSNewFollowingFeedEntryPointsName,
2265 flag_descriptions::kIOSNewFollowingFeedEntryPointsDescription,
2266 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSNewFollowingFeedEntryPoints)},
Christian Xu375dcf72024-12-17 15:44:592267 {"enable-lens-overlay-price-insights-counterfactual",
2268 flag_descriptions::kLensOverlayPriceInsightsCounterfactualName,
2269 flag_descriptions::kLensOverlayPriceInsightsCounterfactualDescription,
2270 flags_ui::kOsIos,
2271 FEATURE_VALUE_TYPE(kLensOverlayPriceInsightsCounterfactual)},
Tommy Nyquiste1447512024-12-17 17:46:242272 {"collaboration-messaging", flag_descriptions::kCollaborationMessagingName,
2273 flag_descriptions::kCollaborationMessagingDescription, flags_ui::kOsIos,
Hailey Wang1f2d890a2024-12-26 20:23:562274 FEATURE_VALUE_TYPE(collaboration::features::kCollaborationMessaging)},
Charles Yangfd397e82024-12-19 17:11:452275 {"lens-single-tap-text-selection-disabled",
2276 flag_descriptions::kLensSingleTapTextSelectionDisabledName,
2277 flag_descriptions::kLensSingleTapTextSelectionDisabledDescription,
2278 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensSingleTapTextSelectionDisabled)},
Christian Xudd4020782024-12-23 21:52:222279 {"lens-overlay-enable-location-bar-entrypoint-on-srp",
2280 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPName,
2281 flag_descriptions::kLensOverlayEnableLocationBarEntrypointOnSRPDescription,
2282 flags_ui::kOsIos,
2283 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypointOnSRP)},
Hira Mahmoodf6906a82025-01-02 17:55:092284 {"updated-fre-screens-sequence", flag_descriptions::kUpdatedFRESequenceName,
2285 flag_descriptions::kUpdatedFRESequenceDescription, flags_ui::kOsIos,
2286 FEATURE_WITH_PARAMS_VALUE_TYPE(first_run::kUpdatedFirstRunSequence,
2287 kUpdatedFirstRunSequenceVariations,
2288 "UpdatedFirstRunSequence")},
Hira Mahmood9f1c19092025-01-06 17:47:432289 {"set-up-list-without-sign-in-item",
2290 flag_descriptions::kSetUpListWithoutSignInItemName,
2291 flag_descriptions::kSetUpListWithoutSignInItemDescription,
2292 flags_ui::kOsIos,
2293 FEATURE_VALUE_TYPE(set_up_list::kSetUpListWithoutSignInItem)},
Federica Germinariof58b5a7e2024-10-22 10:35:422294};
sdefresne14900ee2015-11-27 14:43:212295
Rohit Raobed794c2020-04-27 15:27:452296bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
2297 return false;
2298}
2299
2300flags_ui::FlagsState& GetGlobalFlagsState() {
2301 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
2302 nullptr);
2303 return *flags_state;
2304}
David Jean5ca263c2021-08-18 09:19:302305// Creates the experimental test policies map, used by AsyncPolicyLoader and
2306// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342307NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:212308 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2309
Guillaume Jenkins25e9bd72020-08-27 17:39:062310 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:552311 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:062312 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:552313
Guillaume Jenkins25e9bd72020-08-27 17:39:062314 // Set some sample policy values for testing if EnableSamplePolicies is set to
2315 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:402316 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:552317 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:012318 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
2319
Guillaume Jenkinseeb7007c2020-06-25 22:55:402320 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
2321
2322 // 2 = Disable all variations
2323 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
2324
2325 // 2 = Do not allow any site to show popups
2326 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
2327
Tina Wang5abee802020-07-29 23:09:522328 // Set default search engine.
2329 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
2330 @YES,
2331 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
2332 @"http://www.google.com/search?q={searchTerms}",
2333 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:022334 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:522335
Tina Wang89068c82020-10-29 15:51:502336 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
2337
Gauthier Ambard21b23702021-04-16 16:11:272338 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
2339
Tina Wang59d0b7e2020-08-11 04:41:012340 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:532341
2342 // 2 = Enhanced safe browsing protection
2343 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
2344
2345 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:292346
2347 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:552348 }];
2349 }
2350
Ewann227a3c02021-04-19 12:04:542351 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:042352 NSString* sync_policy_key =
2353 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:302354 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:542355 }
Ewann227a3c02021-04-19 12:04:542356
Ewann570a6302021-08-17 07:22:422357 // SyncTypesListDisabled policy.
2358 NSString* Sync_types_list_disabled_key =
2359 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
2360 NSMutableArray* Sync_types_list_disabled_values =
2361 [[NSMutableArray alloc] init];
2362 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
2363 [Sync_types_list_disabled_values addObject:@"bookmarks"];
2364 }
2365 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
2366 [Sync_types_list_disabled_values addObject:@"readingList"];
2367 }
2368 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
2369 [Sync_types_list_disabled_values addObject:@"preferences"];
2370 }
2371 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
2372 [Sync_types_list_disabled_values addObject:@"passwords"];
2373 }
2374 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
2375 [Sync_types_list_disabled_values addObject:@"autofill"];
2376 }
2377 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
2378 [Sync_types_list_disabled_values addObject:@"typedUrls"];
2379 }
2380 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
2381 [Sync_types_list_disabled_values addObject:@"tabs"];
2382 }
2383 if ([Sync_types_list_disabled_values count]) {
2384 [testing_policies addEntriesFromDictionary:@{
2385 Sync_types_list_disabled_key : Sync_types_list_disabled_values
2386 }];
Ewann570a6302021-08-17 07:22:422387 }
2388
Gauthier Ambard073eaa92021-11-22 15:24:132389 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:522390 NSString* incognito_policy_key =
2391 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
2392 NSInteger incognito_mode_availability =
2393 [defaults integerForKey:incognito_policy_key];
2394 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:522395 [testing_policies addEntriesFromDictionary:@{
2396 incognito_policy_key : @(incognito_mode_availability),
2397 }];
2398 }
2399
Ewann40a8f8a2021-07-29 10:01:202400 NSString* restriction_pattern =
2401 [defaults stringForKey:@"RestrictAccountsToPatterns"];
2402 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:292403 NSString* restrict_key =
2404 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:202405 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:292406 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:202407 }];
2408 }
2409
Vincent Boisselle19200bc2021-09-01 17:58:252410 // If the sign-in policy is set (not "None"), add the policy key to the list
2411 // of enabled experimental policies, and set the value.
2412 NSString* const kSigninPolicyKey = @"BrowserSignin";
2413 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2414 if (signin_policy_mode) {
2415 // Remove the mode offset that was used to represent the unset policy.
2416 --signin_policy_mode;
2417 DCHECK(signin_policy_mode >= 0);
2418
Vincent Boisselle19200bc2021-09-01 17:58:252419 [testing_policies addEntriesFromDictionary:@{
2420 kSigninPolicyKey : @(signin_policy_mode),
2421 }];
2422 }
2423
Veronique Nguyen9b1044f2022-01-11 14:41:132424 // If the New Tab Page URL is set (not empty) add the value to the list of
2425 // test policies.
2426 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2427 if ([ntp_location length] > 0) {
2428 NSString* ntp_location_key =
2429 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2430 [testing_policies
2431 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572432 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132433 }
2434
Ali Juma9ec36d2b2022-03-28 14:53:122435 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2436 NSString* allow_backups_key =
2437 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2438 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2439 [allowed_experimental_policies addObject:allow_backups_key];
2440 }
2441
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242442 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2443 NSString* password_manager_key =
2444 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2445 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2446 [allowed_experimental_policies addObject:password_manager_key];
2447 }
Vincent Boisselle003569a72023-09-11 16:03:122448
2449 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2450 NSString* user_policy_merge_key =
2451 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2452 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2453 [allowed_experimental_policies addObject:user_policy_merge_key];
2454 }
2455
Arthur Milchiorbb44f5c82023-03-14 16:14:462456 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2457 NSString* managed_bookmarks_key =
2458 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2459 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572460 @"["
2461 // The following gets filtered out from
2462 // the JSON string when parsed.
2463 " {"
2464 " \"toplevel_name\": \"Managed Bookmarks\""
2465 " },"
2466 " {"
2467 " \"name\": \"Google\","
2468 " \"url\": \"google.com\""
2469 " },"
2470 " {"
2471 " \"name\": \"Empty Folder\","
2472 " \"children\": []"
2473 " },"
2474 " {"
2475 " \"name\": \"Big Folder\","
2476 " \"children\": ["
2477 " {"
2478 " \"name\": \"Youtube\","
2479 " \"url\": \"youtube.com\""
2480 " },"
2481 " {"
2482 " \"name\": \"Chromium\","
2483 " \"url\": \"chromium.org\""
2484 " },"
2485 " {"
2486 " \"name\": \"More Stuff\","
2487 " \"children\": ["
2488 " {"
2489 " \"name\": \"Bugs\","
2490 " \"url\": \"crbug.com\""
2491 " }"
2492 " ]"
2493 " }"
2494 " ]"
2495 " }"
2496 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462497 [testing_policies addEntriesFromDictionary:@{
2498 managed_bookmarks_key : managed_bookmarks_value
2499 }];
2500 [allowed_experimental_policies addObject:managed_bookmarks_key];
2501 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242502
Guillaume Jenkins25e9bd72020-08-27 17:39:062503 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2504 // policy.
2505 if ([allowed_experimental_policies count] > 0) {
2506 [testing_policies setValue:allowed_experimental_policies
2507 forKey:base::SysUTF8ToNSString(
2508 policy::key::kEnableExperimentalPolicies)];
2509 }
2510
jlebel2eb40222022-05-06 11:15:422511 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2512 switch ([defaults integerForKey:metrics_reporting_key]) {
2513 case 1:
2514 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132515 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422516 break;
2517 case 2:
2518 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132519 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422520 break;
2521 default:
2522 // Metrics reporting not managed.
2523 break;
2524 }
2525
David Jean6f85d44f2021-08-19 08:08:452526 // Warning: Add new flags to TestingPoliciesHash() below.
2527
David Jean5ca263c2021-08-18 09:19:302528 return testing_policies;
2529}
David Jean6f85d44f2021-08-19 08:08:452530
David Jean5ca263c2021-08-18 09:19:302531} // namespace
2532
Gauthier Ambard02dbf022022-08-23 08:28:472533// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302534void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2535 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2536
2537 // Set the UA flag if UseMobileSafariUA is enabled.
2538 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2539 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2540 // Chrome puts its product token.
2541 int32_t major = 0;
2542 int32_t minor = 0;
2543 int32_t bugfix = 0;
2544 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2545 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2546
2547 command_line->AppendSwitchASCII(switches::kUserAgent,
2548 web::BuildMobileUserAgent(product));
2549 }
2550
2551 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342552 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302553
2554 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2555 // Management to enabled and add the token to the list of policies.
2556 NSString* token_key =
2557 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2558 NSString* token = [defaults stringForKey:token_key];
2559
2560 if ([token length] > 0) {
2561 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2562 [testing_policies setValue:token forKey:token_key];
2563 }
2564
Guillaume Jenkins57606d72020-08-13 17:32:552565 // If some policies were set, commit them to the app's registration defaults.
2566 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402567 NSDictionary* registration_defaults =
2568 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2569 [defaults registerDefaults:registration_defaults];
2570 }
2571
sdefresne14900ee2015-11-27 14:43:212572 // Freeform commandline flags. These are added last, so that any flags added
2573 // earlier in this function take precedence.
2574 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2575 base::CommandLine::StringVector flags;
2576 // Append an empty "program" argument.
2577 flags.push_back("");
2578
2579 // The number of flags corresponds to the number of text fields in
2580 // Experimental.plist.
2581 const int kNumFreeformFlags = 5;
2582 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2583 NSString* key =
2584 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2585 NSString* flag = [defaults stringForKey:key];
2586 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332587 // iOS keyboard replaces -- with —, so undo that.
2588 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2589 withString:@"--"
2590 options:0
2591 range:NSMakeRange(0, 1)];
2592 // To make things easier, allow flags with no dashes by prepending them
2593 // here. This also allows for flags that just have one dash if they
2594 // exist.
2595 if (![flag hasPrefix:@"-"]) {
2596 flag = [@"--" stringByAppendingString:flag];
2597 }
sdefresne14900ee2015-11-27 14:43:212598 flags.push_back(base::SysNSStringToUTF8(flag));
2599 }
2600 }
2601
2602 base::CommandLine temp_command_line(flags);
2603 command_line->AppendArguments(temp_command_line, false);
2604 }
msardafc76f662017-02-24 12:46:282605
justincohendacc85d2017-06-28 23:34:102606 // Populate command line flag for 3rd party keyboard omnibox workaround.
2607 NSString* enableThirdPartyKeyboardWorkaround =
2608 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2609 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2610 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2611 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2612 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2613 }
2614
Sylvain Defresned3cd8d92022-01-18 13:35:082615 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212616}
2617
sdefresne14900ee2015-11-27 14:43:212618void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2619 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182620 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112621 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532622 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212623}
2624
jkrcalbf073372016-07-29 07:21:312625std::vector<std::string> RegisterAllFeatureVariationParameters(
2626 flags_ui::FlagsStorage* flags_storage,
2627 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182628 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2629 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312630}
2631
sdefresne14900ee2015-11-27 14:43:212632void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2633 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502634 base::Value::List& supported_entries,
2635 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182636 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212637 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512638 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212639}
2640
2641void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2642 const std::string& internal_name,
2643 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182644 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2645 enable);
sdefresne14900ee2015-11-27 14:43:212646}
2647
2648void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182649 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212650}
2651
Nicolas MacBeth972e2592023-02-23 15:22:092652bool IsRestartNeededToCommitChanges() {
2653 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2654}
2655
sdefresne14900ee2015-11-27 14:43:212656namespace testing {
2657
Elly Fong-Jones323ab1092021-08-23 22:36:312658base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2659 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532660 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212661}
2662
2663} // namespace testing