blob: e4df4644ab828a4e77fe6df3483e7b51997035ec [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"
Gauthier Ambard999088c2022-09-13 08:36:5730#import "components/commerce/core/commerce_feature_list.h"
31#import "components/commerce/core/flag_descriptions.h"
32#import "components/content_settings/core/common/features.h"
Asami Doi93db79e2024-09-06 18:16:5533#import "components/data_sharing/public/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5734#import "components/dom_distiller/core/dom_distiller_switches.h"
Raj Tb95d813542022-11-16 21:27:5235#import "components/download/public/background_service/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5736#import "components/enterprise/browser/enterprise_switches.h"
37#import "components/feature_engagement/public/feature_constants.h"
38#import "components/feature_engagement/public/feature_list.h"
39#import "components/feed/feed_feature_list.h"
40#import "components/flags_ui/feature_entry.h"
41#import "components/flags_ui/feature_entry_macros.h"
42#import "components/flags_ui/flags_storage.h"
43#import "components/flags_ui/flags_ui_switches.h"
Benjamin Williams11f39912023-04-13 19:00:2544#import "components/history/core/browser/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5745#import "components/invalidation/impl/invalidation_switches.h"
Benjamin Williamsaa8da8142022-11-14 19:51:0346#import "components/ntp_tiles/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5747#import "components/ntp_tiles/switches.h"
Ameur Hosni3d764c92024-05-28 14:11:1248#import "components/omnibox/browser/omnibox_feature_configs.h"
Gauthier Ambard999088c2022-09-13 08:36:5749#import "components/omnibox/browser/omnibox_field_trial.h"
50#import "components/omnibox/common/omnibox_features.h"
51#import "components/optimization_guide/core/optimization_guide_features.h"
Raj Ta921ffc2022-08-25 19:00:2052#import "components/optimization_guide/core/optimization_guide_switches.h"
Raj Tc66dd122024-04-01 18:48:3953#import "components/page_content_annotations/core/page_content_annotations_features.h"
Olivier ROBINcb76f4fe2024-06-05 16:11:4254#import "components/page_image_service/features.h"
Vasilii Sukhanov32b14452023-10-12 17:31:2755#import "components/password_manager/core/browser/features/password_features.h"
Gauthier Ambard999088c2022-09-13 08:36:5756#import "components/password_manager/core/common/password_manager_features.h"
57#import "components/payments/core/features.h"
Guillaume Jenkinseeb7007c2020-06-25 22:55:4058#import "components/policy/core/common/policy_loader_ios_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5759#import "components/policy/policy_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5760#import "components/safe_browsing/core/common/features.h"
Benjamin Williamsbd411e892024-10-25 15:59:3161#import "components/segmentation_platform/embedder/home_modules/constants.h"
Chris Lu6fd4eaf2023-08-08 18:29:3062#import "components/segmentation_platform/public/constants.h"
Chris Lub0bad572023-08-07 18:13:2963#import "components/segmentation_platform/public/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2564#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5765#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
66#import "components/signin/core/browser/account_reconcilor.h"
67#import "components/signin/ios/browser/features.h"
68#import "components/signin/public/base/signin_switches.h"
69#import "components/strings/grit/components_strings.h"
Nohemi Fernandez64acf982023-08-04 09:27:1570#import "components/supervised_user/core/common/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5771#import "components/sync/base/command_line_switches.h"
72#import "components/sync/base/features.h"
73#import "components/sync/base/pref_names.h"
74#import "components/translate/core/browser/translate_prefs.h"
75#import "components/translate/core/common/translate_util.h"
Ed Chin91e44992022-07-27 13:42:3476#import "ios/chrome/app/background_mode_buildflags.h"
Gauthier Ambard5b7f3c22023-09-13 12:03:3077#import "ios/chrome/browser/browsing_data/model/browsing_data_features.h"
Aman Vermab6f55572023-09-28 11:40:5378#import "ios/chrome/browser/crash_report/model/features.h"
Sebsgfcd5b0b2024-04-09 08:18:3279#import "ios/chrome/browser/credential_provider/model/features.h"
Aman Vermaf8a157f62023-10-03 15:32:1180#import "ios/chrome/browser/default_browser/model/utils.h"
Nan Lina498c412024-06-13 15:33:3281#import "ios/chrome/browser/download/ui_bundled/features.h"
mmrashadbc0ca942023-10-06 13:12:1482#import "ios/chrome/browser/find_in_page/model/util.h"
Gauthier Ambard92605132022-08-26 13:25:1783#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5784#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Vincent Boisselle8b321bb2023-11-28 13:58:3185#import "ios/chrome/browser/follow/model/follow_features.h"
Rubin Deliallisib66a77a2024-10-02 18:09:4886#import "ios/chrome/browser/incognito_reauth/ui_bundled/features.h"
Ali Jumad29dc1872023-10-19 13:33:5887#import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h"
Hira Mahmood664449872024-11-18 23:55:2288#import "ios/chrome/browser/ntp/model/features.h"
Chris Lu09019af2024-08-28 08:38:4489#import "ios/chrome/browser/ntp/ui_bundled/new_tab_page_feature.h"
Stephen McGruer5ac77b932024-11-07 20:09:4390#import "ios/chrome/browser/parcel_tracking/features.h"
mmrashadd0c7f952023-12-14 13:36:3891#import "ios/chrome/browser/policy/model/policy_util.h"
Cheick Cisse85457f22024-05-23 22:37:5992#import "ios/chrome/browser/price_insights/model/price_insights_feature.h"
Stepan Khapugin5694d702024-01-31 13:23:0893#import "ios/chrome/browser/promos_manager/model/features.h"
mmrashadf158cad942023-10-03 09:15:4894#import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:4695#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:3596#import "ios/chrome/browser/shared/public/features/system_flags.h"
Tina Wang75f21e82024-07-01 18:00:3597#import "ios/chrome/browser/start_surface/ui_bundled/start_surface_features.h"
Robbie Gibson596fe292023-10-27 01:00:3698#import "ios/chrome/browser/tabs/model/inactive_tabs/features.h"
Ewann Pelled2eaeba2023-09-19 09:15:2899#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Charles Yang0bba5262024-05-14 17:46:47100#import "ios/chrome/browser/ui/lens/features.h"
Christian Xub8c06cd2022-04-29 20:55:01101#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Filipa Senra0bd07982023-12-19 10:56:25102#import "ios/chrome/browser/ui/page_info/features.h"
Robbie Gibson686c56732021-10-04 17:11:45103#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Filipa Senrabe00cbe2024-04-19 14:21:33104#import "ios/chrome/browser/ui/settings/clear_browsing_data/features.h"
Rubin Deliallisi4170b1c2024-02-28 16:15:42105#import "ios/chrome/browser/ui/settings/google_services/features.h"
Rubin Deliallisi072bc842023-10-19 12:00:41106#import "ios/chrome/browser/ui/settings/privacy/privacy_guide/features.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58107#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Weizhong Xia8b908bda2023-12-05 16:00:22108#import "ios/chrome/browser/web/model/features.h"
Gauthier Ambard999088c2022-09-13 08:36:57109#import "ios/chrome/grit/ios_strings.h"
110#import "ios/components/security_interstitials/https_only_mode/feature.h"
111#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
112#import "ios/web/common/features.h"
113#import "ios/web/common/user_agent.h"
114#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21115
Sylvain Defresne9c107082020-10-27 16:39:13116#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
mmrashadf158cad942023-10-03 09:15:48117#import "ios/chrome/browser/screen_time/model/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13118#endif
119
sdefresne14900ee2015-11-27 14:43:21120#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57121#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22122#endif
stkhapuginc1be1792016-12-13 14:30:53123
elawrence816f6790e2017-06-16 18:19:28124using flags_ui::FeatureEntry;
125
sdefresne14900ee2015-11-27 14:43:21126namespace {
Emily Starkbafa9062017-12-27 15:22:46127
Nohemi Fernandezc00842a2021-07-26 11:47:34128const FeatureEntry::Choice
129 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
130 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
131 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
132 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
133 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
134};
135
Stepan Khapugincc4e9842019-01-23 13:38:13136const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
137 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
138const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
139 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
140const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
141 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
142const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
143 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
144const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
145 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
146const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
147 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
148const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
149 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
150
151const FeatureEntry::FeatureVariation
152 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
153 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53154 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13155 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53156 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13157 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53158 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13159 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53160 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13161 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53162 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13163 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53164 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13165 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53166 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13167
Stepan Khapuginbac467e2022-05-06 21:11:54168const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
169 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
170const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
171 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
172const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
173 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
174
175const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
176 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
177 nullptr},
178 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
179 nullptr},
180 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
181 nullptr},
182};
183
Christian Xucf26d562022-07-06 09:28:36184const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
185 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
186const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
187 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
188const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
189 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
190
191const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
192 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
193 nullptr},
194 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
195 nullptr},
196 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
197 nullptr},
198};
199
Guillem Perez40086ef2023-11-20 20:03:52200const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = {
201 {kContentPushNotificationsExperimentType, "1"}};
202const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] =
203 {{kContentPushNotificationsExperimentType, "2"}};
Guillem Perez222b5b22024-01-20 02:16:27204const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] =
205 {{kContentPushNotificationsExperimentType, "3"}};
Tina Wangb7f5b3f2024-05-07 06:24:26206const FeatureEntry::FeatureParam
207 kContentPushNotificationsPromoRegistrationOnly[] = {
208 {kContentPushNotificationsExperimentType, "5"}};
209const FeatureEntry::FeatureParam
210 kContentPushNotificationsProvisionalRegistrationOnly[] = {
211 {kContentPushNotificationsExperimentType, "6"}};
212const FeatureEntry::FeatureParam
213 kContentPushNotificationsSetUpListRegistrationOnly[] = {
214 {kContentPushNotificationsExperimentType, "7"}};
Guillem Perez40086ef2023-11-20 20:03:52215
216const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = {
217 {"Promo", kContentPushNotificationsEnabledPromo,
218 std::size(kContentPushNotificationsEnabledPromo), nullptr},
219 {"Set up list", kContentPushNotificationsEnabledSetupLists,
Guillem Perez222b5b22024-01-20 02:16:27220 std::size(kContentPushNotificationsEnabledSetupLists), nullptr},
221 {"Provisional Notification", kContentPushNotificationsEnabledProvisional,
Guillem Perez749b3fc2024-02-13 19:29:49222 std::size(kContentPushNotificationsEnabledProvisional), nullptr},
Tina Wangb7f5b3f2024-05-07 06:24:26223 {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly,
224 std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr},
225 {"Provisional Notification Registeration Only",
226 kContentPushNotificationsProvisionalRegistrationOnly,
227 std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr},
228 {"Set up list Registeration Only",
229 kContentPushNotificationsSetUpListRegistrationOnly,
230 std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}};
Guillem Perez40086ef2023-11-20 20:03:52231
Chris Ludca9ce32023-09-20 16:53:50232const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35233 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50234const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35235 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08236
gogerald0e39e3aa2021-02-10 18:41:23237const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50238 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
239 std::size(kStartSurfaceTenSeconds), nullptr},
240 {"1h:Show Home Surface", kStartSurfaceOneHour,
241 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08242};
gogerald0e39e3aa2021-02-10 18:41:23243
Chris Luce928eb2023-05-12 21:36:26244const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
245 {kMagicStackMostVisitedModuleParam, "true"},
246 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22247const FeatureEntry::FeatureParam
248 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
249 {kMagicStackMostVisitedModuleParam, "true"},
250 {kReducedSpaceParam, "-80"},
251 {kHideIrrelevantModulesParam, "true"}};
Chris Lu8cf8ef82024-03-18 18:30:54252const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = {
Chris Luce928eb2023-05-12 21:36:26253 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu8cf8ef82024-03-18 18:30:54254 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26255
256const FeatureEntry::FeatureVariation kMagicStackVariations[]{
257 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
258 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22259 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
260 kMagicStackMostVisitedModuleHideIrrelevantModules,
261 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu8cf8ef82024-03-18 18:30:54262 {"Hide irrelevant modules", kMagicStackHidIrrelevantModules,
263 std::size(kMagicStackHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26264};
265
Chris Lu6fd4eaf2023-08-08 18:29:30266const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
267 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
268
269const FeatureEntry::FeatureVariation
270 kSegmentationPlatformIosModuleRankerVariations[]{
271 {"Enabled With Default Model Parameter (Must Set this!)",
272 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
273 };
274
Scott Yoderaf2bdf32024-01-30 20:26:15275const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31276 {kIOSTipsNotificationsUnknownTriggerTimeParam, "5s"},
277 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "5s"},
278 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "5s"},
Scott Yoderaf2bdf32024-01-30 20:26:15279};
280const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31281 {kIOSTipsNotificationsUnknownTriggerTimeParam, "10s"},
282 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "10s"},
283 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "10s"},
Scott Yoderaf2bdf32024-01-30 20:26:15284};
Scott Yoderd2dbc87f2024-03-07 18:23:37285const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31286 {kIOSTipsNotificationsUnknownTriggerTimeParam, "30s"},
287 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "30s"},
288 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "30s"},
Scott Yoderd2dbc87f2024-03-07 18:23:37289};
Scott Yoderaf2bdf32024-01-30 20:26:15290const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = {
291 {"(5s trigger)", kIOSTipsNotifications5SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07292 std::size(kIOSTipsNotifications5SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15293 {"(10s trigger)", kIOSTipsNotifications10SecondTrigger,
294 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderd2dbc87f2024-03-07 18:23:37295 {"(30s trigger)", kIOSTipsNotifications30SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07296 std::size(kIOSTipsNotifications30SecondTrigger), nullptr},
297};
298
299const FeatureEntry::FeatureParam
300 kIOSReactivationNotifications10SecondTrigger[] = {
301 {kIOSReactivationNotificationsTriggerTimeParam, "10s"},
302};
303const FeatureEntry::FeatureParam
304 kIOSReactivationNotifications30SecondTrigger[] = {
305 {kIOSReactivationNotificationsTriggerTimeParam, "30s"},
306};
307const FeatureEntry::FeatureVariation kIOSReactivationNotificationsVariations[] =
308 {
309 {"(10s trigger)", kIOSReactivationNotifications10SecondTrigger,
310 std::size(kIOSReactivationNotifications10SecondTrigger), nullptr},
311 {"(30s trigger)", kIOSReactivationNotifications30SecondTrigger,
312 std::size(kIOSReactivationNotifications30SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15313};
314
Ed Chin91e44992022-07-27 13:42:34315#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26316// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01317const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04318 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
319 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01320 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04321 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01322const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04323 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
324 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01325 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04326 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01327const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04328 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
329 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01330 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04331 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01332const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04333 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
334 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01335 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04336 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01337const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04338 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
339 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01340 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
341 {kBackgroundRefreshIntervalInSeconds, "0"}};
342const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04343 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
344 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01345 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
346 {kBackgroundRefreshIntervalInSeconds, "0"}};
347const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
348 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
349 {kEnableRecurringBackgroundRefreshSchedule, "false"},
350 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
351 {kBackgroundRefreshIntervalInSeconds, "0"}};
352const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
353 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
354 {kEnableRecurringBackgroundRefreshSchedule, "true"},
355 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
356 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04357
Ed Chin178ec2a2023-02-10 22:21:26358// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04359const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01360 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
361 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
362 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
363 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
364 {"1hr Interval 1hr Max Age Recurring",
365 kOneHourIntervalOneHourMaxAgeRecurring,
366 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
367 {"4hr Interval 6hr Max Age Recurring",
368 kFourHourIntervalSixHourMaxAgeRecurring,
369 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
370 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
371 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
372 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
373 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
374 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
375 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
376 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
377 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04378};
Ed Chin91e44992022-07-27 13:42:34379#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04380
David Jeanf361ae9d2024-04-09 08:19:47381const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = {
382 {kTextClassifierAddressParameterName, "true"}};
383const FeatureEntry::FeatureVariation
384 kEnableExpKitTextClassifierAddressVariations[] = {
385 {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap,
386 std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}};
387
388const FeatureEntry::FeatureParam
389 kEnableExpKitTextClassifierPhoneNumberOneTap[] = {
390 {kTextClassifierPhoneNumberParameterName, "true"}};
391const FeatureEntry::FeatureVariation
392 kEnableExpKitTextClassifierPhoneNumberVariations[] = {
393 {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap,
394 std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}};
395
396const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = {
397 {kTextClassifierEmailParameterName, "true"}};
398const FeatureEntry::FeatureVariation
399 kEnableExpKitTextClassifierEmailVariations[] = {
400 {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap,
401 std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15402
Ewann Pellea2bcb3a2023-08-28 13:53:00403const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = {
404 {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}};
405const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = {
406 {kTabResumptionParameterName, kTabResumptionAllTabsParam}};
Ewann Pelleb08ee062023-10-16 10:04:48407const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = {
Olivier Robinbb46d05d2024-06-25 17:56:35408 {kTabResumptionParameterName, kTabResumptionAllTabsParam},
409 {kTabResumptionThresholdParameterName, /* 24 hours */ "86400"}};
Ewann Pellea2bcb3a2023-08-28 13:53:00410
411const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
412 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
413 std::size(kTabResumptionMostRecentTabOnly), nullptr},
Ewann Pelleb08ee062023-10-16 10:04:48414 {"Most recent tab and last synced tab (12 hours threshold)",
415 kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr},
416 {"Most recent tab and last synced tab (24 hours threshold)",
417 kTabResumptionAllTabsOneDayThreshold,
Olivier Robin08bc56d02024-06-05 14:05:18418 std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}};
Ewann Pelle6eecb8f2023-06-23 14:31:37419
Olivier ROBIN2613bcd02023-04-20 10:00:47420
Christian Xu07d600192023-07-24 12:29:52421const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
422 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
423const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
424 {kBottomOmniboxDefaultSettingParam,
425 kBottomOmniboxDefaultSettingParamBottom}};
426const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
427 {{kBottomOmniboxDefaultSettingParam,
428 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
429const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
430 {
431 {"Top", kBottomOmniboxDefaultSettingTop,
432 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
433 {"Bottom", kBottomOmniboxDefaultSettingBottom,
434 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
435 {"Bottom for Safari Switcher",
436 kBottomOmniboxDefaultSettingSafariSwitcher,
437 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
438};
439
Cheick Cisse85457f22024-05-23 22:37:59440constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
441 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
442constexpr flags_ui::FeatureEntry::FeatureParam
443 kPriceInsightsGoodDealNowParam[] = {
444 {kLowPriceParam, kLowPriceParamGoodDealNow}};
445constexpr flags_ui::FeatureEntry::FeatureParam
446 kPriceInsightsSeePriceHistoryParam[] = {
447 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
448constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
449 {{"Price is low", kPriceInsightsPriceIsLowParam,
450 std::size(kPriceInsightsPriceIsLowParam), nullptr},
451 {"Good deal now", kPriceInsightsGoodDealNowParam,
452 std::size(kPriceInsightsGoodDealNowParam), nullptr},
453 {"See price history", kPriceInsightsSeePriceHistoryParam,
454 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
455
Christian Xu10b84d72024-04-09 17:12:33456const FeatureEntry::FeatureParam kRichAutocompletionImplementationLabel[] = {
457 {kRichAutocompletionParam, kRichAutocompletionParamLabel}};
Christian Xua17f9b72024-04-22 10:22:31458const FeatureEntry::FeatureParam
Christian Xu2cf421f2024-05-17 19:23:52459 kRichAutocompletionImplementationTextField3Chars[] = {
460 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52461 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
462 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52463const FeatureEntry::FeatureParam
464 kRichAutocompletionImplementationTextField4Chars[] = {
465 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52466 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
467 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu2cf421f2024-05-17 19:23:52468const FeatureEntry::FeatureParam
469 kRichAutocompletionImplementationNoAdditionalText3Chars[] = {
470 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52471 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
472 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52473const FeatureEntry::FeatureParam
474 kRichAutocompletionImplementationNoAdditionalText4Chars[] = {
475 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52476 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
477 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu10b84d72024-04-09 17:12:33478const FeatureEntry::FeatureVariation
479 kRichAutocompletionImplementationVariations[] = {
480 {"In Label", kRichAutocompletionImplementationLabel,
481 std::size(kRichAutocompletionImplementationLabel), nullptr},
Christian Xu2cf421f2024-05-17 19:23:52482 {"In TextField, 3 Min Chars",
483 kRichAutocompletionImplementationTextField3Chars,
484 std::size(kRichAutocompletionImplementationTextField3Chars), nullptr},
485 {"In TextField, 4 Min Chars",
486 kRichAutocompletionImplementationTextField4Chars,
487 std::size(kRichAutocompletionImplementationTextField4Chars), nullptr},
488 {"No Additional Text, 3 Min Chars",
489 kRichAutocompletionImplementationNoAdditionalText3Chars,
490 std::size(kRichAutocompletionImplementationNoAdditionalText3Chars),
491 nullptr},
492 {"No Additional Text, 4 Min Chars",
493 kRichAutocompletionImplementationNoAdditionalText4Chars,
494 std::size(kRichAutocompletionImplementationNoAdditionalText4Chars),
495 nullptr},
Christian Xu10b84d72024-04-09 17:12:33496};
497
Olivier ROBIN82b67002023-07-31 14:34:46498const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
499 {web::features::kOneTapForMapsConsentModeParamTitle,
500 web::features::kOneTapForMapsConsentModeDefaultParam}};
501const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
502 {web::features::kOneTapForMapsConsentModeParamTitle,
503 web::features::kOneTapForMapsConsentModeForcedParam}};
504const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
505 {web::features::kOneTapForMapsConsentModeParamTitle,
506 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31507const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
508 {web::features::kOneTapForMapsConsentModeParamTitle,
509 web::features::kOneTapForMapsConsentModeIPHParam}};
510const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
511 {web::features::kOneTapForMapsConsentModeParamTitle,
512 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46513const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
514 {"Consent Default", kOneTapForMapsConsentModeDefault,
515 std::size(kOneTapForMapsConsentModeDefault), nullptr},
516 {"Consent Forced", kOneTapForMapsConsentModeForced,
517 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31518 {"Consent IPH", kOneTapForMapsConsentModeIPH,
519 std::size(kOneTapForMapsConsentModeIPH), nullptr},
520 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
521 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46522 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
523 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
524};
525
Benjamin Williams1dc8f2342024-01-04 21:25:55526const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
527 {kIOSDockingPromoExperimentType, "0"}};
528const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
529 {kIOSDockingPromoExperimentType, "1"}};
530const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
531 {kIOSDockingPromoExperimentType, "2"}};
532
533const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
534 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
535 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
536 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
537 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
538 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
539 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
540
Ewann Pellec8634ab2024-02-23 16:50:35541const FeatureEntry::FeatureParam kModernTabStripNTBDynamic[] = {
542 {kModernTabStripParameterName, kModernTabStripNTBDynamicParam}};
543const FeatureEntry::FeatureParam kModernTabStripNTBStatic[] = {
544 {kModernTabStripParameterName, kModernTabStripNTBStaticParam}};
Gauthier Ambardf1cd72f2024-10-08 16:15:33545const FeatureEntry::FeatureParam kModernTabStripCloserNTBOption[] = {
546 {kModernTabStripCloserNTB, "true"},
547 {kModernTabStripBiggerNTB, "true"}};
548const FeatureEntry::FeatureParam kModernTabStripDarkerBackgroundOption[] = {
549 {kModernTabStripDarkerBackground, "true"},
550 {kModernTabStripBiggerNTB, "true"}};
551const FeatureEntry::FeatureParam
552 kModernTabStripCloserNTBDarkerBackgroundOption[] = {
553 {kModernTabStripDarkerBackground, "true"},
554 {kModernTabStripCloserNTB, "true"},
555 {kModernTabStripBiggerNTB, "true"}};
556const FeatureEntry::FeatureParam kModernTabStripNTBNoBackgroundOption[] = {
557 {kModernTabStripNTBNoBackground, "true"},
558 {kModernTabStripBiggerNTB, "true"}};
559const FeatureEntry::FeatureParam kModernTabStripBlackBackgroundOption[] = {
560 {kModernTabStripBlackBackground, "true"},
561 {kModernTabStripNTBNoBackground, "true"},
562 {kModernTabStripBiggerNTB, "true"}};
Ewann Pellec8634ab2024-02-23 16:50:35563
Gauthier Ambard13b1a742024-10-09 07:53:22564const FeatureEntry::FeatureParam kModernTabStripCloseButtonVisibleOption[] = {
Gauthier Ambard5ae1e11c2024-10-09 15:11:25565 {kModernTabStripCloseButtonsVisible, "true"},
566 {kModernTabStripCloserNTB, "true"},
Gauthier Ambard6a26ebd2024-10-14 11:12:41567 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25568 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambard13b1a742024-10-09 07:53:22569const FeatureEntry::FeatureParam
570 kModernTabStripInactiveTabsHighContrastOption[] = {
571 {kModernTabStripInactiveTabsHighContrast, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25572 {kModernTabStripCloserNTB, "true"},
573 {kModernTabStripDarkerBackgroundV3, "true"},
Gauthier Ambard6a26ebd2024-10-14 11:12:41574 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25575 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambard13b1a742024-10-09 07:53:22576const FeatureEntry::FeatureParam kModernTabStripHighContrastNTBOption[] = {
Gauthier Ambard5ae1e11c2024-10-09 15:11:25577 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard4934d1c2024-10-10 13:49:50578 {kModernTabStripNTBNoBackground, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25579 {kModernTabStripCloserNTB, "true"},
580 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambardcfa64ec02024-10-11 14:56:42581const FeatureEntry::FeatureParam kModernTabStripV3AllOptions[] = {
Gauthier Ambard13b1a742024-10-09 07:53:22582 {kModernTabStripCloseButtonsVisible, "true"},
Gauthier Ambard4934d1c2024-10-10 13:49:50583 {kModernTabStripNTBNoBackground, "true"},
Gauthier Ambard13b1a742024-10-09 07:53:22584 {kModernTabStripInactiveTabsHighContrast, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25585 {kModernTabStripCloserNTB, "true"},
Gauthier Ambard13b1a742024-10-09 07:53:22586 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25587 {kModernTabStripDarkerBackgroundV3, "true"},
588 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambardcfa64ec02024-10-11 14:56:42589const FeatureEntry::FeatureParam kModernTabStripDetachedTabsOptions[] = {
590 {kModernTabStripCloseButtonsVisible, "true"},
591 {kModernTabStripHighContrastNTB, "true"},
592 {kModernTabStripInactiveTabsHighContrast, "true"},
Gauthier Ambard6a26ebd2024-10-14 11:12:41593 {kModernTabStripDarkerBackgroundV3, "true"},
Gauthier Ambardcfa64ec02024-10-11 14:56:42594 {kModernTabStripDetachedTabs, "true"},
595 {kModernTabStripCloserNTB, "true"},
596 {kModernTabStripNTBNoBackground, "true"},
597 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambard13b1a742024-10-09 07:53:22598
Ewann Pellec8634ab2024-02-23 16:50:35599const FeatureEntry::FeatureVariation kModernTabStripVariations[] = {
600 {"New tab button dynamic", kModernTabStripNTBDynamic,
601 std::size(kModernTabStripNTBDynamic), nullptr},
602 {"New tab button static", kModernTabStripNTBStatic,
603 std::size(kModernTabStripNTBStatic), nullptr},
Gauthier Ambardf1cd72f2024-10-08 16:15:33604 {"Closer NTB", kModernTabStripCloserNTBOption,
605 std::size(kModernTabStripCloserNTBOption), nullptr},
606 {"Darker background", kModernTabStripDarkerBackgroundOption,
607 std::size(kModernTabStripDarkerBackgroundOption), nullptr},
608 {"Closer NTB + darker background",
609 kModernTabStripCloserNTBDarkerBackgroundOption,
610 std::size(kModernTabStripCloserNTBDarkerBackgroundOption), nullptr},
611 {"NTB no background", kModernTabStripNTBNoBackgroundOption,
612 std::size(kModernTabStripNTBNoBackgroundOption), nullptr},
613 {"Black background", kModernTabStripBlackBackgroundOption,
614 std::size(kModernTabStripBlackBackgroundOption), nullptr},
Gauthier Ambard13b1a742024-10-09 07:53:22615 {"V3 Close buttons", kModernTabStripCloseButtonVisibleOption,
616 std::size(kModernTabStripCloseButtonVisibleOption), nullptr},
617 {"V3 High Contrast tabs", kModernTabStripInactiveTabsHighContrastOption,
618 std::size(kModernTabStripInactiveTabsHighContrastOption), nullptr},
619 {"V3 Visible NTB", kModernTabStripHighContrastNTBOption,
620 std::size(kModernTabStripHighContrastNTBOption), nullptr},
Gauthier Ambardcfa64ec02024-10-11 14:56:42621 {"V3 all options", kModernTabStripV3AllOptions,
622 std::size(kModernTabStripV3AllOptions), nullptr},
623 {"V3 detached tabs", kModernTabStripDetachedTabsOptions,
624 std::size(kModernTabStripDetachedTabsOptions), nullptr},
Ewann Pellec8634ab2024-02-23 16:50:35625};
626
Olivier ROBINcb76f4fe2024-06-05 16:11:42627const FeatureEntry::FeatureVariation
628 kImageServiceOptimizationGuideSalientImagesVariations[] = {
629 {"High Performance Canonicalization", nullptr, 0, "3362133"},
630};
631
Olivier Robinf8374f12024-06-05 19:00:04632const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] =
633 {{kTR15SeeMoreButtonParam, "false"}};
Olivier Robinf8374f12024-06-05 19:00:04634
635const FeatureEntry::FeatureVariation kTabResumption15Variations[] = {
Olivier Robinf8374f12024-06-05 19:00:04636 {"No See More Button", kTabResumption15DisableSeeMoreButtonImages,
637 std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr},
Olivier Robinf8374f12024-06-05 19:00:04638};
Olivier ROBINb17c14b92024-10-09 13:49:13639
640const FeatureEntry::FeatureParam kTabResumptionImagesOnlyThumbnail[] = {
641 {kTabResumptionImagesTypes, kTabResumptionImagesTypesThumbnails}};
642const FeatureEntry::FeatureParam kTabResumptionImagesOnlySalient[] = {
643 {kTabResumptionImagesTypes, kTabResumptionImagesTypesSalient}};
644
645const FeatureEntry::FeatureVariation kTabResumptionImagesVariations[] = {
646 {"Only thumbnails", kTabResumptionImagesOnlyThumbnail,
647 std::size(kTabResumptionImagesOnlyThumbnail), nullptr},
648 {"Only salient", kTabResumptionImagesOnlySalient,
649 std::size(kTabResumptionImagesOnlySalient), nullptr},
650};
651
Charles Yangf8e7adf2024-06-11 00:17:00652// Uses int values from Lens filters ablation mode enum.
653const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
654 {kLensFiltersAblationMode, "0"}};
655const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
656 {kLensFiltersAblationMode, "1"}};
657const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
658 {kLensFiltersAblationMode, "2"}};
659const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
660 {kLensFiltersAblationMode, "3"}};
661
662const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
663 {"(Disabled)", kLensFiltersAblationModeDisabled,
664 std::size(kLensFiltersAblationModeDisabled), nullptr},
665 {"(Post Capture)", kLensFiltersAblationModePostCapture,
666 std::size(kLensFiltersAblationModePostCapture), nullptr},
667 {"(LVF)", kLensFiltersAblationModeLVF,
668 std::size(kLensFiltersAblationModeLVF), nullptr},
669 {"(Always)", kLensFiltersAblationModeAlways,
670 std::size(kLensFiltersAblationModeAlways), nullptr}};
671
672// Uses int values from Lens translate toggle mode enum.
673const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
674 {kLensTranslateToggleMode, "0"}};
675const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
676 {kLensTranslateToggleMode, "1"}};
677const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
678 {kLensTranslateToggleMode, "2"}};
679const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
680 {kLensTranslateToggleMode, "3"}};
681
682const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
683 {"(Disabled)", kLensTranslateToggleModeDisabled,
684 std::size(kLensTranslateToggleModeDisabled), nullptr},
685 {"(Post Capture)", kLensTranslateToggleModePostCapture,
686 std::size(kLensTranslateToggleModePostCapture), nullptr},
687 {"(LVF)", kLensTranslateToggleModeLVF,
688 std::size(kLensTranslateToggleModeLVF), nullptr},
689 {"(Always)", kLensTranslateToggleModeAlways,
690 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04691
Khalid Peer7cf75a22024-06-13 17:25:49692const FeatureEntry::FeatureParam
693 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
694 {"MlUrlPiecewiseMappedSearchBlending", "true"},
695 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
696 "0,550;0.018,1300;0.14,1398;1,1422"},
697 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
698 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
699const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41700 kMlUrlPiecewiseMappedSearchBlendingDemotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49701 {"MlUrlPiecewiseMappedSearchBlending", "true"},
702 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
703 "0,550;0.018,1250;0.14,1348;1,1422"},
704 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
705 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
706const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41707 kMlUrlPiecewiseMappedSearchBlendingPromotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49708 {"MlUrlPiecewiseMappedSearchBlending", "true"},
709 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41710 "0,550;0.018,1350;0.14,1448;1,1472"},
711 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1450"},
Khalid Peer7cf75a22024-06-13 17:25:49712 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
713const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41714 kMlUrlPiecewiseMappedSearchBlendingPromotedBy100[] = {
Khalid Peer7cf75a22024-06-13 17:25:49715 {"MlUrlPiecewiseMappedSearchBlending", "true"},
716 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41717 "0,550;0.018,1400;0.14,1498;1,1522"},
718 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1500"},
Khalid Peer7cf75a22024-06-13 17:25:49719 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer4501c1f2024-06-27 16:12:04720const FeatureEntry::FeatureParam
721 kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = {
722 {"MlUrlPiecewiseMappedSearchBlending", "true"},
723 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer5c9bd9e2024-07-17 17:16:42724 "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:04725 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"},
726 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer7cf75a22024-06-13 17:25:49727
728const FeatureEntry::FeatureVariation
729 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
730 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
731 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
Khalid Peer9c07798f2024-07-15 22:39:41732 {"demoted by 50", kMlUrlPiecewiseMappedSearchBlendingDemotedBy50,
733 std::size(kMlUrlPiecewiseMappedSearchBlendingDemotedBy50), nullptr},
734 {"promoted by 50", kMlUrlPiecewiseMappedSearchBlendingPromotedBy50,
735 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy50), nullptr},
736 {"promoted by 100", kMlUrlPiecewiseMappedSearchBlendingPromotedBy100,
737 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy100), nullptr},
Khalid Peer4501c1f2024-06-27 16:12:04738 {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping,
739 std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr},
Khalid Peer7cf75a22024-06-13 17:25:49740};
741
742const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
743 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
744 {"MlUrlScoringShortcutDocumentSignals", "true"},
745};
746const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
747 {
748 {"MlUrlScoringUnlimitedNumCandidates", "true"},
749 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
750 {"MlUrlScoringShortcutDocumentSignals", "true"},
751};
752// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
753// Document(512), and History Fuzzy(65536) providers max matches to 10.
754const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
755 {
756 {"MlUrlScoringMaxMatchesByProvider",
757 "1:10,4:10,8:10,64:10,512:10,65536:10"},
758 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
759 {"MlUrlScoringShortcutDocumentSignals", "true"},
760};
761
762const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
763 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
764 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
765 {"unlimited suggestion candidates",
766 kOmniboxMlUrlScoringUnlimitedNumCandidates,
767 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
768 {"Increase provider max limit to 10",
769 kOmniboxMlUrlScoringMaxMatchesByProvider10,
770 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
771};
772
773const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
774 {"MlUrlSearchBlending_StableSearchBlending", "true"},
775 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
776};
777const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
778 {
779 {"MlUrlSearchBlending_StableSearchBlending", "false"},
780 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
781 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
782 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
783 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
784};
785const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
786 {"MlUrlSearchBlending_StableSearchBlending", "false"},
787 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
788};
789const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
790 {"MlUrlSearchBlending_StableSearchBlending", "false"},
791 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
792 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
793 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
794 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
795};
796
797const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
798 {"Stable", kMlUrlSearchBlendingStable,
799 std::size(kMlUrlSearchBlendingStable), nullptr},
800 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
801 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
802 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
803 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
804 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
805 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
806};
807
Khalid Peer4501c1f2024-06-27 16:12:04808const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = {
809 {"Small model", nullptr, 0, "3379590"},
810 {"Full model", nullptr, 0, "3380197"},
811};
812
Benjamin Williams0594caf2024-07-09 17:51:38813const FeatureEntry::FeatureParam kSafetyCheckNotificationsVerbose[] = {
814 {kSafetyCheckNotificationsExperimentType, "0"}};
815const FeatureEntry::FeatureParam kSafetyCheckNotificationsSuccinct[] = {
816 {kSafetyCheckNotificationsExperimentType, "1"}};
817
818const FeatureEntry::FeatureVariation kSafetyCheckNotificationsVariations[] = {
819 {"Display multiple notifications at once", kSafetyCheckNotificationsVerbose,
820 std::size(kSafetyCheckNotificationsVerbose), nullptr},
821 {"Display one notification at a time", kSafetyCheckNotificationsSuccinct,
822 std::size(kSafetyCheckNotificationsSuccinct), nullptr}};
823
Elmehdi Rahmaouif5b76462024-06-24 10:44:46824const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = {
825 {kSaveToPhotosContextMenuImprovementParam, "true"},
826 {kSaveToPhotosTitleImprovementParam, "false"},
827 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
828};
829const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = {
830 {kSaveToPhotosContextMenuImprovementParam, "false"},
831 {kSaveToPhotosTitleImprovementParam, "true"},
832 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
833};
834const FeatureEntry::FeatureParam
835 kSaveToPhotosAccountDefaultChoiceImprovement[] = {
836 {kSaveToPhotosContextMenuImprovementParam, "false"},
837 {kSaveToPhotosTitleImprovementParam, "false"},
838 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"},
839};
840
841const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = {
842 {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement,
843 std::size(kSaveToPhotosContextMenuImprovement), nullptr},
844 {"With Title improvement Only", kSaveToPhotosTitleImprovement,
845 std::size(kSaveToPhotosTitleImprovement), nullptr},
846 {"With Account Default choice improvement Only",
847 kSaveToPhotosAccountDefaultChoiceImprovement,
848 std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr},
849};
850
Stephen McGruer8fe98b62024-07-16 13:10:13851// LINT.IfChange(AutofillUploadCardRequestTimeouts)
852const FeatureEntry::FeatureParam
853 kAutofillUploadCardRequestTimeout_6Point5Seconds[] = {
854 {"autofill_upload_card_request_timeout_milliseconds", "6500"}};
855const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_7Seconds[] =
856 {{"autofill_upload_card_request_timeout_milliseconds", "7000"}};
857const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_9Seconds[] =
858 {{"autofill_upload_card_request_timeout_milliseconds", "9000"}};
859const FeatureEntry::FeatureVariation
860 kAutofillUploadCardRequestTimeoutOptions[] = {
861 {"6.5 seconds", kAutofillUploadCardRequestTimeout_6Point5Seconds,
862 std::size(kAutofillUploadCardRequestTimeout_6Point5Seconds), nullptr},
863 {"7 seconds", kAutofillUploadCardRequestTimeout_7Seconds,
864 std::size(kAutofillUploadCardRequestTimeout_7Seconds), nullptr},
865 {"9 seconds", kAutofillUploadCardRequestTimeout_9Seconds,
866 std::size(kAutofillUploadCardRequestTimeout_9Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03867// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillUploadCardRequestTimeouts)
Stephen McGruer8fe98b62024-07-16 13:10:13868
Stephen McGruer0904cae2024-07-17 19:54:46869// LINT.IfChange(AutofillVcnEnrollRequestTimeouts)
870const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_5Seconds[] = {
871 {"autofill_vcn_enroll_request_timeout_milliseconds", "5000"}};
872const FeatureEntry::FeatureParam
873 kAutofillVcnEnrollRequestTimeout_7Point5Seconds[] = {
874 {"autofill_vcn_enroll_request_timeout_milliseconds", "7500"}};
875const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_10Seconds[] =
876 {{"autofill_vcn_enroll_request_timeout_milliseconds", "10000"}};
877const FeatureEntry::FeatureVariation kAutofillVcnEnrollRequestTimeoutOptions[] =
878 {{"5 seconds", kAutofillVcnEnrollRequestTimeout_5Seconds,
879 std::size(kAutofillVcnEnrollRequestTimeout_5Seconds), nullptr},
880 {"7.5 seconds", kAutofillVcnEnrollRequestTimeout_7Point5Seconds,
881 std::size(kAutofillVcnEnrollRequestTimeout_7Point5Seconds), nullptr},
882 {"10 seconds", kAutofillVcnEnrollRequestTimeout_10Seconds,
883 std::size(kAutofillVcnEnrollRequestTimeout_10Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03884// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillVcnEnrollRequestTimeouts)
Stephen McGruer0904cae2024-07-17 19:54:46885
Nicolas MacBethc738c4e2024-07-19 21:14:19886// Contextual Panel flag variations.
887const FeatureEntry::FeatureParam kContextualPanelRichIPHArms[] = {
888 {"entrypoint-highlight-iph", "true"},
889 {"entrypoint-rich-iph", "true"},
890};
891const FeatureEntry::FeatureParam kContextualPanelSmallIPHArm[] = {
892 {"entrypoint-highlight-iph", "false"},
893 {"entrypoint-rich-iph", "false"},
894};
895const FeatureEntry::FeatureParam
896 kContextualPanelSmallIPHWithBlueHighlightArm[] = {
897 {"entrypoint-highlight-iph", "true"},
898 {"entrypoint-rich-iph", "false"},
899};
900
901const FeatureEntry::FeatureVariation kContextualPanelEntrypointArmVariations[] =
902 {
903 {"- Rich IPH", kContextualPanelRichIPHArms,
904 std::size(kContextualPanelRichIPHArms), nullptr},
905 {"- Small IPH, no blue highlight", kContextualPanelSmallIPHArm,
906 std::size(kContextualPanelSmallIPHArm), nullptr},
907 {"- Small IPH with blue highlight",
908 kContextualPanelSmallIPHWithBlueHighlightArm,
909 std::size(kContextualPanelSmallIPHWithBlueHighlightArm), nullptr},
910};
911
Jood Hajeer3867886d2024-07-29 16:15:35912const FeatureEntry::FeatureParam kIdentityConfirmationSnackbarTestingConfig[] =
Jood562c885f2024-09-05 17:06:55913 {{"IdentityConfirmationMinDisplayInterval1", "0"},
914 {"IdentityConfirmationMinDisplayInterval2", "0"},
915 {"IdentityConfirmationMinDisplayInterval3", "0"}};
Jood Hajeer3867886d2024-07-29 16:15:35916const FeatureEntry::FeatureVariation
917 kIdentityConfirmationSnackbarTestingVariations[] = {
918 {" - for testing", kIdentityConfirmationSnackbarTestingConfig,
919 std::size(kIdentityConfirmationSnackbarTestingConfig), nullptr}};
920
Chris Lu4c688e02024-09-07 00:48:08921const FeatureEntry::FeatureParam kPriceTrackingPromoForceShowArm[] = {
922 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05923 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08924};
925const FeatureEntry::FeatureParam kPriceTrackingPromoForceHideArm[] = {
926 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05927 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08928};
929
Benjamin Williamsd7f854b2024-10-09 17:12:27930// Address Bar Position
931const FeatureEntry::FeatureParam kTipsAddressBarPositionForceShowArm[] = {
932 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31933 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27934};
935const FeatureEntry::FeatureParam kTipsAddressBarPositionForceHideArm[] = {
936 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31937 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27938};
939
940// Autofill Passwords
941const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceShowArm[] = {
942 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31943 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27944};
945const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceHideArm[] = {
946 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31947 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27948};
949
950// Enhanced Safe Browsing
951const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceShowArm[] = {
952 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31953 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27954};
955const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceHideArm[] = {
956 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31957 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27958};
959
960// Lens Search
961const FeatureEntry::FeatureParam kTipsLensSearchForceShowArm[] = {
962 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31963 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27964};
965const FeatureEntry::FeatureParam kTipsLensSearchForceHideArm[] = {
966 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31967 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27968};
969
970// Lens Shop
971const FeatureEntry::FeatureParam kTipsLensShopForceShowArm[] = {
972 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31973 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27974};
975const FeatureEntry::FeatureParam kTipsLensShopForceHideArm[] = {
976 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31977 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27978};
979
980// Lens Translate
981const FeatureEntry::FeatureParam kTipsLensTranslateForceShowArm[] = {
982 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31983 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27984};
985const FeatureEntry::FeatureParam kTipsLensTranslateForceHideArm[] = {
986 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31987 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27988};
989
990// Save Passwords
991const FeatureEntry::FeatureParam kTipsSavePasswordsForceShowArm[] = {
992 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31993 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27994};
995const FeatureEntry::FeatureParam kTipsSavePasswordsForceHideArm[] = {
996 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31997 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27998};
999
Hira Mahmood2ff5b5cb2024-10-25 19:24:311000const FeatureEntry::FeatureParam kSendTabPromoForceShowArm[] = {
1001 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:051002 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311003};
1004const FeatureEntry::FeatureParam kSendTabPromoForceHideArm[] = {
1005 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:051006 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311007};
1008
Chris Lu4c688e02024-09-07 00:48:081009const FeatureEntry::FeatureVariation kEphemeralCardRankerCardOverrideOptions[] =
1010 {
1011 {"- Force Show Price Tracking Notification",
1012 kPriceTrackingPromoForceShowArm,
1013 std::size(kPriceTrackingPromoForceShowArm), nullptr},
1014 {"- Force Hide Price Tracking Notification",
1015 kPriceTrackingPromoForceHideArm,
1016 std::size(kPriceTrackingPromoForceHideArm), nullptr},
Benjamin Williamsd7f854b2024-10-09 17:12:271017
1018 // Address Bar Position
1019 {"- Force Show Address Bar Position Tip",
1020 kTipsAddressBarPositionForceShowArm,
1021 std::size(kTipsAddressBarPositionForceShowArm), nullptr},
1022 {"- Force Hide Address Bar Position Tip",
1023 kTipsAddressBarPositionForceHideArm,
1024 std::size(kTipsAddressBarPositionForceHideArm), nullptr},
1025
1026 // Autofill Passwords
1027 {"- Force Show Autofill Passwords Tip",
1028 kTipsAutofillPasswordsForceShowArm,
1029 std::size(kTipsAutofillPasswordsForceShowArm), nullptr},
1030 {"- Force Hide Autofill Passwords Tip",
1031 kTipsAutofillPasswordsForceHideArm,
1032 std::size(kTipsAutofillPasswordsForceHideArm), nullptr},
1033
1034 // Enhanced Safe Browsing
1035 {"- Force Show Enhanced Safe Browsing Tip",
1036 kTipsEnhancedSafeBrowsingForceShowArm,
1037 std::size(kTipsEnhancedSafeBrowsingForceShowArm), nullptr},
1038 {"- Force Hide Enhanced Safe Browsing Tip",
1039 kTipsEnhancedSafeBrowsingForceHideArm,
1040 std::size(kTipsEnhancedSafeBrowsingForceHideArm), nullptr},
1041
1042 // Lens Search
1043 {"- Force Show Lens Search Tip", kTipsLensSearchForceShowArm,
1044 std::size(kTipsLensSearchForceShowArm), nullptr},
1045 {"- Force Hide Lens Search Tip", kTipsLensSearchForceHideArm,
1046 std::size(kTipsLensSearchForceHideArm), nullptr},
1047
1048 // Lens Shop
1049 {"- Force Show Lens Shop Tip", kTipsLensShopForceShowArm,
1050 std::size(kTipsLensShopForceShowArm), nullptr},
1051 {"- Force Hide Lens Shop Tip", kTipsLensShopForceHideArm,
1052 std::size(kTipsLensShopForceHideArm), nullptr},
1053
1054 // Lens Translate
1055 {"- Force Show Lens Translate Tip", kTipsLensTranslateForceShowArm,
1056 std::size(kTipsLensTranslateForceShowArm), nullptr},
1057 {"- Force Hide Lens Translate Tip", kTipsLensTranslateForceHideArm,
1058 std::size(kTipsLensTranslateForceHideArm), nullptr},
1059
1060 // Save Passwords
1061 {"- Force Show Save Passwords Tip", kTipsSavePasswordsForceShowArm,
1062 std::size(kTipsSavePasswordsForceShowArm), nullptr},
1063 {"- Force Hide Save Passwords Tip", kTipsSavePasswordsForceHideArm,
1064 std::size(kTipsSavePasswordsForceHideArm), nullptr},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311065
1066 // Send Tab Promo.
1067 {"- Force Show Send Tab Promo", kSendTabPromoForceShowArm,
1068 std::size(kSendTabPromoForceShowArm), nullptr},
1069 {"- Force Hide Send Tab Promo", kSendTabPromoForceHideArm,
1070 std::size(kSendTabPromoForceHideArm), nullptr},
Chris Lu4c688e02024-09-07 00:48:081071};
1072
Hira Mahmood00c17e52024-10-09 14:30:481073const FeatureEntry::FeatureParam
1074 kSendTabIOSPushNotificationsWithMagicStackCard[] = {
1075 {send_tab_to_self::kSendTabIOSPushNotificationsWithMagicStackCardParam,
1076 "true"}};
Hira Mahmood3db58ac2024-11-06 18:39:031077const FeatureEntry::FeatureParam kSendTabIOSPushNotificationsWithURLImage[] = {
1078 {send_tab_to_self::kSendTabIOSPushNotificationsURLImageParam, "true"}};
Hira Mahmood00c17e52024-10-09 14:30:481079const FeatureEntry::FeatureVariation kSendTabIOSPushNotificationsVariations[] =
1080 {
1081 {"With Magic Stack Card",
1082 kSendTabIOSPushNotificationsWithMagicStackCard,
1083 std::size(kSendTabIOSPushNotificationsWithMagicStackCard), nullptr},
Hira Mahmood3db58ac2024-11-06 18:39:031084 {"With URL Image", kSendTabIOSPushNotificationsWithURLImage,
1085 std::size(kSendTabIOSPushNotificationsWithURLImage), nullptr},
Hira Mahmood00c17e52024-10-09 14:30:481086};
1087
Briana McClurec2b62f92024-10-29 15:35:061088const FeatureEntry::FeatureParam kSegmentedDefaultBrowserStatic[] = {
1089 {kSegmentedDefaultBrowserExperimentType, "0"}};
1090const FeatureEntry::FeatureParam kSegmentedDefaultBrowserAnimated[] = {
1091 {kSegmentedDefaultBrowserExperimentType, "1"}};
1092
1093const FeatureEntry::FeatureVariation kSegmentedDefaultBrowserPromoVariations[] =
1094 {{" - Static Default Browser Promo", kSegmentedDefaultBrowserStatic,
1095 std::size(kSegmentedDefaultBrowserStatic), nullptr},
1096 {" - Animated Default Browser Promo", kSegmentedDefaultBrowserAnimated,
1097 std::size(kSegmentedDefaultBrowserAnimated), nullptr}};
1098
Rubin Deliallisi1d0b3ba2024-11-04 14:33:041099// Soft Lock
1100const FeatureEntry::FeatureParam kIOSSoftLockNoDelay[] = {
1101 {kIOSSoftLockBackgroundThresholdParam, "0m"},
1102};
1103
1104const FeatureEntry::FeatureVariation kIOSSoftLockVariations[] = {
1105 {" - No delay", kIOSSoftLockNoDelay, std::size(kIOSSoftLockNoDelay),
1106 nullptr}};
1107
Ameur Hosni3dc0ce1c2024-11-05 10:34:551108// Ipad ZPS limit.
1109const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total0Trends[] = {
1110 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "0"},
1111 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1112};
1113
1114const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total5Trends[] = {
1115 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "5"},
1116 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1117};
1118
1119constexpr FeatureEntry::FeatureVariation kIpadZpsLimitVariants[] = {
1120 {"20 total zps, 0 Trends on NTP", kIpadZPSOmniboxWith20Total0Trends,
1121 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1122 {"20 total zps, 5 Trends on NTP", kIpadZPSOmniboxWith20Total5Trends,
1123 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1124};
1125
Hira Mahmood431c8ab2024-11-05 17:16:291126const FeatureEntry::FeatureParam
1127 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm[] = {
1128 {kIOSStartTimeStartupRemediationsSaveNTPWebState, "true"},
1129};
1130const FeatureEntry::FeatureVariation
1131 kIOSStartTimeStartupRemediationsVariations[] = {
1132 {" - Save NTP Web State",
1133 kIOSStartTimeStartupRemediationsSaveNTPWebStateArm,
1134 std::size(kIOSStartTimeStartupRemediationsSaveNTPWebStateArm),
1135 nullptr}};
1136
vincb7867dc042024-11-06 14:25:051137constexpr flags_ui::FeatureEntry::FeatureParam
1138 kAutofillThrottleDocFormScanShortPeriodParam[] = {{"period-ms", "250"}};
1139constexpr flags_ui::FeatureEntry::FeatureParam
1140 kAutofillThrottleDocFormScanMediumPeriodParam[] = {{"period-ms", "500"}};
1141constexpr flags_ui::FeatureEntry::FeatureParam
1142 kAutofillThrottleDocFormScanLongPeriodParam[] = {{"period-ms", "1000"}};
1143constexpr flags_ui::FeatureEntry::FeatureVariation
1144 kAutofillThrottleDocFormScanVariations[] = {
1145 {"Short period", kAutofillThrottleDocFormScanShortPeriodParam,
1146 std::size(kAutofillThrottleDocFormScanShortPeriodParam), nullptr},
1147 {"Medium period", kAutofillThrottleDocFormScanMediumPeriodParam,
1148 std::size(kAutofillThrottleDocFormScanMediumPeriodParam), nullptr},
1149 {"Long period", kAutofillThrottleDocFormScanLongPeriodParam,
1150 std::size(kAutofillThrottleDocFormScanLongPeriodParam), nullptr}};
1151
vincb2bf7f5c2024-11-06 17:18:091152constexpr flags_ui::FeatureEntry::FeatureParam
1153 kAutofillThrottleFilteredDocFormScanShortPeriodParam[] = {
1154 {"period-ms", "100"}};
1155constexpr flags_ui::FeatureEntry::FeatureParam
1156 kAutofillThrottleFilteredDocFormScanMediumPeriodParam[] = {
1157 {"period-ms", "250"}};
1158constexpr flags_ui::FeatureEntry::FeatureParam
1159 kAutofillThrottleFilteredDocFormScanLongPeriodParam[] = {
1160 {"period-ms", "500"}};
1161constexpr flags_ui::FeatureEntry::FeatureVariation
1162 kAutofillThrottleFilteredDocFormScanVariations[] = {
1163 {"Short period", kAutofillThrottleFilteredDocFormScanShortPeriodParam,
1164 std::size(kAutofillThrottleFilteredDocFormScanShortPeriodParam),
1165 nullptr},
1166 {"Medium period", kAutofillThrottleFilteredDocFormScanMediumPeriodParam,
1167 std::size(kAutofillThrottleFilteredDocFormScanMediumPeriodParam),
1168 nullptr},
1169 {"Long period", kAutofillThrottleFilteredDocFormScanLongPeriodParam,
1170 std::size(kAutofillThrottleFilteredDocFormScanLongPeriodParam),
1171 nullptr}};
1172
ginnnnnnny963c7fc2024-11-06 22:44:501173const FeatureEntry::FeatureParam kNewFeedPositioningArm2[] = {
1174 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1175 {kNewFeedPositioningCombinedMVTForMidEngaged, "false"},
1176 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
1177 {kNewFeedPositioningHomestackOnForAll, "true"},
1178};
1179
1180const FeatureEntry::FeatureParam kNewFeedPositioningArm3[] = {
1181 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1182 {kNewFeedPositioningCombinedMVTForMidEngaged, "true"},
1183 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
1184 {kNewFeedPositioningHomestackOnForAll, "true"},
1185};
1186
1187const FeatureEntry::FeatureParam kNewFeedPositioningArm4[] = {
1188 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1189 {kNewFeedPositioningCombinedMVTForMidEngaged, "false"},
1190 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
1191 {kNewFeedPositioningHomestackOnForAll, "false"},
1192};
1193
1194const FeatureEntry::FeatureParam kNewFeedPositioningArm5[] = {
1195 {kNewFeedPositioningCombinedMVTForHighEngaged, "true"},
1196 {kNewFeedPositioningCombinedMVTForMidEngaged, "true"},
1197 {kNewFeedPositioningCombinedMVTForLowEngaged, "false"},
1198 {kNewFeedPositioningHomestackOnForAll, "false"},
1199};
1200
1201const FeatureEntry::FeatureVariation kNewFeedPositioningVariations[] = {
Ginny Huang6d0cc052024-11-12 09:32:161202 {"- Treatment 2", kNewFeedPositioningArm2,
ginnnnnnny963c7fc2024-11-06 22:44:501203 std::size(kNewFeedPositioningArm2), nullptr},
Ginny Huang6d0cc052024-11-12 09:32:161204 {"- Treatment 3", kNewFeedPositioningArm3,
ginnnnnnny963c7fc2024-11-06 22:44:501205 std::size(kNewFeedPositioningArm3), nullptr},
Ginny Huang6d0cc052024-11-12 09:32:161206 {"- Treatment 4", kNewFeedPositioningArm4,
ginnnnnnny963c7fc2024-11-06 22:44:501207 std::size(kNewFeedPositioningArm4), nullptr},
Ginny Huang6d0cc052024-11-12 09:32:161208 {"- Treatment 5", kNewFeedPositioningArm5,
ginnnnnnny963c7fc2024-11-06 22:44:501209 std::size(kNewFeedPositioningArm5), nullptr},
1210};
1211
Hira Mahmoodf8533dc2024-11-12 16:24:251212const FeatureEntry::FeatureParam
1213 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm[] = {
1214 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "true"},
1215 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "false"}};
1216const FeatureEntry::FeatureParam
1217 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm[] = {
1218 {kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefresh, "true"},
1219 {kIOSStartTimeBackgroundRemediationsAvoidNTPCleanup, "false"}};
1220const FeatureEntry::FeatureVariation
1221 kIOSStartTimeBrowserBackgroundRemediationsVariations[] = {
1222 {" - Avoid NTP Cleanup",
1223 kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm,
1224 std::size(kIOSStartTimeBackgroundRemediationsAvoidNTPCleanupArm),
1225 nullptr},
1226 {" - Update Feed Refresh",
1227 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm,
1228 std::size(
1229 kIOSStartTimeBrowserBackgroundRemediationsUpdateFeedRefreshArm),
1230 nullptr}};
1231
Hira Mahmood664449872024-11-18 23:55:221232const FeatureEntry::FeatureParam kSetUpListInFirstRunArm1[] = {
1233 {set_up_list::kSetUpListInFirstRunParam, "1"}};
1234const FeatureEntry::FeatureParam kSetUpListInFirstRunArm2[] = {
1235 {set_up_list::kSetUpListInFirstRunParam, "2"}};
1236const FeatureEntry::FeatureParam kSetUpListInFirstRunArm3[] = {
1237 {set_up_list::kSetUpListInFirstRunParam, "3"}};
1238
1239const FeatureEntry::FeatureVariation kSetUpListInFirstRunVariations[] = {
1240 {" - Variation 1", kSetUpListInFirstRunArm1,
1241 std::size(kSetUpListInFirstRunArm1), nullptr},
1242 {" - Variation 2", kSetUpListInFirstRunArm2,
1243 std::size(kSetUpListInFirstRunArm2), nullptr},
1244 {" - Variation 3", kSetUpListInFirstRunArm3,
1245 std::size(kSetUpListInFirstRunArm3), nullptr}};
1246
Cooper Knaak1e026562017-07-26 05:22:281247// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:211248// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:281249// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
1250// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:211251// macro for this type supplying the command line to the macro.
1252// . MULTI_VALUE: a list of choices, the first of which should correspond to a
1253// deactivated state for this lab (i.e. no command line option). To specify
1254// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
1255// array of choices.
Cooper Knaak1e026562017-07-26 05:22:281256// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
1257// either enabled, disabled, or uses the default value of the associated
1258// base::Feature instance. To specify this type of entry use the macro
1259// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
1260// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
1261// base::Feature instance. Choices corresponding to the default state, a
1262// universally enabled state, and a universally disabled state are
1263// automatically included. To specify this type of entry use the macro
1264// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
1265// the array of choices.
1266//
sdefresne14900ee2015-11-27 14:43:211267// See the documentation of FeatureEntry for details on the fields.
1268//
1269// When adding a new choice, add it to the end of the list.
1270const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:281271 {"in-product-help-demo-mode-choice",
1272 flag_descriptions::kInProductHelpDemoModeName,
1273 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
1274 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:231275 feature_engagement::kIPHDemoMode,
1276 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:091277 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:221278 {"enable-autofill-credit-card-upload",
1279 flag_descriptions::kAutofillCreditCardUploadName,
1280 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:241281 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:231282 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
1283 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
1284 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:511285 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:231286 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
1287 {"wallet-service-use-sandbox",
1288 flag_descriptions::kWalletServiceUseSandboxName,
1289 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
1290 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
1291 autofill::switches::kWalletServiceUseSandbox,
1292 "1",
1293 autofill::switches::kWalletServiceUseSandbox,
1294 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:591295 {"show-autofill-type-predictions",
1296 flag_descriptions::kShowAutofillTypePredictionsName,
1297 flag_descriptions::kShowAutofillTypePredictionsDescription,
1298 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:501299 FEATURE_VALUE_TYPE(
1300 autofill::features::test::kAutofillShowTypePredictions)},
Benjamin Williamsdf18e7e2022-10-03 18:46:051301 {"fullscreen-promos-manager-skip-internal-limits",
1302 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
1303 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
1304 flags_ui::kOsIos,
1305 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:141306 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:531307 flag_descriptions::kFullscreenSmoothScrollingName,
1308 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:191309 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:061310 {"webpage-default-zoom-from-dynamic-type",
1311 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
1312 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
1313 flags_ui::kOsIos,
1314 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:561315 {"webpage-alternative-text-zoom",
1316 flag_descriptions::kWebPageAlternativeTextZoomName,
1317 flag_descriptions::kWebPageAlternativeTextZoomDescription,
1318 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:341319 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
1320 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
1321 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Ameur Hosni3dc0ce1c2024-11-05 10:34:551322 {"omnibox-ipad-zps-limit",
1323 flag_descriptions::kIpadZpsSuggestionMatchesLimitName,
1324 flag_descriptions::kIpadZpsSuggestionMatchesLimitDescription,
1325 flags_ui::kOsIos,
1326 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kIpadZeroSuggestMatches,
1327 kIpadZpsLimitVariants,
1328 "OmniboxBundledExperimentV1")},
Stepan Khapugincc4e9842019-01-23 13:38:131329 {"omnibox-ui-max-autocomplete-matches",
1330 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
1331 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
1332 flags_ui::kOsIos,
1333 FEATURE_WITH_PARAMS_VALUE_TYPE(
1334 omnibox::kUIExperimentMaxAutocompleteMatches,
1335 kOmniboxUIMaxAutocompleteMatchesVariations,
1336 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:351337 {"omnibox-local-history-zero-suggest-beyond-ntp",
1338 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
1339 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
1340 flags_ui::kOsIos,
1341 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:541342 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
1343 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
1344 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
1345 kOmniboxMaxZPSMatchesVariations,
1346 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:481347 {"force-startup-signin-promo",
1348 flag_descriptions::kForceStartupSigninPromoName,
1349 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:291350 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:411351 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
1352 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
1353 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:131354#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:451355 {"screen-time-integration-ios",
1356 flag_descriptions::kScreenTimeIntegrationName,
1357 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
1358 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:131359#endif
Nazerke3e993f72020-09-21 13:00:061360 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
1361 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
Ewann Pellec8634ab2024-02-23 16:50:351362 FEATURE_WITH_PARAMS_VALUE_TYPE(kModernTabStrip,
1363 kModernTabStripVariations,
1364 "ModernTabStrip")},
Cheick Cisse76ade3d2020-12-16 00:15:111365 {"ios-shared-highlighting-color-change",
1366 flag_descriptions::kIOSSharedHighlightingColorChangeName,
1367 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:071368 flags_ui::kOsIos,
1369 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:341370 {"ios-shared-highlighting-v2",
1371 flag_descriptions::kIOSSharedHighlightingV2Name,
1372 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
1373 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Scott Yoderc0cd99d2024-01-10 19:54:511374 {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName,
1375 flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos,
Scott Yoderaf2bdf32024-01-30 20:26:151376 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications,
1377 kIOSTipsNotificationsVariations,
1378 "IOSTipsNotifications")},
Scott Yoderf8a821482024-10-28 19:32:551379 {"ios-reactivation-notifications",
1380 flag_descriptions::kIOSReactivationNotificationsName,
1381 flag_descriptions::kIOSReactivationNotificationsDescription,
Scott Yoderef1a0542024-11-04 17:23:071382 flags_ui::kOsIos,
1383 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSReactivationNotifications,
1384 kIOSReactivationNotificationsVariations,
1385 "IOSReactivationNotifications")},
gogerald0ff29e52021-02-03 18:56:191386 {"start-surface", flag_descriptions::kStartSurfaceName,
1387 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:231388 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
1389 kStartSurfaceVariations,
1390 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:341391 {"wait-threshold-seconds-for-capabilities-api",
1392 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1393 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1394 flags_ui::kOsIos,
1395 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061396 {"content-notification-experiment",
1397 flag_descriptions::kContentNotificationExperimentName,
1398 flag_descriptions::kContentNotificationExperimentDescription,
1399 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251400 {"content-notification-provisional-ignore-conditions",
1401 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1402 flag_descriptions::
1403 kContentNotificationProvisionalIgnoreConditionsDescription,
1404 flags_ui::kOsIos,
1405 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241406 {"content-push-notifications",
1407 flag_descriptions::kContentPushNotificationsName,
1408 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521409 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1410 kContentPushNotificationsVariations,
1411 "ContentPushNotifications")},
Jason Hu67cfb0f2022-11-14 20:21:441412 {"enable-lens-in-omnibox-copied-image",
1413 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1414 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1415 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Radu Nitescuab5bf732024-09-18 14:07:401416 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1417 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1418 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031419 {"enable-disco-feed-endpoint",
1420 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1421 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1422 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111423 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Tommy Martino7393d762021-10-12 17:59:281424 {"shared-highlighting-amp",
1425 flag_descriptions::kIOSSharedHighlightingAmpName,
1426 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1427 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
Matt Jones2e47b9692024-02-23 21:56:431428 {"track-by-default-mobile",
1429 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1430 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1431 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061432 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1433 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1434 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541435 {"ntp-view-hierarchy-repair",
1436 flag_descriptions::kNTPViewHierarchyRepairName,
1437 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201438 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Cheick Cisse39b6a182024-05-29 15:13:441439 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1440 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1441 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381442 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1443 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591444 flags_ui::kOsIos,
1445 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1446 kPriceInsightsVariations,
1447 "PriceInsightsIos")},
1448 {"price-insights-high-price-ios",
1449 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1450 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1451 flags_ui::kOsIos,
1452 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Vishwas Uppoor89303a92022-08-03 00:56:261453 {"autofill-enable-card-product-name",
1454 flag_descriptions::kAutofillEnableCardProductNameName,
1455 flag_descriptions::kAutofillEnableCardProductNameDescription,
1456 flags_ui::kOsIos,
1457 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Raj Tb95d813542022-11-16 21:27:521458 {"enable-download-service-foreground-session",
1459 flag_descriptions::kDownloadServiceForegroundSessionName,
1460 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1461 flags_ui::kOsIos,
1462 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231463 {"enable-tflite-language-detection",
1464 flag_descriptions::kTFLiteLanguageDetectionName,
1465 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1466 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201467 {"optimization-guide-debug-logs",
1468 flag_descriptions::kOptimizationGuideDebugLogsName,
1469 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1470 flags_ui::kOsIos,
1471 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551472 {"optimization-guide-push-notifications",
1473 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1474 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1475 flags_ui::kOsIos,
1476 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
David Jeanad303a92023-07-31 16:58:111477 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1478 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1479 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeanea886ba2024-01-17 11:50:221480 {"intents-on-viewport", flag_descriptions::kEnableViewportIntentsName,
1481 flag_descriptions::kEnableViewportIntentsDescription, flags_ui::kOsIos,
1482 FEATURE_VALUE_TYPE(web::features::kEnableViewportIntents)},
David Jeandcc3e202024-05-22 08:36:331483 {"improve-parcel-detection",
1484 flag_descriptions::kEnableNewParcelTrackingNumberDetectionName,
1485 flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription,
1486 flags_ui::kOsIos,
1487 FEATURE_VALUE_TYPE(
1488 web::features::kEnableNewParcelTrackingNumberDetection)},
David Jeanf361ae9d2024-04-09 08:19:471489 {"enable-expkit-text-classifier-date",
1490 flag_descriptions::kEnableExpKitTextClassifierDateName,
1491 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1492 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1493 {"enable-expkit-text-classifier-address",
1494 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1495 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151496 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471497 FEATURE_WITH_PARAMS_VALUE_TYPE(
1498 kEnableExpKitTextClassifierAddress,
1499 kEnableExpKitTextClassifierAddressVariations,
1500 "ExpKitTextClassifierAddress")},
1501 {"enable-expkit-text-classifier-phonenumber",
1502 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1503 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1504 flags_ui::kOsIos,
1505 FEATURE_WITH_PARAMS_VALUE_TYPE(
1506 kEnableExpKitTextClassifierPhoneNumber,
1507 kEnableExpKitTextClassifierPhoneNumberVariations,
1508 "ExpKitTextClassifierPhoneNumber")},
1509 {"enable-expkit-text-classifier-email",
1510 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1511 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1512 flags_ui::kOsIos,
1513 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1514 kEnableExpKitTextClassifierEmailVariations,
1515 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331516 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1517 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461518 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1519 kOneTapForMapsWithVariations,
1520 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251521 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1522 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1523 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301524 {"autofill-enable-ranking-formula-address-profiles",
1525 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1526 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1527 flags_ui::kOsIos,
1528 FEATURE_VALUE_TYPE(
1529 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391530 {"autofill-enable-ranking-formula-credit-cards",
1531 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1532 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1533 flags_ui::kOsIos,
1534 FEATURE_VALUE_TYPE(
1535 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021536 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1537 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1538 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521539 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1540 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261541 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1542 kMagicStackVariations,
1543 flag_descriptions::kMagicStackName)},
Alexis Hetuec9d70c2023-11-13 16:27:311544 {"ios-keyboard-accessory-upgrade",
1545 flag_descriptions::kIOSKeyboardAccessoryUpgradeName,
1546 flag_descriptions::kIOSKeyboardAccessoryUpgradeDescription,
1547 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgrade)},
Noémie St-Onge9da904ef2024-10-01 14:16:051548 {"ios-keyboard-accessory-upgrade-short-manual-fill-menu",
1549 flag_descriptions::kIOSKeyboardAccessoryUpgradeShortManualFillMenuName,
1550 flag_descriptions::
1551 kIOSKeyboardAccessoryUpgradeShortManualFillMenuDescription,
1552 flags_ui::kOsIos,
1553 FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeShortManualFillMenu)},
Scott Yoder7b9e51f2023-09-13 23:47:261554 {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName,
1555 flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos,
1556 FEATURE_VALUE_TYPE(kIOSLargeFakebox)},
Chris Lub0bad572023-08-07 18:13:291557 {"ios-magic-stack-segmentation-ranking",
1558 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1559 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1560 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301561 FEATURE_WITH_PARAMS_VALUE_TYPE(
1562 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1563 kSegmentationPlatformIosModuleRankerVariations,
1564 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321565 {"ios-magic-stack-segmentation-ranking-caching",
1566 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1567 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1568 flags_ui::kOsIos,
1569 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111570 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1571 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1572 flag_descriptions::
1573 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1574 flags_ui::kOsIos,
1575 FEATURE_VALUE_TYPE(
1576 segmentation_platform::features::
1577 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Olivier Robin058c1fad2022-05-31 18:24:061578 {"default-browser-intents-show-settings",
1579 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1580 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1581 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Alexis Hetu5e726602023-12-15 15:18:281582 {"ios-password-bottom-sheet-autofocus",
1583 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1584 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1585 flags_ui::kOsIos,
1586 FEATURE_VALUE_TYPE(
1587 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Charlotte Cloutier18f0a5362024-07-16 13:23:041588 {"ios-proactive-password-generation-bottom-sheet",
1589 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetName,
1590 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetDescription,
1591 flags_ui::kOsIos,
1592 FEATURE_VALUE_TYPE(password_manager::features::
1593 kIOSProactivePasswordGenerationBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241594 {"omnibox-zero-suggest-prefetching",
1595 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1596 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1597 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451598 {"omnibox-zero-suggest-prefetching-on-srp",
1599 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1600 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1601 flags_ui::kOsIos,
1602 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1603 {"omnibox-zero-suggest-prefetching-on-web",
1604 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1605 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1606 flags_ui::kOsIos,
1607 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471608 {"omnibox-zero-suggest-in-memory-caching",
1609 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1610 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1611 flags_ui::kOsIos,
1612 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351613 {"omnibox-on-device-tail-suggestions",
1614 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1615 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1616 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361617 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1618 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1619 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1620 kOmniboxMaxURLMatchesVariations,
1621 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201622 {"omnibox-most-visited-tiles-horizontal-render-group",
1623 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1624 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1625 flags_ui::kOsIos,
1626 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061627 {"metrickit-non-crash-reports",
1628 flag_descriptions::kMetrickitNonCrashReportName,
1629 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1630 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Nakul Vaidya13ca2042022-07-27 01:59:551631 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1632 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1633 flag_descriptions::
1634 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1635 flags_ui::kOsIos,
1636 FEATURE_VALUE_TYPE(
1637 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Robbie Gibson1f5a57192024-11-07 23:04:111638 {"default-browser-banner-promo",
1639 flag_descriptions::kDefaultBrowserBannerPromoName,
1640 flag_descriptions::kDefaultBrowserBannerPromoDescription, flags_ui::kOsIos,
Robbie Gibsonae87bc02024-11-13 14:45:101641 FEATURE_VALUE_TYPE(kDefaultBrowserBannerPromo)},
Gayane Petrosyan5960a172023-06-19 15:40:171642 {"default-browser-promo-trigger-criteria-experiment",
1643 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1644 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1645 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211646 FEATURE_VALUE_TYPE(
1647 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyancffeda12024-09-17 17:10:371648 {"blue-dot-on-tools-menu-button",
1649 flag_descriptions::kBlueDotOnToolsMenuButtonName,
1650 flag_descriptions::kBlueDotOnToolsMenuButtonDescription, flags_ui::kOsIos,
1651 FEATURE_VALUE_TYPE(kBlueDotOnToolsMenuButton)},
Ed Chin91e44992022-07-27 13:42:341652#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1653 {"feed-background-refresh-ios",
1654 flag_descriptions::kFeedBackgroundRefreshName,
1655 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1656 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1657 kFeedBackgroundRefreshVariations,
1658 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261659#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Petro Akzhygitov2e2322e2023-04-25 16:26:571660 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1661 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1662 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251663 {"iph-price-notifications-while-browsing",
1664 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1665 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1666 flags_ui::kOsIos,
1667 FEATURE_VALUE_TYPE(
1668 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391669 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1670 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1671 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481672 {"local-pdp-detection",
1673 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1674 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1675 flags_ui::kOsIos,
1676 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Gauthier Ambard8c9b7332024-10-24 16:24:041677 {"inactive-tabs", flag_descriptions::kInactiveTabsIPadName,
1678 flag_descriptions::kInactiveTabsIPadDescription, flags_ui::kOsIos,
1679 FEATURE_VALUE_TYPE(kInactiveTabsIPadFeature)},
Ali Juma57849c42023-02-21 22:53:431680 {"notification-settings-menu-item",
1681 flag_descriptions::kNotificationSettingsMenuItemName,
1682 flag_descriptions::kNotificationSettingsMenuItemDescription,
1683 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
kalettucefb09e402023-02-27 18:35:531684 {"web-feed-feedback-reroute",
1685 flag_descriptions::kWebFeedFeedbackRerouteName,
1686 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1687 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Tina Wangd3f6f192023-04-05 05:22:431688 {"enable-follow-IPH-exp-params",
1689 flag_descriptions::kEnableFollowIPHExpParamsName,
1690 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1691 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251692 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1693 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1694 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Olivier ROBINa229d2132023-03-21 12:44:201695 {"ios-browser-edit-menu-metrics",
1696 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1697 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1698 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551699 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1700 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1701 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1702 kIOSDockingPromoVariations,
1703 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241704 {"omnibox-grouping-framework-non-zps",
1705 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1706 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1707 flags_ui::kOsIos,
1708 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Robbie Gibson0ea280602023-04-12 01:02:391709 {"only-access-clipboard-async",
1710 flag_descriptions::kOnlyAccessClipboardAsyncName,
1711 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1712 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Olivier ROBIN2613bcd02023-04-20 10:00:471713 {"ios-edit-menu-hide-search-web",
1714 flag_descriptions::kIOSEditMenuHideSearchWebName,
1715 flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos,
1716 FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)},
Stephen McGruer9afca1a2023-05-18 20:55:171717 {"autofill-enable-card-art-image",
1718 flag_descriptions::kAutofillEnableCardArtImageName,
1719 flag_descriptions::kAutofillEnableCardArtImageDescription,
1720 flags_ui::kOsIos,
1721 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)},
Tina Wangcda2c902023-05-25 17:39:451722 {"enable-signed-out-view-demotion",
1723 flag_descriptions::kEnableSignedOutViewDemotionName,
1724 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1725 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stepan Khapugin72c74292024-06-19 16:48:331726 {"spotlight-never-retain-index",
1727 flag_descriptions::kSpotlightNeverRetainIndexName,
1728 flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos,
1729 FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)},
Huiting Yubc1bf4d2023-06-26 18:15:321730 {"ios-iph-for-safari-switcher",
1731 flag_descriptions::kIPHForSafariSwitcherName,
1732 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1733 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071734 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1735 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1736 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011737 {"tab-resumption", flag_descriptions::kTabResumptionName,
1738 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001739 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1740 kTabResumptionVariations,
1741 "TabResumption")},
Christian Xu07d600192023-07-24 12:29:521742 {"bottom-omnibox-default-setting",
1743 flag_descriptions::kBottomOmniboxDefaultSettingName,
1744 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1745 flags_ui::kOsIos,
1746 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1747 kBottomOmniboxDefaultSettingVariations,
1748 "BottomOmniboxDefaultSetting")},
Joemer Ramos46ca6f52024-09-27 18:12:291749 {"enable-async-real-time-check",
1750 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckName,
1751 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckDescription,
1752 flags_ui::kOsIos,
1753 FEATURE_VALUE_TYPE(safe_browsing::kSafeBrowsingAsyncRealTimeCheck)},
Quentin Pubert476786e82023-08-16 12:45:281754 {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName,
1755 flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos,
1756 FEATURE_VALUE_TYPE(kIOSSaveToPhotos)},
Elmehdi Rahmaouif5b76462024-06-24 10:44:461757 {"enable-save-to-photos-improvements",
1758 flag_descriptions::kIOSSaveToPhotosImprovementsName,
1759 flag_descriptions::kIOSSaveToPhotosImprovementsDescription,
1760 flags_ui::kOsIos,
1761 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements,
1762 kSaveToPhotosImprovementsVariations,
1763 "IOSSaveToPhotosImprovements")},
Jérôme Lebelcc9523e2024-10-08 13:34:011764 {"enable-identity-in-auth-error",
1765 flag_descriptions::kEnableIdentityInAuthErrorName,
1766 flag_descriptions::kEnableIdentityInAuthErrorDescription, flags_ui::kOsIos,
1767 FEATURE_VALUE_TYPE(switches::kEnableIdentityInAuthError)},
Mihai Sardarescucca83442024-10-16 12:19:131768 {"enable-asweb-authentication-session",
1769 flag_descriptions::kEnableASWebAuthenticationSessionName,
1770 flag_descriptions::kEnableASWebAuthenticationSessionDescription,
1771 flags_ui::kOsIos,
1772 FEATURE_VALUE_TYPE(switches::kEnableASWebAuthenticationSession)},
Christian Xu90e952f2023-09-13 09:05:281773 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1774 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1775 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Rubin Deliallisi072bc842023-10-19 12:00:411776 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1777 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1778 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Quentin Pubertf2d75c32023-10-25 12:17:451779 {"enable-save-to-drive", flag_descriptions::kIOSSaveToDriveName,
1780 flag_descriptions::kIOSSaveToDriveDescription, flags_ui::kOsIos,
1781 FEATURE_VALUE_TYPE(kIOSSaveToDrive)},
Aliona DANGLA5971a8b2023-11-10 11:55:351782 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1783 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1784 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Gauthier Ambard8cca29a2024-04-10 08:27:361785 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1786 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1787 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591788 {"autofill-enable-dynamically-loading-fields-on-input",
1789 flag_descriptions::
1790 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1791 flag_descriptions::
1792 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1793 flags_ui::kOsIos,
1794 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
aliaaborhamy00f89df2023-12-21 14:55:031795 {"share-in-web-context-menu-ios",
1796 flag_descriptions::kShareInWebContextMenuIOSName,
1797 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1798 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Marc Treib1f6c5db992024-01-04 20:25:141799 {"migrate-syncing-user-to-signed-in",
1800 flag_descriptions::kMigrateSyncingUserToSignedInName,
1801 flag_descriptions::kMigrateSyncingUserToSignedInDescription,
1802 flags_ui::kOsIos,
1803 FEATURE_VALUE_TYPE(switches::kMigrateSyncingUserToSignedIn)},
1804 {"undo-migration-of-syncing-user-to-signed-in",
1805 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInName,
1806 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInDescription,
1807 flags_ui::kOsIos,
1808 FEATURE_VALUE_TYPE(switches::kUndoMigrationOfSyncingUserToSignedIn)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551809 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1810 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1811 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461812 {"contextual-panel", flag_descriptions::kContextualPanelName,
1813 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
Nicolas MacBethc738c4e2024-07-19 21:14:191814 FEATURE_WITH_PARAMS_VALUE_TYPE(kContextualPanel,
1815 kContextualPanelEntrypointArmVariations,
1816 "ContextualPanel")},
Nicolas MacBeth47d6b622024-01-16 17:05:391817 {"contextual-panel-force-show-entrypoint",
1818 flag_descriptions::kContextualPanelForceShowEntrypointName,
1819 flag_descriptions::kContextualPanelForceShowEntrypointDescription,
1820 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContextualPanelForceShowEntrypoint)},
adamtad0e8cfc2024-01-16 18:43:471821 {"enable-ipad-feed-ghost-cards",
1822 flag_descriptions::kEnableiPadFeedGhostCardsName,
1823 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1824 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Christian Xu11df0ae2024-02-08 16:07:511825 {"omnibox-rich-autocompletion",
1826 flag_descriptions::kOmniboxRichAutocompletionName,
1827 flag_descriptions::kOmniboxRichAutocompletionDescription, flags_ui::kOsIos,
Christian Xu10b84d72024-04-09 17:12:331828 FEATURE_WITH_PARAMS_VALUE_TYPE(
1829 omnibox::kRichAutocompletion,
1830 kRichAutocompletionImplementationVariations,
1831 "RichAutocompletionImplementationVariations")},
Jason Hud445445f2024-02-02 18:28:121832 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1833 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1834 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Charles Yang30c90b92024-03-08 18:00:591835 {"omnibox-color-icons", flag_descriptions::kOmniboxColorIconsName,
1836 flag_descriptions::kOmniboxColorIconsDescription, flags_ui::kOsIos,
1837 FEATURE_VALUE_TYPE(kOmniboxColorIcons)},
Charles Yang682634b2024-03-19 01:46:091838 {"enable-color-lens-and-voice-icons-in-home-screen-widget",
1839 flag_descriptions::kEnableColorLensAndVoiceIconsInHomeScreenWidgetName,
1840 flag_descriptions::
1841 kEnableColorLensAndVoiceIconsInHomeScreenWidgetDescription,
1842 flags_ui::kOsIos,
1843 FEATURE_VALUE_TYPE(kEnableColorLensAndVoiceIconsInHomeScreenWidget)},
Alexander Tekleeebe42b92024-02-23 21:27:151844 {"autofill-enable-card-benefits-for-american-express",
1845 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1846 flag_descriptions::
1847 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1848 flags_ui::kOsIos,
1849 FEATURE_VALUE_TYPE(
1850 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
1851 {"autofill-enable-card-benefits-for-capital-one",
1852 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneName,
1853 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneDescription,
1854 flags_ui::kOsIos,
1855 FEATURE_VALUE_TYPE(
1856 autofill::features::kAutofillEnableCardBenefitsForCapitalOne)},
Yishui Liub88a38c2024-02-28 08:46:551857 {"autofill-enable-card-benefits-sync",
1858 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1859 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1860 flags_ui::kOsIos,
1861 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421862 {"linked-services-setting-ios",
1863 flag_descriptions::kLinkedServicesSettingIosName,
1864 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1865 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
hvs7c6cb402024-03-27 02:39:001866 {"autofill-enable-prefetching-risk-data-for-retrieval",
1867 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561868 flag_descriptions::
1869 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001870 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561871 FEATURE_VALUE_TYPE(
1872 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1873 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1874 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1875 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391876 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1877 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1878 FEATURE_VALUE_TYPE(
1879 page_content_annotations::features::kPageContentAnnotations)},
1880 {"page-content-annotations-persist-salient-image-metadata",
1881 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1882 flag_descriptions::
1883 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1884 flags_ui::kOsIos,
1885 FEATURE_VALUE_TYPE(
1886 page_content_annotations::features::
1887 kPageContentAnnotationsPersistSalientImageMetadata)},
1888 {"page-content-annotations-remote-page-metadata",
1889 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1890 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1891 flags_ui::kOsIos,
1892 FEATURE_VALUE_TYPE(
1893 page_content_annotations::features::kRemotePageMetadata)},
1894 {"page-visibility-page-content-annotations",
1895 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1896 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1897 flags_ui::kOsIos,
1898 FEATURE_VALUE_TYPE(page_content_annotations::features::
1899 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121900 {"enhanced-safe-browsing-promo",
1901 flag_descriptions::kEnhancedSafeBrowsingPromoName,
1902 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:021903 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Sebsgfcd5b0b2024-04-09 08:18:321904 {"cpe-performance-improvements",
1905 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
1906 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
1907 flags_ui::kOsIos,
1908 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Vincent Boissellea1f27f322024-04-17 14:53:191909 {"password-manager-detect-username-in-uff",
1910 flag_descriptions::kIOSDetectUsernameInUffName,
vincbb01c53ed2024-08-22 13:09:561911 flag_descriptions::kIOSDetectUsernameInUffDescription, flags_ui::kOsIos,
Vincent Boissellea1f27f322024-04-17 14:53:191912 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Jérôme Lebel993c7e3d2024-07-08 14:05:351913 {"identity-disc-account-menu",
1914 flag_descriptions::kIdentityDiscAccountMenuName,
1915 flag_descriptions::kIdentityDiscAccountMenuDescription, flags_ui::kOsIos,
1916 FEATURE_VALUE_TYPE(kIdentityDiscAccountMenu)},
Jood Hajeer3867886d2024-07-29 16:15:351917 {"identity-confirmation-snackbar",
1918 flag_descriptions::kIdentityConfirmationSnackbarName,
1919 flag_descriptions::kIdentityConfirmationSnackbarDescription,
1920 flags_ui::kOsIos,
1921 FEATURE_WITH_PARAMS_VALUE_TYPE(
1922 kIdentityConfirmationSnackbar,
1923 kIdentityConfirmationSnackbarTestingVariations,
1924 "IdentityConfirmationSnackbar")},
Filipa Senrabe00cbe2024-04-19 14:21:331925 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
1926 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
1927 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:001928 {"autofill-enable-verve-card-support",
1929 flag_descriptions::kAutofillEnableVerveCardSupportName,
1930 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
1931 flags_ui::kOsIos,
1932 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ameur Hosni20b75fe52024-04-24 16:36:021933 {"omnibox-actions-in-suggest",
1934 flag_descriptions::kOmniboxActionsInSuggestName,
1935 flag_descriptions::kOmniboxActionsInSuggestDescription, flags_ui::kOsIos,
1936 FEATURE_VALUE_TYPE(kOmniboxActionsInSuggest)},
Ewann Pelle34939b62024-08-22 10:45:491937 {"tab-group-sync", flag_descriptions::kTabGroupSyncName,
1938 flag_descriptions::kTabGroupSyncDescription, flags_ui::kOsIos,
Louis Romero5a84afc2024-04-25 10:29:201939 FEATURE_VALUE_TYPE(kTabGroupSync)},
Kavita Sonic8eaa982024-05-16 17:09:111940 {"autofill-enable-save-card-loading-and-confirmation",
1941 flag_descriptions::kAutofillEnableSaveCardLoadingAndConfirmationName,
1942 flag_descriptions::
1943 kAutofillEnableSaveCardLoadingAndConfirmationDescription,
1944 flags_ui::kOsIos,
1945 FEATURE_VALUE_TYPE(
1946 autofill::features::kAutofillEnableSaveCardLoadingAndConfirmation)},
1947 {"autofill-enable-save-card-local-save-fallback",
1948 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackName,
1949 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackDescription,
1950 flags_ui::kOsIos,
1951 FEATURE_VALUE_TYPE(
1952 autofill::features::kAutofillEnableSaveCardLocalSaveFallback)},
1953 {"autofill-enable-vcn-enroll-loading-and-confirmation",
1954 flag_descriptions::kAutofillEnableVcnEnrollLoadingAndConfirmationName,
1955 flag_descriptions::
1956 kAutofillEnableVcnEnrollLoadingAndConfirmationDescription,
1957 flags_ui::kOsIos,
1958 FEATURE_VALUE_TYPE(
1959 autofill::features::kAutofillEnableVcnEnrollLoadingAndConfirmation)},
Ameur Hosni3d764c92024-05-28 14:11:121960 {"omnibox-suggestion-answer-migration",
1961 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
1962 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
1963 flags_ui::kOsIos,
1964 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:301965 kOmniboxSuggestionAnswerMigration)},
1966 {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name,
1967 flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos,
Olivier Robinf8374f12024-06-05 19:00:041968 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5,
1969 kTabResumption15Variations,
1970 "TabResumption1_5")},
Hira Mahmood6e2a894e2024-05-31 15:18:191971 {"send-tab-ios-push-notifications",
1972 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
1973 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
1974 flags_ui::kOsIos,
Hira Mahmood00c17e52024-10-09 14:30:481975 FEATURE_WITH_PARAMS_VALUE_TYPE(
1976 send_tab_to_self::kSendTabToSelfIOSPushNotifications,
1977 kSendTabIOSPushNotificationsVariations,
1978 "SendTabToSelfIOSPushNotifications")},
Olivier Robin08bc56d02024-06-05 14:05:181979 {"tab-resumption-2", flag_descriptions::kTabResumption2Name,
1980 flag_descriptions::kTabResumption2Description, flags_ui::kOsIos,
Olivier ROBINb17c14b92024-10-09 13:49:131981 FEATURE_VALUE_TYPE(kTabResumption2)},
Olivier ROBINcb76f4fe2024-06-05 16:11:421982 {"page-image-service-optimization-guide-salient-images",
1983 flag_descriptions::kPageImageServiceSalientImageName,
1984 flag_descriptions::kPageImageServiceSalientImageDescription,
1985 flags_ui::kOsIos,
1986 FEATURE_WITH_PARAMS_VALUE_TYPE(
1987 page_image_service::kImageServiceOptimizationGuideSalientImages,
1988 kImageServiceOptimizationGuideSalientImagesVariations,
1989 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:221990 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
1991 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
1992 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Charles Yangf8e7adf2024-06-11 00:17:001993 {"lens-filters-ablation-mode-enabled",
1994 flag_descriptions::kLensFiltersAblationModeEnabledName,
1995 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
1996 flags_ui::kOsIos,
1997 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
1998 kLensFiltersAblationModeVariations,
1999 "LensFiltersAblationMode")},
2000 {"lens-translate-toogle-mode-enabled",
2001 flag_descriptions::kLensTranslateToggleModeEnabledName,
2002 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
2003 flags_ui::kOsIos,
2004 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
2005 kLensTranslateToggleModeVariations,
2006 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:592007 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
2008 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
2009 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:492010 {"omnibox-ml-log-url-scoring-signals",
2011 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
2012 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
2013 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
2014 {"omnibox-ml-url-piecewise-mapped-search-blending",
2015 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
2016 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
2017 flags_ui::kOsIos,
2018 FEATURE_WITH_PARAMS_VALUE_TYPE(
2019 omnibox::kMlUrlPiecewiseMappedSearchBlending,
2020 kMlUrlPiecewiseMappedSearchBlendingVariations,
2021 "MlUrlPiecewiseMappedSearchBlending")},
2022 {"omnibox-ml-url-score-caching",
2023 flag_descriptions::kOmniboxMlUrlScoreCachingName,
2024 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
2025 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
2026 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
2027 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
2028 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
2029 kOmniboxMlUrlScoringVariations,
2030 "MlUrlScoring")},
2031 {"omnibox-ml-url-search-blending",
2032 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
2033 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
2034 flags_ui::kOsIos,
2035 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
2036 kMlUrlSearchBlendingVariations,
2037 "MlUrlScoring")},
2038 {"omnibox-ml-url-scoring-model",
2039 flag_descriptions::kOmniboxMlUrlScoringModelName,
2040 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
Khalid Peer4501c1f2024-06-27 16:12:042041 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel,
2042 kUrlScoringModelVariations,
2043 "MlUrlScoring")},
Siyu An4a486f02024-06-18 19:41:282044 {"autofill-show-manual-fill-for-virtual-cards",
2045 flag_descriptions::kAutofillShowManualFillForVirtualCardsName,
2046 flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription,
2047 flags_ui::kOsIos,
2048 FEATURE_VALUE_TYPE(
2049 autofill::features::kAutofillShowManualFillForVirtualCards)},
adamtaf85e48d2024-07-08 17:13:292050 {"home-customization", flag_descriptions::kHomeCustomizationName,
2051 flag_descriptions::kHomeCustomizationDescription, flags_ui::kOsIos,
2052 FEATURE_VALUE_TYPE(kHomeCustomization)},
Benjamin Williams0594caf2024-07-09 17:51:382053 {"safety-check-notifications",
2054 flag_descriptions::kSafetyCheckNotificationsName,
2055 flag_descriptions::kSafetyCheckNotificationsDescription, flags_ui::kOsIos,
2056 FEATURE_WITH_PARAMS_VALUE_TYPE(kSafetyCheckNotifications,
2057 kSafetyCheckNotificationsVariations,
2058 "SafetyCheckNotifications")},
Federica Germinarioa1fe0902024-07-12 08:28:462059 {"app-background-refresh-ios", flag_descriptions::kAppBackgroundRefreshName,
2060 flag_descriptions::kAppBackgroundRefreshDescription, flags_ui::kOsIos,
2061 FEATURE_VALUE_TYPE(kEnableAppBackgroundRefresh)},
Chris Lu3eba26312024-07-12 20:21:382062 {"home-memory-improvements", flag_descriptions::kHomeMemoryImprovementsName,
2063 flag_descriptions::kHomeMemoryImprovementsDescription, flags_ui::kOsIos,
2064 FEATURE_VALUE_TYPE(kHomeMemoryImprovements)},
Stephen McGruer8fe98b62024-07-16 13:10:132065 {"autofill-upload-card-request-timeout",
2066 flag_descriptions::kAutofillUploadCardRequestTimeoutName,
2067 flag_descriptions::kAutofillUploadCardRequestTimeoutDescription,
2068 flags_ui::kOsIos,
2069 FEATURE_WITH_PARAMS_VALUE_TYPE(
2070 autofill::features::kAutofillUploadCardRequestTimeout,
2071 kAutofillUploadCardRequestTimeoutOptions,
2072 "AutofillUploadCardRequestTimeout")},
Karol Sygiet6ac82c82024-07-16 14:22:392073 {"clear-undecryptable-passwords",
2074 flag_descriptions::kClearUndecryptablePasswordsName,
2075 flag_descriptions::kClearUndecryptablePasswordsDescription,
2076 flags_ui::kOsIos,
2077 FEATURE_VALUE_TYPE(
2078 password_manager::features::kClearUndecryptablePasswords)},
Stephen McGruer0904cae2024-07-17 19:54:462079 {"autofill-vcn-enroll-request-timeout",
2080 flag_descriptions::kAutofillVcnEnrollRequestTimeoutName,
2081 flag_descriptions::kAutofillVcnEnrollRequestTimeoutDescription,
2082 flags_ui::kOsIos,
2083 FEATURE_WITH_PARAMS_VALUE_TYPE(
2084 autofill::features::kAutofillVcnEnrollRequestTimeout,
2085 kAutofillVcnEnrollRequestTimeoutOptions,
2086 "AutofillVcnEnrollRequestTimeout")},
Charles Yang98bef0c2024-07-19 12:24:142087 {"lens-web-page-load-optimization-enabled",
2088 flag_descriptions::kLensWebPageLoadOptimizationEnabledName,
2089 flag_descriptions::kLensWebPageLoadOptimizationEnabledDescription,
2090 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageLoadOptimizationEnabled)},
Eric Ekey4a930592024-07-19 18:58:142091 {"segmented-default-browser-promo",
2092 flag_descriptions::kSegmentedDefaultBrowserPromoName,
2093 flag_descriptions::kSegmentedDefaultBrowserPromoDescription,
Briana McClurec2b62f92024-10-29 15:35:062094 flags_ui::kOsIos,
2095 FEATURE_WITH_PARAMS_VALUE_TYPE(kSegmentedDefaultBrowserPromo,
2096 kSegmentedDefaultBrowserPromoVariations,
2097 "SegmentedDBP-Animation")},
Nicolas MacBethc738c4e2024-07-19 21:14:192098 {"rich-bubble-without-image",
2099 flag_descriptions::kRichBubbleWithoutImageName,
2100 flag_descriptions::kRichBubbleWithoutImageDescription, flags_ui::kOsIos,
2101 FEATURE_VALUE_TYPE(kRichBubbleWithoutImage)},
Junhui He52294652024-07-23 23:50:152102 {"autofill-unmask-card-request-timeout",
2103 flag_descriptions::kAutofillUnmaskCardRequestTimeoutName,
2104 flag_descriptions::kAutofillUnmaskCardRequestTimeoutDescription,
2105 flags_ui::kOsIos,
2106 FEATURE_VALUE_TYPE(autofill::features::kAutofillUnmaskCardRequestTimeout)},
vincbe1379832024-08-06 19:08:122107 {"autofill-across-iframes", flag_descriptions::kAutofillAcrossIframesName,
2108 flag_descriptions::kAutofillAcrossIframesDescription, flags_ui::kOsIos,
2109 FEATURE_VALUE_TYPE(autofill::features::kAutofillAcrossIframesIos)},
Cristian Ciacu62fe1912024-08-07 10:14:502110 {"ios-page-info-last-visited",
2111 flag_descriptions::kPageInfoLastVisitedIOSName,
2112 flag_descriptions::kPageInfoLastVisitedIOSDescription, flags_ui::kOsIos,
2113 FEATURE_VALUE_TYPE(kPageInfoLastVisitedIOS)},
Daniel White1ced9e62024-08-15 19:27:382114 {"enable-trait-collection-registration",
2115 flag_descriptions::kEnableTraitCollectionRegistrationName,
2116 flag_descriptions::kEnableTraitCollectionRegistrationDescription,
2117 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableTraitCollectionRegistration)},
Ernesto Izquierdo Cluaebe0a0252024-08-19 22:05:542118 {"autofill-isolated-world-ios",
2119 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSName,
2120 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSDescription,
2121 flags_ui::kOsIos,
2122 FEATURE_VALUE_TYPE(kAutofillIsolatedWorldForJavascriptIos)},
Ewann Pelle34939b62024-08-22 10:45:492123 {"tab-group-indicator", flag_descriptions::kTabGroupIndicatorName,
2124 flag_descriptions::kTabGroupIndicatorDescription, flags_ui::kOsIos,
2125 FEATURE_VALUE_TYPE(kTabGroupIndicator)},
thefrog8ed47452024-08-30 13:32:482126 {"safe-browsing-local-lists-use-sbv5",
2127 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Name,
2128 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Description,
2129 flags_ui::kOsIos, FEATURE_VALUE_TYPE(safe_browsing::kLocalListsUseSBv5)},
Chris Lu4c688e02024-09-07 00:48:082130 {"ios-price-tracking-notification-promo-card",
2131 flag_descriptions::kPriceTrackingPromoName,
2132 flag_descriptions::kPriceTrackingPromoDescription, flags_ui::kOsIos,
2133 FEATURE_VALUE_TYPE(commerce::kPriceTrackingPromo)},
2134 {"ios-segmentation-ephemeral-card-ranker",
2135 flag_descriptions::kSegmentationPlatformEphemeralCardRankerName,
2136 flag_descriptions::kSegmentationPlatformEphemeralCardRankerDescription,
2137 flags_ui::kOsIos,
2138 FEATURE_WITH_PARAMS_VALUE_TYPE(
2139 segmentation_platform::features::
2140 kSegmentationPlatformEphemeralCardRanker,
2141 kEphemeralCardRankerCardOverrideOptions,
2142 "SegmentationPlatformEphemeralCardRanker")},
Asami Doi55f87dd2024-09-12 12:55:482143 {"new-sync-opt-in-illustration",
2144 flag_descriptions::kNewSyncOptInIllustrationName,
2145 flag_descriptions::kNewSyncOptInIllustrationDescription, flags_ui::kOsIos,
2146 FEATURE_VALUE_TYPE(kNewSyncOptInIllustration)},
Alexander Tekle8cf3c8e2024-09-13 21:38:072147 {"autofill-enable-log-form-events-to-all-parsed-form-types",
2148 flag_descriptions::kAutofillEnableLogFormEventsToAllParsedFormTypesName,
2149 flag_descriptions::
2150 kAutofillEnableLogFormEventsToAllParsedFormTypesDescription,
2151 flags_ui::kOsIos,
2152 FEATURE_VALUE_TYPE(
2153 autofill::features::kAutofillEnableLogFormEventsToAllParsedFormTypes)},
Radu Nitescu06133382024-10-21 18:33:292154 {"lens-overlay-enable-ipad-compatibility",
2155 flag_descriptions::kLensOverlayEnableIPadCompatibilityName,
2156 flag_descriptions::kLensOverlayEnableIPadCompatibilityDescription,
2157 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableIPadCompatibility)},
Ameur Hosni22b62d92024-09-25 10:51:022158 {"lens-overlay-force-show-onboarding-screen",
2159 flag_descriptions::kLensOverlayForceShowOnboardingScreenName,
2160 flag_descriptions::kLensOverlayForceShowOnboardingScreenDescription,
2161 flags_ui::kOsIos,
2162 FEATURE_VALUE_TYPE(kLensOverlayForceShowOnboardingScreen)},
Gauthier Ambard766f4cf2024-09-26 16:56:252163 {"data-sharing", flag_descriptions::kDataSharingName,
2164 flag_descriptions::kDataSharingDescription, flags_ui::kOsIos,
2165 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingFeature)},
2166 {"data-sharing-join-only", flag_descriptions::kDataSharingJoinOnlyName,
2167 flag_descriptions::kDataSharingJoinOnlyDescription, flags_ui::kOsIos,
2168 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingJoinOnly)},
Rubin Deliallisib66a77a2024-10-02 18:09:482169 {"ios-soft-lock", flag_descriptions::kIOSSoftLockName,
2170 flag_descriptions::kIOSSoftLockDescription, flags_ui::kOsIos,
Rubin Deliallisi1d0b3ba2024-11-04 14:33:042171 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSoftLock,
2172 kIOSSoftLockVariations,
2173 "IOSSoftLock")},
Marc Treib31e4f9f2024-10-07 09:55:542174 {"separate-profiles-for-managed-accounts",
2175 flag_descriptions::kSeparateProfilesForManagedAccountsName,
2176 flag_descriptions::kSeparateProfilesForManagedAccountsDescription,
Olivier ROBINb17c14b92024-10-09 13:49:132177 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSeparateProfilesForManagedAccounts)},
2178 {"tab-resumption-2-reason", flag_descriptions::kTabResumption2ReasonName,
2179 flag_descriptions::kTabResumption2ReasonDescription, flags_ui::kOsIos,
2180 FEATURE_VALUE_TYPE(kTabResumption2Reason)},
2181 {"tab-resumption-images", flag_descriptions::kTabResumptionImagesName,
2182 flag_descriptions::kTabResumptionImagesDescription, flags_ui::kOsIos,
2183 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumptionImages,
2184 kTabResumptionImagesVariations,
2185 "TabResumption1_5")},
Benjamin Williamsd7f854b2024-10-09 17:12:272186 {"segmentation-platform-tips-ephemeral-card",
2187 flag_descriptions::kSegmentationPlatformTipsEphemeralCardName,
2188 flag_descriptions::kSegmentationPlatformTipsEphemeralCardDescription,
2189 flags_ui::kOsIos,
2190 FEATURE_VALUE_TYPE(segmentation_platform::features::
vincbf23f7332024-10-11 19:32:122191 kSegmentationPlatformTipsEphemeralCard)},
2192 {"ios-password-suggestion-bottom-sheet-v2",
2193 flag_descriptions::kPasswordSuggestionBottomSheetV2Name,
2194 flag_descriptions::kPasswordSuggestionBottomSheetV2Description,
2195 flags_ui::kOsIos,
Federica Germinariof58b5a7e2024-10-22 10:35:422196 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheetV2)},
2197 {"ios-post-profile-switch-actions",
2198 flag_descriptions::kPostProfileSwitchActionsName,
2199 flag_descriptions::kPostProfileSwitchActionsDescription, flags_ui::kOsIos,
2200 FEATURE_VALUE_TYPE(kPostProfileSwitchActions)},
Charles Yang11dd8ab2024-10-24 19:15:532201 {"lens-unary-apis-with-http-transport-enabled",
2202 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledName,
2203 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledDescription,
2204 flags_ui::kOsIos,
2205 FEATURE_VALUE_TYPE(kLensUnaryApisWithHttpTransportEnabled)},
Christian Xu6db322d2024-10-25 14:12:492206 {"lens-overlay-enable-same-tab-navigation",
2207 flag_descriptions::kLensOverlayEnableSameTabNavigationName,
2208 flag_descriptions::kLensOverlayEnableSameTabNavigationDescription,
2209 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableSameTabNavigation)},
Elmehdi Rahmaoui3c6e8012024-10-28 10:17:532210 {"ios-chrome-startup-parameters-async",
2211 flag_descriptions::kChromeStartupParametersAsyncName,
2212 flag_descriptions::kChromeStartupParametersAsyncDescription,
2213 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kChromeStartupParametersAsync)},
Christian Xua8459472024-10-31 13:39:082214 {"lens-overlay-enable-location-bar-entrypoint",
2215 flag_descriptions::kLensOverlayEnableLocationBarEntrypointName,
2216 flag_descriptions::kLensOverlayEnableLocationBarEntrypointDescription,
2217 flags_ui::kOsIos,
2218 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypoint)},
Christian Xudddf1e012024-10-31 18:34:012219 {"lens-overlay-disable-price-insights",
2220 flag_descriptions::kLensOverlayDisablePriceInsightsName,
2221 flag_descriptions::kLensOverlayDisablePriceInsightsDescription,
2222 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayDisablePriceInsights)},
Chris Lu9fd38c62024-11-04 22:22:592223 {"ios-provisional-notification-alert",
2224 flag_descriptions::kProvisionalNotificationAlertName,
2225 flag_descriptions::kProvisionalNotificationAlertDescription,
2226 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kProvisionalNotificationAlert)},
Hira Mahmood431c8ab2024-11-05 17:16:292227 {"ios-start-time-startup-remediations",
2228 flag_descriptions::kIOSStartTimeStartupRemediationsName,
2229 flag_descriptions::kIOSStartTimeStartupRemediationsDescription,
2230 flags_ui::kOsIos,
2231 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSStartTimeStartupRemediations,
2232 kIOSStartTimeStartupRemediationsVariations,
2233 "IOSStartTimeStartupRemediations")},
vincb7867dc042024-11-06 14:25:052234 {"autofill-throttle-doc-form-scans",
2235 flag_descriptions::kAutofillThrottleDocumentFormScanName,
2236 flag_descriptions::kAutofillThrottleDocumentFormScanDescription,
2237 flags_ui::kOsIos,
2238 FEATURE_WITH_PARAMS_VALUE_TYPE(kAutofillThrottleDocumentFormScanIos,
2239 kAutofillThrottleDocFormScanVariations,
2240 "AutofillThrottleDocumentFormScan")},
vincb2bf7f5c2024-11-06 17:18:092241 {"autofill-throttle-filtered-doc-form-scan",
2242 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanName,
2243 flag_descriptions::kAutofillThrottleFilteredDocumentFormScanDescription,
2244 flags_ui::kOsIos,
2245 FEATURE_WITH_PARAMS_VALUE_TYPE(
2246 kAutofillThrottleFilteredDocumentFormScanIos,
2247 kAutofillThrottleFilteredDocFormScanVariations,
2248 "AutofillThrottleFilteredDocumentFormScan")},
ginnnnnnny963c7fc2024-11-06 22:44:502249 {"ios-new-feed-positioning",
2250 flag_descriptions::kNewFeedPositioningExperimentName,
2251 flag_descriptions::kNewFeedPositioningExperimentDescription,
2252 flags_ui::kOsIos,
2253 FEATURE_WITH_PARAMS_VALUE_TYPE(kNewFeedPositioning,
2254 kNewFeedPositioningVariations,
2255 "IOSNewFeedPositioningStudy")},
Stephen McGruer5ac77b932024-11-07 20:09:432256 {"ios-disable-parcel-tracking",
2257 flag_descriptions::kIOSDisableParcelTrackingName,
2258 flag_descriptions::kIOSDisableParcelTrackingDescription, flags_ui::kOsIos,
2259 FEATURE_VALUE_TYPE(kIOSDisableParcelTracking)},
vincb91781772024-11-08 17:13:122260 {"autofill-payments-sheet-v2",
2261 flag_descriptions::kAutofillPaymentsSheetV2Name,
2262 flag_descriptions::kAutofillPaymentsSheetV2Description, flags_ui::kOsIos,
2263 FEATURE_VALUE_TYPE(kAutofillPaymentsSheetV2Ios)},
Hira Mahmoodf8533dc2024-11-12 16:24:252264 {"ios-start-time-browser-background-remediations",
2265 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsName,
2266 flag_descriptions::kIOSStartTimeBrowserBackgroundRemediationsDescription,
2267 flags_ui::kOsIos,
2268 FEATURE_WITH_PARAMS_VALUE_TYPE(
2269 kIOSStartTimeBrowserBackgroundRemediations,
2270 kIOSStartTimeBrowserBackgroundRemediationsVariations,
2271 "IOSStartTimeStartupRemediations")},
Hira Mahmood664449872024-11-18 23:55:222272 {"set-up-list-in-first-run", flag_descriptions::kSetUpListInFirstRunName,
2273 flag_descriptions::kSetUpListInFirstRunNameDescription, flags_ui::kOsIos,
2274 FEATURE_WITH_PARAMS_VALUE_TYPE(set_up_list::kSetUpListInFirstRun,
2275 kSetUpListInFirstRunVariations,
2276 "SetUpListInFirstRun")},
Federica Germinariof58b5a7e2024-10-22 10:35:422277};
sdefresne14900ee2015-11-27 14:43:212278
Rohit Raobed794c2020-04-27 15:27:452279bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
2280 return false;
2281}
2282
2283flags_ui::FlagsState& GetGlobalFlagsState() {
2284 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
2285 nullptr);
2286 return *flags_state;
2287}
David Jean5ca263c2021-08-18 09:19:302288// Creates the experimental test policies map, used by AsyncPolicyLoader and
2289// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342290NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:212291 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2292
Guillaume Jenkins25e9bd72020-08-27 17:39:062293 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:552294 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:062295 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:552296
Guillaume Jenkins25e9bd72020-08-27 17:39:062297 // Set some sample policy values for testing if EnableSamplePolicies is set to
2298 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:402299 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:552300 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:012301 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
2302
Guillaume Jenkinseeb7007c2020-06-25 22:55:402303 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
2304
2305 // 2 = Disable all variations
2306 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
2307
2308 // 2 = Do not allow any site to show popups
2309 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
2310
Tina Wang5abee802020-07-29 23:09:522311 // Set default search engine.
2312 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
2313 @YES,
2314 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
2315 @"http://www.google.com/search?q={searchTerms}",
2316 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:022317 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:522318
Tina Wang89068c82020-10-29 15:51:502319 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
2320
Gauthier Ambard21b23702021-04-16 16:11:272321 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
2322
Tina Wang59d0b7e2020-08-11 04:41:012323 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:532324
2325 // 2 = Enhanced safe browsing protection
2326 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
2327
2328 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:292329
2330 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:552331 }];
2332 }
2333
Ewann227a3c02021-04-19 12:04:542334 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:042335 NSString* sync_policy_key =
2336 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:302337 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:542338 }
Ewann227a3c02021-04-19 12:04:542339
Ewann570a6302021-08-17 07:22:422340 // SyncTypesListDisabled policy.
2341 NSString* Sync_types_list_disabled_key =
2342 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
2343 NSMutableArray* Sync_types_list_disabled_values =
2344 [[NSMutableArray alloc] init];
2345 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
2346 [Sync_types_list_disabled_values addObject:@"bookmarks"];
2347 }
2348 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
2349 [Sync_types_list_disabled_values addObject:@"readingList"];
2350 }
2351 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
2352 [Sync_types_list_disabled_values addObject:@"preferences"];
2353 }
2354 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
2355 [Sync_types_list_disabled_values addObject:@"passwords"];
2356 }
2357 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
2358 [Sync_types_list_disabled_values addObject:@"autofill"];
2359 }
2360 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
2361 [Sync_types_list_disabled_values addObject:@"typedUrls"];
2362 }
2363 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
2364 [Sync_types_list_disabled_values addObject:@"tabs"];
2365 }
2366 if ([Sync_types_list_disabled_values count]) {
2367 [testing_policies addEntriesFromDictionary:@{
2368 Sync_types_list_disabled_key : Sync_types_list_disabled_values
2369 }];
Ewann570a6302021-08-17 07:22:422370 }
2371
Gauthier Ambard073eaa92021-11-22 15:24:132372 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:522373 NSString* incognito_policy_key =
2374 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
2375 NSInteger incognito_mode_availability =
2376 [defaults integerForKey:incognito_policy_key];
2377 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:522378 [testing_policies addEntriesFromDictionary:@{
2379 incognito_policy_key : @(incognito_mode_availability),
2380 }];
2381 }
2382
Ewann40a8f8a2021-07-29 10:01:202383 NSString* restriction_pattern =
2384 [defaults stringForKey:@"RestrictAccountsToPatterns"];
2385 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:292386 NSString* restrict_key =
2387 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:202388 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:292389 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:202390 }];
2391 }
2392
Vincent Boisselle19200bc2021-09-01 17:58:252393 // If the sign-in policy is set (not "None"), add the policy key to the list
2394 // of enabled experimental policies, and set the value.
2395 NSString* const kSigninPolicyKey = @"BrowserSignin";
2396 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2397 if (signin_policy_mode) {
2398 // Remove the mode offset that was used to represent the unset policy.
2399 --signin_policy_mode;
2400 DCHECK(signin_policy_mode >= 0);
2401
Vincent Boisselle19200bc2021-09-01 17:58:252402 [testing_policies addEntriesFromDictionary:@{
2403 kSigninPolicyKey : @(signin_policy_mode),
2404 }];
2405 }
2406
Veronique Nguyen9b1044f2022-01-11 14:41:132407 // If the New Tab Page URL is set (not empty) add the value to the list of
2408 // test policies.
2409 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2410 if ([ntp_location length] > 0) {
2411 NSString* ntp_location_key =
2412 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2413 [testing_policies
2414 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572415 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132416 }
2417
Ali Juma9ec36d22022-03-28 14:53:122418 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2419 NSString* allow_backups_key =
2420 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2421 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2422 [allowed_experimental_policies addObject:allow_backups_key];
2423 }
2424
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242425 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2426 NSString* password_manager_key =
2427 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2428 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2429 [allowed_experimental_policies addObject:password_manager_key];
2430 }
Vincent Boisselle003569a72023-09-11 16:03:122431
2432 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2433 NSString* user_policy_merge_key =
2434 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2435 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2436 [allowed_experimental_policies addObject:user_policy_merge_key];
2437 }
2438
Arthur Milchiorbb44f5c82023-03-14 16:14:462439 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2440 NSString* managed_bookmarks_key =
2441 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2442 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572443 @"["
2444 // The following gets filtered out from
2445 // the JSON string when parsed.
2446 " {"
2447 " \"toplevel_name\": \"Managed Bookmarks\""
2448 " },"
2449 " {"
2450 " \"name\": \"Google\","
2451 " \"url\": \"google.com\""
2452 " },"
2453 " {"
2454 " \"name\": \"Empty Folder\","
2455 " \"children\": []"
2456 " },"
2457 " {"
2458 " \"name\": \"Big Folder\","
2459 " \"children\": ["
2460 " {"
2461 " \"name\": \"Youtube\","
2462 " \"url\": \"youtube.com\""
2463 " },"
2464 " {"
2465 " \"name\": \"Chromium\","
2466 " \"url\": \"chromium.org\""
2467 " },"
2468 " {"
2469 " \"name\": \"More Stuff\","
2470 " \"children\": ["
2471 " {"
2472 " \"name\": \"Bugs\","
2473 " \"url\": \"crbug.com\""
2474 " }"
2475 " ]"
2476 " }"
2477 " ]"
2478 " }"
2479 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462480 [testing_policies addEntriesFromDictionary:@{
2481 managed_bookmarks_key : managed_bookmarks_value
2482 }];
2483 [allowed_experimental_policies addObject:managed_bookmarks_key];
2484 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242485
Guillaume Jenkins25e9bd72020-08-27 17:39:062486 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2487 // policy.
2488 if ([allowed_experimental_policies count] > 0) {
2489 [testing_policies setValue:allowed_experimental_policies
2490 forKey:base::SysUTF8ToNSString(
2491 policy::key::kEnableExperimentalPolicies)];
2492 }
2493
jlebel2eb40222022-05-06 11:15:422494 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2495 switch ([defaults integerForKey:metrics_reporting_key]) {
2496 case 1:
2497 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132498 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422499 break;
2500 case 2:
2501 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132502 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422503 break;
2504 default:
2505 // Metrics reporting not managed.
2506 break;
2507 }
2508
David Jean6f85d44f2021-08-19 08:08:452509 // Warning: Add new flags to TestingPoliciesHash() below.
2510
David Jean5ca263c2021-08-18 09:19:302511 return testing_policies;
2512}
David Jean6f85d44f2021-08-19 08:08:452513
David Jean5ca263c2021-08-18 09:19:302514} // namespace
2515
Gauthier Ambard02dbf022022-08-23 08:28:472516// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302517void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2518 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2519
2520 // Set the UA flag if UseMobileSafariUA is enabled.
2521 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2522 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2523 // Chrome puts its product token.
2524 int32_t major = 0;
2525 int32_t minor = 0;
2526 int32_t bugfix = 0;
2527 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2528 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2529
2530 command_line->AppendSwitchASCII(switches::kUserAgent,
2531 web::BuildMobileUserAgent(product));
2532 }
2533
2534 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342535 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302536
2537 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2538 // Management to enabled and add the token to the list of policies.
2539 NSString* token_key =
2540 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2541 NSString* token = [defaults stringForKey:token_key];
2542
2543 if ([token length] > 0) {
2544 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2545 [testing_policies setValue:token forKey:token_key];
2546 }
2547
Guillaume Jenkins57606d72020-08-13 17:32:552548 // If some policies were set, commit them to the app's registration defaults.
2549 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402550 NSDictionary* registration_defaults =
2551 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2552 [defaults registerDefaults:registration_defaults];
2553 }
2554
sdefresne14900ee2015-11-27 14:43:212555 // Freeform commandline flags. These are added last, so that any flags added
2556 // earlier in this function take precedence.
2557 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2558 base::CommandLine::StringVector flags;
2559 // Append an empty "program" argument.
2560 flags.push_back("");
2561
2562 // The number of flags corresponds to the number of text fields in
2563 // Experimental.plist.
2564 const int kNumFreeformFlags = 5;
2565 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2566 NSString* key =
2567 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2568 NSString* flag = [defaults stringForKey:key];
2569 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332570 // iOS keyboard replaces -- with —, so undo that.
2571 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2572 withString:@"--"
2573 options:0
2574 range:NSMakeRange(0, 1)];
2575 // To make things easier, allow flags with no dashes by prepending them
2576 // here. This also allows for flags that just have one dash if they
2577 // exist.
2578 if (![flag hasPrefix:@"-"]) {
2579 flag = [@"--" stringByAppendingString:flag];
2580 }
sdefresne14900ee2015-11-27 14:43:212581 flags.push_back(base::SysNSStringToUTF8(flag));
2582 }
2583 }
2584
2585 base::CommandLine temp_command_line(flags);
2586 command_line->AppendArguments(temp_command_line, false);
2587 }
msardafc76f662017-02-24 12:46:282588
justincohendacc85d2017-06-28 23:34:102589 // Populate command line flag for 3rd party keyboard omnibox workaround.
2590 NSString* enableThirdPartyKeyboardWorkaround =
2591 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2592 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2593 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2594 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2595 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2596 }
2597
Sylvain Defresned3cd8d92022-01-18 13:35:082598 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212599}
2600
sdefresne14900ee2015-11-27 14:43:212601void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2602 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182603 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112604 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532605 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212606}
2607
jkrcalbf073372016-07-29 07:21:312608std::vector<std::string> RegisterAllFeatureVariationParameters(
2609 flags_ui::FlagsStorage* flags_storage,
2610 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182611 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2612 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312613}
2614
sdefresne14900ee2015-11-27 14:43:212615void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2616 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502617 base::Value::List& supported_entries,
2618 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182619 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212620 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512621 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212622}
2623
2624void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2625 const std::string& internal_name,
2626 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182627 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2628 enable);
sdefresne14900ee2015-11-27 14:43:212629}
2630
2631void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182632 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212633}
2634
Nicolas MacBeth972e2592023-02-23 15:22:092635bool IsRestartNeededToCommitChanges() {
2636 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2637}
2638
sdefresne14900ee2015-11-27 14:43:212639namespace testing {
2640
Elly Fong-Jones323ab1092021-08-23 22:36:312641base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2642 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532643 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212644}
2645
2646} // namespace testing