blob: 6e30c7688199d550c7d87e4f7952961f3b0762fc [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"
Gauthier Ambard999088c2022-09-13 08:36:5737#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"
Chris Lu09019af2024-08-28 08:38:4488#import "ios/chrome/browser/ntp/ui_bundled/new_tab_page_feature.h"
mmrashadd0c7f952023-12-14 13:36:3889#import "ios/chrome/browser/policy/model/policy_util.h"
Cheick Cisse85457f22024-05-23 22:37:5990#import "ios/chrome/browser/price_insights/model/price_insights_feature.h"
Stepan Khapugin5694d702024-01-31 13:23:0891#import "ios/chrome/browser/promos_manager/model/features.h"
mmrashadf158cad942023-10-03 09:15:4892#import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:4693#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:3594#import "ios/chrome/browser/shared/public/features/system_flags.h"
Tina Wang75f21e82024-07-01 18:00:3595#import "ios/chrome/browser/start_surface/ui_bundled/start_surface_features.h"
Robbie Gibson596fe292023-10-27 01:00:3696#import "ios/chrome/browser/tabs/model/inactive_tabs/features.h"
Ewann Pelled2eaeba2023-09-19 09:15:2897#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Charles Yang0bba5262024-05-14 17:46:4798#import "ios/chrome/browser/ui/lens/features.h"
Christian Xub8c06cd2022-04-29 20:55:0199#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Filipa Senra0bd07982023-12-19 10:56:25100#import "ios/chrome/browser/ui/page_info/features.h"
Robbie Gibson686c56732021-10-04 17:11:45101#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Filipa Senrabe00cbe2024-04-19 14:21:33102#import "ios/chrome/browser/ui/settings/clear_browsing_data/features.h"
Rubin Deliallisi4170b1c2024-02-28 16:15:42103#import "ios/chrome/browser/ui/settings/google_services/features.h"
Rubin Deliallisi072bc842023-10-19 12:00:41104#import "ios/chrome/browser/ui/settings/privacy/privacy_guide/features.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58105#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Weizhong Xia8b908bda2023-12-05 16:00:22106#import "ios/chrome/browser/web/model/features.h"
Gauthier Ambard999088c2022-09-13 08:36:57107#import "ios/chrome/grit/ios_strings.h"
108#import "ios/components/security_interstitials/https_only_mode/feature.h"
109#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
110#import "ios/web/common/features.h"
111#import "ios/web/common/user_agent.h"
112#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21113
Sylvain Defresne9c107082020-10-27 16:39:13114#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
mmrashadf158cad942023-10-03 09:15:48115#import "ios/chrome/browser/screen_time/model/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13116#endif
117
sdefresne14900ee2015-11-27 14:43:21118#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57119#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22120#endif
stkhapuginc1be1792016-12-13 14:30:53121
elawrence816f6790e2017-06-16 18:19:28122using flags_ui::FeatureEntry;
123
sdefresne14900ee2015-11-27 14:43:21124namespace {
Emily Starkbafa9062017-12-27 15:22:46125
Nohemi Fernandezc00842a2021-07-26 11:47:34126const FeatureEntry::Choice
127 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
128 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
129 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
130 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
131 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
132};
133
Stepan Khapugincc4e9842019-01-23 13:38:13134const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
135 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
136const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
137 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
138const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
139 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
140const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
141 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
142const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
143 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
144const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
145 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
146const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
147 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
148
149const FeatureEntry::FeatureVariation
150 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
151 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53152 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13153 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53154 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13155 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53156 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13157 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53158 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13159 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53160 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13161 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53162 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13163 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53164 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13165
Stepan Khapuginbac467e2022-05-06 21:11:54166const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
167 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
168const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
169 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
170const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
171 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
172
173const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
174 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
175 nullptr},
176 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
177 nullptr},
178 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
179 nullptr},
180};
181
Christian Xucf26d562022-07-06 09:28:36182const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
183 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
184const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
185 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
186const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
187 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
188
189const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
190 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
191 nullptr},
192 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
193 nullptr},
194 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
195 nullptr},
196};
197
Guillem Perez40086ef2023-11-20 20:03:52198const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = {
199 {kContentPushNotificationsExperimentType, "1"}};
200const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] =
201 {{kContentPushNotificationsExperimentType, "2"}};
Guillem Perez222b5b22024-01-20 02:16:27202const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] =
203 {{kContentPushNotificationsExperimentType, "3"}};
Tina Wangb7f5b3f2024-05-07 06:24:26204const FeatureEntry::FeatureParam
205 kContentPushNotificationsPromoRegistrationOnly[] = {
206 {kContentPushNotificationsExperimentType, "5"}};
207const FeatureEntry::FeatureParam
208 kContentPushNotificationsProvisionalRegistrationOnly[] = {
209 {kContentPushNotificationsExperimentType, "6"}};
210const FeatureEntry::FeatureParam
211 kContentPushNotificationsSetUpListRegistrationOnly[] = {
212 {kContentPushNotificationsExperimentType, "7"}};
Guillem Perez40086ef2023-11-20 20:03:52213
214const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = {
215 {"Promo", kContentPushNotificationsEnabledPromo,
216 std::size(kContentPushNotificationsEnabledPromo), nullptr},
217 {"Set up list", kContentPushNotificationsEnabledSetupLists,
Guillem Perez222b5b22024-01-20 02:16:27218 std::size(kContentPushNotificationsEnabledSetupLists), nullptr},
219 {"Provisional Notification", kContentPushNotificationsEnabledProvisional,
Guillem Perez749b3fc2024-02-13 19:29:49220 std::size(kContentPushNotificationsEnabledProvisional), nullptr},
Tina Wangb7f5b3f2024-05-07 06:24:26221 {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly,
222 std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr},
223 {"Provisional Notification Registeration Only",
224 kContentPushNotificationsProvisionalRegistrationOnly,
225 std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr},
226 {"Set up list Registeration Only",
227 kContentPushNotificationsSetUpListRegistrationOnly,
228 std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}};
Guillem Perez40086ef2023-11-20 20:03:52229
Chris Ludca9ce32023-09-20 16:53:50230const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35231 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50232const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35233 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08234
gogerald0e39e3aa2021-02-10 18:41:23235const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50236 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
237 std::size(kStartSurfaceTenSeconds), nullptr},
238 {"1h:Show Home Surface", kStartSurfaceOneHour,
239 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08240};
gogerald0e39e3aa2021-02-10 18:41:23241
Chris Luce928eb2023-05-12 21:36:26242const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
243 {kMagicStackMostVisitedModuleParam, "true"},
244 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22245const FeatureEntry::FeatureParam
246 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
247 {kMagicStackMostVisitedModuleParam, "true"},
248 {kReducedSpaceParam, "-80"},
249 {kHideIrrelevantModulesParam, "true"}};
Chris Lu8cf8ef82024-03-18 18:30:54250const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = {
Chris Luce928eb2023-05-12 21:36:26251 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu8cf8ef82024-03-18 18:30:54252 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26253
254const FeatureEntry::FeatureVariation kMagicStackVariations[]{
255 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
256 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22257 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
258 kMagicStackMostVisitedModuleHideIrrelevantModules,
259 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu8cf8ef82024-03-18 18:30:54260 {"Hide irrelevant modules", kMagicStackHidIrrelevantModules,
261 std::size(kMagicStackHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26262};
263
Chris Lu6fd4eaf2023-08-08 18:29:30264const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
265 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
266
267const FeatureEntry::FeatureVariation
268 kSegmentationPlatformIosModuleRankerVariations[]{
269 {"Enabled With Default Model Parameter (Must Set this!)",
270 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
271 };
272
Scott Yoderaf2bdf32024-01-30 20:26:15273const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31274 {kIOSTipsNotificationsUnknownTriggerTimeParam, "5s"},
275 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "5s"},
276 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "5s"},
Scott Yoderaf2bdf32024-01-30 20:26:15277};
278const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31279 {kIOSTipsNotificationsUnknownTriggerTimeParam, "10s"},
280 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "10s"},
281 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "10s"},
Scott Yoderaf2bdf32024-01-30 20:26:15282};
Scott Yoderd2dbc87f2024-03-07 18:23:37283const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31284 {kIOSTipsNotificationsUnknownTriggerTimeParam, "30s"},
285 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "30s"},
286 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "30s"},
Scott Yoderd2dbc87f2024-03-07 18:23:37287};
Scott Yoderaf2bdf32024-01-30 20:26:15288const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = {
289 {"(5s trigger)", kIOSTipsNotifications5SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07290 std::size(kIOSTipsNotifications5SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15291 {"(10s trigger)", kIOSTipsNotifications10SecondTrigger,
292 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderd2dbc87f2024-03-07 18:23:37293 {"(30s trigger)", kIOSTipsNotifications30SecondTrigger,
Scott Yoderef1a0542024-11-04 17:23:07294 std::size(kIOSTipsNotifications30SecondTrigger), nullptr},
295};
296
297const FeatureEntry::FeatureParam
298 kIOSReactivationNotifications10SecondTrigger[] = {
299 {kIOSReactivationNotificationsTriggerTimeParam, "10s"},
300};
301const FeatureEntry::FeatureParam
302 kIOSReactivationNotifications30SecondTrigger[] = {
303 {kIOSReactivationNotificationsTriggerTimeParam, "30s"},
304};
305const FeatureEntry::FeatureVariation kIOSReactivationNotificationsVariations[] =
306 {
307 {"(10s trigger)", kIOSReactivationNotifications10SecondTrigger,
308 std::size(kIOSReactivationNotifications10SecondTrigger), nullptr},
309 {"(30s trigger)", kIOSReactivationNotifications30SecondTrigger,
310 std::size(kIOSReactivationNotifications30SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15311};
312
Ed Chin91e44992022-07-27 13:42:34313#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26314// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01315const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04316 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
317 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01318 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04319 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01320const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04321 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
322 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01323 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04324 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01325const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04326 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
327 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01328 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04329 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01330const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04331 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
332 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01333 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04334 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01335const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04336 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
337 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01338 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
339 {kBackgroundRefreshIntervalInSeconds, "0"}};
340const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04341 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
342 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01343 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
344 {kBackgroundRefreshIntervalInSeconds, "0"}};
345const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
346 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
347 {kEnableRecurringBackgroundRefreshSchedule, "false"},
348 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
349 {kBackgroundRefreshIntervalInSeconds, "0"}};
350const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
351 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
352 {kEnableRecurringBackgroundRefreshSchedule, "true"},
353 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
354 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04355
Ed Chin178ec2a2023-02-10 22:21:26356// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04357const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01358 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
359 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
360 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
361 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
362 {"1hr Interval 1hr Max Age Recurring",
363 kOneHourIntervalOneHourMaxAgeRecurring,
364 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
365 {"4hr Interval 6hr Max Age Recurring",
366 kFourHourIntervalSixHourMaxAgeRecurring,
367 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
368 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
369 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
370 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
371 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
372 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
373 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
374 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
375 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04376};
Ed Chin91e44992022-07-27 13:42:34377#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04378
David Jeanf361ae9d2024-04-09 08:19:47379const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = {
380 {kTextClassifierAddressParameterName, "true"}};
381const FeatureEntry::FeatureVariation
382 kEnableExpKitTextClassifierAddressVariations[] = {
383 {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap,
384 std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}};
385
386const FeatureEntry::FeatureParam
387 kEnableExpKitTextClassifierPhoneNumberOneTap[] = {
388 {kTextClassifierPhoneNumberParameterName, "true"}};
389const FeatureEntry::FeatureVariation
390 kEnableExpKitTextClassifierPhoneNumberVariations[] = {
391 {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap,
392 std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}};
393
394const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = {
395 {kTextClassifierEmailParameterName, "true"}};
396const FeatureEntry::FeatureVariation
397 kEnableExpKitTextClassifierEmailVariations[] = {
398 {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap,
399 std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15400
Ewann Pellea2bcb3a2023-08-28 13:53:00401const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = {
402 {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}};
403const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = {
404 {kTabResumptionParameterName, kTabResumptionAllTabsParam}};
Ewann Pelleb08ee062023-10-16 10:04:48405const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = {
Olivier Robinbb46d05d2024-06-25 17:56:35406 {kTabResumptionParameterName, kTabResumptionAllTabsParam},
407 {kTabResumptionThresholdParameterName, /* 24 hours */ "86400"}};
Ewann Pellea2bcb3a2023-08-28 13:53:00408
409const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
410 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
411 std::size(kTabResumptionMostRecentTabOnly), nullptr},
Ewann Pelleb08ee062023-10-16 10:04:48412 {"Most recent tab and last synced tab (12 hours threshold)",
413 kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr},
414 {"Most recent tab and last synced tab (24 hours threshold)",
415 kTabResumptionAllTabsOneDayThreshold,
Olivier Robin08bc56d02024-06-05 14:05:18416 std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}};
Ewann Pelle6eecb8f2023-06-23 14:31:37417
Olivier ROBIN2613bcd02023-04-20 10:00:47418
Christian Xu07d600192023-07-24 12:29:52419const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
420 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
421const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
422 {kBottomOmniboxDefaultSettingParam,
423 kBottomOmniboxDefaultSettingParamBottom}};
424const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
425 {{kBottomOmniboxDefaultSettingParam,
426 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
427const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
428 {
429 {"Top", kBottomOmniboxDefaultSettingTop,
430 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
431 {"Bottom", kBottomOmniboxDefaultSettingBottom,
432 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
433 {"Bottom for Safari Switcher",
434 kBottomOmniboxDefaultSettingSafariSwitcher,
435 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
436};
437
Cheick Cisse85457f22024-05-23 22:37:59438constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
439 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
440constexpr flags_ui::FeatureEntry::FeatureParam
441 kPriceInsightsGoodDealNowParam[] = {
442 {kLowPriceParam, kLowPriceParamGoodDealNow}};
443constexpr flags_ui::FeatureEntry::FeatureParam
444 kPriceInsightsSeePriceHistoryParam[] = {
445 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
446constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
447 {{"Price is low", kPriceInsightsPriceIsLowParam,
448 std::size(kPriceInsightsPriceIsLowParam), nullptr},
449 {"Good deal now", kPriceInsightsGoodDealNowParam,
450 std::size(kPriceInsightsGoodDealNowParam), nullptr},
451 {"See price history", kPriceInsightsSeePriceHistoryParam,
452 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
453
Christian Xu10b84d72024-04-09 17:12:33454const FeatureEntry::FeatureParam kRichAutocompletionImplementationLabel[] = {
455 {kRichAutocompletionParam, kRichAutocompletionParamLabel}};
Christian Xua17f9b72024-04-22 10:22:31456const FeatureEntry::FeatureParam
Christian Xu2cf421f2024-05-17 19:23:52457 kRichAutocompletionImplementationTextField3Chars[] = {
458 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52459 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
460 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52461const FeatureEntry::FeatureParam
462 kRichAutocompletionImplementationTextField4Chars[] = {
463 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52464 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
465 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu2cf421f2024-05-17 19:23:52466const FeatureEntry::FeatureParam
467 kRichAutocompletionImplementationNoAdditionalText3Chars[] = {
468 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52469 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
470 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52471const FeatureEntry::FeatureParam
472 kRichAutocompletionImplementationNoAdditionalText4Chars[] = {
473 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52474 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
475 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu10b84d72024-04-09 17:12:33476const FeatureEntry::FeatureVariation
477 kRichAutocompletionImplementationVariations[] = {
478 {"In Label", kRichAutocompletionImplementationLabel,
479 std::size(kRichAutocompletionImplementationLabel), nullptr},
Christian Xu2cf421f2024-05-17 19:23:52480 {"In TextField, 3 Min Chars",
481 kRichAutocompletionImplementationTextField3Chars,
482 std::size(kRichAutocompletionImplementationTextField3Chars), nullptr},
483 {"In TextField, 4 Min Chars",
484 kRichAutocompletionImplementationTextField4Chars,
485 std::size(kRichAutocompletionImplementationTextField4Chars), nullptr},
486 {"No Additional Text, 3 Min Chars",
487 kRichAutocompletionImplementationNoAdditionalText3Chars,
488 std::size(kRichAutocompletionImplementationNoAdditionalText3Chars),
489 nullptr},
490 {"No Additional Text, 4 Min Chars",
491 kRichAutocompletionImplementationNoAdditionalText4Chars,
492 std::size(kRichAutocompletionImplementationNoAdditionalText4Chars),
493 nullptr},
Christian Xu10b84d72024-04-09 17:12:33494};
495
Olivier ROBIN82b67002023-07-31 14:34:46496const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
497 {web::features::kOneTapForMapsConsentModeParamTitle,
498 web::features::kOneTapForMapsConsentModeDefaultParam}};
499const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
500 {web::features::kOneTapForMapsConsentModeParamTitle,
501 web::features::kOneTapForMapsConsentModeForcedParam}};
502const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
503 {web::features::kOneTapForMapsConsentModeParamTitle,
504 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31505const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
506 {web::features::kOneTapForMapsConsentModeParamTitle,
507 web::features::kOneTapForMapsConsentModeIPHParam}};
508const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
509 {web::features::kOneTapForMapsConsentModeParamTitle,
510 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46511const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
512 {"Consent Default", kOneTapForMapsConsentModeDefault,
513 std::size(kOneTapForMapsConsentModeDefault), nullptr},
514 {"Consent Forced", kOneTapForMapsConsentModeForced,
515 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31516 {"Consent IPH", kOneTapForMapsConsentModeIPH,
517 std::size(kOneTapForMapsConsentModeIPH), nullptr},
518 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
519 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46520 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
521 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
522};
523
Benjamin Williams1dc8f2342024-01-04 21:25:55524const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
525 {kIOSDockingPromoExperimentType, "0"}};
526const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
527 {kIOSDockingPromoExperimentType, "1"}};
528const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
529 {kIOSDockingPromoExperimentType, "2"}};
530
531const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
532 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
533 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
534 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
535 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
536 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
537 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
538
Ewann Pellec8634ab2024-02-23 16:50:35539const FeatureEntry::FeatureParam kModernTabStripNTBDynamic[] = {
540 {kModernTabStripParameterName, kModernTabStripNTBDynamicParam}};
541const FeatureEntry::FeatureParam kModernTabStripNTBStatic[] = {
542 {kModernTabStripParameterName, kModernTabStripNTBStaticParam}};
Gauthier Ambardf1cd72f2024-10-08 16:15:33543const FeatureEntry::FeatureParam kModernTabStripCloserNTBOption[] = {
544 {kModernTabStripCloserNTB, "true"},
545 {kModernTabStripBiggerNTB, "true"}};
546const FeatureEntry::FeatureParam kModernTabStripDarkerBackgroundOption[] = {
547 {kModernTabStripDarkerBackground, "true"},
548 {kModernTabStripBiggerNTB, "true"}};
549const FeatureEntry::FeatureParam
550 kModernTabStripCloserNTBDarkerBackgroundOption[] = {
551 {kModernTabStripDarkerBackground, "true"},
552 {kModernTabStripCloserNTB, "true"},
553 {kModernTabStripBiggerNTB, "true"}};
554const FeatureEntry::FeatureParam kModernTabStripNTBNoBackgroundOption[] = {
555 {kModernTabStripNTBNoBackground, "true"},
556 {kModernTabStripBiggerNTB, "true"}};
557const FeatureEntry::FeatureParam kModernTabStripBlackBackgroundOption[] = {
558 {kModernTabStripBlackBackground, "true"},
559 {kModernTabStripNTBNoBackground, "true"},
560 {kModernTabStripBiggerNTB, "true"}};
Ewann Pellec8634ab2024-02-23 16:50:35561
Gauthier Ambard13b1a742024-10-09 07:53:22562const FeatureEntry::FeatureParam kModernTabStripCloseButtonVisibleOption[] = {
Gauthier Ambard5ae1e11c2024-10-09 15:11:25563 {kModernTabStripCloseButtonsVisible, "true"},
564 {kModernTabStripCloserNTB, "true"},
Gauthier Ambard6a26ebd2024-10-14 11:12:41565 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25566 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambard13b1a742024-10-09 07:53:22567const FeatureEntry::FeatureParam
568 kModernTabStripInactiveTabsHighContrastOption[] = {
569 {kModernTabStripInactiveTabsHighContrast, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25570 {kModernTabStripCloserNTB, "true"},
571 {kModernTabStripDarkerBackgroundV3, "true"},
Gauthier Ambard6a26ebd2024-10-14 11:12:41572 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25573 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambard13b1a742024-10-09 07:53:22574const FeatureEntry::FeatureParam kModernTabStripHighContrastNTBOption[] = {
Gauthier Ambard5ae1e11c2024-10-09 15:11:25575 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard4934d1c2024-10-10 13:49:50576 {kModernTabStripNTBNoBackground, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25577 {kModernTabStripCloserNTB, "true"},
578 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambardcfa64ec02024-10-11 14:56:42579const FeatureEntry::FeatureParam kModernTabStripV3AllOptions[] = {
Gauthier Ambard13b1a742024-10-09 07:53:22580 {kModernTabStripCloseButtonsVisible, "true"},
Gauthier Ambard4934d1c2024-10-10 13:49:50581 {kModernTabStripNTBNoBackground, "true"},
Gauthier Ambard13b1a742024-10-09 07:53:22582 {kModernTabStripInactiveTabsHighContrast, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25583 {kModernTabStripCloserNTB, "true"},
Gauthier Ambard13b1a742024-10-09 07:53:22584 {kModernTabStripHighContrastNTB, "true"},
Gauthier Ambard5ae1e11c2024-10-09 15:11:25585 {kModernTabStripDarkerBackgroundV3, "true"},
586 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambardcfa64ec02024-10-11 14:56:42587const FeatureEntry::FeatureParam kModernTabStripDetachedTabsOptions[] = {
588 {kModernTabStripCloseButtonsVisible, "true"},
589 {kModernTabStripHighContrastNTB, "true"},
590 {kModernTabStripInactiveTabsHighContrast, "true"},
Gauthier Ambard6a26ebd2024-10-14 11:12:41591 {kModernTabStripDarkerBackgroundV3, "true"},
Gauthier Ambardcfa64ec02024-10-11 14:56:42592 {kModernTabStripDetachedTabs, "true"},
593 {kModernTabStripCloserNTB, "true"},
594 {kModernTabStripNTBNoBackground, "true"},
595 {kModernTabStripBiggerNTB, "true"}};
Gauthier Ambard13b1a742024-10-09 07:53:22596
Ewann Pellec8634ab2024-02-23 16:50:35597const FeatureEntry::FeatureVariation kModernTabStripVariations[] = {
598 {"New tab button dynamic", kModernTabStripNTBDynamic,
599 std::size(kModernTabStripNTBDynamic), nullptr},
600 {"New tab button static", kModernTabStripNTBStatic,
601 std::size(kModernTabStripNTBStatic), nullptr},
Gauthier Ambardf1cd72f2024-10-08 16:15:33602 {"Closer NTB", kModernTabStripCloserNTBOption,
603 std::size(kModernTabStripCloserNTBOption), nullptr},
604 {"Darker background", kModernTabStripDarkerBackgroundOption,
605 std::size(kModernTabStripDarkerBackgroundOption), nullptr},
606 {"Closer NTB + darker background",
607 kModernTabStripCloserNTBDarkerBackgroundOption,
608 std::size(kModernTabStripCloserNTBDarkerBackgroundOption), nullptr},
609 {"NTB no background", kModernTabStripNTBNoBackgroundOption,
610 std::size(kModernTabStripNTBNoBackgroundOption), nullptr},
611 {"Black background", kModernTabStripBlackBackgroundOption,
612 std::size(kModernTabStripBlackBackgroundOption), nullptr},
Gauthier Ambard13b1a742024-10-09 07:53:22613 {"V3 Close buttons", kModernTabStripCloseButtonVisibleOption,
614 std::size(kModernTabStripCloseButtonVisibleOption), nullptr},
615 {"V3 High Contrast tabs", kModernTabStripInactiveTabsHighContrastOption,
616 std::size(kModernTabStripInactiveTabsHighContrastOption), nullptr},
617 {"V3 Visible NTB", kModernTabStripHighContrastNTBOption,
618 std::size(kModernTabStripHighContrastNTBOption), nullptr},
Gauthier Ambardcfa64ec02024-10-11 14:56:42619 {"V3 all options", kModernTabStripV3AllOptions,
620 std::size(kModernTabStripV3AllOptions), nullptr},
621 {"V3 detached tabs", kModernTabStripDetachedTabsOptions,
622 std::size(kModernTabStripDetachedTabsOptions), nullptr},
Ewann Pellec8634ab2024-02-23 16:50:35623};
624
Olivier ROBINcb76f4fe2024-06-05 16:11:42625const FeatureEntry::FeatureVariation
626 kImageServiceOptimizationGuideSalientImagesVariations[] = {
627 {"High Performance Canonicalization", nullptr, 0, "3362133"},
628};
629
Olivier Robinf8374f12024-06-05 19:00:04630const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] =
631 {{kTR15SeeMoreButtonParam, "false"}};
Olivier Robinf8374f12024-06-05 19:00:04632
633const FeatureEntry::FeatureVariation kTabResumption15Variations[] = {
Olivier Robinf8374f12024-06-05 19:00:04634 {"No See More Button", kTabResumption15DisableSeeMoreButtonImages,
635 std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr},
Olivier Robinf8374f12024-06-05 19:00:04636};
Olivier ROBINb17c14b92024-10-09 13:49:13637
638const FeatureEntry::FeatureParam kTabResumptionImagesOnlyThumbnail[] = {
639 {kTabResumptionImagesTypes, kTabResumptionImagesTypesThumbnails}};
640const FeatureEntry::FeatureParam kTabResumptionImagesOnlySalient[] = {
641 {kTabResumptionImagesTypes, kTabResumptionImagesTypesSalient}};
642
643const FeatureEntry::FeatureVariation kTabResumptionImagesVariations[] = {
644 {"Only thumbnails", kTabResumptionImagesOnlyThumbnail,
645 std::size(kTabResumptionImagesOnlyThumbnail), nullptr},
646 {"Only salient", kTabResumptionImagesOnlySalient,
647 std::size(kTabResumptionImagesOnlySalient), nullptr},
648};
649
Charles Yangf8e7adf2024-06-11 00:17:00650// Uses int values from Lens filters ablation mode enum.
651const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
652 {kLensFiltersAblationMode, "0"}};
653const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
654 {kLensFiltersAblationMode, "1"}};
655const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
656 {kLensFiltersAblationMode, "2"}};
657const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
658 {kLensFiltersAblationMode, "3"}};
659
660const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
661 {"(Disabled)", kLensFiltersAblationModeDisabled,
662 std::size(kLensFiltersAblationModeDisabled), nullptr},
663 {"(Post Capture)", kLensFiltersAblationModePostCapture,
664 std::size(kLensFiltersAblationModePostCapture), nullptr},
665 {"(LVF)", kLensFiltersAblationModeLVF,
666 std::size(kLensFiltersAblationModeLVF), nullptr},
667 {"(Always)", kLensFiltersAblationModeAlways,
668 std::size(kLensFiltersAblationModeAlways), nullptr}};
669
670// Uses int values from Lens translate toggle mode enum.
671const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
672 {kLensTranslateToggleMode, "0"}};
673const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
674 {kLensTranslateToggleMode, "1"}};
675const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
676 {kLensTranslateToggleMode, "2"}};
677const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
678 {kLensTranslateToggleMode, "3"}};
679
680const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
681 {"(Disabled)", kLensTranslateToggleModeDisabled,
682 std::size(kLensTranslateToggleModeDisabled), nullptr},
683 {"(Post Capture)", kLensTranslateToggleModePostCapture,
684 std::size(kLensTranslateToggleModePostCapture), nullptr},
685 {"(LVF)", kLensTranslateToggleModeLVF,
686 std::size(kLensTranslateToggleModeLVF), nullptr},
687 {"(Always)", kLensTranslateToggleModeAlways,
688 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04689
Khalid Peer7cf75a22024-06-13 17:25:49690const FeatureEntry::FeatureParam
691 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
692 {"MlUrlPiecewiseMappedSearchBlending", "true"},
693 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
694 "0,550;0.018,1300;0.14,1398;1,1422"},
695 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
696 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
697const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41698 kMlUrlPiecewiseMappedSearchBlendingDemotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49699 {"MlUrlPiecewiseMappedSearchBlending", "true"},
700 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
701 "0,550;0.018,1250;0.14,1348;1,1422"},
702 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
703 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
704const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41705 kMlUrlPiecewiseMappedSearchBlendingPromotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49706 {"MlUrlPiecewiseMappedSearchBlending", "true"},
707 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41708 "0,550;0.018,1350;0.14,1448;1,1472"},
709 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1450"},
Khalid Peer7cf75a22024-06-13 17:25:49710 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
711const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41712 kMlUrlPiecewiseMappedSearchBlendingPromotedBy100[] = {
Khalid Peer7cf75a22024-06-13 17:25:49713 {"MlUrlPiecewiseMappedSearchBlending", "true"},
714 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41715 "0,550;0.018,1400;0.14,1498;1,1522"},
716 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1500"},
Khalid Peer7cf75a22024-06-13 17:25:49717 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer4501c1f2024-06-27 16:12:04718const FeatureEntry::FeatureParam
719 kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = {
720 {"MlUrlPiecewiseMappedSearchBlending", "true"},
721 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer5c9bd9e2024-07-17 17:16:42722 "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:04723 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"},
724 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer7cf75a22024-06-13 17:25:49725
726const FeatureEntry::FeatureVariation
727 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
728 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
729 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
Khalid Peer9c07798f2024-07-15 22:39:41730 {"demoted by 50", kMlUrlPiecewiseMappedSearchBlendingDemotedBy50,
731 std::size(kMlUrlPiecewiseMappedSearchBlendingDemotedBy50), nullptr},
732 {"promoted by 50", kMlUrlPiecewiseMappedSearchBlendingPromotedBy50,
733 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy50), nullptr},
734 {"promoted by 100", kMlUrlPiecewiseMappedSearchBlendingPromotedBy100,
735 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy100), nullptr},
Khalid Peer4501c1f2024-06-27 16:12:04736 {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping,
737 std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr},
Khalid Peer7cf75a22024-06-13 17:25:49738};
739
740const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
741 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
742 {"MlUrlScoringShortcutDocumentSignals", "true"},
743};
744const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
745 {
746 {"MlUrlScoringUnlimitedNumCandidates", "true"},
747 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
748 {"MlUrlScoringShortcutDocumentSignals", "true"},
749};
750// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
751// Document(512), and History Fuzzy(65536) providers max matches to 10.
752const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
753 {
754 {"MlUrlScoringMaxMatchesByProvider",
755 "1:10,4:10,8:10,64:10,512:10,65536:10"},
756 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
757 {"MlUrlScoringShortcutDocumentSignals", "true"},
758};
759
760const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
761 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
762 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
763 {"unlimited suggestion candidates",
764 kOmniboxMlUrlScoringUnlimitedNumCandidates,
765 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
766 {"Increase provider max limit to 10",
767 kOmniboxMlUrlScoringMaxMatchesByProvider10,
768 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
769};
770
771const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
772 {"MlUrlSearchBlending_StableSearchBlending", "true"},
773 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
774};
775const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
776 {
777 {"MlUrlSearchBlending_StableSearchBlending", "false"},
778 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
779 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
780 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
781 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
782};
783const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
784 {"MlUrlSearchBlending_StableSearchBlending", "false"},
785 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
786};
787const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
788 {"MlUrlSearchBlending_StableSearchBlending", "false"},
789 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
790 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
791 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
792 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
793};
794
795const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
796 {"Stable", kMlUrlSearchBlendingStable,
797 std::size(kMlUrlSearchBlendingStable), nullptr},
798 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
799 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
800 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
801 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
802 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
803 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
804};
805
Khalid Peer4501c1f2024-06-27 16:12:04806const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = {
807 {"Small model", nullptr, 0, "3379590"},
808 {"Full model", nullptr, 0, "3380197"},
809};
810
Benjamin Williams0594caf2024-07-09 17:51:38811const FeatureEntry::FeatureParam kSafetyCheckNotificationsVerbose[] = {
812 {kSafetyCheckNotificationsExperimentType, "0"}};
813const FeatureEntry::FeatureParam kSafetyCheckNotificationsSuccinct[] = {
814 {kSafetyCheckNotificationsExperimentType, "1"}};
815
816const FeatureEntry::FeatureVariation kSafetyCheckNotificationsVariations[] = {
817 {"Display multiple notifications at once", kSafetyCheckNotificationsVerbose,
818 std::size(kSafetyCheckNotificationsVerbose), nullptr},
819 {"Display one notification at a time", kSafetyCheckNotificationsSuccinct,
820 std::size(kSafetyCheckNotificationsSuccinct), nullptr}};
821
Elmehdi Rahmaouif5b76462024-06-24 10:44:46822const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = {
823 {kSaveToPhotosContextMenuImprovementParam, "true"},
824 {kSaveToPhotosTitleImprovementParam, "false"},
825 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
826};
827const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = {
828 {kSaveToPhotosContextMenuImprovementParam, "false"},
829 {kSaveToPhotosTitleImprovementParam, "true"},
830 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
831};
832const FeatureEntry::FeatureParam
833 kSaveToPhotosAccountDefaultChoiceImprovement[] = {
834 {kSaveToPhotosContextMenuImprovementParam, "false"},
835 {kSaveToPhotosTitleImprovementParam, "false"},
836 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"},
837};
838
839const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = {
840 {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement,
841 std::size(kSaveToPhotosContextMenuImprovement), nullptr},
842 {"With Title improvement Only", kSaveToPhotosTitleImprovement,
843 std::size(kSaveToPhotosTitleImprovement), nullptr},
844 {"With Account Default choice improvement Only",
845 kSaveToPhotosAccountDefaultChoiceImprovement,
846 std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr},
847};
848
Stephen McGruer8fe98b62024-07-16 13:10:13849// LINT.IfChange(AutofillUploadCardRequestTimeouts)
850const FeatureEntry::FeatureParam
851 kAutofillUploadCardRequestTimeout_6Point5Seconds[] = {
852 {"autofill_upload_card_request_timeout_milliseconds", "6500"}};
853const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_7Seconds[] =
854 {{"autofill_upload_card_request_timeout_milliseconds", "7000"}};
855const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_9Seconds[] =
856 {{"autofill_upload_card_request_timeout_milliseconds", "9000"}};
857const FeatureEntry::FeatureVariation
858 kAutofillUploadCardRequestTimeoutOptions[] = {
859 {"6.5 seconds", kAutofillUploadCardRequestTimeout_6Point5Seconds,
860 std::size(kAutofillUploadCardRequestTimeout_6Point5Seconds), nullptr},
861 {"7 seconds", kAutofillUploadCardRequestTimeout_7Seconds,
862 std::size(kAutofillUploadCardRequestTimeout_7Seconds), nullptr},
863 {"9 seconds", kAutofillUploadCardRequestTimeout_9Seconds,
864 std::size(kAutofillUploadCardRequestTimeout_9Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03865// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillUploadCardRequestTimeouts)
Stephen McGruer8fe98b62024-07-16 13:10:13866
Stephen McGruer0904cae2024-07-17 19:54:46867// LINT.IfChange(AutofillVcnEnrollRequestTimeouts)
868const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_5Seconds[] = {
869 {"autofill_vcn_enroll_request_timeout_milliseconds", "5000"}};
870const FeatureEntry::FeatureParam
871 kAutofillVcnEnrollRequestTimeout_7Point5Seconds[] = {
872 {"autofill_vcn_enroll_request_timeout_milliseconds", "7500"}};
873const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_10Seconds[] =
874 {{"autofill_vcn_enroll_request_timeout_milliseconds", "10000"}};
875const FeatureEntry::FeatureVariation kAutofillVcnEnrollRequestTimeoutOptions[] =
876 {{"5 seconds", kAutofillVcnEnrollRequestTimeout_5Seconds,
877 std::size(kAutofillVcnEnrollRequestTimeout_5Seconds), nullptr},
878 {"7.5 seconds", kAutofillVcnEnrollRequestTimeout_7Point5Seconds,
879 std::size(kAutofillVcnEnrollRequestTimeout_7Point5Seconds), nullptr},
880 {"10 seconds", kAutofillVcnEnrollRequestTimeout_10Seconds,
881 std::size(kAutofillVcnEnrollRequestTimeout_10Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03882// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillVcnEnrollRequestTimeouts)
Stephen McGruer0904cae2024-07-17 19:54:46883
Nicolas MacBethc738c4e2024-07-19 21:14:19884// Contextual Panel flag variations.
885const FeatureEntry::FeatureParam kContextualPanelRichIPHArms[] = {
886 {"entrypoint-highlight-iph", "true"},
887 {"entrypoint-rich-iph", "true"},
888};
889const FeatureEntry::FeatureParam kContextualPanelSmallIPHArm[] = {
890 {"entrypoint-highlight-iph", "false"},
891 {"entrypoint-rich-iph", "false"},
892};
893const FeatureEntry::FeatureParam
894 kContextualPanelSmallIPHWithBlueHighlightArm[] = {
895 {"entrypoint-highlight-iph", "true"},
896 {"entrypoint-rich-iph", "false"},
897};
898
899const FeatureEntry::FeatureVariation kContextualPanelEntrypointArmVariations[] =
900 {
901 {"- Rich IPH", kContextualPanelRichIPHArms,
902 std::size(kContextualPanelRichIPHArms), nullptr},
903 {"- Small IPH, no blue highlight", kContextualPanelSmallIPHArm,
904 std::size(kContextualPanelSmallIPHArm), nullptr},
905 {"- Small IPH with blue highlight",
906 kContextualPanelSmallIPHWithBlueHighlightArm,
907 std::size(kContextualPanelSmallIPHWithBlueHighlightArm), nullptr},
908};
909
Jood Hajeer3867886d2024-07-29 16:15:35910const FeatureEntry::FeatureParam kIdentityConfirmationSnackbarTestingConfig[] =
Jood562c885f2024-09-05 17:06:55911 {{"IdentityConfirmationMinDisplayInterval1", "0"},
912 {"IdentityConfirmationMinDisplayInterval2", "0"},
913 {"IdentityConfirmationMinDisplayInterval3", "0"}};
Jood Hajeer3867886d2024-07-29 16:15:35914const FeatureEntry::FeatureVariation
915 kIdentityConfirmationSnackbarTestingVariations[] = {
916 {" - for testing", kIdentityConfirmationSnackbarTestingConfig,
917 std::size(kIdentityConfirmationSnackbarTestingConfig), nullptr}};
918
Chris Lu4c688e02024-09-07 00:48:08919const FeatureEntry::FeatureParam kPriceTrackingPromoForceShowArm[] = {
920 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05921 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08922};
923const FeatureEntry::FeatureParam kPriceTrackingPromoForceHideArm[] = {
924 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:05925 segmentation_platform::kPriceTrackingNotificationPromo},
Chris Lu4c688e02024-09-07 00:48:08926};
927
Benjamin Williamsd7f854b2024-10-09 17:12:27928// Address Bar Position
929const FeatureEntry::FeatureParam kTipsAddressBarPositionForceShowArm[] = {
930 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31931 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27932};
933const FeatureEntry::FeatureParam kTipsAddressBarPositionForceHideArm[] = {
934 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31935 segmentation_platform::kAddressBarPositionEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27936};
937
938// Autofill Passwords
939const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceShowArm[] = {
940 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31941 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27942};
943const FeatureEntry::FeatureParam kTipsAutofillPasswordsForceHideArm[] = {
944 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31945 segmentation_platform::kAutofillPasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27946};
947
948// Enhanced Safe Browsing
949const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceShowArm[] = {
950 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31951 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27952};
953const FeatureEntry::FeatureParam kTipsEnhancedSafeBrowsingForceHideArm[] = {
954 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31955 segmentation_platform::kEnhancedSafeBrowsingEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27956};
957
958// Lens Search
959const FeatureEntry::FeatureParam kTipsLensSearchForceShowArm[] = {
960 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31961 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27962};
963const FeatureEntry::FeatureParam kTipsLensSearchForceHideArm[] = {
964 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31965 segmentation_platform::kLensEphemeralModuleSearchVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27966};
967
968// Lens Shop
969const FeatureEntry::FeatureParam kTipsLensShopForceShowArm[] = {
970 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31971 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27972};
973const FeatureEntry::FeatureParam kTipsLensShopForceHideArm[] = {
974 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31975 segmentation_platform::kLensEphemeralModuleShopVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27976};
977
978// Lens Translate
979const FeatureEntry::FeatureParam kTipsLensTranslateForceShowArm[] = {
980 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31981 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27982};
983const FeatureEntry::FeatureParam kTipsLensTranslateForceHideArm[] = {
984 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31985 segmentation_platform::kLensEphemeralModuleTranslateVariation},
Benjamin Williamsd7f854b2024-10-09 17:12:27986};
987
988// Save Passwords
989const FeatureEntry::FeatureParam kTipsSavePasswordsForceShowArm[] = {
990 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31991 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27992};
993const FeatureEntry::FeatureParam kTipsSavePasswordsForceHideArm[] = {
994 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamsbd411e892024-10-25 15:59:31995 segmentation_platform::kSavePasswordsEphemeralModule},
Benjamin Williamsd7f854b2024-10-09 17:12:27996};
997
Hira Mahmood2ff5b5cb2024-10-25 19:24:31998const FeatureEntry::FeatureParam kSendTabPromoForceShowArm[] = {
999 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
Benjamin Williamseecd4552024-10-28 19:04:051000 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311001};
1002const FeatureEntry::FeatureParam kSendTabPromoForceHideArm[] = {
1003 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
Benjamin Williamseecd4552024-10-28 19:04:051004 segmentation_platform::kSendTabNotificationPromo},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311005};
1006
Chris Lu4c688e02024-09-07 00:48:081007const FeatureEntry::FeatureVariation kEphemeralCardRankerCardOverrideOptions[] =
1008 {
1009 {"- Force Show Price Tracking Notification",
1010 kPriceTrackingPromoForceShowArm,
1011 std::size(kPriceTrackingPromoForceShowArm), nullptr},
1012 {"- Force Hide Price Tracking Notification",
1013 kPriceTrackingPromoForceHideArm,
1014 std::size(kPriceTrackingPromoForceHideArm), nullptr},
Benjamin Williamsd7f854b2024-10-09 17:12:271015
1016 // Address Bar Position
1017 {"- Force Show Address Bar Position Tip",
1018 kTipsAddressBarPositionForceShowArm,
1019 std::size(kTipsAddressBarPositionForceShowArm), nullptr},
1020 {"- Force Hide Address Bar Position Tip",
1021 kTipsAddressBarPositionForceHideArm,
1022 std::size(kTipsAddressBarPositionForceHideArm), nullptr},
1023
1024 // Autofill Passwords
1025 {"- Force Show Autofill Passwords Tip",
1026 kTipsAutofillPasswordsForceShowArm,
1027 std::size(kTipsAutofillPasswordsForceShowArm), nullptr},
1028 {"- Force Hide Autofill Passwords Tip",
1029 kTipsAutofillPasswordsForceHideArm,
1030 std::size(kTipsAutofillPasswordsForceHideArm), nullptr},
1031
1032 // Enhanced Safe Browsing
1033 {"- Force Show Enhanced Safe Browsing Tip",
1034 kTipsEnhancedSafeBrowsingForceShowArm,
1035 std::size(kTipsEnhancedSafeBrowsingForceShowArm), nullptr},
1036 {"- Force Hide Enhanced Safe Browsing Tip",
1037 kTipsEnhancedSafeBrowsingForceHideArm,
1038 std::size(kTipsEnhancedSafeBrowsingForceHideArm), nullptr},
1039
1040 // Lens Search
1041 {"- Force Show Lens Search Tip", kTipsLensSearchForceShowArm,
1042 std::size(kTipsLensSearchForceShowArm), nullptr},
1043 {"- Force Hide Lens Search Tip", kTipsLensSearchForceHideArm,
1044 std::size(kTipsLensSearchForceHideArm), nullptr},
1045
1046 // Lens Shop
1047 {"- Force Show Lens Shop Tip", kTipsLensShopForceShowArm,
1048 std::size(kTipsLensShopForceShowArm), nullptr},
1049 {"- Force Hide Lens Shop Tip", kTipsLensShopForceHideArm,
1050 std::size(kTipsLensShopForceHideArm), nullptr},
1051
1052 // Lens Translate
1053 {"- Force Show Lens Translate Tip", kTipsLensTranslateForceShowArm,
1054 std::size(kTipsLensTranslateForceShowArm), nullptr},
1055 {"- Force Hide Lens Translate Tip", kTipsLensTranslateForceHideArm,
1056 std::size(kTipsLensTranslateForceHideArm), nullptr},
1057
1058 // Save Passwords
1059 {"- Force Show Save Passwords Tip", kTipsSavePasswordsForceShowArm,
1060 std::size(kTipsSavePasswordsForceShowArm), nullptr},
1061 {"- Force Hide Save Passwords Tip", kTipsSavePasswordsForceHideArm,
1062 std::size(kTipsSavePasswordsForceHideArm), nullptr},
Hira Mahmood2ff5b5cb2024-10-25 19:24:311063
1064 // Send Tab Promo.
1065 {"- Force Show Send Tab Promo", kSendTabPromoForceShowArm,
1066 std::size(kSendTabPromoForceShowArm), nullptr},
1067 {"- Force Hide Send Tab Promo", kSendTabPromoForceHideArm,
1068 std::size(kSendTabPromoForceHideArm), nullptr},
Chris Lu4c688e02024-09-07 00:48:081069};
1070
Hira Mahmood00c17e52024-10-09 14:30:481071const FeatureEntry::FeatureParam
1072 kSendTabIOSPushNotificationsWithMagicStackCard[] = {
1073 {send_tab_to_self::kSendTabIOSPushNotificationsWithMagicStackCardParam,
1074 "true"}};
1075const FeatureEntry::FeatureVariation kSendTabIOSPushNotificationsVariations[] =
1076 {
1077 {"With Magic Stack Card",
1078 kSendTabIOSPushNotificationsWithMagicStackCard,
1079 std::size(kSendTabIOSPushNotificationsWithMagicStackCard), nullptr},
1080};
1081
Briana McClurec2b62f92024-10-29 15:35:061082const FeatureEntry::FeatureParam kSegmentedDefaultBrowserStatic[] = {
1083 {kSegmentedDefaultBrowserExperimentType, "0"}};
1084const FeatureEntry::FeatureParam kSegmentedDefaultBrowserAnimated[] = {
1085 {kSegmentedDefaultBrowserExperimentType, "1"}};
1086
1087const FeatureEntry::FeatureVariation kSegmentedDefaultBrowserPromoVariations[] =
1088 {{" - Static Default Browser Promo", kSegmentedDefaultBrowserStatic,
1089 std::size(kSegmentedDefaultBrowserStatic), nullptr},
1090 {" - Animated Default Browser Promo", kSegmentedDefaultBrowserAnimated,
1091 std::size(kSegmentedDefaultBrowserAnimated), nullptr}};
1092
Rubin Deliallisi1d0b3ba2024-11-04 14:33:041093// Soft Lock
1094const FeatureEntry::FeatureParam kIOSSoftLockNoDelay[] = {
1095 {kIOSSoftLockBackgroundThresholdParam, "0m"},
1096};
1097
1098const FeatureEntry::FeatureVariation kIOSSoftLockVariations[] = {
1099 {" - No delay", kIOSSoftLockNoDelay, std::size(kIOSSoftLockNoDelay),
1100 nullptr}};
1101
Ameur Hosni3dc0ce1c2024-11-05 10:34:551102// Ipad ZPS limit.
1103const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total0Trends[] = {
1104 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "0"},
1105 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1106};
1107
1108const FeatureEntry::FeatureParam kIpadZPSOmniboxWith20Total5Trends[] = {
1109 {OmniboxFieldTrial::kIpadAdditionalTrendingQueries.name, "5"},
1110 {OmniboxFieldTrial::kIpadZPSLimit.name, "20"},
1111};
1112
1113constexpr FeatureEntry::FeatureVariation kIpadZpsLimitVariants[] = {
1114 {"20 total zps, 0 Trends on NTP", kIpadZPSOmniboxWith20Total0Trends,
1115 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1116 {"20 total zps, 5 Trends on NTP", kIpadZPSOmniboxWith20Total5Trends,
1117 std::size(kIpadZPSOmniboxWith20Total0Trends), nullptr},
1118};
1119
Cooper Knaak1e026562017-07-26 05:22:281120// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:211121// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:281122// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
1123// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:211124// macro for this type supplying the command line to the macro.
1125// . MULTI_VALUE: a list of choices, the first of which should correspond to a
1126// deactivated state for this lab (i.e. no command line option). To specify
1127// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
1128// array of choices.
Cooper Knaak1e026562017-07-26 05:22:281129// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
1130// either enabled, disabled, or uses the default value of the associated
1131// base::Feature instance. To specify this type of entry use the macro
1132// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
1133// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
1134// base::Feature instance. Choices corresponding to the default state, a
1135// universally enabled state, and a universally disabled state are
1136// automatically included. To specify this type of entry use the macro
1137// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
1138// the array of choices.
1139//
sdefresne14900ee2015-11-27 14:43:211140// See the documentation of FeatureEntry for details on the fields.
1141//
1142// When adding a new choice, add it to the end of the list.
1143const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:281144 {"in-product-help-demo-mode-choice",
1145 flag_descriptions::kInProductHelpDemoModeName,
1146 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
1147 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:231148 feature_engagement::kIPHDemoMode,
1149 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:091150 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:221151 {"enable-autofill-credit-card-upload",
1152 flag_descriptions::kAutofillCreditCardUploadName,
1153 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:241154 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:231155 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
1156 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
1157 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:511158 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:231159 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
1160 {"wallet-service-use-sandbox",
1161 flag_descriptions::kWalletServiceUseSandboxName,
1162 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
1163 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
1164 autofill::switches::kWalletServiceUseSandbox,
1165 "1",
1166 autofill::switches::kWalletServiceUseSandbox,
1167 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:591168 {"show-autofill-type-predictions",
1169 flag_descriptions::kShowAutofillTypePredictionsName,
1170 flag_descriptions::kShowAutofillTypePredictionsDescription,
1171 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:501172 FEATURE_VALUE_TYPE(
1173 autofill::features::test::kAutofillShowTypePredictions)},
Benjamin Williamsdf18e7e2022-10-03 18:46:051174 {"fullscreen-promos-manager-skip-internal-limits",
1175 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
1176 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
1177 flags_ui::kOsIos,
1178 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:141179 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:531180 flag_descriptions::kFullscreenSmoothScrollingName,
1181 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:191182 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:061183 {"webpage-default-zoom-from-dynamic-type",
1184 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
1185 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
1186 flags_ui::kOsIos,
1187 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:561188 {"webpage-alternative-text-zoom",
1189 flag_descriptions::kWebPageAlternativeTextZoomName,
1190 flag_descriptions::kWebPageAlternativeTextZoomDescription,
1191 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:341192 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
1193 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
1194 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Ameur Hosni3dc0ce1c2024-11-05 10:34:551195 {"omnibox-ipad-zps-limit",
1196 flag_descriptions::kIpadZpsSuggestionMatchesLimitName,
1197 flag_descriptions::kIpadZpsSuggestionMatchesLimitDescription,
1198 flags_ui::kOsIos,
1199 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kIpadZeroSuggestMatches,
1200 kIpadZpsLimitVariants,
1201 "OmniboxBundledExperimentV1")},
Stepan Khapugincc4e9842019-01-23 13:38:131202 {"omnibox-ui-max-autocomplete-matches",
1203 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
1204 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
1205 flags_ui::kOsIos,
1206 FEATURE_WITH_PARAMS_VALUE_TYPE(
1207 omnibox::kUIExperimentMaxAutocompleteMatches,
1208 kOmniboxUIMaxAutocompleteMatchesVariations,
1209 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:351210 {"omnibox-local-history-zero-suggest-beyond-ntp",
1211 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
1212 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
1213 flags_ui::kOsIos,
1214 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:541215 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
1216 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
1217 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
1218 kOmniboxMaxZPSMatchesVariations,
1219 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:481220 {"force-startup-signin-promo",
1221 flag_descriptions::kForceStartupSigninPromoName,
1222 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:291223 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:411224 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
1225 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
1226 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:131227#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:451228 {"screen-time-integration-ios",
1229 flag_descriptions::kScreenTimeIntegrationName,
1230 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
1231 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:131232#endif
Nazerke3e993f72020-09-21 13:00:061233 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
1234 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
Ewann Pellec8634ab2024-02-23 16:50:351235 FEATURE_WITH_PARAMS_VALUE_TYPE(kModernTabStrip,
1236 kModernTabStripVariations,
1237 "ModernTabStrip")},
Cheick Cisse76ade3d2020-12-16 00:15:111238 {"ios-shared-highlighting-color-change",
1239 flag_descriptions::kIOSSharedHighlightingColorChangeName,
1240 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:071241 flags_ui::kOsIos,
1242 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:341243 {"ios-shared-highlighting-v2",
1244 flag_descriptions::kIOSSharedHighlightingV2Name,
1245 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
1246 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Scott Yoderc0cd99d2024-01-10 19:54:511247 {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName,
1248 flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos,
Scott Yoderaf2bdf32024-01-30 20:26:151249 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications,
1250 kIOSTipsNotificationsVariations,
1251 "IOSTipsNotifications")},
Scott Yoderf8a821482024-10-28 19:32:551252 {"ios-reactivation-notifications",
1253 flag_descriptions::kIOSReactivationNotificationsName,
1254 flag_descriptions::kIOSReactivationNotificationsDescription,
Scott Yoderef1a0542024-11-04 17:23:071255 flags_ui::kOsIos,
1256 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSReactivationNotifications,
1257 kIOSReactivationNotificationsVariations,
1258 "IOSReactivationNotifications")},
gogerald0ff29e52021-02-03 18:56:191259 {"start-surface", flag_descriptions::kStartSurfaceName,
1260 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:231261 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
1262 kStartSurfaceVariations,
1263 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:341264 {"wait-threshold-seconds-for-capabilities-api",
1265 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1266 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1267 flags_ui::kOsIos,
1268 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061269 {"content-notification-experiment",
1270 flag_descriptions::kContentNotificationExperimentName,
1271 flag_descriptions::kContentNotificationExperimentDescription,
1272 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251273 {"content-notification-provisional-ignore-conditions",
1274 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1275 flag_descriptions::
1276 kContentNotificationProvisionalIgnoreConditionsDescription,
1277 flags_ui::kOsIos,
1278 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241279 {"content-push-notifications",
1280 flag_descriptions::kContentPushNotificationsName,
1281 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521282 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1283 kContentPushNotificationsVariations,
1284 "ContentPushNotifications")},
Jason Hu67cfb0f2022-11-14 20:21:441285 {"enable-lens-in-omnibox-copied-image",
1286 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1287 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1288 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Radu Nitescuab5bf732024-09-18 14:07:401289 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1290 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1291 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031292 {"enable-disco-feed-endpoint",
1293 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1294 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1295 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111296 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Tommy Martino7393d762021-10-12 17:59:281297 {"shared-highlighting-amp",
1298 flag_descriptions::kIOSSharedHighlightingAmpName,
1299 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1300 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
Matt Jones2e47b9692024-02-23 21:56:431301 {"track-by-default-mobile",
1302 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1303 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1304 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061305 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1306 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1307 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541308 {"ntp-view-hierarchy-repair",
1309 flag_descriptions::kNTPViewHierarchyRepairName,
1310 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201311 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Cheick Cisse39b6a182024-05-29 15:13:441312 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1313 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1314 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381315 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1316 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591317 flags_ui::kOsIos,
1318 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1319 kPriceInsightsVariations,
1320 "PriceInsightsIos")},
1321 {"price-insights-high-price-ios",
1322 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1323 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1324 flags_ui::kOsIos,
1325 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Vishwas Uppoor89303a92022-08-03 00:56:261326 {"autofill-enable-card-product-name",
1327 flag_descriptions::kAutofillEnableCardProductNameName,
1328 flag_descriptions::kAutofillEnableCardProductNameDescription,
1329 flags_ui::kOsIos,
1330 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Raj Tb95d813542022-11-16 21:27:521331 {"enable-download-service-foreground-session",
1332 flag_descriptions::kDownloadServiceForegroundSessionName,
1333 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1334 flags_ui::kOsIos,
1335 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231336 {"enable-tflite-language-detection",
1337 flag_descriptions::kTFLiteLanguageDetectionName,
1338 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1339 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201340 {"optimization-guide-debug-logs",
1341 flag_descriptions::kOptimizationGuideDebugLogsName,
1342 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1343 flags_ui::kOsIos,
1344 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551345 {"optimization-guide-push-notifications",
1346 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1347 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1348 flags_ui::kOsIos,
1349 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
David Jeanad303a92023-07-31 16:58:111350 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1351 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1352 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeanea886ba2024-01-17 11:50:221353 {"intents-on-viewport", flag_descriptions::kEnableViewportIntentsName,
1354 flag_descriptions::kEnableViewportIntentsDescription, flags_ui::kOsIos,
1355 FEATURE_VALUE_TYPE(web::features::kEnableViewportIntents)},
David Jeandcc3e202024-05-22 08:36:331356 {"improve-parcel-detection",
1357 flag_descriptions::kEnableNewParcelTrackingNumberDetectionName,
1358 flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription,
1359 flags_ui::kOsIos,
1360 FEATURE_VALUE_TYPE(
1361 web::features::kEnableNewParcelTrackingNumberDetection)},
David Jeanf361ae9d2024-04-09 08:19:471362 {"enable-expkit-text-classifier-date",
1363 flag_descriptions::kEnableExpKitTextClassifierDateName,
1364 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1365 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1366 {"enable-expkit-text-classifier-address",
1367 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1368 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151369 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471370 FEATURE_WITH_PARAMS_VALUE_TYPE(
1371 kEnableExpKitTextClassifierAddress,
1372 kEnableExpKitTextClassifierAddressVariations,
1373 "ExpKitTextClassifierAddress")},
1374 {"enable-expkit-text-classifier-phonenumber",
1375 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1376 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1377 flags_ui::kOsIos,
1378 FEATURE_WITH_PARAMS_VALUE_TYPE(
1379 kEnableExpKitTextClassifierPhoneNumber,
1380 kEnableExpKitTextClassifierPhoneNumberVariations,
1381 "ExpKitTextClassifierPhoneNumber")},
1382 {"enable-expkit-text-classifier-email",
1383 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1384 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1385 flags_ui::kOsIos,
1386 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1387 kEnableExpKitTextClassifierEmailVariations,
1388 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331389 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1390 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461391 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1392 kOneTapForMapsWithVariations,
1393 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251394 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1395 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1396 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301397 {"autofill-enable-ranking-formula-address-profiles",
1398 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1399 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1400 flags_ui::kOsIos,
1401 FEATURE_VALUE_TYPE(
1402 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391403 {"autofill-enable-ranking-formula-credit-cards",
1404 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1405 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1406 flags_ui::kOsIos,
1407 FEATURE_VALUE_TYPE(
1408 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021409 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1410 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1411 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521412 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1413 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261414 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1415 kMagicStackVariations,
1416 flag_descriptions::kMagicStackName)},
Alexis Hetuec9d70c2023-11-13 16:27:311417 {"ios-keyboard-accessory-upgrade",
1418 flag_descriptions::kIOSKeyboardAccessoryUpgradeName,
1419 flag_descriptions::kIOSKeyboardAccessoryUpgradeDescription,
1420 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgrade)},
Noémie St-Onge9da904ef2024-10-01 14:16:051421 {"ios-keyboard-accessory-upgrade-short-manual-fill-menu",
1422 flag_descriptions::kIOSKeyboardAccessoryUpgradeShortManualFillMenuName,
1423 flag_descriptions::
1424 kIOSKeyboardAccessoryUpgradeShortManualFillMenuDescription,
1425 flags_ui::kOsIos,
1426 FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeShortManualFillMenu)},
Scott Yoder7b9e51f2023-09-13 23:47:261427 {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName,
1428 flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos,
1429 FEATURE_VALUE_TYPE(kIOSLargeFakebox)},
Chris Lub0bad572023-08-07 18:13:291430 {"ios-magic-stack-segmentation-ranking",
1431 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1432 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1433 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301434 FEATURE_WITH_PARAMS_VALUE_TYPE(
1435 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1436 kSegmentationPlatformIosModuleRankerVariations,
1437 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321438 {"ios-magic-stack-segmentation-ranking-caching",
1439 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1440 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1441 flags_ui::kOsIos,
1442 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111443 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1444 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1445 flag_descriptions::
1446 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1447 flags_ui::kOsIos,
1448 FEATURE_VALUE_TYPE(
1449 segmentation_platform::features::
1450 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Olivier Robin058c1fad2022-05-31 18:24:061451 {"default-browser-intents-show-settings",
1452 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1453 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1454 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Alexis Hetu5e726602023-12-15 15:18:281455 {"ios-password-bottom-sheet-autofocus",
1456 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1457 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1458 flags_ui::kOsIos,
1459 FEATURE_VALUE_TYPE(
1460 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Charlotte Cloutier18f0a5362024-07-16 13:23:041461 {"ios-proactive-password-generation-bottom-sheet",
1462 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetName,
1463 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetDescription,
1464 flags_ui::kOsIos,
1465 FEATURE_VALUE_TYPE(password_manager::features::
1466 kIOSProactivePasswordGenerationBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241467 {"omnibox-zero-suggest-prefetching",
1468 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1469 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1470 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451471 {"omnibox-zero-suggest-prefetching-on-srp",
1472 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1473 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1474 flags_ui::kOsIos,
1475 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1476 {"omnibox-zero-suggest-prefetching-on-web",
1477 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1478 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1479 flags_ui::kOsIos,
1480 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471481 {"omnibox-zero-suggest-in-memory-caching",
1482 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1483 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1484 flags_ui::kOsIos,
1485 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351486 {"omnibox-on-device-tail-suggestions",
1487 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1488 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1489 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361490 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1491 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1492 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1493 kOmniboxMaxURLMatchesVariations,
1494 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201495 {"omnibox-most-visited-tiles-horizontal-render-group",
1496 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1497 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1498 flags_ui::kOsIos,
1499 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061500 {"metrickit-non-crash-reports",
1501 flag_descriptions::kMetrickitNonCrashReportName,
1502 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1503 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Nakul Vaidya13ca2042022-07-27 01:59:551504 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1505 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1506 flag_descriptions::
1507 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1508 flags_ui::kOsIos,
1509 FEATURE_VALUE_TYPE(
1510 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Gayane Petrosyan5960a172023-06-19 15:40:171511 {"default-browser-promo-trigger-criteria-experiment",
1512 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1513 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1514 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211515 FEATURE_VALUE_TYPE(
1516 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyancffeda12024-09-17 17:10:371517 {"blue-dot-on-tools-menu-button",
1518 flag_descriptions::kBlueDotOnToolsMenuButtonName,
1519 flag_descriptions::kBlueDotOnToolsMenuButtonDescription, flags_ui::kOsIos,
1520 FEATURE_VALUE_TYPE(kBlueDotOnToolsMenuButton)},
Ed Chin91e44992022-07-27 13:42:341521#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1522 {"feed-background-refresh-ios",
1523 flag_descriptions::kFeedBackgroundRefreshName,
1524 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1525 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1526 kFeedBackgroundRefreshVariations,
1527 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261528#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Petro Akzhygitov2e2322e2023-04-25 16:26:571529 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1530 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1531 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251532 {"iph-price-notifications-while-browsing",
1533 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1534 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1535 flags_ui::kOsIos,
1536 FEATURE_VALUE_TYPE(
1537 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391538 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1539 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1540 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481541 {"local-pdp-detection",
1542 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1543 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1544 flags_ui::kOsIos,
1545 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Gauthier Ambard8c9b7332024-10-24 16:24:041546 {"inactive-tabs", flag_descriptions::kInactiveTabsIPadName,
1547 flag_descriptions::kInactiveTabsIPadDescription, flags_ui::kOsIos,
1548 FEATURE_VALUE_TYPE(kInactiveTabsIPadFeature)},
Ali Juma57849c42023-02-21 22:53:431549 {"notification-settings-menu-item",
1550 flag_descriptions::kNotificationSettingsMenuItemName,
1551 flag_descriptions::kNotificationSettingsMenuItemDescription,
1552 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
kalettucefb09e402023-02-27 18:35:531553 {"web-feed-feedback-reroute",
1554 flag_descriptions::kWebFeedFeedbackRerouteName,
1555 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1556 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Tina Wangd3f6f192023-04-05 05:22:431557 {"enable-follow-IPH-exp-params",
1558 flag_descriptions::kEnableFollowIPHExpParamsName,
1559 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1560 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251561 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1562 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1563 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Olivier ROBINa229d2132023-03-21 12:44:201564 {"ios-browser-edit-menu-metrics",
1565 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1566 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1567 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551568 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1569 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1570 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1571 kIOSDockingPromoVariations,
1572 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241573 {"omnibox-grouping-framework-non-zps",
1574 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1575 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1576 flags_ui::kOsIos,
1577 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Robbie Gibson0ea280602023-04-12 01:02:391578 {"only-access-clipboard-async",
1579 flag_descriptions::kOnlyAccessClipboardAsyncName,
1580 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1581 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Olivier ROBIN2613bcd02023-04-20 10:00:471582 {"ios-edit-menu-hide-search-web",
1583 flag_descriptions::kIOSEditMenuHideSearchWebName,
1584 flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos,
1585 FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)},
Stephen McGruer9afca1a2023-05-18 20:55:171586 {"autofill-enable-card-art-image",
1587 flag_descriptions::kAutofillEnableCardArtImageName,
1588 flag_descriptions::kAutofillEnableCardArtImageDescription,
1589 flags_ui::kOsIos,
1590 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)},
Tina Wangcda2c902023-05-25 17:39:451591 {"enable-signed-out-view-demotion",
1592 flag_descriptions::kEnableSignedOutViewDemotionName,
1593 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1594 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stepan Khapugin72c74292024-06-19 16:48:331595 {"spotlight-never-retain-index",
1596 flag_descriptions::kSpotlightNeverRetainIndexName,
1597 flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos,
1598 FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)},
Huiting Yubc1bf4d2023-06-26 18:15:321599 {"ios-iph-for-safari-switcher",
1600 flag_descriptions::kIPHForSafariSwitcherName,
1601 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1602 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071603 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1604 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1605 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011606 {"tab-resumption", flag_descriptions::kTabResumptionName,
1607 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001608 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1609 kTabResumptionVariations,
1610 "TabResumption")},
Christian Xu07d600192023-07-24 12:29:521611 {"bottom-omnibox-default-setting",
1612 flag_descriptions::kBottomOmniboxDefaultSettingName,
1613 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1614 flags_ui::kOsIos,
1615 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1616 kBottomOmniboxDefaultSettingVariations,
1617 "BottomOmniboxDefaultSetting")},
Joemer Ramos46ca6f52024-09-27 18:12:291618 {"enable-async-real-time-check",
1619 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckName,
1620 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckDescription,
1621 flags_ui::kOsIos,
1622 FEATURE_VALUE_TYPE(safe_browsing::kSafeBrowsingAsyncRealTimeCheck)},
Quentin Pubert476786e82023-08-16 12:45:281623 {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName,
1624 flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos,
1625 FEATURE_VALUE_TYPE(kIOSSaveToPhotos)},
Elmehdi Rahmaouif5b76462024-06-24 10:44:461626 {"enable-save-to-photos-improvements",
1627 flag_descriptions::kIOSSaveToPhotosImprovementsName,
1628 flag_descriptions::kIOSSaveToPhotosImprovementsDescription,
1629 flags_ui::kOsIos,
1630 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements,
1631 kSaveToPhotosImprovementsVariations,
1632 "IOSSaveToPhotosImprovements")},
Jérôme Lebelcc9523e2024-10-08 13:34:011633 {"enable-identity-in-auth-error",
1634 flag_descriptions::kEnableIdentityInAuthErrorName,
1635 flag_descriptions::kEnableIdentityInAuthErrorDescription, flags_ui::kOsIos,
1636 FEATURE_VALUE_TYPE(switches::kEnableIdentityInAuthError)},
Mihai Sardarescucca83442024-10-16 12:19:131637 {"enable-asweb-authentication-session",
1638 flag_descriptions::kEnableASWebAuthenticationSessionName,
1639 flag_descriptions::kEnableASWebAuthenticationSessionDescription,
1640 flags_ui::kOsIos,
1641 FEATURE_VALUE_TYPE(switches::kEnableASWebAuthenticationSession)},
Christian Xu90e952f2023-09-13 09:05:281642 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1643 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1644 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Rubin Deliallisi072bc842023-10-19 12:00:411645 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1646 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1647 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Quentin Pubertf2d75c32023-10-25 12:17:451648 {"enable-save-to-drive", flag_descriptions::kIOSSaveToDriveName,
1649 flag_descriptions::kIOSSaveToDriveDescription, flags_ui::kOsIos,
1650 FEATURE_VALUE_TYPE(kIOSSaveToDrive)},
Aliona DANGLA5971a8b2023-11-10 11:55:351651 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1652 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1653 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Gauthier Ambard8cca29a2024-04-10 08:27:361654 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1655 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1656 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591657 {"autofill-enable-dynamically-loading-fields-on-input",
1658 flag_descriptions::
1659 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1660 flag_descriptions::
1661 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1662 flags_ui::kOsIos,
1663 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
aliaaborhamy00f89df2023-12-21 14:55:031664 {"share-in-web-context-menu-ios",
1665 flag_descriptions::kShareInWebContextMenuIOSName,
1666 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1667 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Marc Treib1f6c5db992024-01-04 20:25:141668 {"migrate-syncing-user-to-signed-in",
1669 flag_descriptions::kMigrateSyncingUserToSignedInName,
1670 flag_descriptions::kMigrateSyncingUserToSignedInDescription,
1671 flags_ui::kOsIos,
1672 FEATURE_VALUE_TYPE(switches::kMigrateSyncingUserToSignedIn)},
1673 {"undo-migration-of-syncing-user-to-signed-in",
1674 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInName,
1675 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInDescription,
1676 flags_ui::kOsIos,
1677 FEATURE_VALUE_TYPE(switches::kUndoMigrationOfSyncingUserToSignedIn)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551678 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1679 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1680 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461681 {"contextual-panel", flag_descriptions::kContextualPanelName,
1682 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
Nicolas MacBethc738c4e2024-07-19 21:14:191683 FEATURE_WITH_PARAMS_VALUE_TYPE(kContextualPanel,
1684 kContextualPanelEntrypointArmVariations,
1685 "ContextualPanel")},
Nicolas MacBeth47d6b622024-01-16 17:05:391686 {"contextual-panel-force-show-entrypoint",
1687 flag_descriptions::kContextualPanelForceShowEntrypointName,
1688 flag_descriptions::kContextualPanelForceShowEntrypointDescription,
1689 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContextualPanelForceShowEntrypoint)},
adamtad0e8cfc2024-01-16 18:43:471690 {"enable-ipad-feed-ghost-cards",
1691 flag_descriptions::kEnableiPadFeedGhostCardsName,
1692 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1693 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Christian Xu11df0ae2024-02-08 16:07:511694 {"omnibox-rich-autocompletion",
1695 flag_descriptions::kOmniboxRichAutocompletionName,
1696 flag_descriptions::kOmniboxRichAutocompletionDescription, flags_ui::kOsIos,
Christian Xu10b84d72024-04-09 17:12:331697 FEATURE_WITH_PARAMS_VALUE_TYPE(
1698 omnibox::kRichAutocompletion,
1699 kRichAutocompletionImplementationVariations,
1700 "RichAutocompletionImplementationVariations")},
Jason Hud445445f2024-02-02 18:28:121701 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1702 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1703 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Charles Yang30c90b92024-03-08 18:00:591704 {"omnibox-color-icons", flag_descriptions::kOmniboxColorIconsName,
1705 flag_descriptions::kOmniboxColorIconsDescription, flags_ui::kOsIos,
1706 FEATURE_VALUE_TYPE(kOmniboxColorIcons)},
Charles Yang682634b2024-03-19 01:46:091707 {"enable-color-lens-and-voice-icons-in-home-screen-widget",
1708 flag_descriptions::kEnableColorLensAndVoiceIconsInHomeScreenWidgetName,
1709 flag_descriptions::
1710 kEnableColorLensAndVoiceIconsInHomeScreenWidgetDescription,
1711 flags_ui::kOsIos,
1712 FEATURE_VALUE_TYPE(kEnableColorLensAndVoiceIconsInHomeScreenWidget)},
Alexander Tekleeebe42b92024-02-23 21:27:151713 {"autofill-enable-card-benefits-for-american-express",
1714 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1715 flag_descriptions::
1716 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1717 flags_ui::kOsIos,
1718 FEATURE_VALUE_TYPE(
1719 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
1720 {"autofill-enable-card-benefits-for-capital-one",
1721 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneName,
1722 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneDescription,
1723 flags_ui::kOsIos,
1724 FEATURE_VALUE_TYPE(
1725 autofill::features::kAutofillEnableCardBenefitsForCapitalOne)},
Yishui Liub88a38c2024-02-28 08:46:551726 {"autofill-enable-card-benefits-sync",
1727 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1728 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1729 flags_ui::kOsIos,
1730 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421731 {"linked-services-setting-ios",
1732 flag_descriptions::kLinkedServicesSettingIosName,
1733 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1734 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
hvs7c6cb402024-03-27 02:39:001735 {"autofill-enable-prefetching-risk-data-for-retrieval",
1736 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561737 flag_descriptions::
1738 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001739 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561740 FEATURE_VALUE_TYPE(
1741 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1742 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1743 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1744 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391745 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1746 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1747 FEATURE_VALUE_TYPE(
1748 page_content_annotations::features::kPageContentAnnotations)},
1749 {"page-content-annotations-persist-salient-image-metadata",
1750 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1751 flag_descriptions::
1752 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1753 flags_ui::kOsIos,
1754 FEATURE_VALUE_TYPE(
1755 page_content_annotations::features::
1756 kPageContentAnnotationsPersistSalientImageMetadata)},
1757 {"page-content-annotations-remote-page-metadata",
1758 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1759 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1760 flags_ui::kOsIos,
1761 FEATURE_VALUE_TYPE(
1762 page_content_annotations::features::kRemotePageMetadata)},
1763 {"page-visibility-page-content-annotations",
1764 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1765 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1766 flags_ui::kOsIos,
1767 FEATURE_VALUE_TYPE(page_content_annotations::features::
1768 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121769 {"enhanced-safe-browsing-promo",
1770 flag_descriptions::kEnhancedSafeBrowsingPromoName,
1771 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:021772 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Sebsgfcd5b0b2024-04-09 08:18:321773 {"cpe-performance-improvements",
1774 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
1775 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
1776 flags_ui::kOsIos,
1777 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Vincent Boissellea1f27f322024-04-17 14:53:191778 {"password-manager-detect-username-in-uff",
1779 flag_descriptions::kIOSDetectUsernameInUffName,
vincbb01c53ed2024-08-22 13:09:561780 flag_descriptions::kIOSDetectUsernameInUffDescription, flags_ui::kOsIos,
Vincent Boissellea1f27f322024-04-17 14:53:191781 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Jérôme Lebel993c7e3d2024-07-08 14:05:351782 {"identity-disc-account-menu",
1783 flag_descriptions::kIdentityDiscAccountMenuName,
1784 flag_descriptions::kIdentityDiscAccountMenuDescription, flags_ui::kOsIos,
1785 FEATURE_VALUE_TYPE(kIdentityDiscAccountMenu)},
Jood Hajeer3867886d2024-07-29 16:15:351786 {"identity-confirmation-snackbar",
1787 flag_descriptions::kIdentityConfirmationSnackbarName,
1788 flag_descriptions::kIdentityConfirmationSnackbarDescription,
1789 flags_ui::kOsIos,
1790 FEATURE_WITH_PARAMS_VALUE_TYPE(
1791 kIdentityConfirmationSnackbar,
1792 kIdentityConfirmationSnackbarTestingVariations,
1793 "IdentityConfirmationSnackbar")},
Filipa Senrabe00cbe2024-04-19 14:21:331794 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
1795 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
1796 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:001797 {"autofill-enable-verve-card-support",
1798 flag_descriptions::kAutofillEnableVerveCardSupportName,
1799 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
1800 flags_ui::kOsIos,
1801 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ameur Hosni20b75fe52024-04-24 16:36:021802 {"omnibox-actions-in-suggest",
1803 flag_descriptions::kOmniboxActionsInSuggestName,
1804 flag_descriptions::kOmniboxActionsInSuggestDescription, flags_ui::kOsIos,
1805 FEATURE_VALUE_TYPE(kOmniboxActionsInSuggest)},
Ewann Pelle34939b62024-08-22 10:45:491806 {"tab-group-sync", flag_descriptions::kTabGroupSyncName,
1807 flag_descriptions::kTabGroupSyncDescription, flags_ui::kOsIos,
Louis Romero5a84afc2024-04-25 10:29:201808 FEATURE_VALUE_TYPE(kTabGroupSync)},
Kavita Sonic8eaa982024-05-16 17:09:111809 {"autofill-enable-save-card-loading-and-confirmation",
1810 flag_descriptions::kAutofillEnableSaveCardLoadingAndConfirmationName,
1811 flag_descriptions::
1812 kAutofillEnableSaveCardLoadingAndConfirmationDescription,
1813 flags_ui::kOsIos,
1814 FEATURE_VALUE_TYPE(
1815 autofill::features::kAutofillEnableSaveCardLoadingAndConfirmation)},
1816 {"autofill-enable-save-card-local-save-fallback",
1817 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackName,
1818 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackDescription,
1819 flags_ui::kOsIos,
1820 FEATURE_VALUE_TYPE(
1821 autofill::features::kAutofillEnableSaveCardLocalSaveFallback)},
1822 {"autofill-enable-vcn-enroll-loading-and-confirmation",
1823 flag_descriptions::kAutofillEnableVcnEnrollLoadingAndConfirmationName,
1824 flag_descriptions::
1825 kAutofillEnableVcnEnrollLoadingAndConfirmationDescription,
1826 flags_ui::kOsIos,
1827 FEATURE_VALUE_TYPE(
1828 autofill::features::kAutofillEnableVcnEnrollLoadingAndConfirmation)},
Ameur Hosni3d764c92024-05-28 14:11:121829 {"omnibox-suggestion-answer-migration",
1830 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
1831 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
1832 flags_ui::kOsIos,
1833 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:301834 kOmniboxSuggestionAnswerMigration)},
1835 {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name,
1836 flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos,
Olivier Robinf8374f12024-06-05 19:00:041837 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5,
1838 kTabResumption15Variations,
1839 "TabResumption1_5")},
Hira Mahmood6e2a894e2024-05-31 15:18:191840 {"send-tab-ios-push-notifications",
1841 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
1842 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
1843 flags_ui::kOsIos,
Hira Mahmood00c17e52024-10-09 14:30:481844 FEATURE_WITH_PARAMS_VALUE_TYPE(
1845 send_tab_to_self::kSendTabToSelfIOSPushNotifications,
1846 kSendTabIOSPushNotificationsVariations,
1847 "SendTabToSelfIOSPushNotifications")},
Olivier Robin08bc56d02024-06-05 14:05:181848 {"tab-resumption-2", flag_descriptions::kTabResumption2Name,
1849 flag_descriptions::kTabResumption2Description, flags_ui::kOsIos,
Olivier ROBINb17c14b92024-10-09 13:49:131850 FEATURE_VALUE_TYPE(kTabResumption2)},
Olivier ROBINcb76f4fe2024-06-05 16:11:421851 {"page-image-service-optimization-guide-salient-images",
1852 flag_descriptions::kPageImageServiceSalientImageName,
1853 flag_descriptions::kPageImageServiceSalientImageDescription,
1854 flags_ui::kOsIos,
1855 FEATURE_WITH_PARAMS_VALUE_TYPE(
1856 page_image_service::kImageServiceOptimizationGuideSalientImages,
1857 kImageServiceOptimizationGuideSalientImagesVariations,
1858 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:221859 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
1860 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
1861 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Charles Yangf8e7adf2024-06-11 00:17:001862 {"lens-filters-ablation-mode-enabled",
1863 flag_descriptions::kLensFiltersAblationModeEnabledName,
1864 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
1865 flags_ui::kOsIos,
1866 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
1867 kLensFiltersAblationModeVariations,
1868 "LensFiltersAblationMode")},
1869 {"lens-translate-toogle-mode-enabled",
1870 flag_descriptions::kLensTranslateToggleModeEnabledName,
1871 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
1872 flags_ui::kOsIos,
1873 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
1874 kLensTranslateToggleModeVariations,
1875 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:591876 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
1877 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
1878 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:491879 {"omnibox-ml-log-url-scoring-signals",
1880 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
1881 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
1882 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
1883 {"omnibox-ml-url-piecewise-mapped-search-blending",
1884 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
1885 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
1886 flags_ui::kOsIos,
1887 FEATURE_WITH_PARAMS_VALUE_TYPE(
1888 omnibox::kMlUrlPiecewiseMappedSearchBlending,
1889 kMlUrlPiecewiseMappedSearchBlendingVariations,
1890 "MlUrlPiecewiseMappedSearchBlending")},
1891 {"omnibox-ml-url-score-caching",
1892 flag_descriptions::kOmniboxMlUrlScoreCachingName,
1893 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
1894 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
1895 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
1896 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
1897 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
1898 kOmniboxMlUrlScoringVariations,
1899 "MlUrlScoring")},
1900 {"omnibox-ml-url-search-blending",
1901 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
1902 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
1903 flags_ui::kOsIos,
1904 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
1905 kMlUrlSearchBlendingVariations,
1906 "MlUrlScoring")},
1907 {"omnibox-ml-url-scoring-model",
1908 flag_descriptions::kOmniboxMlUrlScoringModelName,
1909 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
Khalid Peer4501c1f2024-06-27 16:12:041910 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel,
1911 kUrlScoringModelVariations,
1912 "MlUrlScoring")},
Siyu An4a486f02024-06-18 19:41:281913 {"autofill-show-manual-fill-for-virtual-cards",
1914 flag_descriptions::kAutofillShowManualFillForVirtualCardsName,
1915 flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription,
1916 flags_ui::kOsIos,
1917 FEATURE_VALUE_TYPE(
1918 autofill::features::kAutofillShowManualFillForVirtualCards)},
adamtaf85e48d2024-07-08 17:13:291919 {"home-customization", flag_descriptions::kHomeCustomizationName,
1920 flag_descriptions::kHomeCustomizationDescription, flags_ui::kOsIos,
1921 FEATURE_VALUE_TYPE(kHomeCustomization)},
Benjamin Williams0594caf2024-07-09 17:51:381922 {"safety-check-notifications",
1923 flag_descriptions::kSafetyCheckNotificationsName,
1924 flag_descriptions::kSafetyCheckNotificationsDescription, flags_ui::kOsIos,
1925 FEATURE_WITH_PARAMS_VALUE_TYPE(kSafetyCheckNotifications,
1926 kSafetyCheckNotificationsVariations,
1927 "SafetyCheckNotifications")},
Federica Germinarioa1fe0902024-07-12 08:28:461928 {"app-background-refresh-ios", flag_descriptions::kAppBackgroundRefreshName,
1929 flag_descriptions::kAppBackgroundRefreshDescription, flags_ui::kOsIos,
1930 FEATURE_VALUE_TYPE(kEnableAppBackgroundRefresh)},
Chris Lu3eba26312024-07-12 20:21:381931 {"home-memory-improvements", flag_descriptions::kHomeMemoryImprovementsName,
1932 flag_descriptions::kHomeMemoryImprovementsDescription, flags_ui::kOsIos,
1933 FEATURE_VALUE_TYPE(kHomeMemoryImprovements)},
Stephen McGruer8fe98b62024-07-16 13:10:131934 {"autofill-upload-card-request-timeout",
1935 flag_descriptions::kAutofillUploadCardRequestTimeoutName,
1936 flag_descriptions::kAutofillUploadCardRequestTimeoutDescription,
1937 flags_ui::kOsIos,
1938 FEATURE_WITH_PARAMS_VALUE_TYPE(
1939 autofill::features::kAutofillUploadCardRequestTimeout,
1940 kAutofillUploadCardRequestTimeoutOptions,
1941 "AutofillUploadCardRequestTimeout")},
Karol Sygiet6ac82c82024-07-16 14:22:391942 {"clear-undecryptable-passwords",
1943 flag_descriptions::kClearUndecryptablePasswordsName,
1944 flag_descriptions::kClearUndecryptablePasswordsDescription,
1945 flags_ui::kOsIos,
1946 FEATURE_VALUE_TYPE(
1947 password_manager::features::kClearUndecryptablePasswords)},
Stephen McGruer0904cae2024-07-17 19:54:461948 {"autofill-vcn-enroll-request-timeout",
1949 flag_descriptions::kAutofillVcnEnrollRequestTimeoutName,
1950 flag_descriptions::kAutofillVcnEnrollRequestTimeoutDescription,
1951 flags_ui::kOsIos,
1952 FEATURE_WITH_PARAMS_VALUE_TYPE(
1953 autofill::features::kAutofillVcnEnrollRequestTimeout,
1954 kAutofillVcnEnrollRequestTimeoutOptions,
1955 "AutofillVcnEnrollRequestTimeout")},
Charles Yang98bef0c2024-07-19 12:24:141956 {"lens-web-page-load-optimization-enabled",
1957 flag_descriptions::kLensWebPageLoadOptimizationEnabledName,
1958 flag_descriptions::kLensWebPageLoadOptimizationEnabledDescription,
1959 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageLoadOptimizationEnabled)},
Eric Ekey4a930592024-07-19 18:58:141960 {"segmented-default-browser-promo",
1961 flag_descriptions::kSegmentedDefaultBrowserPromoName,
1962 flag_descriptions::kSegmentedDefaultBrowserPromoDescription,
Briana McClurec2b62f92024-10-29 15:35:061963 flags_ui::kOsIos,
1964 FEATURE_WITH_PARAMS_VALUE_TYPE(kSegmentedDefaultBrowserPromo,
1965 kSegmentedDefaultBrowserPromoVariations,
1966 "SegmentedDBP-Animation")},
Nicolas MacBethc738c4e2024-07-19 21:14:191967 {"rich-bubble-without-image",
1968 flag_descriptions::kRichBubbleWithoutImageName,
1969 flag_descriptions::kRichBubbleWithoutImageDescription, flags_ui::kOsIos,
1970 FEATURE_VALUE_TYPE(kRichBubbleWithoutImage)},
Junhui He52294652024-07-23 23:50:151971 {"autofill-unmask-card-request-timeout",
1972 flag_descriptions::kAutofillUnmaskCardRequestTimeoutName,
1973 flag_descriptions::kAutofillUnmaskCardRequestTimeoutDescription,
1974 flags_ui::kOsIos,
1975 FEATURE_VALUE_TYPE(autofill::features::kAutofillUnmaskCardRequestTimeout)},
vincbe1379832024-08-06 19:08:121976 {"autofill-across-iframes", flag_descriptions::kAutofillAcrossIframesName,
1977 flag_descriptions::kAutofillAcrossIframesDescription, flags_ui::kOsIos,
1978 FEATURE_VALUE_TYPE(autofill::features::kAutofillAcrossIframesIos)},
Cristian Ciacu62fe1912024-08-07 10:14:501979 {"ios-page-info-last-visited",
1980 flag_descriptions::kPageInfoLastVisitedIOSName,
1981 flag_descriptions::kPageInfoLastVisitedIOSDescription, flags_ui::kOsIos,
1982 FEATURE_VALUE_TYPE(kPageInfoLastVisitedIOS)},
Daniel White1ced9e62024-08-15 19:27:381983 {"enable-trait-collection-registration",
1984 flag_descriptions::kEnableTraitCollectionRegistrationName,
1985 flag_descriptions::kEnableTraitCollectionRegistrationDescription,
1986 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableTraitCollectionRegistration)},
Ernesto Izquierdo Cluaebe0a0252024-08-19 22:05:541987 {"autofill-isolated-world-ios",
1988 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSName,
1989 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSDescription,
1990 flags_ui::kOsIos,
1991 FEATURE_VALUE_TYPE(kAutofillIsolatedWorldForJavascriptIos)},
Ewann Pelle34939b62024-08-22 10:45:491992 {"tab-group-indicator", flag_descriptions::kTabGroupIndicatorName,
1993 flag_descriptions::kTabGroupIndicatorDescription, flags_ui::kOsIos,
1994 FEATURE_VALUE_TYPE(kTabGroupIndicator)},
thefrog8ed47452024-08-30 13:32:481995 {"safe-browsing-local-lists-use-sbv5",
1996 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Name,
1997 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Description,
1998 flags_ui::kOsIos, FEATURE_VALUE_TYPE(safe_browsing::kLocalListsUseSBv5)},
Chris Lu4c688e02024-09-07 00:48:081999 {"ios-price-tracking-notification-promo-card",
2000 flag_descriptions::kPriceTrackingPromoName,
2001 flag_descriptions::kPriceTrackingPromoDescription, flags_ui::kOsIos,
2002 FEATURE_VALUE_TYPE(commerce::kPriceTrackingPromo)},
2003 {"ios-segmentation-ephemeral-card-ranker",
2004 flag_descriptions::kSegmentationPlatformEphemeralCardRankerName,
2005 flag_descriptions::kSegmentationPlatformEphemeralCardRankerDescription,
2006 flags_ui::kOsIos,
2007 FEATURE_WITH_PARAMS_VALUE_TYPE(
2008 segmentation_platform::features::
2009 kSegmentationPlatformEphemeralCardRanker,
2010 kEphemeralCardRankerCardOverrideOptions,
2011 "SegmentationPlatformEphemeralCardRanker")},
Asami Doi55f87dd2024-09-12 12:55:482012 {"new-sync-opt-in-illustration",
2013 flag_descriptions::kNewSyncOptInIllustrationName,
2014 flag_descriptions::kNewSyncOptInIllustrationDescription, flags_ui::kOsIos,
2015 FEATURE_VALUE_TYPE(kNewSyncOptInIllustration)},
Alexander Tekle8cf3c8e2024-09-13 21:38:072016 {"autofill-enable-log-form-events-to-all-parsed-form-types",
2017 flag_descriptions::kAutofillEnableLogFormEventsToAllParsedFormTypesName,
2018 flag_descriptions::
2019 kAutofillEnableLogFormEventsToAllParsedFormTypesDescription,
2020 flags_ui::kOsIos,
2021 FEATURE_VALUE_TYPE(
2022 autofill::features::kAutofillEnableLogFormEventsToAllParsedFormTypes)},
Radu Nitescu06133382024-10-21 18:33:292023 {"lens-overlay-enable-ipad-compatibility",
2024 flag_descriptions::kLensOverlayEnableIPadCompatibilityName,
2025 flag_descriptions::kLensOverlayEnableIPadCompatibilityDescription,
2026 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableIPadCompatibility)},
Ameur Hosni22b62d92024-09-25 10:51:022027 {"lens-overlay-force-show-onboarding-screen",
2028 flag_descriptions::kLensOverlayForceShowOnboardingScreenName,
2029 flag_descriptions::kLensOverlayForceShowOnboardingScreenDescription,
2030 flags_ui::kOsIos,
2031 FEATURE_VALUE_TYPE(kLensOverlayForceShowOnboardingScreen)},
Gauthier Ambard766f4cf2024-09-26 16:56:252032 {"data-sharing", flag_descriptions::kDataSharingName,
2033 flag_descriptions::kDataSharingDescription, flags_ui::kOsIos,
2034 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingFeature)},
2035 {"data-sharing-join-only", flag_descriptions::kDataSharingJoinOnlyName,
2036 flag_descriptions::kDataSharingJoinOnlyDescription, flags_ui::kOsIos,
2037 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingJoinOnly)},
Rubin Deliallisib66a77a2024-10-02 18:09:482038 {"ios-soft-lock", flag_descriptions::kIOSSoftLockName,
2039 flag_descriptions::kIOSSoftLockDescription, flags_ui::kOsIos,
Rubin Deliallisi1d0b3ba2024-11-04 14:33:042040 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSoftLock,
2041 kIOSSoftLockVariations,
2042 "IOSSoftLock")},
Marc Treib31e4f9f2024-10-07 09:55:542043 {"separate-profiles-for-managed-accounts",
2044 flag_descriptions::kSeparateProfilesForManagedAccountsName,
2045 flag_descriptions::kSeparateProfilesForManagedAccountsDescription,
Olivier ROBINb17c14b92024-10-09 13:49:132046 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSeparateProfilesForManagedAccounts)},
2047 {"tab-resumption-2-reason", flag_descriptions::kTabResumption2ReasonName,
2048 flag_descriptions::kTabResumption2ReasonDescription, flags_ui::kOsIos,
2049 FEATURE_VALUE_TYPE(kTabResumption2Reason)},
2050 {"tab-resumption-images", flag_descriptions::kTabResumptionImagesName,
2051 flag_descriptions::kTabResumptionImagesDescription, flags_ui::kOsIos,
2052 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumptionImages,
2053 kTabResumptionImagesVariations,
2054 "TabResumption1_5")},
Benjamin Williamsd7f854b2024-10-09 17:12:272055 {"segmentation-platform-tips-ephemeral-card",
2056 flag_descriptions::kSegmentationPlatformTipsEphemeralCardName,
2057 flag_descriptions::kSegmentationPlatformTipsEphemeralCardDescription,
2058 flags_ui::kOsIos,
2059 FEATURE_VALUE_TYPE(segmentation_platform::features::
vincbf23f7332024-10-11 19:32:122060 kSegmentationPlatformTipsEphemeralCard)},
2061 {"ios-password-suggestion-bottom-sheet-v2",
2062 flag_descriptions::kPasswordSuggestionBottomSheetV2Name,
2063 flag_descriptions::kPasswordSuggestionBottomSheetV2Description,
2064 flags_ui::kOsIos,
Federica Germinariof58b5a7e2024-10-22 10:35:422065 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheetV2)},
2066 {"ios-post-profile-switch-actions",
2067 flag_descriptions::kPostProfileSwitchActionsName,
2068 flag_descriptions::kPostProfileSwitchActionsDescription, flags_ui::kOsIos,
2069 FEATURE_VALUE_TYPE(kPostProfileSwitchActions)},
Charles Yang11dd8ab2024-10-24 19:15:532070 {"lens-unary-apis-with-http-transport-enabled",
2071 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledName,
2072 flag_descriptions::kLensUnaryApisWithHttpTransportEnabledDescription,
2073 flags_ui::kOsIos,
2074 FEATURE_VALUE_TYPE(kLensUnaryApisWithHttpTransportEnabled)},
Christian Xu6db322d2024-10-25 14:12:492075 {"lens-overlay-enable-same-tab-navigation",
2076 flag_descriptions::kLensOverlayEnableSameTabNavigationName,
2077 flag_descriptions::kLensOverlayEnableSameTabNavigationDescription,
2078 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayEnableSameTabNavigation)},
Elmehdi Rahmaoui3c6e8012024-10-28 10:17:532079 {"ios-chrome-startup-parameters-async",
2080 flag_descriptions::kChromeStartupParametersAsyncName,
2081 flag_descriptions::kChromeStartupParametersAsyncDescription,
2082 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kChromeStartupParametersAsync)},
Christian Xua8459472024-10-31 13:39:082083 {"lens-overlay-enable-location-bar-entrypoint",
2084 flag_descriptions::kLensOverlayEnableLocationBarEntrypointName,
2085 flag_descriptions::kLensOverlayEnableLocationBarEntrypointDescription,
2086 flags_ui::kOsIos,
2087 FEATURE_VALUE_TYPE(kLensOverlayEnableLocationBarEntrypoint)},
Christian Xudddf1e012024-10-31 18:34:012088 {"lens-overlay-disable-price-insights",
2089 flag_descriptions::kLensOverlayDisablePriceInsightsName,
2090 flag_descriptions::kLensOverlayDisablePriceInsightsDescription,
2091 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensOverlayDisablePriceInsights)},
Chris Lu9fd38c62024-11-04 22:22:592092 {"ios-provisional-notification-alert",
2093 flag_descriptions::kProvisionalNotificationAlertName,
2094 flag_descriptions::kProvisionalNotificationAlertDescription,
2095 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kProvisionalNotificationAlert)},
Federica Germinariof58b5a7e2024-10-22 10:35:422096};
sdefresne14900ee2015-11-27 14:43:212097
Rohit Raobed794c2020-04-27 15:27:452098bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
2099 return false;
2100}
2101
2102flags_ui::FlagsState& GetGlobalFlagsState() {
2103 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
2104 nullptr);
2105 return *flags_state;
2106}
David Jean5ca263c2021-08-18 09:19:302107// Creates the experimental test policies map, used by AsyncPolicyLoader and
2108// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342109NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:212110 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2111
Guillaume Jenkins25e9bd72020-08-27 17:39:062112 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:552113 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:062114 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:552115
Guillaume Jenkins25e9bd72020-08-27 17:39:062116 // Set some sample policy values for testing if EnableSamplePolicies is set to
2117 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:402118 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:552119 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:012120 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
2121
Guillaume Jenkinseeb7007c2020-06-25 22:55:402122 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
2123
2124 // 2 = Disable all variations
2125 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
2126
2127 // 2 = Do not allow any site to show popups
2128 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
2129
Tina Wang5abee802020-07-29 23:09:522130 // Set default search engine.
2131 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
2132 @YES,
2133 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
2134 @"http://www.google.com/search?q={searchTerms}",
2135 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:022136 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:522137
Tina Wang89068c82020-10-29 15:51:502138 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
2139
Gauthier Ambard21b23702021-04-16 16:11:272140 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
2141
Tina Wang59d0b7e2020-08-11 04:41:012142 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:532143
2144 // 2 = Enhanced safe browsing protection
2145 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
2146
2147 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:292148
2149 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:552150 }];
2151 }
2152
Ewann227a3c02021-04-19 12:04:542153 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:042154 NSString* sync_policy_key =
2155 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:302156 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:542157 }
Ewann227a3c02021-04-19 12:04:542158
Ewann570a6302021-08-17 07:22:422159 // SyncTypesListDisabled policy.
2160 NSString* Sync_types_list_disabled_key =
2161 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
2162 NSMutableArray* Sync_types_list_disabled_values =
2163 [[NSMutableArray alloc] init];
2164 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
2165 [Sync_types_list_disabled_values addObject:@"bookmarks"];
2166 }
2167 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
2168 [Sync_types_list_disabled_values addObject:@"readingList"];
2169 }
2170 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
2171 [Sync_types_list_disabled_values addObject:@"preferences"];
2172 }
2173 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
2174 [Sync_types_list_disabled_values addObject:@"passwords"];
2175 }
2176 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
2177 [Sync_types_list_disabled_values addObject:@"autofill"];
2178 }
2179 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
2180 [Sync_types_list_disabled_values addObject:@"typedUrls"];
2181 }
2182 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
2183 [Sync_types_list_disabled_values addObject:@"tabs"];
2184 }
2185 if ([Sync_types_list_disabled_values count]) {
2186 [testing_policies addEntriesFromDictionary:@{
2187 Sync_types_list_disabled_key : Sync_types_list_disabled_values
2188 }];
Ewann570a6302021-08-17 07:22:422189 }
2190
Gauthier Ambard073eaa92021-11-22 15:24:132191 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:522192 NSString* incognito_policy_key =
2193 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
2194 NSInteger incognito_mode_availability =
2195 [defaults integerForKey:incognito_policy_key];
2196 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:522197 [testing_policies addEntriesFromDictionary:@{
2198 incognito_policy_key : @(incognito_mode_availability),
2199 }];
2200 }
2201
Ewann40a8f8a2021-07-29 10:01:202202 NSString* restriction_pattern =
2203 [defaults stringForKey:@"RestrictAccountsToPatterns"];
2204 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:292205 NSString* restrict_key =
2206 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:202207 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:292208 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:202209 }];
2210 }
2211
Vincent Boisselle19200bc2021-09-01 17:58:252212 // If the sign-in policy is set (not "None"), add the policy key to the list
2213 // of enabled experimental policies, and set the value.
2214 NSString* const kSigninPolicyKey = @"BrowserSignin";
2215 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2216 if (signin_policy_mode) {
2217 // Remove the mode offset that was used to represent the unset policy.
2218 --signin_policy_mode;
2219 DCHECK(signin_policy_mode >= 0);
2220
Vincent Boisselle19200bc2021-09-01 17:58:252221 [testing_policies addEntriesFromDictionary:@{
2222 kSigninPolicyKey : @(signin_policy_mode),
2223 }];
2224 }
2225
Veronique Nguyen9b1044f2022-01-11 14:41:132226 // If the New Tab Page URL is set (not empty) add the value to the list of
2227 // test policies.
2228 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2229 if ([ntp_location length] > 0) {
2230 NSString* ntp_location_key =
2231 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2232 [testing_policies
2233 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572234 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132235 }
2236
Ali Juma9ec36d22022-03-28 14:53:122237 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2238 NSString* allow_backups_key =
2239 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2240 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2241 [allowed_experimental_policies addObject:allow_backups_key];
2242 }
2243
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242244 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2245 NSString* password_manager_key =
2246 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2247 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2248 [allowed_experimental_policies addObject:password_manager_key];
2249 }
Vincent Boisselle003569a72023-09-11 16:03:122250
2251 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2252 NSString* user_policy_merge_key =
2253 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2254 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2255 [allowed_experimental_policies addObject:user_policy_merge_key];
2256 }
2257
Arthur Milchiorbb44f5c82023-03-14 16:14:462258 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2259 NSString* managed_bookmarks_key =
2260 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2261 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572262 @"["
2263 // The following gets filtered out from
2264 // the JSON string when parsed.
2265 " {"
2266 " \"toplevel_name\": \"Managed Bookmarks\""
2267 " },"
2268 " {"
2269 " \"name\": \"Google\","
2270 " \"url\": \"google.com\""
2271 " },"
2272 " {"
2273 " \"name\": \"Empty Folder\","
2274 " \"children\": []"
2275 " },"
2276 " {"
2277 " \"name\": \"Big Folder\","
2278 " \"children\": ["
2279 " {"
2280 " \"name\": \"Youtube\","
2281 " \"url\": \"youtube.com\""
2282 " },"
2283 " {"
2284 " \"name\": \"Chromium\","
2285 " \"url\": \"chromium.org\""
2286 " },"
2287 " {"
2288 " \"name\": \"More Stuff\","
2289 " \"children\": ["
2290 " {"
2291 " \"name\": \"Bugs\","
2292 " \"url\": \"crbug.com\""
2293 " }"
2294 " ]"
2295 " }"
2296 " ]"
2297 " }"
2298 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462299 [testing_policies addEntriesFromDictionary:@{
2300 managed_bookmarks_key : managed_bookmarks_value
2301 }];
2302 [allowed_experimental_policies addObject:managed_bookmarks_key];
2303 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242304
Guillaume Jenkins25e9bd72020-08-27 17:39:062305 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2306 // policy.
2307 if ([allowed_experimental_policies count] > 0) {
2308 [testing_policies setValue:allowed_experimental_policies
2309 forKey:base::SysUTF8ToNSString(
2310 policy::key::kEnableExperimentalPolicies)];
2311 }
2312
jlebel2eb40222022-05-06 11:15:422313 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2314 switch ([defaults integerForKey:metrics_reporting_key]) {
2315 case 1:
2316 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132317 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422318 break;
2319 case 2:
2320 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132321 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422322 break;
2323 default:
2324 // Metrics reporting not managed.
2325 break;
2326 }
2327
David Jean6f85d44f2021-08-19 08:08:452328 // Warning: Add new flags to TestingPoliciesHash() below.
2329
David Jean5ca263c2021-08-18 09:19:302330 return testing_policies;
2331}
David Jean6f85d44f2021-08-19 08:08:452332
David Jean5ca263c2021-08-18 09:19:302333} // namespace
2334
Gauthier Ambard02dbf022022-08-23 08:28:472335// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302336void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2337 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2338
2339 // Set the UA flag if UseMobileSafariUA is enabled.
2340 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2341 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2342 // Chrome puts its product token.
2343 int32_t major = 0;
2344 int32_t minor = 0;
2345 int32_t bugfix = 0;
2346 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2347 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2348
2349 command_line->AppendSwitchASCII(switches::kUserAgent,
2350 web::BuildMobileUserAgent(product));
2351 }
2352
2353 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342354 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302355
2356 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2357 // Management to enabled and add the token to the list of policies.
2358 NSString* token_key =
2359 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2360 NSString* token = [defaults stringForKey:token_key];
2361
2362 if ([token length] > 0) {
2363 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2364 [testing_policies setValue:token forKey:token_key];
2365 }
2366
Guillaume Jenkins57606d72020-08-13 17:32:552367 // If some policies were set, commit them to the app's registration defaults.
2368 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402369 NSDictionary* registration_defaults =
2370 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2371 [defaults registerDefaults:registration_defaults];
2372 }
2373
sdefresne14900ee2015-11-27 14:43:212374 // Freeform commandline flags. These are added last, so that any flags added
2375 // earlier in this function take precedence.
2376 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2377 base::CommandLine::StringVector flags;
2378 // Append an empty "program" argument.
2379 flags.push_back("");
2380
2381 // The number of flags corresponds to the number of text fields in
2382 // Experimental.plist.
2383 const int kNumFreeformFlags = 5;
2384 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2385 NSString* key =
2386 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2387 NSString* flag = [defaults stringForKey:key];
2388 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332389 // iOS keyboard replaces -- with —, so undo that.
2390 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2391 withString:@"--"
2392 options:0
2393 range:NSMakeRange(0, 1)];
2394 // To make things easier, allow flags with no dashes by prepending them
2395 // here. This also allows for flags that just have one dash if they
2396 // exist.
2397 if (![flag hasPrefix:@"-"]) {
2398 flag = [@"--" stringByAppendingString:flag];
2399 }
sdefresne14900ee2015-11-27 14:43:212400 flags.push_back(base::SysNSStringToUTF8(flag));
2401 }
2402 }
2403
2404 base::CommandLine temp_command_line(flags);
2405 command_line->AppendArguments(temp_command_line, false);
2406 }
msardafc76f662017-02-24 12:46:282407
justincohendacc85d2017-06-28 23:34:102408 // Populate command line flag for 3rd party keyboard omnibox workaround.
2409 NSString* enableThirdPartyKeyboardWorkaround =
2410 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2411 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2412 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2413 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2414 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2415 }
2416
Sylvain Defresned3cd8d92022-01-18 13:35:082417 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212418}
2419
sdefresne14900ee2015-11-27 14:43:212420void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2421 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182422 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112423 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532424 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212425}
2426
jkrcalbf073372016-07-29 07:21:312427std::vector<std::string> RegisterAllFeatureVariationParameters(
2428 flags_ui::FlagsStorage* flags_storage,
2429 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182430 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2431 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312432}
2433
sdefresne14900ee2015-11-27 14:43:212434void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2435 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502436 base::Value::List& supported_entries,
2437 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182438 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212439 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512440 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212441}
2442
2443void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2444 const std::string& internal_name,
2445 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182446 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2447 enable);
sdefresne14900ee2015-11-27 14:43:212448}
2449
2450void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182451 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212452}
2453
Nicolas MacBeth972e2592023-02-23 15:22:092454bool IsRestartNeededToCommitChanges() {
2455 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2456}
2457
sdefresne14900ee2015-11-27 14:43:212458namespace testing {
2459
Elly Fong-Jones323ab1092021-08-23 22:36:312460base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2461 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532462 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212463}
2464
2465} // namespace testing