blob: 27b27e2d338bc04bcdcf73c4213aca736cc6a034 [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"
Chris Lu6fd4eaf2023-08-08 18:29:3061#import "components/segmentation_platform/public/constants.h"
Chris Lub0bad572023-08-07 18:13:2962#import "components/segmentation_platform/public/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2563#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5764#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
65#import "components/signin/core/browser/account_reconcilor.h"
66#import "components/signin/ios/browser/features.h"
67#import "components/signin/public/base/signin_switches.h"
68#import "components/strings/grit/components_strings.h"
Nohemi Fernandez64acf982023-08-04 09:27:1569#import "components/supervised_user/core/common/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5770#import "components/sync/base/command_line_switches.h"
71#import "components/sync/base/features.h"
72#import "components/sync/base/pref_names.h"
73#import "components/translate/core/browser/translate_prefs.h"
74#import "components/translate/core/common/translate_util.h"
Ed Chin91e44992022-07-27 13:42:3475#import "ios/chrome/app/background_mode_buildflags.h"
Gauthier Ambard5b7f3c22023-09-13 12:03:3076#import "ios/chrome/browser/browsing_data/model/browsing_data_features.h"
Aman Vermab6f55572023-09-28 11:40:5377#import "ios/chrome/browser/crash_report/model/features.h"
Sebsgfcd5b0b2024-04-09 08:18:3278#import "ios/chrome/browser/credential_provider/model/features.h"
Aman Vermaf8a157f62023-10-03 15:32:1179#import "ios/chrome/browser/default_browser/model/utils.h"
Nan Lina498c412024-06-13 15:33:3280#import "ios/chrome/browser/download/ui_bundled/features.h"
mmrashadbc0ca942023-10-06 13:12:1481#import "ios/chrome/browser/find_in_page/model/util.h"
Gauthier Ambard92605132022-08-26 13:25:1782#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5783#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Vincent Boisselle8b321bb2023-11-28 13:58:3184#import "ios/chrome/browser/follow/model/follow_features.h"
Rubin Deliallisib66a77a2024-10-02 18:09:4885#import "ios/chrome/browser/incognito_reauth/ui_bundled/features.h"
Ali Jumad29dc1872023-10-19 13:33:5886#import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h"
Chris Lu09019af2024-08-28 08:38:4487#import "ios/chrome/browser/ntp/ui_bundled/new_tab_page_feature.h"
mmrashadd0c7f952023-12-14 13:36:3888#import "ios/chrome/browser/policy/model/policy_util.h"
Cheick Cisse85457f22024-05-23 22:37:5989#import "ios/chrome/browser/price_insights/model/price_insights_feature.h"
Stepan Khapugin5694d702024-01-31 13:23:0890#import "ios/chrome/browser/promos_manager/model/features.h"
mmrashadf158cad942023-10-03 09:15:4891#import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:4692#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:3593#import "ios/chrome/browser/shared/public/features/system_flags.h"
Tina Wang75f21e82024-07-01 18:00:3594#import "ios/chrome/browser/start_surface/ui_bundled/start_surface_features.h"
Robbie Gibson596fe292023-10-27 01:00:3695#import "ios/chrome/browser/tabs/model/inactive_tabs/features.h"
Ewann Pelled2eaeba2023-09-19 09:15:2896#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Charles Yang0bba5262024-05-14 17:46:4797#import "ios/chrome/browser/ui/lens/features.h"
Christian Xub8c06cd2022-04-29 20:55:0198#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Filipa Senra0bd07982023-12-19 10:56:2599#import "ios/chrome/browser/ui/page_info/features.h"
Robbie Gibson686c56732021-10-04 17:11:45100#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Filipa Senrabe00cbe2024-04-19 14:21:33101#import "ios/chrome/browser/ui/settings/clear_browsing_data/features.h"
Rubin Deliallisi4170b1c2024-02-28 16:15:42102#import "ios/chrome/browser/ui/settings/google_services/features.h"
Rubin Deliallisi072bc842023-10-19 12:00:41103#import "ios/chrome/browser/ui/settings/privacy/privacy_guide/features.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58104#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Weizhong Xia8b908bda2023-12-05 16:00:22105#import "ios/chrome/browser/web/model/features.h"
Gauthier Ambard999088c2022-09-13 08:36:57106#import "ios/chrome/grit/ios_strings.h"
107#import "ios/components/security_interstitials/https_only_mode/feature.h"
108#import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h"
109#import "ios/web/common/features.h"
110#import "ios/web/common/user_agent.h"
111#import "ios/web/common/web_view_creation_util.h"
sdefresne14900ee2015-11-27 14:43:21112
Sylvain Defresne9c107082020-10-27 16:39:13113#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
mmrashadf158cad942023-10-03 09:15:48114#import "ios/chrome/browser/screen_time/model/features.h"
Sylvain Defresne9c107082020-10-27 16:39:13115#endif
116
sdefresne14900ee2015-11-27 14:43:21117#if !defined(OFFICIAL_BUILD)
Gauthier Ambard999088c2022-09-13 08:36:57118#import "components/variations/variations_switches.h"
vitaliii489217aa2017-01-30 14:50:22119#endif
stkhapuginc1be1792016-12-13 14:30:53120
elawrence816f6790e2017-06-16 18:19:28121using flags_ui::FeatureEntry;
122
sdefresne14900ee2015-11-27 14:43:21123namespace {
Emily Starkbafa9062017-12-27 15:22:46124
Nohemi Fernandezc00842a2021-07-26 11:47:34125const FeatureEntry::Choice
126 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
127 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
128 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
129 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
130 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
131};
132
Filipa Senraa2074a12024-06-10 14:49:20133const FeatureEntry::Choice kRevampPageInfoiOSChoices[] = {
134 {"Default", "", ""},
135 {"Enabled", switches::kEnableFeatures,
136 "RevampPageInfoIos, PageInfoAboutThisSite"},
137 {"Disabled", switches::kDisableFeatures,
138 "RevampPageInfoIos, PageInfoAboutThisSite"},
139};
140
Stepan Khapugincc4e9842019-01-23 13:38:13141const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
142 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
143const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
144 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
145const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
146 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
147const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
148 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
149const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
150 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
151const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
152 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
153const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
154 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
155
156const FeatureEntry::FeatureVariation
157 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
158 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53159 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13160 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53161 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13162 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53163 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13164 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53165 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13166 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53167 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13168 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53169 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13170 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53171 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13172
Stepan Khapuginbac467e2022-05-06 21:11:54173const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
174 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
175const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
176 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
177const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
178 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
179
180const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
181 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
182 nullptr},
183 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
184 nullptr},
185 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
186 nullptr},
187};
188
Christian Xucf26d562022-07-06 09:28:36189const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
190 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
191const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
192 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
193const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
194 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
195
196const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
197 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
198 nullptr},
199 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
200 nullptr},
201 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
202 nullptr},
203};
204
Guillem Perez40086ef2023-11-20 20:03:52205const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = {
206 {kContentPushNotificationsExperimentType, "1"}};
207const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] =
208 {{kContentPushNotificationsExperimentType, "2"}};
Guillem Perez222b5b22024-01-20 02:16:27209const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] =
210 {{kContentPushNotificationsExperimentType, "3"}};
Tina Wangb7f5b3f2024-05-07 06:24:26211const FeatureEntry::FeatureParam
212 kContentPushNotificationsPromoRegistrationOnly[] = {
213 {kContentPushNotificationsExperimentType, "5"}};
214const FeatureEntry::FeatureParam
215 kContentPushNotificationsProvisionalRegistrationOnly[] = {
216 {kContentPushNotificationsExperimentType, "6"}};
217const FeatureEntry::FeatureParam
218 kContentPushNotificationsSetUpListRegistrationOnly[] = {
219 {kContentPushNotificationsExperimentType, "7"}};
Guillem Perez40086ef2023-11-20 20:03:52220
221const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = {
222 {"Promo", kContentPushNotificationsEnabledPromo,
223 std::size(kContentPushNotificationsEnabledPromo), nullptr},
224 {"Set up list", kContentPushNotificationsEnabledSetupLists,
Guillem Perez222b5b22024-01-20 02:16:27225 std::size(kContentPushNotificationsEnabledSetupLists), nullptr},
226 {"Provisional Notification", kContentPushNotificationsEnabledProvisional,
Guillem Perez749b3fc2024-02-13 19:29:49227 std::size(kContentPushNotificationsEnabledProvisional), nullptr},
Tina Wangb7f5b3f2024-05-07 06:24:26228 {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly,
229 std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr},
230 {"Provisional Notification Registeration Only",
231 kContentPushNotificationsProvisionalRegistrationOnly,
232 std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr},
233 {"Set up list Registeration Only",
234 kContentPushNotificationsSetUpListRegistrationOnly,
235 std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}};
Guillem Perez40086ef2023-11-20 20:03:52236
Chris Ludca9ce32023-09-20 16:53:50237const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35238 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50239const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35240 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08241
gogerald0e39e3aa2021-02-10 18:41:23242const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50243 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
244 std::size(kStartSurfaceTenSeconds), nullptr},
245 {"1h:Show Home Surface", kStartSurfaceOneHour,
246 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08247};
gogerald0e39e3aa2021-02-10 18:41:23248
Chris Luce928eb2023-05-12 21:36:26249const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
250 {kMagicStackMostVisitedModuleParam, "true"},
251 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22252const FeatureEntry::FeatureParam
253 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
254 {kMagicStackMostVisitedModuleParam, "true"},
255 {kReducedSpaceParam, "-80"},
256 {kHideIrrelevantModulesParam, "true"}};
Chris Lu8cf8ef82024-03-18 18:30:54257const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = {
Chris Luce928eb2023-05-12 21:36:26258 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu8cf8ef82024-03-18 18:30:54259 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26260
261const FeatureEntry::FeatureVariation kMagicStackVariations[]{
262 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
263 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22264 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
265 kMagicStackMostVisitedModuleHideIrrelevantModules,
266 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu8cf8ef82024-03-18 18:30:54267 {"Hide irrelevant modules", kMagicStackHidIrrelevantModules,
268 std::size(kMagicStackHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26269};
270
Chris Lu6fd4eaf2023-08-08 18:29:30271const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
272 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
273
274const FeatureEntry::FeatureVariation
275 kSegmentationPlatformIosModuleRankerVariations[]{
276 {"Enabled With Default Model Parameter (Must Set this!)",
277 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
278 };
279
Scott Yoderaf2bdf32024-01-30 20:26:15280const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31281 {kIOSTipsNotificationsUnknownTriggerTimeParam, "5s"},
282 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "5s"},
283 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "5s"},
Scott Yoderaf2bdf32024-01-30 20:26:15284};
285const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31286 {kIOSTipsNotificationsUnknownTriggerTimeParam, "10s"},
287 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "10s"},
288 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "10s"},
Scott Yoderaf2bdf32024-01-30 20:26:15289};
Scott Yoderd2dbc87f2024-03-07 18:23:37290const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = {
Scott Yoder3c99d732024-08-15 19:48:31291 {kIOSTipsNotificationsUnknownTriggerTimeParam, "30s"},
292 {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "30s"},
293 {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "30s"},
Scott Yoderd2dbc87f2024-03-07 18:23:37294};
Scott Yoderaf2bdf32024-01-30 20:26:15295const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = {
296 {"(5s trigger)", kIOSTipsNotifications5SecondTrigger,
297 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
298 {"(10s trigger)", kIOSTipsNotifications10SecondTrigger,
299 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderd2dbc87f2024-03-07 18:23:37300 {"(30s trigger)", kIOSTipsNotifications30SecondTrigger,
301 std::size(kIOSTipsNotifications10SecondTrigger), nullptr},
Scott Yoderaf2bdf32024-01-30 20:26:15302};
303
Ed Chin91e44992022-07-27 13:42:34304#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26305// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01306const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04307 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
308 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01309 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04310 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01311const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04312 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
313 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01314 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04315 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01316const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04317 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
318 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01319 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04320 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01321const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04322 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
323 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01324 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04325 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01326const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04327 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
328 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01329 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
330 {kBackgroundRefreshIntervalInSeconds, "0"}};
331const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04332 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
333 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01334 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
335 {kBackgroundRefreshIntervalInSeconds, "0"}};
336const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
337 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
338 {kEnableRecurringBackgroundRefreshSchedule, "false"},
339 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
340 {kBackgroundRefreshIntervalInSeconds, "0"}};
341const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
342 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
343 {kEnableRecurringBackgroundRefreshSchedule, "true"},
344 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
345 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04346
Ed Chin178ec2a2023-02-10 22:21:26347// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04348const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01349 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
350 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
351 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
352 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
353 {"1hr Interval 1hr Max Age Recurring",
354 kOneHourIntervalOneHourMaxAgeRecurring,
355 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
356 {"4hr Interval 6hr Max Age Recurring",
357 kFourHourIntervalSixHourMaxAgeRecurring,
358 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
359 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
360 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
361 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
362 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
363 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
364 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
365 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
366 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04367};
Ed Chin91e44992022-07-27 13:42:34368#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04369
David Jeanf361ae9d2024-04-09 08:19:47370const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = {
371 {kTextClassifierAddressParameterName, "true"}};
372const FeatureEntry::FeatureVariation
373 kEnableExpKitTextClassifierAddressVariations[] = {
374 {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap,
375 std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}};
376
377const FeatureEntry::FeatureParam
378 kEnableExpKitTextClassifierPhoneNumberOneTap[] = {
379 {kTextClassifierPhoneNumberParameterName, "true"}};
380const FeatureEntry::FeatureVariation
381 kEnableExpKitTextClassifierPhoneNumberVariations[] = {
382 {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap,
383 std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}};
384
385const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = {
386 {kTextClassifierEmailParameterName, "true"}};
387const FeatureEntry::FeatureVariation
388 kEnableExpKitTextClassifierEmailVariations[] = {
389 {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap,
390 std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15391
Louis Romero93e9b50a2023-01-26 01:46:12392const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
393 {kTabInactivityThresholdParameterName,
394 kTabInactivityThresholdOneWeekParam}};
395const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
396 {kTabInactivityThresholdParameterName,
397 kTabInactivityThresholdTwoWeeksParam}};
398const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
399 {kTabInactivityThresholdParameterName,
400 kTabInactivityThresholdThreeWeeksParam}};
Louis Romero56abd902023-03-15 16:21:58401const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = {
402 {kTabInactivityThresholdParameterName,
403 kTabInactivityThresholdOneMinuteDemoParam}};
Louis Romero93e9b50a2023-01-26 01:46:12404
405const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
406 {"One week", kTabInactivityThresholdOneWeek,
407 std::size(kTabInactivityThresholdOneWeek), nullptr},
408 {"Two weeks", kTabInactivityThresholdTwoWeeks,
409 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
410 {"Three weeks", kTabInactivityThresholdThreeWeeks,
411 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
Louis Romero56abd902023-03-15 16:21:58412 {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo,
413 std::size(kTabInactivityThresholdOneMinuteDemo), nullptr},
Louis Romero93e9b50a2023-01-26 01:46:12414};
415
Ewann Pellea2bcb3a2023-08-28 13:53:00416const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = {
417 {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}};
418const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = {
419 {kTabResumptionParameterName, kTabResumptionAllTabsParam}};
Ewann Pelleb08ee062023-10-16 10:04:48420const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = {
Olivier Robinbb46d05d2024-06-25 17:56:35421 {kTabResumptionParameterName, kTabResumptionAllTabsParam},
422 {kTabResumptionThresholdParameterName, /* 24 hours */ "86400"}};
Ewann Pellea2bcb3a2023-08-28 13:53:00423
424const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
425 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
426 std::size(kTabResumptionMostRecentTabOnly), nullptr},
Ewann Pelleb08ee062023-10-16 10:04:48427 {"Most recent tab and last synced tab (12 hours threshold)",
428 kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr},
429 {"Most recent tab and last synced tab (24 hours threshold)",
430 kTabResumptionAllTabsOneDayThreshold,
Olivier Robin08bc56d02024-06-05 14:05:18431 std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}};
Ewann Pelle6eecb8f2023-06-23 14:31:37432
Olivier ROBIN2613bcd02023-04-20 10:00:47433
Christian Xu07d600192023-07-24 12:29:52434const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
435 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
436const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
437 {kBottomOmniboxDefaultSettingParam,
438 kBottomOmniboxDefaultSettingParamBottom}};
439const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
440 {{kBottomOmniboxDefaultSettingParam,
441 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
442const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
443 {
444 {"Top", kBottomOmniboxDefaultSettingTop,
445 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
446 {"Bottom", kBottomOmniboxDefaultSettingBottom,
447 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
448 {"Bottom for Safari Switcher",
449 kBottomOmniboxDefaultSettingSafariSwitcher,
450 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
451};
452
Cheick Cisse85457f22024-05-23 22:37:59453constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] =
454 {{kLowPriceParam, kLowPriceParamPriceIsLow}};
455constexpr flags_ui::FeatureEntry::FeatureParam
456 kPriceInsightsGoodDealNowParam[] = {
457 {kLowPriceParam, kLowPriceParamGoodDealNow}};
458constexpr flags_ui::FeatureEntry::FeatureParam
459 kPriceInsightsSeePriceHistoryParam[] = {
460 {kLowPriceParam, kLowPriceParamSeePriceHistory}};
461constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] =
462 {{"Price is low", kPriceInsightsPriceIsLowParam,
463 std::size(kPriceInsightsPriceIsLowParam), nullptr},
464 {"Good deal now", kPriceInsightsGoodDealNowParam,
465 std::size(kPriceInsightsGoodDealNowParam), nullptr},
466 {"See price history", kPriceInsightsSeePriceHistoryParam,
467 std::size(kPriceInsightsSeePriceHistoryParam), nullptr}};
468
Christian Xu10b84d72024-04-09 17:12:33469const FeatureEntry::FeatureParam kRichAutocompletionImplementationLabel[] = {
470 {kRichAutocompletionParam, kRichAutocompletionParamLabel}};
Christian Xua17f9b72024-04-22 10:22:31471const FeatureEntry::FeatureParam
Christian Xu2cf421f2024-05-17 19:23:52472 kRichAutocompletionImplementationTextField3Chars[] = {
473 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52474 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
475 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52476const FeatureEntry::FeatureParam
477 kRichAutocompletionImplementationTextField4Chars[] = {
478 {kRichAutocompletionParam, kRichAutocompletionParamTextField},
Christian Xu7bb33bc2024-05-29 15:10:52479 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
480 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu2cf421f2024-05-17 19:23:52481const FeatureEntry::FeatureParam
482 kRichAutocompletionImplementationNoAdditionalText3Chars[] = {
483 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52484 {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"},
485 {"RichAutocompletionAutocompleteTitlesMinChar", "3"}};
Christian Xu2cf421f2024-05-17 19:23:52486const FeatureEntry::FeatureParam
487 kRichAutocompletionImplementationNoAdditionalText4Chars[] = {
488 {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText},
Christian Xu7bb33bc2024-05-29 15:10:52489 {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"},
490 {"RichAutocompletionAutocompleteTitlesMinChar", "4"}};
Christian Xu10b84d72024-04-09 17:12:33491const FeatureEntry::FeatureVariation
492 kRichAutocompletionImplementationVariations[] = {
493 {"In Label", kRichAutocompletionImplementationLabel,
494 std::size(kRichAutocompletionImplementationLabel), nullptr},
Christian Xu2cf421f2024-05-17 19:23:52495 {"In TextField, 3 Min Chars",
496 kRichAutocompletionImplementationTextField3Chars,
497 std::size(kRichAutocompletionImplementationTextField3Chars), nullptr},
498 {"In TextField, 4 Min Chars",
499 kRichAutocompletionImplementationTextField4Chars,
500 std::size(kRichAutocompletionImplementationTextField4Chars), nullptr},
501 {"No Additional Text, 3 Min Chars",
502 kRichAutocompletionImplementationNoAdditionalText3Chars,
503 std::size(kRichAutocompletionImplementationNoAdditionalText3Chars),
504 nullptr},
505 {"No Additional Text, 4 Min Chars",
506 kRichAutocompletionImplementationNoAdditionalText4Chars,
507 std::size(kRichAutocompletionImplementationNoAdditionalText4Chars),
508 nullptr},
Christian Xu10b84d72024-04-09 17:12:33509};
510
Olivier ROBIN82b67002023-07-31 14:34:46511const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
512 {web::features::kOneTapForMapsConsentModeParamTitle,
513 web::features::kOneTapForMapsConsentModeDefaultParam}};
514const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
515 {web::features::kOneTapForMapsConsentModeParamTitle,
516 web::features::kOneTapForMapsConsentModeForcedParam}};
517const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
518 {web::features::kOneTapForMapsConsentModeParamTitle,
519 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31520const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
521 {web::features::kOneTapForMapsConsentModeParamTitle,
522 web::features::kOneTapForMapsConsentModeIPHParam}};
523const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
524 {web::features::kOneTapForMapsConsentModeParamTitle,
525 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46526const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
527 {"Consent Default", kOneTapForMapsConsentModeDefault,
528 std::size(kOneTapForMapsConsentModeDefault), nullptr},
529 {"Consent Forced", kOneTapForMapsConsentModeForced,
530 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31531 {"Consent IPH", kOneTapForMapsConsentModeIPH,
532 std::size(kOneTapForMapsConsentModeIPH), nullptr},
533 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
534 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46535 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
536 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
537};
538
Matt Jones79534392023-10-27 14:35:02539const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataDelivered[] =
540 {{commerce::kParcelTrackingTestDataParam,
541 commerce::kParcelTrackingTestDataParamDelivered}};
542const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataInProgress[] =
543 {{commerce::kParcelTrackingTestDataParam,
544 commerce::kParcelTrackingTestDataParamInProgress}};
545const flags_ui::FeatureEntry::FeatureParam
546 kParcelTrackingTestDataOutForDelivery[] = {
547 {commerce::kParcelTrackingTestDataParam,
548 commerce::kParcelTrackingTestDataParamOutForDelivery}};
549const flags_ui::FeatureEntry::FeatureVariation
550 kParcelTrackingTestDataVariations[] = {
551 {"Delivered", kParcelTrackingTestDataDelivered,
552 std::size(kParcelTrackingTestDataDelivered), nullptr},
553 {"In progress", kParcelTrackingTestDataInProgress,
554 std::size(kParcelTrackingTestDataInProgress), nullptr},
555 {"Out for delivery", kParcelTrackingTestDataOutForDelivery,
556 std::size(kParcelTrackingTestDataOutForDelivery), nullptr},
557};
558
Benjamin Williams1dc8f2342024-01-04 21:25:55559const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = {
560 {kIOSDockingPromoExperimentType, "0"}};
561const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = {
562 {kIOSDockingPromoExperimentType, "1"}};
563const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = {
564 {kIOSDockingPromoExperimentType, "2"}};
565
566const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = {
567 {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE,
568 std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr},
569 {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch,
570 std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr},
571 {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE,
572 std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}};
573
Ewann Pellec8634ab2024-02-23 16:50:35574const FeatureEntry::FeatureParam kModernTabStripNTBDynamic[] = {
575 {kModernTabStripParameterName, kModernTabStripNTBDynamicParam}};
576const FeatureEntry::FeatureParam kModernTabStripNTBStatic[] = {
577 {kModernTabStripParameterName, kModernTabStripNTBStaticParam}};
Gauthier Ambardf1cd72f2024-10-08 16:15:33578const FeatureEntry::FeatureParam kModernTabStripCloserNTBOption[] = {
579 {kModernTabStripCloserNTB, "true"},
580 {kModernTabStripBiggerNTB, "true"}};
581const FeatureEntry::FeatureParam kModernTabStripDarkerBackgroundOption[] = {
582 {kModernTabStripDarkerBackground, "true"},
583 {kModernTabStripBiggerNTB, "true"}};
584const FeatureEntry::FeatureParam
585 kModernTabStripCloserNTBDarkerBackgroundOption[] = {
586 {kModernTabStripDarkerBackground, "true"},
587 {kModernTabStripCloserNTB, "true"},
588 {kModernTabStripBiggerNTB, "true"}};
589const FeatureEntry::FeatureParam kModernTabStripNTBNoBackgroundOption[] = {
590 {kModernTabStripNTBNoBackground, "true"},
591 {kModernTabStripBiggerNTB, "true"}};
592const FeatureEntry::FeatureParam kModernTabStripBlackBackgroundOption[] = {
593 {kModernTabStripBlackBackground, "true"},
594 {kModernTabStripNTBNoBackground, "true"},
595 {kModernTabStripBiggerNTB, "true"}};
Ewann Pellec8634ab2024-02-23 16:50:35596
Gauthier Ambard13b1a742024-10-09 07:53:22597const FeatureEntry::FeatureParam kModernTabStripCloseButtonVisibleOption[] = {
598 {kModernTabStripCloseButtonsVisible, "true"}};
599const FeatureEntry::FeatureParam
600 kModernTabStripInactiveTabsHighContrastOption[] = {
601 {kModernTabStripInactiveTabsHighContrast, "true"},
602 {kModernTabStripDarkerBackgroundV3, "true"}};
603const FeatureEntry::FeatureParam kModernTabStripHighContrastNTBOption[] = {
604 {kModernTabStripHighContrastNTB, "true"}};
605const FeatureEntry::FeatureParam kModernTabStripCloseV3AllOptions[] = {
606 {kModernTabStripCloseButtonsVisible, "true"},
607 {kModernTabStripInactiveTabsHighContrast, "true"},
608 {kModernTabStripHighContrastNTB, "true"},
609 {kModernTabStripDarkerBackgroundV3, "true"}};
610
Ewann Pellec8634ab2024-02-23 16:50:35611const FeatureEntry::FeatureVariation kModernTabStripVariations[] = {
612 {"New tab button dynamic", kModernTabStripNTBDynamic,
613 std::size(kModernTabStripNTBDynamic), nullptr},
614 {"New tab button static", kModernTabStripNTBStatic,
615 std::size(kModernTabStripNTBStatic), nullptr},
Gauthier Ambardf1cd72f2024-10-08 16:15:33616 {"Closer NTB", kModernTabStripCloserNTBOption,
617 std::size(kModernTabStripCloserNTBOption), nullptr},
618 {"Darker background", kModernTabStripDarkerBackgroundOption,
619 std::size(kModernTabStripDarkerBackgroundOption), nullptr},
620 {"Closer NTB + darker background",
621 kModernTabStripCloserNTBDarkerBackgroundOption,
622 std::size(kModernTabStripCloserNTBDarkerBackgroundOption), nullptr},
623 {"NTB no background", kModernTabStripNTBNoBackgroundOption,
624 std::size(kModernTabStripNTBNoBackgroundOption), nullptr},
625 {"Black background", kModernTabStripBlackBackgroundOption,
626 std::size(kModernTabStripBlackBackgroundOption), nullptr},
Gauthier Ambard13b1a742024-10-09 07:53:22627 {"V3 Close buttons", kModernTabStripCloseButtonVisibleOption,
628 std::size(kModernTabStripCloseButtonVisibleOption), nullptr},
629 {"V3 High Contrast tabs", kModernTabStripInactiveTabsHighContrastOption,
630 std::size(kModernTabStripInactiveTabsHighContrastOption), nullptr},
631 {"V3 Visible NTB", kModernTabStripHighContrastNTBOption,
632 std::size(kModernTabStripHighContrastNTBOption), nullptr},
633 {"V3 all options", kModernTabStripCloseV3AllOptions,
634 std::size(kModernTabStripCloseV3AllOptions), nullptr},
Ewann Pellec8634ab2024-02-23 16:50:35635};
636
Olivier ROBINcb76f4fe2024-06-05 16:11:42637const FeatureEntry::FeatureVariation
638 kImageServiceOptimizationGuideSalientImagesVariations[] = {
639 {"High Performance Canonicalization", nullptr, 0, "3362133"},
640};
641
Olivier Robinf8374f12024-06-05 19:00:04642const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] =
643 {{kTR15SeeMoreButtonParam, "false"}};
Olivier Robinf8374f12024-06-05 19:00:04644
645const FeatureEntry::FeatureVariation kTabResumption15Variations[] = {
Olivier Robinf8374f12024-06-05 19:00:04646 {"No See More Button", kTabResumption15DisableSeeMoreButtonImages,
647 std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr},
Olivier Robinf8374f12024-06-05 19:00:04648};
Olivier ROBINb17c14b92024-10-09 13:49:13649
650const FeatureEntry::FeatureParam kTabResumptionImagesOnlyThumbnail[] = {
651 {kTabResumptionImagesTypes, kTabResumptionImagesTypesThumbnails}};
652const FeatureEntry::FeatureParam kTabResumptionImagesOnlySalient[] = {
653 {kTabResumptionImagesTypes, kTabResumptionImagesTypesSalient}};
654
655const FeatureEntry::FeatureVariation kTabResumptionImagesVariations[] = {
656 {"Only thumbnails", kTabResumptionImagesOnlyThumbnail,
657 std::size(kTabResumptionImagesOnlyThumbnail), nullptr},
658 {"Only salient", kTabResumptionImagesOnlySalient,
659 std::size(kTabResumptionImagesOnlySalient), nullptr},
660};
661
Charles Yangf8e7adf2024-06-11 00:17:00662// Uses int values from Lens filters ablation mode enum.
663const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = {
664 {kLensFiltersAblationMode, "0"}};
665const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = {
666 {kLensFiltersAblationMode, "1"}};
667const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = {
668 {kLensFiltersAblationMode, "2"}};
669const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = {
670 {kLensFiltersAblationMode, "3"}};
671
672const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = {
673 {"(Disabled)", kLensFiltersAblationModeDisabled,
674 std::size(kLensFiltersAblationModeDisabled), nullptr},
675 {"(Post Capture)", kLensFiltersAblationModePostCapture,
676 std::size(kLensFiltersAblationModePostCapture), nullptr},
677 {"(LVF)", kLensFiltersAblationModeLVF,
678 std::size(kLensFiltersAblationModeLVF), nullptr},
679 {"(Always)", kLensFiltersAblationModeAlways,
680 std::size(kLensFiltersAblationModeAlways), nullptr}};
681
682// Uses int values from Lens translate toggle mode enum.
683const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = {
684 {kLensTranslateToggleMode, "0"}};
685const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = {
686 {kLensTranslateToggleMode, "1"}};
687const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = {
688 {kLensTranslateToggleMode, "2"}};
689const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = {
690 {kLensTranslateToggleMode, "3"}};
691
692const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = {
693 {"(Disabled)", kLensTranslateToggleModeDisabled,
694 std::size(kLensTranslateToggleModeDisabled), nullptr},
695 {"(Post Capture)", kLensTranslateToggleModePostCapture,
696 std::size(kLensTranslateToggleModePostCapture), nullptr},
697 {"(LVF)", kLensTranslateToggleModeLVF,
698 std::size(kLensTranslateToggleModeLVF), nullptr},
699 {"(Always)", kLensTranslateToggleModeAlways,
700 std::size(kLensTranslateToggleModeAlways), nullptr}};
Olivier Robinf8374f12024-06-05 19:00:04701
Khalid Peer7cf75a22024-06-13 17:25:49702const FeatureEntry::FeatureParam
703 kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = {
704 {"MlUrlPiecewiseMappedSearchBlending", "true"},
705 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
706 "0,550;0.018,1300;0.14,1398;1,1422"},
707 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"},
708 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
709const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41710 kMlUrlPiecewiseMappedSearchBlendingDemotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49711 {"MlUrlPiecewiseMappedSearchBlending", "true"},
712 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
713 "0,550;0.018,1250;0.14,1348;1,1422"},
714 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"},
715 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
716const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41717 kMlUrlPiecewiseMappedSearchBlendingPromotedBy50[] = {
Khalid Peer7cf75a22024-06-13 17:25:49718 {"MlUrlPiecewiseMappedSearchBlending", "true"},
719 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41720 "0,550;0.018,1350;0.14,1448;1,1472"},
721 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1450"},
Khalid Peer7cf75a22024-06-13 17:25:49722 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
723const FeatureEntry::FeatureParam
Khalid Peer9c07798f2024-07-15 22:39:41724 kMlUrlPiecewiseMappedSearchBlendingPromotedBy100[] = {
Khalid Peer7cf75a22024-06-13 17:25:49725 {"MlUrlPiecewiseMappedSearchBlending", "true"},
726 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer9c07798f2024-07-15 22:39:41727 "0,550;0.018,1400;0.14,1498;1,1522"},
728 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1500"},
Khalid Peer7cf75a22024-06-13 17:25:49729 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer4501c1f2024-06-27 16:12:04730const FeatureEntry::FeatureParam
731 kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = {
732 {"MlUrlPiecewiseMappedSearchBlending", "true"},
733 {"MlUrlPiecewiseMappedSearchBlending_BreakPoints",
Khalid Peer5c9bd9e2024-07-17 17:16:42734 "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:04735 {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"},
736 {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}};
Khalid Peer7cf75a22024-06-13 17:25:49737
738const FeatureEntry::FeatureVariation
739 kMlUrlPiecewiseMappedSearchBlendingVariations[] = {
740 {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0,
741 std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr},
Khalid Peer9c07798f2024-07-15 22:39:41742 {"demoted by 50", kMlUrlPiecewiseMappedSearchBlendingDemotedBy50,
743 std::size(kMlUrlPiecewiseMappedSearchBlendingDemotedBy50), nullptr},
744 {"promoted by 50", kMlUrlPiecewiseMappedSearchBlendingPromotedBy50,
745 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy50), nullptr},
746 {"promoted by 100", kMlUrlPiecewiseMappedSearchBlendingPromotedBy100,
747 std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy100), nullptr},
Khalid Peer4501c1f2024-06-27 16:12:04748 {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping,
749 std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr},
Khalid Peer7cf75a22024-06-13 17:25:49750};
751
752const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = {
753 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
754 {"MlUrlScoringShortcutDocumentSignals", "true"},
755};
756const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] =
757 {
758 {"MlUrlScoringUnlimitedNumCandidates", "true"},
759 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
760 {"MlUrlScoringShortcutDocumentSignals", "true"},
761};
762// Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64),
763// Document(512), and History Fuzzy(65536) providers max matches to 10.
764const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] =
765 {
766 {"MlUrlScoringMaxMatchesByProvider",
767 "1:10,4:10,8:10,64:10,512:10,65536:10"},
768 {"enable_scoring_signals_annotators_for_ml_scoring", "true"},
769 {"MlUrlScoringShortcutDocumentSignals", "true"},
770};
771
772const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = {
773 {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes,
774 std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr},
775 {"unlimited suggestion candidates",
776 kOmniboxMlUrlScoringUnlimitedNumCandidates,
777 std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr},
778 {"Increase provider max limit to 10",
779 kOmniboxMlUrlScoringMaxMatchesByProvider10,
780 std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr},
781};
782
783const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = {
784 {"MlUrlSearchBlending_StableSearchBlending", "true"},
785 {"MlUrlSearchBlending_MappedSearchBlending", "false"},
786};
787const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] =
788 {
789 {"MlUrlSearchBlending_StableSearchBlending", "false"},
790 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
791 {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"},
792 {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"},
793 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"},
794};
795const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = {
796 {"MlUrlSearchBlending_StableSearchBlending", "false"},
797 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
798};
799const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = {
800 {"MlUrlSearchBlending_StableSearchBlending", "false"},
801 {"MlUrlSearchBlending_MappedSearchBlending", "true"},
802 {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"},
803 {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"},
804 {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"},
805};
806
807const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = {
808 {"Stable", kMlUrlSearchBlendingStable,
809 std::size(kMlUrlSearchBlendingStable), nullptr},
810 {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls,
811 std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr},
812 {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls,
813 std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr},
814 {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls,
815 std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr},
816};
817
Khalid Peer4501c1f2024-06-27 16:12:04818const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = {
819 {"Small model", nullptr, 0, "3379590"},
820 {"Full model", nullptr, 0, "3380197"},
821};
822
Benjamin Williams0594caf2024-07-09 17:51:38823const FeatureEntry::FeatureParam kSafetyCheckNotificationsVerbose[] = {
824 {kSafetyCheckNotificationsExperimentType, "0"}};
825const FeatureEntry::FeatureParam kSafetyCheckNotificationsSuccinct[] = {
826 {kSafetyCheckNotificationsExperimentType, "1"}};
827
828const FeatureEntry::FeatureVariation kSafetyCheckNotificationsVariations[] = {
829 {"Display multiple notifications at once", kSafetyCheckNotificationsVerbose,
830 std::size(kSafetyCheckNotificationsVerbose), nullptr},
831 {"Display one notification at a time", kSafetyCheckNotificationsSuccinct,
832 std::size(kSafetyCheckNotificationsSuccinct), nullptr}};
833
Elmehdi Rahmaouif5b76462024-06-24 10:44:46834const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = {
835 {kSaveToPhotosContextMenuImprovementParam, "true"},
836 {kSaveToPhotosTitleImprovementParam, "false"},
837 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
838};
839const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = {
840 {kSaveToPhotosContextMenuImprovementParam, "false"},
841 {kSaveToPhotosTitleImprovementParam, "true"},
842 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"},
843};
844const FeatureEntry::FeatureParam
845 kSaveToPhotosAccountDefaultChoiceImprovement[] = {
846 {kSaveToPhotosContextMenuImprovementParam, "false"},
847 {kSaveToPhotosTitleImprovementParam, "false"},
848 {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"},
849};
850
851const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = {
852 {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement,
853 std::size(kSaveToPhotosContextMenuImprovement), nullptr},
854 {"With Title improvement Only", kSaveToPhotosTitleImprovement,
855 std::size(kSaveToPhotosTitleImprovement), nullptr},
856 {"With Account Default choice improvement Only",
857 kSaveToPhotosAccountDefaultChoiceImprovement,
858 std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr},
859};
860
Stephen McGruer8fe98b62024-07-16 13:10:13861// LINT.IfChange(AutofillUploadCardRequestTimeouts)
862const FeatureEntry::FeatureParam
863 kAutofillUploadCardRequestTimeout_6Point5Seconds[] = {
864 {"autofill_upload_card_request_timeout_milliseconds", "6500"}};
865const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_7Seconds[] =
866 {{"autofill_upload_card_request_timeout_milliseconds", "7000"}};
867const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_9Seconds[] =
868 {{"autofill_upload_card_request_timeout_milliseconds", "9000"}};
869const FeatureEntry::FeatureVariation
870 kAutofillUploadCardRequestTimeoutOptions[] = {
871 {"6.5 seconds", kAutofillUploadCardRequestTimeout_6Point5Seconds,
872 std::size(kAutofillUploadCardRequestTimeout_6Point5Seconds), nullptr},
873 {"7 seconds", kAutofillUploadCardRequestTimeout_7Seconds,
874 std::size(kAutofillUploadCardRequestTimeout_7Seconds), nullptr},
875 {"9 seconds", kAutofillUploadCardRequestTimeout_9Seconds,
876 std::size(kAutofillUploadCardRequestTimeout_9Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03877// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillUploadCardRequestTimeouts)
Stephen McGruer8fe98b62024-07-16 13:10:13878
Stephen McGruer0904cae2024-07-17 19:54:46879// LINT.IfChange(AutofillVcnEnrollRequestTimeouts)
880const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_5Seconds[] = {
881 {"autofill_vcn_enroll_request_timeout_milliseconds", "5000"}};
882const FeatureEntry::FeatureParam
883 kAutofillVcnEnrollRequestTimeout_7Point5Seconds[] = {
884 {"autofill_vcn_enroll_request_timeout_milliseconds", "7500"}};
885const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_10Seconds[] =
886 {{"autofill_vcn_enroll_request_timeout_milliseconds", "10000"}};
887const FeatureEntry::FeatureVariation kAutofillVcnEnrollRequestTimeoutOptions[] =
888 {{"5 seconds", kAutofillVcnEnrollRequestTimeout_5Seconds,
889 std::size(kAutofillVcnEnrollRequestTimeout_5Seconds), nullptr},
890 {"7.5 seconds", kAutofillVcnEnrollRequestTimeout_7Point5Seconds,
891 std::size(kAutofillVcnEnrollRequestTimeout_7Point5Seconds), nullptr},
892 {"10 seconds", kAutofillVcnEnrollRequestTimeout_10Seconds,
893 std::size(kAutofillVcnEnrollRequestTimeout_10Seconds), nullptr}};
Benjamin Williamse589c382024-07-30 12:11:03894// LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillVcnEnrollRequestTimeouts)
Stephen McGruer0904cae2024-07-17 19:54:46895
Nicolas MacBethc738c4e2024-07-19 21:14:19896// Contextual Panel flag variations.
897const FeatureEntry::FeatureParam kContextualPanelRichIPHArms[] = {
898 {"entrypoint-highlight-iph", "true"},
899 {"entrypoint-rich-iph", "true"},
900};
901const FeatureEntry::FeatureParam kContextualPanelSmallIPHArm[] = {
902 {"entrypoint-highlight-iph", "false"},
903 {"entrypoint-rich-iph", "false"},
904};
905const FeatureEntry::FeatureParam
906 kContextualPanelSmallIPHWithBlueHighlightArm[] = {
907 {"entrypoint-highlight-iph", "true"},
908 {"entrypoint-rich-iph", "false"},
909};
910
911const FeatureEntry::FeatureVariation kContextualPanelEntrypointArmVariations[] =
912 {
913 {"- Rich IPH", kContextualPanelRichIPHArms,
914 std::size(kContextualPanelRichIPHArms), nullptr},
915 {"- Small IPH, no blue highlight", kContextualPanelSmallIPHArm,
916 std::size(kContextualPanelSmallIPHArm), nullptr},
917 {"- Small IPH with blue highlight",
918 kContextualPanelSmallIPHWithBlueHighlightArm,
919 std::size(kContextualPanelSmallIPHWithBlueHighlightArm), nullptr},
920};
921
Jood Hajeer3867886d2024-07-29 16:15:35922const FeatureEntry::FeatureParam kIdentityConfirmationSnackbarTestingConfig[] =
Jood562c885f2024-09-05 17:06:55923 {{"IdentityConfirmationMinDisplayInterval1", "0"},
924 {"IdentityConfirmationMinDisplayInterval2", "0"},
925 {"IdentityConfirmationMinDisplayInterval3", "0"}};
Jood Hajeer3867886d2024-07-29 16:15:35926const FeatureEntry::FeatureVariation
927 kIdentityConfirmationSnackbarTestingVariations[] = {
928 {" - for testing", kIdentityConfirmationSnackbarTestingConfig,
929 std::size(kIdentityConfirmationSnackbarTestingConfig), nullptr}};
930
Chris Lu4c688e02024-09-07 00:48:08931const FeatureEntry::FeatureParam kPriceTrackingPromoForceShowArm[] = {
932 {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam,
933 segmentation_platform::features::kPriceTrackingPromoForceOverride},
934};
935const FeatureEntry::FeatureParam kPriceTrackingPromoForceHideArm[] = {
936 {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam,
937 segmentation_platform::features::kPriceTrackingPromoForceOverride},
938};
939
940const FeatureEntry::FeatureVariation kEphemeralCardRankerCardOverrideOptions[] =
941 {
942 {"- Force Show Price Tracking Notification",
943 kPriceTrackingPromoForceShowArm,
944 std::size(kPriceTrackingPromoForceShowArm), nullptr},
945 {"- Force Hide Price Tracking Notification",
946 kPriceTrackingPromoForceHideArm,
947 std::size(kPriceTrackingPromoForceHideArm), nullptr},
948};
949
Hira Mahmood00c17e52024-10-09 14:30:48950const FeatureEntry::FeatureParam
951 kSendTabIOSPushNotificationsWithMagicStackCard[] = {
952 {send_tab_to_self::kSendTabIOSPushNotificationsWithMagicStackCardParam,
953 "true"}};
954const FeatureEntry::FeatureVariation kSendTabIOSPushNotificationsVariations[] =
955 {
956 {"With Magic Stack Card",
957 kSendTabIOSPushNotificationsWithMagicStackCard,
958 std::size(kSendTabIOSPushNotificationsWithMagicStackCard), nullptr},
959};
960
Cooper Knaak1e026562017-07-26 05:22:28961// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21962// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28963// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
964// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21965// macro for this type supplying the command line to the macro.
966// . MULTI_VALUE: a list of choices, the first of which should correspond to a
967// deactivated state for this lab (i.e. no command line option). To specify
968// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
969// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28970// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
971// either enabled, disabled, or uses the default value of the associated
972// base::Feature instance. To specify this type of entry use the macro
973// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
974// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
975// base::Feature instance. Choices corresponding to the default state, a
976// universally enabled state, and a universally disabled state are
977// automatically included. To specify this type of entry use the macro
978// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
979// the array of choices.
980//
sdefresne14900ee2015-11-27 14:43:21981// See the documentation of FeatureEntry for details on the fields.
982//
983// When adding a new choice, add it to the end of the list.
984const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28985 {"in-product-help-demo-mode-choice",
986 flag_descriptions::kInProductHelpDemoModeName,
987 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
988 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23989 feature_engagement::kIPHDemoMode,
990 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09991 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22992 {"enable-autofill-credit-card-upload",
993 flag_descriptions::kAutofillCreditCardUploadName,
994 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24995 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23996 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
997 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
998 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51999 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:231000 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
1001 {"wallet-service-use-sandbox",
1002 flag_descriptions::kWalletServiceUseSandboxName,
1003 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
1004 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
1005 autofill::switches::kWalletServiceUseSandbox,
1006 "1",
1007 autofill::switches::kWalletServiceUseSandbox,
1008 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:591009 {"show-autofill-type-predictions",
1010 flag_descriptions::kShowAutofillTypePredictionsName,
1011 flag_descriptions::kShowAutofillTypePredictionsDescription,
1012 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:501013 FEATURE_VALUE_TYPE(
1014 autofill::features::test::kAutofillShowTypePredictions)},
Benjamin Williamsdf18e7e2022-10-03 18:46:051015 {"fullscreen-promos-manager-skip-internal-limits",
1016 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
1017 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
1018 flags_ui::kOsIos,
1019 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:141020 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:531021 flag_descriptions::kFullscreenSmoothScrollingName,
1022 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:191023 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:061024 {"webpage-default-zoom-from-dynamic-type",
1025 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
1026 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
1027 flags_ui::kOsIos,
1028 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:561029 {"webpage-alternative-text-zoom",
1030 flag_descriptions::kWebPageAlternativeTextZoomName,
1031 flag_descriptions::kWebPageAlternativeTextZoomDescription,
1032 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:341033 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
1034 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
1035 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Stepan Khapugincc4e9842019-01-23 13:38:131036 {"omnibox-ui-max-autocomplete-matches",
1037 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
1038 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
1039 flags_ui::kOsIos,
1040 FEATURE_WITH_PARAMS_VALUE_TYPE(
1041 omnibox::kUIExperimentMaxAutocompleteMatches,
1042 kOmniboxUIMaxAutocompleteMatchesVariations,
1043 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:351044 {"omnibox-local-history-zero-suggest-beyond-ntp",
1045 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
1046 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
1047 flags_ui::kOsIos,
1048 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:541049 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
1050 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
1051 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
1052 kOmniboxMaxZPSMatchesVariations,
1053 "OmniboxMaxZPSVariations")},
Jérôme Lebelc374fdd2019-09-27 10:36:481054 {"force-startup-signin-promo",
1055 flag_descriptions::kForceStartupSigninPromoName,
1056 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:291057 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Tommy Martino6b4eb7e2020-06-25 18:25:411058 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
1059 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
1060 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:131061#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:451062 {"screen-time-integration-ios",
1063 flag_descriptions::kScreenTimeIntegrationName,
1064 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
1065 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:131066#endif
Nazerke3e993f72020-09-21 13:00:061067 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
1068 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
Ewann Pellec8634ab2024-02-23 16:50:351069 FEATURE_WITH_PARAMS_VALUE_TYPE(kModernTabStrip,
1070 kModernTabStripVariations,
1071 "ModernTabStrip")},
Cheick Cisse76ade3d2020-12-16 00:15:111072 {"ios-shared-highlighting-color-change",
1073 flag_descriptions::kIOSSharedHighlightingColorChangeName,
1074 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:071075 flags_ui::kOsIos,
1076 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:341077 {"ios-shared-highlighting-v2",
1078 flag_descriptions::kIOSSharedHighlightingV2Name,
1079 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
1080 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Scott Yoderc0cd99d2024-01-10 19:54:511081 {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName,
1082 flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos,
Scott Yoderaf2bdf32024-01-30 20:26:151083 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications,
1084 kIOSTipsNotificationsVariations,
1085 "IOSTipsNotifications")},
gogerald0ff29e52021-02-03 18:56:191086 {"start-surface", flag_descriptions::kStartSurfaceName,
1087 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:231088 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
1089 kStartSurfaceVariations,
1090 "StartSurface")},
Nohemi Fernandezc00842a2021-07-26 11:47:341091 {"wait-threshold-seconds-for-capabilities-api",
1092 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
1093 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
1094 flags_ui::kOsIos,
1095 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Tina Wang686fa002024-05-18 10:10:061096 {"content-notification-experiment",
1097 flag_descriptions::kContentNotificationExperimentName,
1098 flag_descriptions::kContentNotificationExperimentDescription,
1099 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)},
Tina Wang1cc9f472024-05-30 20:51:251100 {"content-notification-provisional-ignore-conditions",
1101 flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName,
1102 flag_descriptions::
1103 kContentNotificationProvisionalIgnoreConditionsDescription,
1104 flags_ui::kOsIos,
1105 FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)},
Guillem Perez49e1df42023-08-23 22:15:241106 {"content-push-notifications",
1107 flag_descriptions::kContentPushNotificationsName,
1108 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
Guillem Perez40086ef2023-11-20 20:03:521109 FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications,
1110 kContentPushNotificationsVariations,
1111 "ContentPushNotifications")},
Jason Hu67cfb0f2022-11-14 20:21:441112 {"enable-lens-in-omnibox-copied-image",
1113 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
1114 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
1115 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Radu Nitescuab5bf732024-09-18 14:07:401116 {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName,
1117 flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos,
1118 FEATURE_VALUE_TYPE(kEnableLensOverlay)},
Sergio Collazos9fcc6ed2021-10-06 00:58:031119 {"enable-disco-feed-endpoint",
1120 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
1121 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
1122 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:111123 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Tommy Martino7393d762021-10-12 17:59:281124 {"shared-highlighting-amp",
1125 flag_descriptions::kIOSSharedHighlightingAmpName,
1126 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
1127 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:281128 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:421129 commerce::flag_descriptions::kCommercePriceTrackingName,
1130 commerce::flag_descriptions::kCommercePriceTrackingDescription,
1131 flags_ui::kOsIos,
1132 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
1133 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:151134 "CommercePriceTracking")},
Matt Jones2e47b9692024-02-23 21:56:431135 {"track-by-default-mobile",
1136 commerce::flag_descriptions::kTrackByDefaultOnMobileName,
1137 commerce::flag_descriptions::kTrackByDefaultOnMobileDescription,
1138 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)},
adamta250f4ad2023-08-02 15:26:061139 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
1140 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
1141 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:541142 {"ntp-view-hierarchy-repair",
1143 flag_descriptions::kNTPViewHierarchyRepairName,
1144 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:201145 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Cheick Cisse39b6a182024-05-29 15:13:441146 {"price-insights", commerce::flag_descriptions::kPriceInsightsName,
1147 commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos,
1148 FEATURE_VALUE_TYPE(commerce::kPriceInsights)},
Cheick Cisse7c03928d2024-03-11 23:27:381149 {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName,
1150 commerce::flag_descriptions::kPriceInsightsIosDescription,
Cheick Cisse85457f22024-05-23 22:37:591151 flags_ui::kOsIos,
1152 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos,
1153 kPriceInsightsVariations,
1154 "PriceInsightsIos")},
1155 {"price-insights-high-price-ios",
1156 commerce::flag_descriptions::kPriceInsightsHighPriceIosName,
1157 commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription,
1158 flags_ui::kOsIos,
1159 FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)},
Vishwas Uppoor89303a92022-08-03 00:56:261160 {"autofill-enable-card-product-name",
1161 flag_descriptions::kAutofillEnableCardProductNameName,
1162 flag_descriptions::kAutofillEnableCardProductNameDescription,
1163 flags_ui::kOsIos,
1164 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Raj Tb95d813542022-11-16 21:27:521165 {"enable-download-service-foreground-session",
1166 flag_descriptions::kDownloadServiceForegroundSessionName,
1167 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1168 flags_ui::kOsIos,
1169 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231170 {"enable-tflite-language-detection",
1171 flag_descriptions::kTFLiteLanguageDetectionName,
1172 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1173 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201174 {"optimization-guide-debug-logs",
1175 flag_descriptions::kOptimizationGuideDebugLogsName,
1176 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1177 flags_ui::kOsIos,
1178 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Daniel Whited02b6962023-02-14 14:19:551179 {"optimization-guide-push-notifications",
1180 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1181 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1182 flags_ui::kOsIos,
1183 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
David Jeanad303a92023-07-31 16:58:111184 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1185 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1186 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
David Jeanea886ba2024-01-17 11:50:221187 {"intents-on-viewport", flag_descriptions::kEnableViewportIntentsName,
1188 flag_descriptions::kEnableViewportIntentsDescription, flags_ui::kOsIos,
1189 FEATURE_VALUE_TYPE(web::features::kEnableViewportIntents)},
David Jeandcc3e202024-05-22 08:36:331190 {"improve-parcel-detection",
1191 flag_descriptions::kEnableNewParcelTrackingNumberDetectionName,
1192 flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription,
1193 flags_ui::kOsIos,
1194 FEATURE_VALUE_TYPE(
1195 web::features::kEnableNewParcelTrackingNumberDetection)},
David Jeanf361ae9d2024-04-09 08:19:471196 {"enable-expkit-text-classifier-date",
1197 flag_descriptions::kEnableExpKitTextClassifierDateName,
1198 flag_descriptions::kEnableExpKitTextClassifierDateDescription,
1199 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)},
1200 {"enable-expkit-text-classifier-address",
1201 flag_descriptions::kEnableExpKitTextClassifierAddressName,
1202 flag_descriptions::kEnableExpKitTextClassifierAddressDescription,
Raj T18a2c8c2023-03-15 17:20:151203 flags_ui::kOsIos,
David Jeanf361ae9d2024-04-09 08:19:471204 FEATURE_WITH_PARAMS_VALUE_TYPE(
1205 kEnableExpKitTextClassifierAddress,
1206 kEnableExpKitTextClassifierAddressVariations,
1207 "ExpKitTextClassifierAddress")},
1208 {"enable-expkit-text-classifier-phonenumber",
1209 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName,
1210 flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription,
1211 flags_ui::kOsIos,
1212 FEATURE_WITH_PARAMS_VALUE_TYPE(
1213 kEnableExpKitTextClassifierPhoneNumber,
1214 kEnableExpKitTextClassifierPhoneNumberVariations,
1215 "ExpKitTextClassifierPhoneNumber")},
1216 {"enable-expkit-text-classifier-email",
1217 flag_descriptions::kEnableExpKitTextClassifierEmailName,
1218 flag_descriptions::kEnableExpKitTextClassifierEmailDescription,
1219 flags_ui::kOsIos,
1220 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail,
1221 kEnableExpKitTextClassifierEmailVariations,
1222 "ExpKitTextClassifierEmail")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331223 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1224 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461225 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1226 kOneTapForMapsWithVariations,
1227 "OneTapForMaps")},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251228 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1229 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1230 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Alexander Tekleb4643812023-01-06 23:12:301231 {"autofill-enable-ranking-formula-address-profiles",
1232 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1233 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1234 flags_ui::kOsIos,
1235 FEATURE_VALUE_TYPE(
1236 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391237 {"autofill-enable-ranking-formula-credit-cards",
1238 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1239 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1240 flags_ui::kOsIos,
1241 FEATURE_VALUE_TYPE(
1242 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021243 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1244 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1245 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Chris Luc36e3962023-04-11 21:50:521246 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1247 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261248 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1249 kMagicStackVariations,
1250 flag_descriptions::kMagicStackName)},
Alexis Hetuec9d70c2023-11-13 16:27:311251 {"ios-keyboard-accessory-upgrade",
1252 flag_descriptions::kIOSKeyboardAccessoryUpgradeName,
1253 flag_descriptions::kIOSKeyboardAccessoryUpgradeDescription,
1254 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgrade)},
Noémie St-Onge9da904ef2024-10-01 14:16:051255 {"ios-keyboard-accessory-upgrade-short-manual-fill-menu",
1256 flag_descriptions::kIOSKeyboardAccessoryUpgradeShortManualFillMenuName,
1257 flag_descriptions::
1258 kIOSKeyboardAccessoryUpgradeShortManualFillMenuDescription,
1259 flags_ui::kOsIos,
1260 FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeShortManualFillMenu)},
Scott Yoder7b9e51f2023-09-13 23:47:261261 {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName,
1262 flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos,
1263 FEATURE_VALUE_TYPE(kIOSLargeFakebox)},
Chris Lub0bad572023-08-07 18:13:291264 {"ios-magic-stack-segmentation-ranking",
1265 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1266 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1267 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301268 FEATURE_WITH_PARAMS_VALUE_TYPE(
1269 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1270 kSegmentationPlatformIosModuleRankerVariations,
1271 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Chris Lu63aa3942024-05-10 22:15:321272 {"ios-magic-stack-segmentation-ranking-caching",
1273 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName,
1274 flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription,
1275 flags_ui::kOsIos,
1276 FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)},
Chris Lu9e4f17b2024-05-09 00:54:111277 {"ios-magic-stack-segmentation-ranking-split-by-surface",
1278 flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName,
1279 flag_descriptions::
1280 kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription,
1281 flags_ui::kOsIos,
1282 FEATURE_VALUE_TYPE(
1283 segmentation_platform::features::
1284 kSegmentationPlatformIosModuleRankerSplitBySurface)},
Olivier Robin058c1fad2022-05-31 18:24:061285 {"default-browser-intents-show-settings",
1286 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1287 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1288 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Alexis Hetu5e726602023-12-15 15:18:281289 {"ios-password-bottom-sheet-autofocus",
1290 flag_descriptions::kIOSPasswordBottomSheetAutofocusName,
1291 flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription,
1292 flags_ui::kOsIos,
1293 FEATURE_VALUE_TYPE(
1294 password_manager::features::kIOSPasswordBottomSheetAutofocus)},
Charlotte Cloutier18f0a5362024-07-16 13:23:041295 {"ios-proactive-password-generation-bottom-sheet",
1296 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetName,
1297 flag_descriptions::kIOSProactivePasswordGenerationBottomSheetDescription,
1298 flags_ui::kOsIos,
1299 FEATURE_VALUE_TYPE(password_manager::features::
1300 kIOSProactivePasswordGenerationBottomSheet)},
Alexis Hetu0677e182024-04-10 16:07:371301 {"sync-webauthn-credentials",
1302 flag_descriptions::kSyncWebauthnCredentialsName,
1303 flag_descriptions::kSyncWebauthnCredentialsDescription, flags_ui::kOsIos,
1304 FEATURE_VALUE_TYPE(syncer::kSyncWebauthnCredentials)},
Moe Ahmadi098519d82022-07-27 18:34:241305 {"omnibox-zero-suggest-prefetching",
1306 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1307 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1308 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451309 {"omnibox-zero-suggest-prefetching-on-srp",
1310 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1311 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1312 flags_ui::kOsIos,
1313 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1314 {"omnibox-zero-suggest-prefetching-on-web",
1315 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1316 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1317 flags_ui::kOsIos,
1318 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471319 {"omnibox-zero-suggest-in-memory-caching",
1320 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1321 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1322 flags_ui::kOsIos,
1323 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351324 {"omnibox-on-device-tail-suggestions",
1325 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1326 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1327 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Christian Xucf26d562022-07-06 09:28:361328 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1329 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1330 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1331 kOmniboxMaxURLMatchesVariations,
1332 "OmniboxMaxURLMatches")},
Stepan Khapugin1f83c5ae2024-01-31 15:55:201333 {"omnibox-most-visited-tiles-horizontal-render-group",
1334 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName,
1335 flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription,
1336 flags_ui::kOsIos,
1337 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)},
Olivier Robin60d3a062022-07-06 17:34:061338 {"metrickit-non-crash-reports",
1339 flag_descriptions::kMetrickitNonCrashReportName,
1340 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1341 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Nakul Vaidya13ca2042022-07-27 01:59:551342 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1343 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1344 flag_descriptions::
1345 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1346 flags_ui::kOsIos,
1347 FEATURE_VALUE_TYPE(
1348 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Gayane Petrosyan5960a172023-06-19 15:40:171349 {"default-browser-promo-trigger-criteria-experiment",
1350 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1351 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1352 flags_ui::kOsIos,
Gayane Petrosyan01f711782024-02-21 23:00:211353 FEATURE_VALUE_TYPE(
1354 feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)},
Gayane Petrosyancffeda12024-09-17 17:10:371355 {"blue-dot-on-tools-menu-button",
1356 flag_descriptions::kBlueDotOnToolsMenuButtonName,
1357 flag_descriptions::kBlueDotOnToolsMenuButtonDescription, flags_ui::kOsIos,
1358 FEATURE_VALUE_TYPE(kBlueDotOnToolsMenuButton)},
Ed Chin91e44992022-07-27 13:42:341359#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1360 {"feed-background-refresh-ios",
1361 flag_descriptions::kFeedBackgroundRefreshName,
1362 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1363 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1364 kFeedBackgroundRefreshVariations,
1365 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261366#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Petro Akzhygitov2e2322e2023-04-25 16:26:571367 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1368 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1369 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Daniel Whiteae1cb672022-12-14 18:25:251370 {"iph-price-notifications-while-browsing",
1371 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1372 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1373 flags_ui::kOsIos,
1374 FEATURE_VALUE_TYPE(
1375 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Ewann Pelledec2d042023-01-25 15:28:391376 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1377 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1378 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones1795eda2023-05-09 20:24:481379 {"local-pdp-detection",
1380 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1381 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1382 flags_ui::kOsIos,
1383 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Louis Romero93e9b50a2023-01-26 01:46:121384 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1385 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1386 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1387 kTabInactivityThresholdVariations,
1388 "TabInactivityThreshold")},
Ali Juma57849c42023-02-21 22:53:431389 {"notification-settings-menu-item",
1390 flag_descriptions::kNotificationSettingsMenuItemName,
1391 flag_descriptions::kNotificationSettingsMenuItemDescription,
1392 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
kalettucefb09e402023-02-27 18:35:531393 {"web-feed-feedback-reroute",
1394 flag_descriptions::kWebFeedFeedbackRerouteName,
1395 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1396 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Tina Wangd3f6f192023-04-05 05:22:431397 {"enable-follow-IPH-exp-params",
1398 flag_descriptions::kEnableFollowIPHExpParamsName,
1399 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1400 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Guillem Perez3c139a822023-05-24 19:34:251401 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1402 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1403 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Marc Treibe9f79ea72023-03-14 10:25:421404 {"enable-preferences-account-storage",
1405 flag_descriptions::kEnablePreferencesAccountStorageName,
1406 flag_descriptions::kEnablePreferencesAccountStorageDescription,
1407 flags_ui::kOsIos,
1408 FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)},
Olivier ROBINa229d2132023-03-21 12:44:201409 {"ios-browser-edit-menu-metrics",
1410 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1411 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1412 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Benjamin Williams1dc8f2342024-01-04 21:25:551413 {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName,
1414 flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos,
1415 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo,
1416 kIOSDockingPromoVariations,
1417 "IOSDockingPromo")},
Stepan Khapuginb2f49522023-04-03 18:25:241418 {"omnibox-grouping-framework-non-zps",
1419 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1420 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1421 flags_ui::kOsIos,
1422 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Robbie Gibson0ea280602023-04-12 01:02:391423 {"only-access-clipboard-async",
1424 flag_descriptions::kOnlyAccessClipboardAsyncName,
1425 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1426 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Olivier ROBIN2613bcd02023-04-20 10:00:471427 {"ios-edit-menu-hide-search-web",
1428 flag_descriptions::kIOSEditMenuHideSearchWebName,
1429 flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos,
1430 FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)},
Stephen McGruer9afca1a2023-05-18 20:55:171431 {"autofill-enable-card-art-image",
1432 flag_descriptions::kAutofillEnableCardArtImageName,
1433 flag_descriptions::kAutofillEnableCardArtImageDescription,
1434 flags_ui::kOsIos,
1435 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)},
Tina Wangcda2c902023-05-25 17:39:451436 {"enable-signed-out-view-demotion",
1437 flag_descriptions::kEnableSignedOutViewDemotionName,
1438 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1439 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stepan Khapugin72c74292024-06-19 16:48:331440 {"spotlight-never-retain-index",
1441 flag_descriptions::kSpotlightNeverRetainIndexName,
1442 flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos,
1443 FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)},
Huiting Yubc1bf4d2023-06-26 18:15:321444 {"ios-iph-for-safari-switcher",
1445 flag_descriptions::kIPHForSafariSwitcherName,
1446 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1447 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071448 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1449 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1450 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Ewann Pelle9cd85b22023-07-12 14:42:011451 {"tab-resumption", flag_descriptions::kTabResumptionName,
1452 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001453 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1454 kTabResumptionVariations,
1455 "TabResumption")},
Christian Xu07d600192023-07-24 12:29:521456 {"bottom-omnibox-default-setting",
1457 flag_descriptions::kBottomOmniboxDefaultSettingName,
1458 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1459 flags_ui::kOsIos,
1460 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1461 kBottomOmniboxDefaultSettingVariations,
1462 "BottomOmniboxDefaultSetting")},
Joemer Ramos46ca6f52024-09-27 18:12:291463 {"enable-async-real-time-check",
1464 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckName,
1465 flag_descriptions::kSafeBrowsingAsyncRealTimeCheckDescription,
1466 flags_ui::kOsIos,
1467 FEATURE_VALUE_TYPE(safe_browsing::kSafeBrowsingAsyncRealTimeCheck)},
Quentin Pubert476786e82023-08-16 12:45:281468 {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName,
1469 flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos,
1470 FEATURE_VALUE_TYPE(kIOSSaveToPhotos)},
Elmehdi Rahmaouif5b76462024-06-24 10:44:461471 {"enable-save-to-photos-improvements",
1472 flag_descriptions::kIOSSaveToPhotosImprovementsName,
1473 flag_descriptions::kIOSSaveToPhotosImprovementsDescription,
1474 flags_ui::kOsIos,
1475 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements,
1476 kSaveToPhotosImprovementsVariations,
1477 "IOSSaveToPhotosImprovements")},
Jérôme Lebelcc9523e2024-10-08 13:34:011478 {"enable-identity-in-auth-error",
1479 flag_descriptions::kEnableIdentityInAuthErrorName,
1480 flag_descriptions::kEnableIdentityInAuthErrorDescription, flags_ui::kOsIos,
1481 FEATURE_VALUE_TYPE(switches::kEnableIdentityInAuthError)},
Matt Jones79534392023-10-27 14:35:021482 {"parcel-tracking-test-data",
1483 commerce::flag_descriptions::kParcelTrackingTestDataName,
1484 commerce::flag_descriptions::kParcelTrackingTestDataDescription,
1485 flags_ui::kOsIos,
1486 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kParcelTrackingTestData,
1487 kParcelTrackingTestDataVariations,
1488 "ParcelTrackingTestData")},
Christian Xu90e952f2023-09-13 09:05:281489 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1490 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1491 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Rubin Deliallisi072bc842023-10-19 12:00:411492 {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName,
1493 flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos,
1494 FEATURE_VALUE_TYPE(kPrivacyGuideIos)},
Quentin Pubertf2d75c32023-10-25 12:17:451495 {"enable-save-to-drive", flag_descriptions::kIOSSaveToDriveName,
1496 flag_descriptions::kIOSSaveToDriveDescription, flags_ui::kOsIos,
1497 FEATURE_VALUE_TYPE(kIOSSaveToDrive)},
Aliona DANGLA5971a8b2023-11-10 11:55:351498 {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName,
1499 flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos,
1500 FEATURE_VALUE_TYPE(kFullscreenImprovement)},
Gauthier Ambard8cca29a2024-04-10 08:27:361501 {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName,
1502 flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos,
1503 FEATURE_VALUE_TYPE(kTabGroupsIPad)},
Vidhan Jain1199e202024-03-15 14:42:591504 {"autofill-enable-dynamically-loading-fields-on-input",
1505 flag_descriptions::
1506 kAutofillEnableDynamicallyLoadingFieldsForAddressInputName,
1507 flag_descriptions::
1508 kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription,
1509 flags_ui::kOsIos,
1510 FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)},
Filipa Senra0bd07982023-12-19 10:56:251511 {"revamp-page-info-ios", flag_descriptions::kRevampPageInfoIosName,
1512 flag_descriptions::kRevampPageInfoIosDescription, flags_ui::kOsIos,
Filipa Senraa2074a12024-06-10 14:49:201513 MULTI_VALUE_TYPE(kRevampPageInfoiOSChoices)},
aliaaborhamy00f89df2023-12-21 14:55:031514 {"share-in-web-context-menu-ios",
1515 flag_descriptions::kShareInWebContextMenuIOSName,
1516 flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos,
1517 FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)},
Marc Treib1f6c5db992024-01-04 20:25:141518 {"migrate-syncing-user-to-signed-in",
1519 flag_descriptions::kMigrateSyncingUserToSignedInName,
1520 flag_descriptions::kMigrateSyncingUserToSignedInDescription,
1521 flags_ui::kOsIos,
1522 FEATURE_VALUE_TYPE(switches::kMigrateSyncingUserToSignedIn)},
1523 {"undo-migration-of-syncing-user-to-signed-in",
1524 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInName,
1525 flag_descriptions::kUndoMigrationOfSyncingUserToSignedInDescription,
1526 flags_ui::kOsIos,
1527 FEATURE_VALUE_TYPE(switches::kUndoMigrationOfSyncingUserToSignedIn)},
Mustafa Emre Acer05412ee2024-01-11 01:03:551528 {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName,
1529 flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos,
1530 FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)},
Robbie Gibsona04957be2024-01-15 19:52:461531 {"contextual-panel", flag_descriptions::kContextualPanelName,
1532 flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos,
Nicolas MacBethc738c4e2024-07-19 21:14:191533 FEATURE_WITH_PARAMS_VALUE_TYPE(kContextualPanel,
1534 kContextualPanelEntrypointArmVariations,
1535 "ContextualPanel")},
Nicolas MacBeth47d6b622024-01-16 17:05:391536 {"contextual-panel-force-show-entrypoint",
1537 flag_descriptions::kContextualPanelForceShowEntrypointName,
1538 flag_descriptions::kContextualPanelForceShowEntrypointDescription,
1539 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContextualPanelForceShowEntrypoint)},
adamtad0e8cfc2024-01-16 18:43:471540 {"enable-ipad-feed-ghost-cards",
1541 flag_descriptions::kEnableiPadFeedGhostCardsName,
1542 flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos,
1543 FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)},
Christian Xu11df0ae2024-02-08 16:07:511544 {"omnibox-rich-autocompletion",
1545 flag_descriptions::kOmniboxRichAutocompletionName,
1546 flag_descriptions::kOmniboxRichAutocompletionDescription, flags_ui::kOsIos,
Christian Xu10b84d72024-04-09 17:12:331547 FEATURE_WITH_PARAMS_VALUE_TYPE(
1548 omnibox::kRichAutocompletion,
1549 kRichAutocompletionImplementationVariations,
1550 "RichAutocompletionImplementationVariations")},
Jason Hud445445f2024-02-02 18:28:121551 {"disable-lens-camera", flag_descriptions::kDisableLensCameraName,
1552 flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos,
1553 FEATURE_VALUE_TYPE(kDisableLensCamera)},
Charles Yang30c90b92024-03-08 18:00:591554 {"omnibox-color-icons", flag_descriptions::kOmniboxColorIconsName,
1555 flag_descriptions::kOmniboxColorIconsDescription, flags_ui::kOsIos,
1556 FEATURE_VALUE_TYPE(kOmniboxColorIcons)},
Charles Yang682634b2024-03-19 01:46:091557 {"enable-color-lens-and-voice-icons-in-home-screen-widget",
1558 flag_descriptions::kEnableColorLensAndVoiceIconsInHomeScreenWidgetName,
1559 flag_descriptions::
1560 kEnableColorLensAndVoiceIconsInHomeScreenWidgetDescription,
1561 flags_ui::kOsIos,
1562 FEATURE_VALUE_TYPE(kEnableColorLensAndVoiceIconsInHomeScreenWidget)},
Alexander Tekleeebe42b92024-02-23 21:27:151563 {"autofill-enable-card-benefits-for-american-express",
1564 flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName,
1565 flag_descriptions::
1566 kAutofillEnableCardBenefitsForAmericanExpressDescription,
1567 flags_ui::kOsIos,
1568 FEATURE_VALUE_TYPE(
1569 autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)},
1570 {"autofill-enable-card-benefits-for-capital-one",
1571 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneName,
1572 flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneDescription,
1573 flags_ui::kOsIos,
1574 FEATURE_VALUE_TYPE(
1575 autofill::features::kAutofillEnableCardBenefitsForCapitalOne)},
Yishui Liub88a38c2024-02-28 08:46:551576 {"autofill-enable-card-benefits-sync",
1577 flag_descriptions::kAutofillEnableCardBenefitsSyncName,
1578 flag_descriptions::kAutofillEnableCardBenefitsSyncDescription,
1579 flags_ui::kOsIos,
1580 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)},
Rubin Deliallisi4170b1c2024-02-28 16:15:421581 {"linked-services-setting-ios",
1582 flag_descriptions::kLinkedServicesSettingIosName,
1583 flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos,
1584 FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)},
Aliona DANGLA52e69ff2024-02-29 12:22:281585 {"disable-fullscreen-scrolling",
1586 flag_descriptions::kDisableFullscreenScrollingName,
1587 flag_descriptions::kDisableFullscreenScrollingDescription,
1588 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDisableFullscreenScrolling)},
hvs7c6cb402024-03-27 02:39:001589 {"autofill-enable-prefetching-risk-data-for-retrieval",
1590 flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName,
Vincent Boisselle2e95b882024-03-29 21:03:561591 flag_descriptions::
1592 kAutofillEnablePrefetchingRiskDataForRetrievalDescription,
hvs7c6cb402024-03-27 02:39:001593 flags_ui::kOsIos,
Vincent Boisselle2e95b882024-03-29 21:03:561594 FEATURE_VALUE_TYPE(
1595 autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)},
1596 {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName,
1597 flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos,
1598 FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)},
Raj Tc66dd122024-04-01 18:48:391599 {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName,
1600 flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos,
1601 FEATURE_VALUE_TYPE(
1602 page_content_annotations::features::kPageContentAnnotations)},
1603 {"page-content-annotations-persist-salient-image-metadata",
1604 flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName,
1605 flag_descriptions::
1606 kPageContentAnnotationsPersistSalientImageMetadataDescription,
1607 flags_ui::kOsIos,
1608 FEATURE_VALUE_TYPE(
1609 page_content_annotations::features::
1610 kPageContentAnnotationsPersistSalientImageMetadata)},
1611 {"page-content-annotations-remote-page-metadata",
1612 flag_descriptions::kPageContentAnnotationsRemotePageMetadataName,
1613 flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription,
1614 flags_ui::kOsIos,
1615 FEATURE_VALUE_TYPE(
1616 page_content_annotations::features::kRemotePageMetadata)},
1617 {"page-visibility-page-content-annotations",
1618 flag_descriptions::kPageVisibilityPageContentAnnotationsName,
1619 flag_descriptions::kPageVisibilityPageContentAnnotationsDescription,
1620 flags_ui::kOsIos,
1621 FEATURE_VALUE_TYPE(page_content_annotations::features::
1622 kPageVisibilityPageContentAnnotations)},
Daniel White7867261f2024-04-02 19:08:121623 {"enhanced-safe-browsing-promo",
1624 flag_descriptions::kEnhancedSafeBrowsingPromoName,
1625 flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos,
Daniel Whiteb6285082024-05-03 18:00:021626 FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)},
Sebsgfcd5b0b2024-04-09 08:18:321627 {"cpe-performance-improvements",
1628 flag_descriptions::kCredentialProviderPerformanceImprovementsName,
1629 flag_descriptions::kCredentialProviderPerformanceImprovementsDescription,
1630 flags_ui::kOsIos,
1631 FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)},
Vincent Boissellea1f27f322024-04-17 14:53:191632 {"password-manager-detect-username-in-uff",
1633 flag_descriptions::kIOSDetectUsernameInUffName,
vincbb01c53ed2024-08-22 13:09:561634 flag_descriptions::kIOSDetectUsernameInUffDescription, flags_ui::kOsIos,
Vincent Boissellea1f27f322024-04-17 14:53:191635 FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)},
Jérôme Lebel993c7e3d2024-07-08 14:05:351636 {"identity-disc-account-menu",
1637 flag_descriptions::kIdentityDiscAccountMenuName,
1638 flag_descriptions::kIdentityDiscAccountMenuDescription, flags_ui::kOsIos,
1639 FEATURE_VALUE_TYPE(kIdentityDiscAccountMenu)},
Jood Hajeer3867886d2024-07-29 16:15:351640 {"identity-confirmation-snackbar",
1641 flag_descriptions::kIdentityConfirmationSnackbarName,
1642 flag_descriptions::kIdentityConfirmationSnackbarDescription,
1643 flags_ui::kOsIos,
1644 FEATURE_WITH_PARAMS_VALUE_TYPE(
1645 kIdentityConfirmationSnackbar,
1646 kIdentityConfirmationSnackbarTestingVariations,
1647 "IdentityConfirmationSnackbar")},
Filipa Senrabe00cbe2024-04-19 14:21:331648 {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName,
1649 flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos,
1650 FEATURE_VALUE_TYPE(kIOSQuickDelete)},
Vipul Vinod Koul1629a192024-04-24 00:04:001651 {"autofill-enable-verve-card-support",
1652 flag_descriptions::kAutofillEnableVerveCardSupportName,
1653 flag_descriptions::kAutofillEnableVerveCardSupportDescription,
1654 flags_ui::kOsIos,
1655 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)},
Ameur Hosni20b75fe52024-04-24 16:36:021656 {"omnibox-actions-in-suggest",
1657 flag_descriptions::kOmniboxActionsInSuggestName,
1658 flag_descriptions::kOmniboxActionsInSuggestDescription, flags_ui::kOsIos,
1659 FEATURE_VALUE_TYPE(kOmniboxActionsInSuggest)},
Ewann Pelle34939b62024-08-22 10:45:491660 {"tab-group-sync", flag_descriptions::kTabGroupSyncName,
1661 flag_descriptions::kTabGroupSyncDescription, flags_ui::kOsIos,
Louis Romero5a84afc2024-04-25 10:29:201662 FEATURE_VALUE_TYPE(kTabGroupSync)},
Kavita Sonic8eaa982024-05-16 17:09:111663 {"autofill-enable-save-card-loading-and-confirmation",
1664 flag_descriptions::kAutofillEnableSaveCardLoadingAndConfirmationName,
1665 flag_descriptions::
1666 kAutofillEnableSaveCardLoadingAndConfirmationDescription,
1667 flags_ui::kOsIos,
1668 FEATURE_VALUE_TYPE(
1669 autofill::features::kAutofillEnableSaveCardLoadingAndConfirmation)},
1670 {"autofill-enable-save-card-local-save-fallback",
1671 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackName,
1672 flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackDescription,
1673 flags_ui::kOsIos,
1674 FEATURE_VALUE_TYPE(
1675 autofill::features::kAutofillEnableSaveCardLocalSaveFallback)},
1676 {"autofill-enable-vcn-enroll-loading-and-confirmation",
1677 flag_descriptions::kAutofillEnableVcnEnrollLoadingAndConfirmationName,
1678 flag_descriptions::
1679 kAutofillEnableVcnEnrollLoadingAndConfirmationDescription,
1680 flags_ui::kOsIos,
1681 FEATURE_VALUE_TYPE(
1682 autofill::features::kAutofillEnableVcnEnrollLoadingAndConfirmation)},
Ameur Hosni3d764c92024-05-28 14:11:121683 {"omnibox-suggestion-answer-migration",
1684 flag_descriptions::kOmniboxSuggestionAnswerMigrationName,
1685 flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription,
1686 flags_ui::kOsIos,
1687 FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration::
Olivier Robin51ffd172024-05-29 08:56:301688 kOmniboxSuggestionAnswerMigration)},
1689 {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name,
1690 flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos,
Olivier Robinf8374f12024-06-05 19:00:041691 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5,
1692 kTabResumption15Variations,
1693 "TabResumption1_5")},
Hira Mahmood6e2a894e2024-05-31 15:18:191694 {"send-tab-ios-push-notifications",
1695 flag_descriptions::kSendTabToSelfIOSPushNotificationsName,
1696 flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription,
1697 flags_ui::kOsIos,
Hira Mahmood00c17e52024-10-09 14:30:481698 FEATURE_WITH_PARAMS_VALUE_TYPE(
1699 send_tab_to_self::kSendTabToSelfIOSPushNotifications,
1700 kSendTabIOSPushNotificationsVariations,
1701 "SendTabToSelfIOSPushNotifications")},
Olivier Robin08bc56d02024-06-05 14:05:181702 {"tab-resumption-2", flag_descriptions::kTabResumption2Name,
1703 flag_descriptions::kTabResumption2Description, flags_ui::kOsIos,
Olivier ROBINb17c14b92024-10-09 13:49:131704 FEATURE_VALUE_TYPE(kTabResumption2)},
Olivier ROBINcb76f4fe2024-06-05 16:11:421705 {"page-image-service-optimization-guide-salient-images",
1706 flag_descriptions::kPageImageServiceSalientImageName,
1707 flag_descriptions::kPageImageServiceSalientImageDescription,
1708 flags_ui::kOsIos,
1709 FEATURE_WITH_PARAMS_VALUE_TYPE(
1710 page_image_service::kImageServiceOptimizationGuideSalientImages,
1711 kImageServiceOptimizationGuideSalientImagesVariations,
1712 "PageImageService")},
Elmehdi Rahmaouifafd5b72024-06-06 08:34:221713 {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName,
1714 flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos,
1715 FEATURE_VALUE_TYPE(kDownloadedPDFOpening)},
Salma Elmahallawyc2383802024-06-06 23:36:031716 {"clear-device-data-on-signout-for-managed-users",
1717 flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersName,
1718 flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersDescription,
1719 flags_ui::kOsIos,
1720 FEATURE_VALUE_TYPE(kClearDeviceDataOnSignOutForManagedUsers)},
Charles Yangf8e7adf2024-06-11 00:17:001721 {"lens-filters-ablation-mode-enabled",
1722 flag_descriptions::kLensFiltersAblationModeEnabledName,
1723 flag_descriptions::kLensFiltersAblationModeEnabledDescription,
1724 flags_ui::kOsIos,
1725 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled,
1726 kLensFiltersAblationModeVariations,
1727 "LensFiltersAblationMode")},
1728 {"lens-translate-toogle-mode-enabled",
1729 flag_descriptions::kLensTranslateToggleModeEnabledName,
1730 flag_descriptions::kLensTranslateToggleModeEnabledDescription,
1731 flags_ui::kOsIos,
1732 FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled,
1733 kLensTranslateToggleModeVariations,
1734 "LensTranslateToggleMode")},
Quentin Pubertb0984c72024-06-12 15:41:591735 {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName,
1736 flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos,
1737 FEATURE_VALUE_TYPE(kIOSChooseFromDrive)},
Khalid Peer7cf75a22024-06-13 17:25:491738 {"omnibox-ml-log-url-scoring-signals",
1739 flag_descriptions::kOmniboxMlLogUrlScoringSignalsName,
1740 flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription,
1741 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)},
1742 {"omnibox-ml-url-piecewise-mapped-search-blending",
1743 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName,
1744 flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription,
1745 flags_ui::kOsIos,
1746 FEATURE_WITH_PARAMS_VALUE_TYPE(
1747 omnibox::kMlUrlPiecewiseMappedSearchBlending,
1748 kMlUrlPiecewiseMappedSearchBlendingVariations,
1749 "MlUrlPiecewiseMappedSearchBlending")},
1750 {"omnibox-ml-url-score-caching",
1751 flag_descriptions::kOmniboxMlUrlScoreCachingName,
1752 flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos,
1753 FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)},
1754 {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName,
1755 flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos,
1756 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring,
1757 kOmniboxMlUrlScoringVariations,
1758 "MlUrlScoring")},
1759 {"omnibox-ml-url-search-blending",
1760 flag_descriptions::kOmniboxMlUrlSearchBlendingName,
1761 flag_descriptions::kOmniboxMlUrlSearchBlendingDescription,
1762 flags_ui::kOsIos,
1763 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending,
1764 kMlUrlSearchBlendingVariations,
1765 "MlUrlScoring")},
1766 {"omnibox-ml-url-scoring-model",
1767 flag_descriptions::kOmniboxMlUrlScoringModelName,
1768 flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos,
Khalid Peer4501c1f2024-06-27 16:12:041769 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel,
1770 kUrlScoringModelVariations,
1771 "MlUrlScoring")},
ginnnnnnny4d843e402024-06-14 10:39:531772 {"default-browser-promo-ipad-experimental-string",
1773 flag_descriptions::kDefaultBrowserPromoIPadExperimentalStringName,
1774 flag_descriptions::kDefaultBrowserPromoIPadExperimentalStringDescription,
1775 flags_ui::kOsIos,
1776 FEATURE_VALUE_TYPE(kDefaultBrowserPromoIPadExperimentalString)},
Siyu An4a486f02024-06-18 19:41:281777 {"autofill-show-manual-fill-for-virtual-cards",
1778 flag_descriptions::kAutofillShowManualFillForVirtualCardsName,
1779 flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription,
1780 flags_ui::kOsIos,
1781 FEATURE_VALUE_TYPE(
1782 autofill::features::kAutofillShowManualFillForVirtualCards)},
adamtaf85e48d2024-07-08 17:13:291783 {"home-customization", flag_descriptions::kHomeCustomizationName,
1784 flag_descriptions::kHomeCustomizationDescription, flags_ui::kOsIos,
1785 FEATURE_VALUE_TYPE(kHomeCustomization)},
Benjamin Williams0594caf2024-07-09 17:51:381786 {"safety-check-notifications",
1787 flag_descriptions::kSafetyCheckNotificationsName,
1788 flag_descriptions::kSafetyCheckNotificationsDescription, flags_ui::kOsIos,
1789 FEATURE_WITH_PARAMS_VALUE_TYPE(kSafetyCheckNotifications,
1790 kSafetyCheckNotificationsVariations,
1791 "SafetyCheckNotifications")},
Federica Germinarioa1fe0902024-07-12 08:28:461792 {"app-background-refresh-ios", flag_descriptions::kAppBackgroundRefreshName,
1793 flag_descriptions::kAppBackgroundRefreshDescription, flags_ui::kOsIos,
1794 FEATURE_VALUE_TYPE(kEnableAppBackgroundRefresh)},
Gauthier Ambard6648c992024-07-12 17:22:191795 {"inactive-tab-button-refactoring",
1796 flag_descriptions::kInactiveTabButtonRefactoringName,
1797 flag_descriptions::kInactiveTabButtonRefactoringDescription,
1798 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kInactiveTabButtonRefactoring)},
Chris Lu3eba26312024-07-12 20:21:381799 {"home-memory-improvements", flag_descriptions::kHomeMemoryImprovementsName,
1800 flag_descriptions::kHomeMemoryImprovementsDescription, flags_ui::kOsIos,
1801 FEATURE_VALUE_TYPE(kHomeMemoryImprovements)},
Stephen McGruer8fe98b62024-07-16 13:10:131802 {"autofill-upload-card-request-timeout",
1803 flag_descriptions::kAutofillUploadCardRequestTimeoutName,
1804 flag_descriptions::kAutofillUploadCardRequestTimeoutDescription,
1805 flags_ui::kOsIos,
1806 FEATURE_WITH_PARAMS_VALUE_TYPE(
1807 autofill::features::kAutofillUploadCardRequestTimeout,
1808 kAutofillUploadCardRequestTimeoutOptions,
1809 "AutofillUploadCardRequestTimeout")},
Karol Sygiet6ac82c82024-07-16 14:22:391810 {"clear-undecryptable-passwords",
1811 flag_descriptions::kClearUndecryptablePasswordsName,
1812 flag_descriptions::kClearUndecryptablePasswordsDescription,
1813 flags_ui::kOsIos,
1814 FEATURE_VALUE_TYPE(
1815 password_manager::features::kClearUndecryptablePasswords)},
Stephen McGruer0904cae2024-07-17 19:54:461816 {"autofill-vcn-enroll-request-timeout",
1817 flag_descriptions::kAutofillVcnEnrollRequestTimeoutName,
1818 flag_descriptions::kAutofillVcnEnrollRequestTimeoutDescription,
1819 flags_ui::kOsIos,
1820 FEATURE_WITH_PARAMS_VALUE_TYPE(
1821 autofill::features::kAutofillVcnEnrollRequestTimeout,
1822 kAutofillVcnEnrollRequestTimeoutOptions,
1823 "AutofillVcnEnrollRequestTimeout")},
Charles Yang98bef0c2024-07-19 12:24:141824 {"lens-web-page-load-optimization-enabled",
1825 flag_descriptions::kLensWebPageLoadOptimizationEnabledName,
1826 flag_descriptions::kLensWebPageLoadOptimizationEnabledDescription,
1827 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageLoadOptimizationEnabled)},
Eric Ekey4a930592024-07-19 18:58:141828 {"segmented-default-browser-promo",
1829 flag_descriptions::kSegmentedDefaultBrowserPromoName,
1830 flag_descriptions::kSegmentedDefaultBrowserPromoDescription,
1831 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSegmentedDefaultBrowserPromo)},
Nicolas MacBethc738c4e2024-07-19 21:14:191832 {"rich-bubble-without-image",
1833 flag_descriptions::kRichBubbleWithoutImageName,
1834 flag_descriptions::kRichBubbleWithoutImageDescription, flags_ui::kOsIos,
1835 FEATURE_VALUE_TYPE(kRichBubbleWithoutImage)},
Junhui He52294652024-07-23 23:50:151836 {"autofill-unmask-card-request-timeout",
1837 flag_descriptions::kAutofillUnmaskCardRequestTimeoutName,
1838 flag_descriptions::kAutofillUnmaskCardRequestTimeoutDescription,
1839 flags_ui::kOsIos,
1840 FEATURE_VALUE_TYPE(autofill::features::kAutofillUnmaskCardRequestTimeout)},
vincbe1379832024-08-06 19:08:121841 {"autofill-across-iframes", flag_descriptions::kAutofillAcrossIframesName,
1842 flag_descriptions::kAutofillAcrossIframesDescription, flags_ui::kOsIos,
1843 FEATURE_VALUE_TYPE(autofill::features::kAutofillAcrossIframesIos)},
Cristian Ciacu62fe1912024-08-07 10:14:501844 {"ios-page-info-last-visited",
1845 flag_descriptions::kPageInfoLastVisitedIOSName,
1846 flag_descriptions::kPageInfoLastVisitedIOSDescription, flags_ui::kOsIos,
1847 FEATURE_VALUE_TYPE(kPageInfoLastVisitedIOS)},
Daniel White1ced9e62024-08-15 19:27:381848 {"enable-trait-collection-registration",
1849 flag_descriptions::kEnableTraitCollectionRegistrationName,
1850 flag_descriptions::kEnableTraitCollectionRegistrationDescription,
1851 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableTraitCollectionRegistration)},
Ernesto Izquierdo Cluaebe0a0252024-08-19 22:05:541852 {"autofill-isolated-world-ios",
1853 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSName,
1854 flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSDescription,
1855 flags_ui::kOsIos,
1856 FEATURE_VALUE_TYPE(kAutofillIsolatedWorldForJavascriptIos)},
Ewann Pelle34939b62024-08-22 10:45:491857 {"tab-group-indicator", flag_descriptions::kTabGroupIndicatorName,
1858 flag_descriptions::kTabGroupIndicatorDescription, flags_ui::kOsIos,
1859 FEATURE_VALUE_TYPE(kTabGroupIndicator)},
thefrog8ed47452024-08-30 13:32:481860 {"safe-browsing-local-lists-use-sbv5",
1861 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Name,
1862 flag_descriptions::kSafeBrowsingLocalListsUseSBv5Description,
1863 flags_ui::kOsIos, FEATURE_VALUE_TYPE(safe_browsing::kLocalListsUseSBv5)},
Chris Lu4c688e02024-09-07 00:48:081864 {"ios-price-tracking-notification-promo-card",
1865 flag_descriptions::kPriceTrackingPromoName,
1866 flag_descriptions::kPriceTrackingPromoDescription, flags_ui::kOsIos,
1867 FEATURE_VALUE_TYPE(commerce::kPriceTrackingPromo)},
1868 {"ios-segmentation-ephemeral-card-ranker",
1869 flag_descriptions::kSegmentationPlatformEphemeralCardRankerName,
1870 flag_descriptions::kSegmentationPlatformEphemeralCardRankerDescription,
1871 flags_ui::kOsIos,
1872 FEATURE_WITH_PARAMS_VALUE_TYPE(
1873 segmentation_platform::features::
1874 kSegmentationPlatformEphemeralCardRanker,
1875 kEphemeralCardRankerCardOverrideOptions,
1876 "SegmentationPlatformEphemeralCardRanker")},
Asami Doi55f87dd2024-09-12 12:55:481877 {"new-sync-opt-in-illustration",
1878 flag_descriptions::kNewSyncOptInIllustrationName,
1879 flag_descriptions::kNewSyncOptInIllustrationDescription, flags_ui::kOsIos,
1880 FEATURE_VALUE_TYPE(kNewSyncOptInIllustration)},
Alexander Tekle8cf3c8e2024-09-13 21:38:071881 {"autofill-enable-log-form-events-to-all-parsed-form-types",
1882 flag_descriptions::kAutofillEnableLogFormEventsToAllParsedFormTypesName,
1883 flag_descriptions::
1884 kAutofillEnableLogFormEventsToAllParsedFormTypesDescription,
1885 flags_ui::kOsIos,
1886 FEATURE_VALUE_TYPE(
1887 autofill::features::kAutofillEnableLogFormEventsToAllParsedFormTypes)},
Ananya Seelam2893d7b2024-09-23 19:49:391888 {"omnibox-on-clobber-focus-type-on-ios",
1889 flag_descriptions::kOmniboxOnClobberFocusTypeOnIOSName,
1890 flag_descriptions::kOmniboxOnClobberFocusTypeOnIOSDescription,
1891 flags_ui::kOsIos,
1892 FEATURE_VALUE_TYPE(omnibox::kOmniboxOnClobberFocusTypeOnContent)},
Benjamin Williamsef9cfad2024-09-23 22:44:231893 {"segmentation-tips-manager",
1894 flag_descriptions::kSegmentationTipsManagerName,
1895 flag_descriptions::kSegmentationTipsManagerDescription, flags_ui::kOsIos,
1896 FEATURE_VALUE_TYPE(kSegmentationTipsManager)},
Ameur Hosni22b62d92024-09-25 10:51:021897 {"lens-overlay-force-show-onboarding-screen",
1898 flag_descriptions::kLensOverlayForceShowOnboardingScreenName,
1899 flag_descriptions::kLensOverlayForceShowOnboardingScreenDescription,
1900 flags_ui::kOsIos,
1901 FEATURE_VALUE_TYPE(kLensOverlayForceShowOnboardingScreen)},
Briana McClure69705022024-09-25 20:13:561902 {"tips-magic-stack", flag_descriptions::kTipsMagicStackName,
1903 flag_descriptions::kTipsMagicStackDescription, flags_ui::kOsIos,
1904 FEATURE_VALUE_TYPE(kTipsMagicStack)},
Gauthier Ambard766f4cf2024-09-26 16:56:251905 {"data-sharing", flag_descriptions::kDataSharingName,
1906 flag_descriptions::kDataSharingDescription, flags_ui::kOsIos,
1907 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingFeature)},
1908 {"data-sharing-join-only", flag_descriptions::kDataSharingJoinOnlyName,
1909 flag_descriptions::kDataSharingJoinOnlyDescription, flags_ui::kOsIos,
1910 FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingJoinOnly)},
Rubin Deliallisib66a77a2024-10-02 18:09:481911 {"ios-soft-lock", flag_descriptions::kIOSSoftLockName,
1912 flag_descriptions::kIOSSoftLockDescription, flags_ui::kOsIos,
Marc Treib31e4f9f2024-10-07 09:55:541913 FEATURE_VALUE_TYPE(kIOSSoftLock)},
1914 {"separate-profiles-for-managed-accounts",
1915 flag_descriptions::kSeparateProfilesForManagedAccountsName,
1916 flag_descriptions::kSeparateProfilesForManagedAccountsDescription,
Olivier ROBINb17c14b92024-10-09 13:49:131917 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSeparateProfilesForManagedAccounts)},
1918 {"tab-resumption-2-reason", flag_descriptions::kTabResumption2ReasonName,
1919 flag_descriptions::kTabResumption2ReasonDescription, flags_ui::kOsIos,
1920 FEATURE_VALUE_TYPE(kTabResumption2Reason)},
1921 {"tab-resumption-images", flag_descriptions::kTabResumptionImagesName,
1922 flag_descriptions::kTabResumptionImagesDescription, flags_ui::kOsIos,
1923 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumptionImages,
1924 kTabResumptionImagesVariations,
1925 "TabResumption1_5")},
1926};
sdefresne14900ee2015-11-27 14:43:211927
Rohit Raobed794c2020-04-27 15:27:451928bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1929 return false;
1930}
1931
1932flags_ui::FlagsState& GetGlobalFlagsState() {
1933 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1934 nullptr);
1935 return *flags_state;
1936}
David Jean5ca263c2021-08-18 09:19:301937// Creates the experimental test policies map, used by AsyncPolicyLoader and
1938// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341939NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211940 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1941
Guillaume Jenkins25e9bd72020-08-27 17:39:061942 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551943 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061944 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551945
Guillaume Jenkins25e9bd72020-08-27 17:39:061946 // Set some sample policy values for testing if EnableSamplePolicies is set to
1947 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401948 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551949 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011950 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1951
Guillaume Jenkinseeb7007c2020-06-25 22:55:401952 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1953
1954 // 2 = Disable all variations
1955 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1956
1957 // 2 = Do not allow any site to show popups
1958 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1959
Tina Wang5abee802020-07-29 23:09:521960 // Set default search engine.
1961 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1962 @YES,
1963 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1964 @"http://www.google.com/search?q={searchTerms}",
1965 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021966 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521967
Tina Wang89068c842020-10-29 15:51:501968 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1969
Gauthier Ambard21b23702021-04-16 16:11:271970 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1971
Tina Wang59d0b7e2020-08-11 04:41:011972 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531973
1974 // 2 = Enhanced safe browsing protection
1975 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1976
1977 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291978
1979 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551980 }];
1981 }
1982
Ewann227a3c02021-04-19 12:04:541983 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041984 NSString* sync_policy_key =
1985 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301986 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541987 }
Ewann227a3c02021-04-19 12:04:541988
Ewann570a6302021-08-17 07:22:421989 // SyncTypesListDisabled policy.
1990 NSString* Sync_types_list_disabled_key =
1991 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1992 NSMutableArray* Sync_types_list_disabled_values =
1993 [[NSMutableArray alloc] init];
1994 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
1995 [Sync_types_list_disabled_values addObject:@"bookmarks"];
1996 }
1997 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
1998 [Sync_types_list_disabled_values addObject:@"readingList"];
1999 }
2000 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
2001 [Sync_types_list_disabled_values addObject:@"preferences"];
2002 }
2003 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
2004 [Sync_types_list_disabled_values addObject:@"passwords"];
2005 }
2006 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
2007 [Sync_types_list_disabled_values addObject:@"autofill"];
2008 }
2009 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
2010 [Sync_types_list_disabled_values addObject:@"typedUrls"];
2011 }
2012 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
2013 [Sync_types_list_disabled_values addObject:@"tabs"];
2014 }
2015 if ([Sync_types_list_disabled_values count]) {
2016 [testing_policies addEntriesFromDictionary:@{
2017 Sync_types_list_disabled_key : Sync_types_list_disabled_values
2018 }];
Ewann570a6302021-08-17 07:22:422019 }
2020
Gauthier Ambard073eaa92021-11-22 15:24:132021 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:522022 NSString* incognito_policy_key =
2023 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
2024 NSInteger incognito_mode_availability =
2025 [defaults integerForKey:incognito_policy_key];
2026 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:522027 [testing_policies addEntriesFromDictionary:@{
2028 incognito_policy_key : @(incognito_mode_availability),
2029 }];
2030 }
2031
Ewann40a8f8a2021-07-29 10:01:202032 NSString* restriction_pattern =
2033 [defaults stringForKey:@"RestrictAccountsToPatterns"];
2034 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:292035 NSString* restrict_key =
2036 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:202037 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:292038 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:202039 }];
2040 }
2041
Vincent Boisselle19200bc2021-09-01 17:58:252042 // If the sign-in policy is set (not "None"), add the policy key to the list
2043 // of enabled experimental policies, and set the value.
2044 NSString* const kSigninPolicyKey = @"BrowserSignin";
2045 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
2046 if (signin_policy_mode) {
2047 // Remove the mode offset that was used to represent the unset policy.
2048 --signin_policy_mode;
2049 DCHECK(signin_policy_mode >= 0);
2050
Vincent Boisselle19200bc2021-09-01 17:58:252051 [testing_policies addEntriesFromDictionary:@{
2052 kSigninPolicyKey : @(signin_policy_mode),
2053 }];
2054 }
2055
Veronique Nguyen9b1044f2022-01-11 14:41:132056 // If the New Tab Page URL is set (not empty) add the value to the list of
2057 // test policies.
2058 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
2059 if ([ntp_location length] > 0) {
2060 NSString* ntp_location_key =
2061 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
2062 [testing_policies
2063 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:572064 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:132065 }
2066
Ali Juma9ec36d22022-03-28 14:53:122067 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
2068 NSString* allow_backups_key =
2069 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
2070 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
2071 [allowed_experimental_policies addObject:allow_backups_key];
2072 }
2073
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242074 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
2075 NSString* password_manager_key =
2076 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
2077 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
2078 [allowed_experimental_policies addObject:password_manager_key];
2079 }
Vincent Boisselle003569a72023-09-11 16:03:122080
2081 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
2082 NSString* user_policy_merge_key =
2083 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
2084 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
2085 [allowed_experimental_policies addObject:user_policy_merge_key];
2086 }
2087
Arthur Milchiorbb44f5c82023-03-14 16:14:462088 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
2089 NSString* managed_bookmarks_key =
2090 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
2091 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:572092 @"["
2093 // The following gets filtered out from
2094 // the JSON string when parsed.
2095 " {"
2096 " \"toplevel_name\": \"Managed Bookmarks\""
2097 " },"
2098 " {"
2099 " \"name\": \"Google\","
2100 " \"url\": \"google.com\""
2101 " },"
2102 " {"
2103 " \"name\": \"Empty Folder\","
2104 " \"children\": []"
2105 " },"
2106 " {"
2107 " \"name\": \"Big Folder\","
2108 " \"children\": ["
2109 " {"
2110 " \"name\": \"Youtube\","
2111 " \"url\": \"youtube.com\""
2112 " },"
2113 " {"
2114 " \"name\": \"Chromium\","
2115 " \"url\": \"chromium.org\""
2116 " },"
2117 " {"
2118 " \"name\": \"More Stuff\","
2119 " \"children\": ["
2120 " {"
2121 " \"name\": \"Bugs\","
2122 " \"url\": \"crbug.com\""
2123 " }"
2124 " ]"
2125 " }"
2126 " ]"
2127 " }"
2128 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:462129 [testing_policies addEntriesFromDictionary:@{
2130 managed_bookmarks_key : managed_bookmarks_value
2131 }];
2132 [allowed_experimental_policies addObject:managed_bookmarks_key];
2133 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:242134
Guillaume Jenkins25e9bd72020-08-27 17:39:062135 // If any experimental policy was allowed, set the EnableExperimentalPolicies
2136 // policy.
2137 if ([allowed_experimental_policies count] > 0) {
2138 [testing_policies setValue:allowed_experimental_policies
2139 forKey:base::SysUTF8ToNSString(
2140 policy::key::kEnableExperimentalPolicies)];
2141 }
2142
jlebel2eb40222022-05-06 11:15:422143 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
2144 switch ([defaults integerForKey:metrics_reporting_key]) {
2145 case 1:
2146 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:132147 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422148 break;
2149 case 2:
2150 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:132151 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:422152 break;
2153 default:
2154 // Metrics reporting not managed.
2155 break;
2156 }
2157
David Jean6f85d44f2021-08-19 08:08:452158 // Warning: Add new flags to TestingPoliciesHash() below.
2159
David Jean5ca263c2021-08-18 09:19:302160 return testing_policies;
2161}
David Jean6f85d44f2021-08-19 08:08:452162
David Jean5ca263c2021-08-18 09:19:302163} // namespace
2164
Gauthier Ambard02dbf022022-08-23 08:28:472165// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:302166void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
2167 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
2168
2169 // Set the UA flag if UseMobileSafariUA is enabled.
2170 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
2171 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
2172 // Chrome puts its product token.
2173 int32_t major = 0;
2174 int32_t minor = 0;
2175 int32_t bugfix = 0;
2176 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
2177 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
2178
2179 command_line->AppendSwitchASCII(switches::kUserAgent,
2180 web::BuildMobileUserAgent(product));
2181 }
2182
2183 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:342184 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:302185
2186 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
2187 // Management to enabled and add the token to the list of policies.
2188 NSString* token_key =
2189 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
2190 NSString* token = [defaults stringForKey:token_key];
2191
2192 if ([token length] > 0) {
2193 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
2194 [testing_policies setValue:token forKey:token_key];
2195 }
2196
Guillaume Jenkins57606d72020-08-13 17:32:552197 // If some policies were set, commit them to the app's registration defaults.
2198 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:402199 NSDictionary* registration_defaults =
2200 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
2201 [defaults registerDefaults:registration_defaults];
2202 }
2203
sdefresne14900ee2015-11-27 14:43:212204 // Freeform commandline flags. These are added last, so that any flags added
2205 // earlier in this function take precedence.
2206 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
2207 base::CommandLine::StringVector flags;
2208 // Append an empty "program" argument.
2209 flags.push_back("");
2210
2211 // The number of flags corresponds to the number of text fields in
2212 // Experimental.plist.
2213 const int kNumFreeformFlags = 5;
2214 for (int i = 1; i <= kNumFreeformFlags; ++i) {
2215 NSString* key =
2216 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
2217 NSString* flag = [defaults stringForKey:key];
2218 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:332219 // iOS keyboard replaces -- with —, so undo that.
2220 flag = [flag stringByReplacingOccurrencesOfString:@"—"
2221 withString:@"--"
2222 options:0
2223 range:NSMakeRange(0, 1)];
2224 // To make things easier, allow flags with no dashes by prepending them
2225 // here. This also allows for flags that just have one dash if they
2226 // exist.
2227 if (![flag hasPrefix:@"-"]) {
2228 flag = [@"--" stringByAppendingString:flag];
2229 }
sdefresne14900ee2015-11-27 14:43:212230 flags.push_back(base::SysNSStringToUTF8(flag));
2231 }
2232 }
2233
2234 base::CommandLine temp_command_line(flags);
2235 command_line->AppendArguments(temp_command_line, false);
2236 }
msardafc76f662017-02-24 12:46:282237
justincohendacc85d2017-06-28 23:34:102238 // Populate command line flag for 3rd party keyboard omnibox workaround.
2239 NSString* enableThirdPartyKeyboardWorkaround =
2240 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
2241 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
2242 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
2243 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
2244 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
2245 }
2246
Sylvain Defresned3cd8d92022-01-18 13:35:082247 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:212248}
2249
sdefresne14900ee2015-11-27 14:43:212250void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
2251 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:182252 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112253 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532254 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212255}
2256
jkrcalbf073372016-07-29 07:21:312257std::vector<std::string> RegisterAllFeatureVariationParameters(
2258 flags_ui::FlagsStorage* flags_storage,
2259 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182260 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2261 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312262}
2263
sdefresne14900ee2015-11-27 14:43:212264void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2265 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502266 base::Value::List& supported_entries,
2267 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182268 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212269 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512270 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212271}
2272
2273void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2274 const std::string& internal_name,
2275 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182276 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2277 enable);
sdefresne14900ee2015-11-27 14:43:212278}
2279
2280void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182281 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212282}
2283
Nicolas MacBeth972e2592023-02-23 15:22:092284bool IsRestartNeededToCommitChanges() {
2285 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2286}
2287
sdefresne14900ee2015-11-27 14:43:212288namespace testing {
2289
Elly Fong-Jones323ab1092021-08-23 22:36:312290base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2291 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532292 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212293}
2294
2295} // namespace testing