blob: 6601df332faceb5a9d577b54cb7527ef73c367e8 [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"
27#import "components/autofill/ios/browser/autofill_switches.h"
Menghan YANGf3fe2de52023-02-27 16:38:5028#import "components/bookmarks/common/bookmark_features.h"
Gauthier Ambard999088c2022-09-13 08:36:5729#import "components/commerce/core/commerce_feature_list.h"
30#import "components/commerce/core/flag_descriptions.h"
31#import "components/content_settings/core/common/features.h"
32#import "components/dom_distiller/core/dom_distiller_switches.h"
Raj Tb95d813542022-11-16 21:27:5233#import "components/download/public/background_service/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5734#import "components/enterprise/browser/enterprise_switches.h"
35#import "components/feature_engagement/public/feature_constants.h"
36#import "components/feature_engagement/public/feature_list.h"
37#import "components/feed/feed_feature_list.h"
38#import "components/flags_ui/feature_entry.h"
39#import "components/flags_ui/feature_entry_macros.h"
40#import "components/flags_ui/flags_storage.h"
41#import "components/flags_ui/flags_ui_switches.h"
Benjamin Williams11f39912023-04-13 19:00:2542#import "components/history/core/browser/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5743#import "components/invalidation/impl/invalidation_switches.h"
Benjamin Williamsaa8da8142022-11-14 19:51:0344#import "components/ntp_tiles/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5745#import "components/ntp_tiles/switches.h"
46#import "components/omnibox/browser/omnibox_field_trial.h"
47#import "components/omnibox/common/omnibox_features.h"
48#import "components/optimization_guide/core/optimization_guide_features.h"
Raj Ta921ffc2022-08-25 19:00:2049#import "components/optimization_guide/core/optimization_guide_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5750#import "components/password_manager/core/common/password_manager_features.h"
51#import "components/payments/core/features.h"
52#import "components/policy/core/common/features.h"
Guillaume Jenkinseeb7007c2020-06-25 22:55:4053#import "components/policy/core/common/policy_loader_ios_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5754#import "components/policy/policy_constants.h"
Menghan YANG5b3a78a2023-03-24 17:38:2655#import "components/reading_list/features/reading_list_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5756#import "components/safe_browsing/core/common/features.h"
Chris Lu6fd4eaf2023-08-08 18:29:3057#import "components/segmentation_platform/public/constants.h"
Chris Lub0bad572023-08-07 18:13:2958#import "components/segmentation_platform/public/features.h"
Victor Hugo Vianna Silva0399402f2021-09-07 21:41:2559#import "components/send_tab_to_self/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5760#import "components/shared_highlighting/core/common/shared_highlighting_features.h"
61#import "components/signin/core/browser/account_reconcilor.h"
62#import "components/signin/ios/browser/features.h"
63#import "components/signin/public/base/signin_switches.h"
64#import "components/strings/grit/components_strings.h"
Nohemi Fernandez64acf982023-08-04 09:27:1565#import "components/supervised_user/core/common/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5766#import "components/sync/base/command_line_switches.h"
67#import "components/sync/base/features.h"
68#import "components/sync/base/pref_names.h"
69#import "components/translate/core/browser/translate_prefs.h"
70#import "components/translate/core/common/translate_util.h"
Duong Dac4181ab52023-06-07 12:51:5071#import "components/variations/service/google_groups_updater_service.h"
Ed Chin91e44992022-07-27 13:42:3472#import "ios/chrome/app/background_mode_buildflags.h"
Gauthier Ambard02c23422023-09-11 09:11:0173#import "ios/chrome/browser/bring_android_tabs/model/features.h"
Gauthier Ambard5b7f3c22023-09-13 12:03:3074#import "ios/chrome/browser/browsing_data/model/browsing_data_features.h"
Gauthier Ambard999088c2022-09-13 08:36:5775#import "ios/chrome/browser/crash_report/features.h"
Huiting Yua68998d2022-12-14 17:47:5476#import "ios/chrome/browser/credential_provider_promo/features.h"
Scott Yoder663a2262023-03-29 14:27:0477#import "ios/chrome/browser/default_browser/utils.h"
Quentin Puberteb5eb042023-07-03 16:16:2278#import "ios/chrome/browser/find_in_page/util.h"
Gauthier Ambard92605132022-08-26 13:25:1779#import "ios/chrome/browser/flags/chrome_switches.h"
Gauthier Ambard999088c2022-09-13 08:36:5780#import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h"
Tina Wangd3f6f192023-04-05 05:22:4381#import "ios/chrome/browser/follow/follow_features.h"
Huiting Yubc1bf4d2023-06-26 18:15:3282#import "ios/chrome/browser/iph_for_new_chrome_user/features.h"
Ed Chin100660bf2022-04-26 16:59:1383#import "ios/chrome/browser/ntp/features.h"
Hira Mahmood4c15f382023-08-17 16:21:1384#import "ios/chrome/browser/parcel_tracking/parcel_tracking_util.h"
Vincent Boisselle88fef222022-09-23 18:54:5085#import "ios/chrome/browser/policy/cloud/user_policy_constants.h"
Gauthier Ambard999088c2022-09-13 08:36:5786#import "ios/chrome/browser/policy/policy_util.h"
Benjamin Williams14233d72022-07-26 18:32:2087#import "ios/chrome/browser/promos_manager/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5788#import "ios/chrome/browser/screen_time/screen_time_buildflags.h"
Gauthier Ambard7aa0fb922023-03-09 15:10:4689#import "ios/chrome/browser/shared/public/features/features.h"
Gauthier Ambard818938c2023-06-16 14:48:3590#import "ios/chrome/browser/shared/public/features/system_flags.h"
Aliona DANGLA3de5d242023-02-15 16:52:3091#import "ios/chrome/browser/tabs/inactive_tabs/features.h"
Ewann Pelle6eecb8f2023-06-23 14:31:3792#import "ios/chrome/browser/tabs/tab_pickup/features.h"
Ewann Pelled2eaeba2023-09-19 09:15:2893#import "ios/chrome/browser/text_selection/model/text_selection_util.h"
Hira Mahmoodb0e5f412022-09-01 19:41:0594#import "ios/chrome/browser/ui/app_store_rating/features.h"
Gauthier Ambard999088c2022-09-13 08:36:5795#import "ios/chrome/browser/ui/autofill/features.h"
adamta22a4d502020-05-21 03:12:2196#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h"
Hira Mahmood6b0e5502023-06-12 21:51:4397#import "ios/chrome/browser/ui/default_promo/post_restore/features.h"
Ewann1a9d33d2021-06-14 11:12:2498#import "ios/chrome/browser/ui/download/features.h"
adamta273568472020-12-04 23:53:5799#import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h"
Christian Xub8c06cd2022-04-29 20:55:01100#import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h"
Robbie Gibson686c56732021-10-04 17:11:45101#import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h"
Ernesto Izquierdo Clua5e589f52023-07-06 20:52:15102#import "ios/chrome/browser/ui/settings/password/password_manager_ui_features.h"
gogerald0ff29e52021-02-03 18:56:19103#import "ios/chrome/browser/ui/start_surface/start_surface_features.h"
Cheick Cisse5d2b6cb82023-06-05 17:27:58104#import "ios/chrome/browser/ui/whats_new/whats_new_util.h"
Gauthier Ambard999088c2022-09-13 08:36:57105#import "ios/chrome/browser/web/features.h"
106#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)
Gauthier Ambard999088c2022-09-13 08:36:57114#import "ios/chrome/browser/screen_time/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
Olivier Robin3d60411622018-02-23 10:03:22125const FeatureEntry::Choice kAutofillIOSDelayBetweenFieldsChoices[] = {
126 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
127 {"0", autofill::switches::kAutofillIOSDelayBetweenFields, "0"},
128 {"10", autofill::switches::kAutofillIOSDelayBetweenFields, "10"},
129 {"20", autofill::switches::kAutofillIOSDelayBetweenFields, "20"},
130 {"50", autofill::switches::kAutofillIOSDelayBetweenFields, "50"},
131 {"100", autofill::switches::kAutofillIOSDelayBetweenFields, "100"},
132 {"200", autofill::switches::kAutofillIOSDelayBetweenFields, "200"},
133 {"500", autofill::switches::kAutofillIOSDelayBetweenFields, "500"},
134 {"1000", autofill::switches::kAutofillIOSDelayBetweenFields, "1000"},
135};
136
Nohemi Fernandezc00842a2021-07-26 11:47:34137const FeatureEntry::Choice
138 kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = {
139 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
140 {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"},
141 {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"},
142 {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"},
143};
144
Cheick Cisse8835611a2023-06-02 21:42:54145// Uses int values from DefaultPromoType enum.
146const FeatureEntry::Choice kDefaultBrowserPromoForceShowPromoChoices[] = {
147 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
148 {"Show generic promo", "default-browser-promo-force-show-promo", "0"},
149 {"Show tailored stay safe promo", "default-browser-promo-force-show-promo",
150 "1"},
151 {"Show tailored made for ios promo",
152 "default-browser-promo-force-show-promo", "2"},
153 {"Show tailored all tabs promo", "default-browser-promo-force-show-promo",
154 "3"},
155 {"Show video promo", "default-browser-promo-force-show-promo", "4"},
156};
157
Stepan Khapugincc4e9842019-01-23 13:38:13158const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
159 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
160const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
161 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
162const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
163 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
164const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
165 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
166const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
167 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
168const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
169 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
170const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
171 {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
172
173const FeatureEntry::FeatureVariation
174 kOmniboxUIMaxAutocompleteMatchesVariations[] = {
175 {"3 matches", kOmniboxUIMaxAutocompleteMatches3,
Daniel Cheng1f047a82022-02-26 10:04:53176 std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13177 {"4 matches", kOmniboxUIMaxAutocompleteMatches4,
Daniel Cheng1f047a82022-02-26 10:04:53178 std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13179 {"5 matches", kOmniboxUIMaxAutocompleteMatches5,
Daniel Cheng1f047a82022-02-26 10:04:53180 std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13181 {"6 matches", kOmniboxUIMaxAutocompleteMatches6,
Daniel Cheng1f047a82022-02-26 10:04:53182 std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13183 {"8 matches", kOmniboxUIMaxAutocompleteMatches8,
Daniel Cheng1f047a82022-02-26 10:04:53184 std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13185 {"10 matches", kOmniboxUIMaxAutocompleteMatches10,
Daniel Cheng1f047a82022-02-26 10:04:53186 std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
Stepan Khapugincc4e9842019-01-23 13:38:13187 {"12 matches", kOmniboxUIMaxAutocompleteMatches12,
Daniel Cheng1f047a82022-02-26 10:04:53188 std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
Stepan Khapugincc4e9842019-01-23 13:38:13189
Stepan Khapuginbac467e2022-05-06 21:11:54190const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = {
191 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}};
192const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = {
193 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}};
194const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = {
195 {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}};
196
197const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = {
198 {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6),
199 nullptr},
200 {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15),
201 nullptr},
202 {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20),
203 nullptr},
204};
205
Christian Xucf26d562022-07-06 09:28:36206const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
207 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
208const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
209 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
210const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = {
211 {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}};
212
213const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
214 {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
215 nullptr},
216 {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
217 nullptr},
218 {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7),
219 nullptr},
220};
221
Cheick Cissedc49dbe2023-08-09 13:33:52222const FeatureEntry::FeatureParam
223 kDefaultBrowserVideoConditionsHalfscreenPromo[] = {
224 {kDefaultBrowserVideoPromoVariant, kVideoConditionsHalfscreenPromo}};
225const FeatureEntry::FeatureParam
226 kDefaultBrowserVideoConditionsFullscreenPromo[] = {
227 {kDefaultBrowserVideoPromoVariant, kVideoConditionsFullscreenPromo}};
228const FeatureEntry::FeatureParam
229 kDefaultBrowserGenericConsitionsFullscreenPromo[] = {
230 {kDefaultBrowserVideoPromoVariant, kGenericConditionsFullscreenPromo}};
231const FeatureEntry::FeatureParam
232 kDefaultBrowserGenericConditionsHalfscreenPromo[] = {
233 {kDefaultBrowserVideoPromoVariant, kGenericConditionsHalfscreenPromo}};
234
Cheick Cisse2806f082b2023-04-25 14:20:01235const FeatureEntry::FeatureVariation kDefaultBrowserVideoPromoVariations[] = {
Cheick Cissedc49dbe2023-08-09 13:33:52236 {"Show half screen ui with video condtions",
237 kDefaultBrowserVideoConditionsHalfscreenPromo,
238 std::size(kDefaultBrowserVideoConditionsHalfscreenPromo), nullptr},
239 {"Show full screen ui with video condtions",
240 kDefaultBrowserVideoConditionsFullscreenPromo,
241 std::size(kDefaultBrowserVideoConditionsFullscreenPromo), nullptr},
242 {"Show full screen ui with generic condtions",
243 kDefaultBrowserGenericConsitionsFullscreenPromo,
244 std::size(kDefaultBrowserGenericConsitionsFullscreenPromo), nullptr},
245 {"Show half screen ui with generic condtions",
246 kDefaultBrowserGenericConditionsHalfscreenPromo,
247 std::size(kDefaultBrowserGenericConditionsHalfscreenPromo), nullptr},
Cheick Cisse2806f082b2023-04-25 14:20:01248};
249
Caitlin Fischer37e01232019-05-24 13:05:45250const FeatureEntry::FeatureParam
Caitlin Fischer37e01232019-05-24 13:05:45251 kAutofillUseMobileLabelDisambiguationShowAll[] = {
252 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
253 autofill::features::
254 kAutofillUseMobileLabelDisambiguationParameterShowAll}};
255const FeatureEntry::FeatureParam
256 kAutofillUseMobileLabelDisambiguationShowOne[] = {
257 {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
258 autofill::features::
259 kAutofillUseMobileLabelDisambiguationParameterShowOne}};
260
261const FeatureEntry::FeatureVariation
262 kAutofillUseMobileLabelDisambiguationVariations[] = {
263 {"(show all)", kAutofillUseMobileLabelDisambiguationShowAll,
Daniel Cheng1f047a82022-02-26 10:04:53264 std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr},
Caitlin Fischer37e01232019-05-24 13:05:45265 {"(show one)", kAutofillUseMobileLabelDisambiguationShowOne,
Daniel Cheng1f047a82022-02-26 10:04:53266 std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}};
Caitlin Fischer37e01232019-05-24 13:05:45267
adamta37c6b832023-03-10 20:04:09268// Uses int values from SigninPromoViewStyle enum.
269const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = {
270 {kDiscoverFeedTopSyncPromoStyle, "0"}};
adamta37c6b832023-03-10 20:04:09271const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] =
Guillem Perezc2d13942023-06-22 20:14:59272 {{kDiscoverFeedTopSyncPromoStyle, "1"}};
adamta37c6b832023-03-10 20:04:09273const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = {
Guillem Perezc2d13942023-06-22 20:14:59274 {kDiscoverFeedTopSyncPromoStyle, "2"}};
adamtadb0bfc62022-08-01 17:37:47275
Mohammad Refaatab6bee62022-05-16 16:31:15276const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = {
adamta37c6b832023-03-10 20:04:09277 {"Standard", kDiscoverFeedTopSyncPromoStandard,
278 std::size(kDiscoverFeedTopSyncPromoStandard), nullptr},
adamta37c6b832023-03-10 20:04:09279 {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal,
280 std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr},
281 {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical,
282 std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}};
Mohammad Refaatab6bee62022-05-16 16:31:15283
adamta4a6f2fd22023-02-13 17:37:14284const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = {
285 {kDisableStickyHeaderForFollowingFeed, "true"}};
286const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = {
adamtabc048042023-03-15 22:42:18287 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14288const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = {
289 {kDisableStickyHeaderForFollowingFeed, "true"},
adamtabc048042023-03-15 22:42:18290 {kOverrideFeedHeaderHeight, "30"}};
adamta4a6f2fd22023-02-13 17:37:14291
292const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = {
293 {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader,
294 std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr},
295 {"Reduced header height", kFeedHeaderSettingReducedHeight,
296 std::size(kFeedHeaderSettingReducedHeight), nullptr},
297 {"All improvements", kFeedHeaderSettingAllImprovements,
298 std::size(kFeedHeaderSettingAllImprovements), nullptr}};
299
Chris Ludca9ce32023-09-20 16:53:50300const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = {
gogerald53c6e7a2021-04-15 22:07:35301 {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}};
Chris Ludca9ce32023-09-20 16:53:50302const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = {
gogerald53c6e7a2021-04-15 22:07:35303 {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}};
Chris Lu5470417c2021-03-03 18:43:08304
gogerald0e39e3aa2021-02-10 18:41:23305const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = {
Chris Ludca9ce32023-09-20 16:53:50306 {"10s:Show Home Surface", kStartSurfaceTenSeconds,
307 std::size(kStartSurfaceTenSeconds), nullptr},
308 {"1h:Show Home Surface", kStartSurfaceOneHour,
309 std::size(kStartSurfaceOneHour), nullptr},
Chris Lu5470417c2021-03-03 18:43:08310};
gogerald0e39e3aa2021-02-10 18:41:23311
Chris Luce928eb2023-05-12 21:36:26312const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = {
313 {kMagicStackMostVisitedModuleParam, "true"},
314 {kReducedSpaceParam, "-80"}};
Chris Lu28c0ede2023-08-25 19:25:22315const FeatureEntry::FeatureParam
316 kMagicStackMostVisitedModuleHideIrrelevantModules[] = {
317 {kMagicStackMostVisitedModuleParam, "true"},
318 {kReducedSpaceParam, "-80"},
319 {kHideIrrelevantModulesParam, "true"}};
Chris Lu22909b42023-09-08 21:12:13320const FeatureEntry::FeatureParam kMagicStackReducedNTPTopSpace[] = {
Chris Luce928eb2023-05-12 21:36:26321 {kMagicStackMostVisitedModuleParam, "false"},
Chris Lu22909b42023-09-08 21:12:13322 {kReducedSpaceParam, "20"}};
323const FeatureEntry::FeatureParam
324 kMagicStackReducedNTPTopSpaceHidIrrelevantModules[] = {
325 {kMagicStackMostVisitedModuleParam, "false"},
326 {kReducedSpaceParam, "20"},
327 {kHideIrrelevantModulesParam, "true"}};
Chris Luce928eb2023-05-12 21:36:26328
329const FeatureEntry::FeatureVariation kMagicStackVariations[]{
330 {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule,
331 std::size(kMagicStackMostVisitedModule), nullptr},
Chris Lu28c0ede2023-08-25 19:25:22332 {"Most Visited Tiles in Magic Stack and hide irrelevant modules",
333 kMagicStackMostVisitedModuleHideIrrelevantModules,
334 std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr},
Chris Lu22909b42023-09-08 21:12:13335 {"Magic Stack with less NTP Top Space", kMagicStackReducedNTPTopSpace,
336 std::size(kMagicStackReducedNTPTopSpace), nullptr},
337 {"Magic Stack with less NTP Top Space and hide irrelevant modules",
338 kMagicStackReducedNTPTopSpaceHidIrrelevantModules,
339 std::size(kMagicStackReducedNTPTopSpaceHidIrrelevantModules), nullptr},
Chris Luce928eb2023-05-12 21:36:26340};
341
Chris Lu6fd4eaf2023-08-08 18:29:30342const FeatureEntry::FeatureParam kEnableDefaultModel[] = {
343 {segmentation_platform::kDefaultModelEnabledParam, "true"}};
344
345const FeatureEntry::FeatureVariation
346 kSegmentationPlatformIosModuleRankerVariations[]{
347 {"Enabled With Default Model Parameter (Must Set this!)",
348 kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr},
349 };
350
adamta09aa47e2023-05-23 18:20:43351const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesAll[] = {
352 {kHideContentSuggestionsTilesParamMostVisited, "true"},
353 {kHideContentSuggestionsTilesParamShortcuts, "true"},
354};
355const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesMVT[] = {
356 {kHideContentSuggestionsTilesParamMostVisited, "true"},
357 {kHideContentSuggestionsTilesParamShortcuts, "false"},
358};
359const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesShortcuts[] = {
360 {kHideContentSuggestionsTilesParamMostVisited, "false"},
361 {kHideContentSuggestionsTilesParamShortcuts, "true"},
362};
363
364const FeatureEntry::FeatureVariation kHideContentSuggestionTilesVariations[]{
365 {"Hide all tiles", kHideAllContentSuggestionsTilesAll,
366 std::size(kHideAllContentSuggestionsTilesAll), nullptr},
367 {"Hide Most Visited tiles", kHideAllContentSuggestionsTilesMVT,
368 std::size(kHideAllContentSuggestionsTilesMVT), nullptr},
369 {"Hide Shortcuts tiles", kHideAllContentSuggestionsTilesShortcuts,
370 std::size(kHideAllContentSuggestionsTilesShortcuts), nullptr},
371};
372
Ed Chin91e44992022-07-27 13:42:34373#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin178ec2a2023-02-10 22:21:26374// Feed Background Refresh Feature Params.
Ed Chin321b8fe2022-08-16 07:02:01375const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04376 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
377 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01378 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04379 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01380const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04381 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
382 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01383 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04384 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01385const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04386 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
387 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01388 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
Ed Chin59f617b2022-07-19 22:12:04389 {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}};
Ed Chin321b8fe2022-08-16 07:02:01390const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04391 {kEnableServerDrivenBackgroundRefreshSchedule, "false"},
392 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01393 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
Ed Chin59f617b2022-07-19 22:12:04394 {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}};
Ed Chin321b8fe2022-08-16 07:02:01395const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = {
Ed Chin59f617b2022-07-19 22:12:04396 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
397 {kEnableRecurringBackgroundRefreshSchedule, "false"},
Ed Chin321b8fe2022-08-16 07:02:01398 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
399 {kBackgroundRefreshIntervalInSeconds, "0"}};
400const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = {
Ed Chin59f617b2022-07-19 22:12:04401 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
402 {kEnableRecurringBackgroundRefreshSchedule, "true"},
Ed Chin321b8fe2022-08-16 07:02:01403 {kMaxCacheAgeInSeconds, /*60*60*/ "3600"},
404 {kBackgroundRefreshIntervalInSeconds, "0"}};
405const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = {
406 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
407 {kEnableRecurringBackgroundRefreshSchedule, "false"},
408 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
409 {kBackgroundRefreshIntervalInSeconds, "0"}};
410const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = {
411 {kEnableServerDrivenBackgroundRefreshSchedule, "true"},
412 {kEnableRecurringBackgroundRefreshSchedule, "true"},
413 {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"},
414 {kBackgroundRefreshIntervalInSeconds, "0"}};
Ed Chin59f617b2022-07-19 22:12:04415
Ed Chin178ec2a2023-02-10 22:21:26416// Feed Background Refresh Feature Variations.
Ed Chin59f617b2022-07-19 22:12:04417const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = {
Ed Chin321b8fe2022-08-16 07:02:01418 {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce,
419 std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr},
420 {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce,
421 std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr},
422 {"1hr Interval 1hr Max Age Recurring",
423 kOneHourIntervalOneHourMaxAgeRecurring,
424 std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr},
425 {"4hr Interval 6hr Max Age Recurring",
426 kFourHourIntervalSixHourMaxAgeRecurring,
427 std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr},
428 {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce,
429 std::size(kServerDrivenOneHourMaxAgeOnce), nullptr},
430 {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring,
431 std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr},
432 {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce,
433 std::size(kServerDrivenSixHourMaxAgeOnce), nullptr},
434 {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring,
435 std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr},
Ed Chin59f617b2022-07-19 22:12:04436};
Ed Chin91e44992022-07-27 13:42:34437#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin59f617b2022-07-19 22:12:04438
Ed Chin178ec2a2023-02-10 22:21:26439// Feed Foreground Refresh Feature Params.
Ed Chin5c1fd532023-03-20 17:43:29440const FeatureEntry::FeatureParam kFeedSessionCloseForegroundRefresh[] = {
441 {kEnableFeedSessionCloseForegroundRefresh, "true"},
Ed Chin44e6c7e2023-03-22 00:32:54442 {kEnableFeedAppCloseForegroundRefresh, "false"},
443 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
Ed Chin5c1fd532023-03-20 17:43:29444const FeatureEntry::FeatureParam kFeedAppCloseForegroundRefresh[] = {
445 {kEnableFeedSessionCloseForegroundRefresh, "false"},
Ed Chin44e6c7e2023-03-22 00:32:54446 {kEnableFeedAppCloseForegroundRefresh, "true"},
447 {kEnableFeedAppCloseBackgroundRefresh, "false"}};
448const FeatureEntry::FeatureParam kFeedAppCloseBackgroundRefresh[] = {
449 {kEnableFeedSessionCloseForegroundRefresh, "false"},
450 {kEnableFeedAppCloseForegroundRefresh, "false"},
451 {kEnableFeedAppCloseBackgroundRefresh, "true"}};
Ed Chin178ec2a2023-02-10 22:21:26452
Ed Chin5c1fd532023-03-20 17:43:29453// Feed Invisible Foreground Refresh Feature Variations.
454const FeatureEntry::FeatureVariation
455 kFeedInvisibleForegroundRefreshVariations[] = {
456 {"session close foreground refresh", kFeedSessionCloseForegroundRefresh,
457 std::size(kFeedSessionCloseForegroundRefresh), nullptr},
458 {"app close foreground refresh", kFeedAppCloseForegroundRefresh,
459 std::size(kFeedAppCloseForegroundRefresh), nullptr},
Ed Chin44e6c7e2023-03-22 00:32:54460 {"app close background refresh", kFeedAppCloseBackgroundRefresh,
461 std::size(kFeedAppCloseBackgroundRefresh), nullptr},
Ed Chin178ec2a2023-02-10 22:21:26462};
463
ginnnnnnnyf907fd92023-06-14 22:21:40464const FeatureEntry::FeatureParam kAutofillBrandingIOSUntilInteracted[] = {
465 {autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
466 autofill::features::kAutofillBrandingIOSParamFrequencyTypeUntilInteracted},
467 {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
468 autofill::features::
469 kAutofillBrandingIOSParamFrequencyTypeUntilInteracted}};
470const FeatureEntry::FeatureParam kAutofillBrandingIOSAlwaysShowAndSlideOut[] = {
ginnnnnnnycde6fcbb2023-05-23 16:18:07471 {autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
472 autofill::features::
473 kAutofillBrandingIOSParamFrequencyTypeAlwaysShowAndDismiss},
474 {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
475 autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}};
ginnnnnnnyf907fd92023-06-14 22:21:40476const FeatureEntry::FeatureParam kAutofillBrandingIOSSlideOutWhenInteracted[] =
477 {{autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone,
478 autofill::features::
479 kAutofillBrandingIOSParamFrequencyTypeDismissWhenInteracted},
480 {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet,
481 autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}};
ginnnnnnny591a4972022-09-01 16:10:27482const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = {
ginnnnnnnycde6fcbb2023-05-23 16:18:07483 {"(will not show again after user interacts with keyboard accessories)",
ginnnnnnnyf907fd92023-06-14 22:21:40484 kAutofillBrandingIOSUntilInteracted,
485 std::size(kAutofillBrandingIOSUntilInteracted), nullptr},
486 {"(shows and slides out from leading edge every time)",
487 kAutofillBrandingIOSAlwaysShowAndSlideOut,
488 std::size(kAutofillBrandingIOSAlwaysShowAndSlideOut), nullptr},
489 {"(slides out from leading edge after user interacts with keyboard "
490 "accessories)",
491 kAutofillBrandingIOSSlideOutWhenInteracted,
492 std::size(kAutofillBrandingIOSSlideOutWhenInteracted), nullptr}};
ginnnnnnny591a4972022-09-01 16:10:27493
Raj T18a2c8c2023-03-15 17:20:15494const FeatureEntry::FeatureParam kEnableExpKitTextClassifierDate[] = {
495 {"date", "true"}};
496const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddress[] = {
497 {"address", "true"}};
498const FeatureEntry::FeatureParam kEnableExpKitTextClassifierPhoneNumber[] = {
499 {"phonenumber", "true"}};
500const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmail[] = {
501 {"email", "true"}};
Raj Te702d4e2023-05-15 21:03:50502const FeatureEntry::FeatureParam kEnableExpKitTextClassifierOneTap[] = {
503 {"onetap", "true"}};
Raj T18a2c8c2023-03-15 17:20:15504const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAll[] = {
505 {"date", "true"},
506 {"address", "true"},
507 {"phonenumber", "true"},
508 {"email", "true"}};
509const FeatureEntry::FeatureVariation kEnableExpKitTextClassifierVariations[] = {
510 {"Enabled for all entities", kEnableExpKitTextClassifierAll,
511 std::size(kEnableExpKitTextClassifierAll), nullptr},
512 {"Enabled for date", kEnableExpKitTextClassifierDate,
513 std::size(kEnableExpKitTextClassifierDate), nullptr},
514 {"Enabled for address", kEnableExpKitTextClassifierAddress,
515 std::size(kEnableExpKitTextClassifierAddress), nullptr},
516 {"Enabled for phonenumber", kEnableExpKitTextClassifierPhoneNumber,
517 std::size(kEnableExpKitTextClassifierPhoneNumber), nullptr},
518 {"Enabled for email", kEnableExpKitTextClassifierEmail,
Raj Te702d4e2023-05-15 21:03:50519 std::size(kEnableExpKitTextClassifierEmail), nullptr},
520 {"Enabled for One Tap mode", kEnableExpKitTextClassifierOneTap,
521 std::size(kEnableExpKitTextClassifierOneTap), nullptr}};
Raj T18a2c8c2023-03-15 17:20:15522
Louis Romero93e9b50a2023-01-26 01:46:12523const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = {
524 {kTabInactivityThresholdParameterName,
525 kTabInactivityThresholdOneWeekParam}};
526const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = {
527 {kTabInactivityThresholdParameterName,
528 kTabInactivityThresholdTwoWeeksParam}};
529const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = {
530 {kTabInactivityThresholdParameterName,
531 kTabInactivityThresholdThreeWeeksParam}};
Louis Romero56abd902023-03-15 16:21:58532const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = {
533 {kTabInactivityThresholdParameterName,
534 kTabInactivityThresholdOneMinuteDemoParam}};
Louis Romero93e9b50a2023-01-26 01:46:12535
536const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = {
537 {"One week", kTabInactivityThresholdOneWeek,
538 std::size(kTabInactivityThresholdOneWeek), nullptr},
539 {"Two weeks", kTabInactivityThresholdTwoWeeks,
540 std::size(kTabInactivityThresholdTwoWeeks), nullptr},
541 {"Three weeks", kTabInactivityThresholdThreeWeeks,
542 std::size(kTabInactivityThresholdThreeWeeks), nullptr},
Louis Romero56abd902023-03-15 16:21:58543 {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo,
544 std::size(kTabInactivityThresholdOneMinuteDemo), nullptr},
Louis Romero93e9b50a2023-01-26 01:46:12545};
546
Ewann Pelle6eecb8f2023-06-23 14:31:37547const FeatureEntry::FeatureParam kTabPickupThresholdTenMinutes[] = {
548 {kTabPickupThresholdParameterName, kTabPickupThresholdTenMinutesParam}};
549const FeatureEntry::FeatureParam kTabPickupThresholdOneHour[] = {
550 {kTabPickupThresholdParameterName, kTabPickupThresholdOneHourParam}};
551const FeatureEntry::FeatureParam kTabPickupThresholdTwoHours[] = {
552 {kTabPickupThresholdParameterName, kTabPickupThresholdTwoHoursParam}};
553
554const FeatureEntry::FeatureVariation kTabPickupThresholdVariations[] = {
555 {"Ten Minutes", kTabPickupThresholdTenMinutes,
Ewann Pellea2bcb3a2023-08-28 13:53:00556 std::size(kTabPickupThresholdTenMinutes), nullptr},
Ewann Pelle6eecb8f2023-06-23 14:31:37557 {"One Hour", kTabPickupThresholdOneHour,
Ewann Pellea2bcb3a2023-08-28 13:53:00558 std::size(kTabPickupThresholdOneHour), nullptr},
Ewann Pelle6eecb8f2023-06-23 14:31:37559 {"Two Hours", kTabPickupThresholdTwoHours,
Ewann Pellea2bcb3a2023-08-28 13:53:00560 std::size(kTabPickupThresholdTwoHours), nullptr},
561};
562
563const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = {
564 {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}};
565const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = {
566 {kTabResumptionParameterName, kTabResumptionAllTabsParam}};
567
568const FeatureEntry::FeatureVariation kTabResumptionVariations[] = {
569 {"Most recent tab only", kTabResumptionMostRecentTabOnly,
570 std::size(kTabResumptionMostRecentTabOnly), nullptr},
571 {"Most recent tab and last synced tab", kTabResumptionAllTabs,
572 std::size(kTabResumptionAllTabs), nullptr},
Ewann Pelle6eecb8f2023-06-23 14:31:37573};
574
Huiting Yud7d2a5322023-02-09 21:14:22575const FeatureEntry::FeatureParam
576 kCredentialProviderExtensionPromoOnPasswordSaved[] = {
577 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
578const FeatureEntry::FeatureParam
579 kCredentialProviderExtensionPromoOnPasswordCopied[] = {
580 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}};
581const FeatureEntry::FeatureParam
Hira Mahmood1baa9be2023-05-25 13:55:20582 kCredentialProviderExtensionPromoOnAllTriggers[] = {
Hira Mahmood1baa9be2023-05-25 13:55:20583 {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"},
584 {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}};
Huiting Yud7d2a5322023-02-09 21:14:22585
586const FeatureEntry::FeatureVariation
587 kCredentialProviderExtensionPromoVariations[] = {
588 {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved,
589 std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr},
590 {"On password copied",
591 kCredentialProviderExtensionPromoOnPasswordCopied,
592 std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr},
Hira Mahmood1baa9be2023-05-25 13:55:20593 {"On all triggers", kCredentialProviderExtensionPromoOnAllTriggers,
Huiting Yu7997667e2023-07-07 16:12:30594 std::size(kCredentialProviderExtensionPromoOnAllTriggers), nullptr}};
Huiting Yud7d2a5322023-02-09 21:14:22595
Olivier ROBINfd3887b72023-02-23 14:45:42596const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = {
597 {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}};
Olivier Robinfa8de5502023-06-21 19:53:44598const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateWithIncognito[] = {
599 {kIOSEditMenuPartialTranslateNoIncognitoParam, "false"}};
Olivier ROBINfd3887b72023-02-23 14:45:42600const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] =
601 {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito,
Olivier Robinfa8de5502023-06-21 19:53:44602 std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr},
603 {"Enable on incognito", kIOSEditMenuPartialTranslateWithIncognito,
604 std::size(kIOSEditMenuPartialTranslateWithIncognito), nullptr}};
Olivier ROBINfd3887b72023-02-23 14:45:42605
ginnnnnnny75903622023-03-01 18:00:00606const FeatureEntry::FeatureParam kBringYourOwnTabsIOSBottomMessage[] = {
607 {kBringYourOwnTabsIOSParam, "true"}};
608const FeatureEntry::FeatureVariation kBringYourOwnTabsIOSVariations[] = {
609 {"with bottom message on tab grid", kBringYourOwnTabsIOSBottomMessage,
610 std::size(kBringYourOwnTabsIOSBottomMessage), nullptr}};
611
Olivier ROBIN2613bcd02023-04-20 10:00:47612const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearchWith[] = {
613 {kIOSEditMenuSearchWithTitleParamTitle,
614 kIOSEditMenuSearchWithTitleSearchWithParam}};
615const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearch[] = {
616 {kIOSEditMenuSearchWithTitleParamTitle,
617 kIOSEditMenuSearchWithTitleSearchParam}};
618const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleWebSearch[] = {
619 {kIOSEditMenuSearchWithTitleParamTitle,
620 kIOSEditMenuSearchWithTitleWebSearchParam}};
621const FeatureEntry::FeatureVariation kIOSEditMenuSearchWithVariations[] = {
622 {"Search with DSE", kIOSEditMenuSearchWithTitleSearchWith,
623 std::size(kIOSEditMenuSearchWithTitleSearchWith), nullptr},
624 {"Search", kIOSEditMenuSearchWithTitleSearch,
625 std::size(kIOSEditMenuSearchWithTitleSearch), nullptr},
626 {"Web Search", kIOSEditMenuSearchWithTitleWebSearch,
627 std::size(kIOSEditMenuSearchWithTitleWebSearch), nullptr},
628};
629
Hira Mahmood6b0e5502023-06-12 21:51:43630const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoHalfscreen[] = {
631 {kPostRestoreDefaultBrowserPromoHalfscreenParam, "true"}};
632const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoFullscreen[] = {
633 {kPostRestoreDefaultBrowserPromoFullscreenParam, "true"}};
634const FeatureEntry::FeatureVariation
635 kPostRestoreDefaultBrowserPromoVariations[] = {
636 {"with half screen ui", kPostRestoreDefaultBrowserPromoHalfscreen,
637 std::size(kPostRestoreDefaultBrowserPromoHalfscreen), nullptr},
638 {"with full screen ui", kPostRestoreDefaultBrowserPromoFullscreen,
639 std::size(kPostRestoreDefaultBrowserPromoFullscreen), nullptr},
640};
641
Christian Xu07d600192023-07-24 12:29:52642const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = {
643 {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}};
644const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = {
645 {kBottomOmniboxDefaultSettingParam,
646 kBottomOmniboxDefaultSettingParamBottom}};
647const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] =
648 {{kBottomOmniboxDefaultSettingParam,
649 kBottomOmniboxDefaultSettingParamSafariSwitcher}};
650const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] =
651 {
652 {"Top", kBottomOmniboxDefaultSettingTop,
653 std::size(kBottomOmniboxDefaultSettingTop), nullptr},
654 {"Bottom", kBottomOmniboxDefaultSettingBottom,
655 std::size(kBottomOmniboxDefaultSettingBottom), nullptr},
656 {"Bottom for Safari Switcher",
657 kBottomOmniboxDefaultSettingSafariSwitcher,
658 std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr},
659};
660
Marc Treib9bddebb2023-06-15 14:03:34661const FeatureEntry::Choice kReplaceSyncPromosWithSignInPromosChoices[] = {
662 {"Default", "", ""},
Marc Treib565b4182023-07-28 10:27:25663 {"Disabled", "disable-features",
664 "ReplaceSyncPromosWithSignInPromos,"
Victor Hugo Vianna Silvaa730e2c2023-08-31 10:28:24665 "ConsistencyNewAccountInterface,"
Marc Treib565b4182023-07-28 10:27:25666 "FeedBottomSyncStringRemoval"},
667 {"Base only", "enable-features",
668 "ReplaceSyncPromosWithSignInPromos,"
Victor Hugo Vianna Silvaa730e2c2023-08-31 10:28:24669 "ConsistencyNewAccountInterface,"
Marc Treib565b4182023-07-28 10:27:25670 "FeedBottomSyncStringRemoval"},
Marc Treib9bddebb2023-06-15 14:03:34671 {"Everything (bookmarks, reading list, etc)", "enable-features",
672 "ReplaceSyncPromosWithSignInPromos,"
Victor Hugo Vianna Silvaa730e2c2023-08-31 10:28:24673 "ConsistencyNewAccountInterface,"
Marc Treib565b4182023-07-28 10:27:25674 "FeedBottomSyncStringRemoval,"
Marc Treib9bddebb2023-06-15 14:03:34675 "SyncEnableContactInfoDataTypeInTransportMode,"
Marc Treibae48ec482023-08-04 16:33:37676 "SyncEnableContactInfoDataTypeForCustomPassphraseUsers,"
Jood Hajeer5c609ec2023-09-05 12:20:55677 "SyncEnableBatchUploadLocalData,"
Marc Treibd4de9272023-09-19 13:54:06678 "EnablePreferencesAccountStorage,"
679 "SyncEnableWalletMetadataInTransportMode,"
680 "SyncEnableWalletOfferInTransportMode"},
Marc Treib9bddebb2023-06-15 14:03:34681};
682
Olivier ROBIN82b67002023-07-31 14:34:46683const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = {
684 {web::features::kOneTapForMapsConsentModeParamTitle,
685 web::features::kOneTapForMapsConsentModeDefaultParam}};
686const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = {
687 {web::features::kOneTapForMapsConsentModeParamTitle,
688 web::features::kOneTapForMapsConsentModeForcedParam}};
689const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = {
690 {web::features::kOneTapForMapsConsentModeParamTitle,
691 web::features::kOneTapForMapsConsentModeDisabledParam}};
Olivier ROBIN333f0b542023-09-01 14:53:31692const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = {
693 {web::features::kOneTapForMapsConsentModeParamTitle,
694 web::features::kOneTapForMapsConsentModeIPHParam}};
695const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = {
696 {web::features::kOneTapForMapsConsentModeParamTitle,
697 web::features::kOneTapForMapsConsentModeIPHForcedParam}};
Olivier ROBIN82b67002023-07-31 14:34:46698const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = {
699 {"Consent Default", kOneTapForMapsConsentModeDefault,
700 std::size(kOneTapForMapsConsentModeDefault), nullptr},
701 {"Consent Forced", kOneTapForMapsConsentModeForced,
702 std::size(kOneTapForMapsConsentModeForced), nullptr},
Olivier ROBIN333f0b542023-09-01 14:53:31703 {"Consent IPH", kOneTapForMapsConsentModeIPH,
704 std::size(kOneTapForMapsConsentModeIPH), nullptr},
705 {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced,
706 std::size(kOneTapForMapsConsentModeIPHForced), nullptr},
Olivier ROBIN82b67002023-07-31 14:34:46707 {"Consent Disabled", kOneTapForMapsConsentModeDisabled,
708 std::size(kOneTapForMapsConsentModeDisabled), nullptr},
709};
710
Cooper Knaak1e026562017-07-26 05:22:28711// To add a new entry, add to the end of kFeatureEntries. There are four
sdefresne14900ee2015-11-27 14:43:21712// distinct types of entries:
Cooper Knaak1e026562017-07-26 05:22:28713// . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the
714// default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE
sdefresne14900ee2015-11-27 14:43:21715// macro for this type supplying the command line to the macro.
716// . MULTI_VALUE: a list of choices, the first of which should correspond to a
717// deactivated state for this lab (i.e. no command line option). To specify
718// this type of entry use the macro MULTI_VALUE_TYPE supplying it the
719// array of choices.
Cooper Knaak1e026562017-07-26 05:22:28720// . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is
721// either enabled, disabled, or uses the default value of the associated
722// base::Feature instance. To specify this type of entry use the macro
723// FEATURE_VALUE_TYPE supplying it the base::Feature instance.
724// . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a
725// base::Feature instance. Choices corresponding to the default state, a
726// universally enabled state, and a universally disabled state are
727// automatically included. To specify this type of entry use the macro
728// FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and
729// the array of choices.
730//
sdefresne14900ee2015-11-27 14:43:21731// See the documentation of FeatureEntry for details on the fields.
732//
733// When adding a new choice, add it to the end of the list.
734const flags_ui::FeatureEntry kFeatureEntries[] = {
Cooper Knaak1e026562017-07-26 05:22:28735 {"in-product-help-demo-mode-choice",
736 flag_descriptions::kInProductHelpDemoModeName,
737 flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos,
738 FEATURE_WITH_PARAMS_VALUE_TYPE(
Tommy Nyquistc1d6dea12017-07-26 20:37:23739 feature_engagement::kIPHDemoMode,
740 feature_engagement::kIPHDemoModeChoiceVariations,
Marc Treib2752e8b2017-08-04 14:12:09741 "IPH_DemoMode")},
Moe Ahmadic3fd7cd2018-05-11 21:40:22742 {"enable-autofill-credit-card-upload",
743 flag_descriptions::kAutofillCreditCardUploadName,
744 flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos,
Anne Lim579b5732018-08-30 18:24:24745 FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
Moe Ahmadid6d5d172018-06-20 17:20:23746 {"use-sync-sandbox", flag_descriptions::kSyncSandboxName,
747 flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos,
748 SINGLE_VALUE_TYPE_AND_VALUE(
Victor Hugo Vianna Silva3cd7ae92022-02-09 20:49:51749 syncer::kSyncServiceURL,
Moe Ahmadid6d5d172018-06-20 17:20:23750 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")},
751 {"wallet-service-use-sandbox",
752 flag_descriptions::kWalletServiceUseSandboxName,
753 flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos,
754 ENABLE_DISABLE_VALUE_TYPE_AND_VALUE(
755 autofill::switches::kWalletServiceUseSandbox,
756 "1",
757 autofill::switches::kWalletServiceUseSandbox,
758 "0")},
Mohamad Ahmadic4df81f2017-12-20 04:41:59759 {"show-autofill-type-predictions",
760 flag_descriptions::kShowAutofillTypePredictionsName,
761 flag_descriptions::kShowAutofillTypePredictionsDescription,
762 flags_ui::kOsIos,
Florian Leimgruberf53ca392023-02-21 15:56:50763 FEATURE_VALUE_TYPE(
764 autofill::features::test::kAutofillShowTypePredictions)},
Vidhan Jainb86c94b2023-04-06 14:13:57765 {"autofill-account-profiles-storage",
766 flag_descriptions::kAutofillAccountProfilesStorageName,
767 flag_descriptions::kAutofillAccountProfilesStorageDescription,
768 flags_ui::kOsIos,
769 FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfileStorage)},
Olivier Robin3d60411622018-02-23 10:03:22770 {"autofill-ios-delay-between-fields",
771 flag_descriptions::kAutofillIOSDelayBetweenFieldsName,
772 flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription,
773 flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)},
Benjamin Williamsdf18e7e2022-10-03 18:46:05774 {"fullscreen-promos-manager-skip-internal-limits",
775 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName,
776 flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription,
777 flags_ui::kOsIos,
778 FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)},
Kurt Horimotodc33af32018-05-01 01:39:14779 {"fullscreen-viewport-adjustment-experiment",
Chris Lu481a9322019-09-25 22:16:53780 flag_descriptions::kFullscreenSmoothScrollingName,
781 flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos,
Aliona DANGLA4e3b4732023-03-22 09:35:19782 FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)},
Robbie Gibson1f37a5e2020-08-06 17:03:06783 {"webpage-default-zoom-from-dynamic-type",
784 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName,
785 flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription,
786 flags_ui::kOsIos,
787 FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)},
Robbie Gibson88f23962020-09-28 14:35:56788 {"webpage-alternative-text-zoom",
789 flag_descriptions::kWebPageAlternativeTextZoomName,
790 flag_descriptions::kWebPageAlternativeTextZoomDescription,
791 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)},
Robbie Gibson1095b72c2022-06-06 17:03:34792 {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName,
793 flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos,
794 FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)},
Stepan Khapugincc4e9842019-01-23 13:38:13795 {"omnibox-ui-max-autocomplete-matches",
796 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName,
797 flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription,
798 flags_ui::kOsIos,
799 FEATURE_WITH_PARAMS_VALUE_TYPE(
800 omnibox::kUIExperimentMaxAutocompleteMatches,
801 kOmniboxUIMaxAutocompleteMatchesVariations,
802 "OmniboxUIMaxAutocompleteVariations")},
Moe Ahmadi01028f22022-08-06 17:57:35803 {"omnibox-local-history-zero-suggest-beyond-ntp",
804 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName,
805 flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription,
806 flags_ui::kOsIos,
807 FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)},
Stepan Khapuginbac467e2022-05-06 21:11:54808 {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName,
809 flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos,
810 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches,
811 kOmniboxMaxZPSMatchesVariations,
812 "OmniboxMaxZPSVariations")},
Stepan Khapugind9876842023-01-27 17:59:45813
814 {"omnibox-most-visited-tiles-on-srp",
815 flag_descriptions::kOmniboxMostVisitedTilesOnSrpName,
816 flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription,
817 flags_ui::kOsIos,
818 FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)},
Caitlin Fischer43edd90a2019-05-01 13:24:30819 {"autofill-use-mobile-label-disambiguation",
820 flag_descriptions::kAutofillUseMobileLabelDisambiguationName,
821 flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription,
822 flags_ui::kOsIos,
Caitlin Fischer37e01232019-05-24 13:05:45823 FEATURE_WITH_PARAMS_VALUE_TYPE(
824 autofill::features::kAutofillUseMobileLabelDisambiguation,
825 kAutofillUseMobileLabelDisambiguationVariations,
826 "AutofillUseMobileLabelDisambiguation")},
Jérôme Lebelc374fdd2019-09-27 10:36:48827 {"force-startup-signin-promo",
828 flag_descriptions::kForceStartupSigninPromoName,
829 flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos,
Alice Wang345e09442021-07-05 09:03:29830 FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)},
Yoichi Osato7ae11752021-03-16 03:27:22831 {"restore-session-from-cache",
832 flag_descriptions::kRestoreSessionFromCacheName,
833 flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos,
Justin Cohen3ec2522c2021-04-23 18:23:49834 FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)},
Tommy Martino6b4eb7e2020-06-25 18:25:41835 {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName,
836 flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos,
837 FEATURE_VALUE_TYPE(kSharedHighlightingIOS)},
Sylvain Defresne9c107082020-10-27 16:39:13838#if BUILDFLAG(IOS_SCREEN_TIME_ENABLED)
edchin81467b82020-09-03 19:31:45839 {"screen-time-integration-ios",
840 flag_descriptions::kScreenTimeIntegrationName,
841 flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos,
842 FEATURE_VALUE_TYPE(kScreenTimeIntegration)},
Sylvain Defresne9c107082020-10-27 16:39:13843#endif
Nazerke3e993f72020-09-21 13:00:06844 {"modern-tab-strip", flag_descriptions::kModernTabStripName,
845 flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos,
846 FEATURE_VALUE_TYPE(kModernTabStrip)},
Eugene Butf869bff2020-12-10 01:16:55847 {"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName,
848 flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos,
849 FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)},
Cheick Cisse76ade3d2020-12-16 00:15:11850 {"ios-shared-highlighting-color-change",
851 flag_descriptions::kIOSSharedHighlightingColorChangeName,
852 flag_descriptions::kIOSSharedHighlightingColorChangeDescription,
Cheick Cissed0b5bfe2021-02-11 14:23:07853 flags_ui::kOsIos,
854 FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)},
Cheick Cissefe994862021-12-15 16:01:34855 {"ios-shared-highlighting-v2",
856 flag_descriptions::kIOSSharedHighlightingV2Name,
857 flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos,
858 FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)},
Stepan Khapugin04341202021-01-07 12:22:45859 {"omnibox-new-textfield-implementation",
860 flag_descriptions::kOmniboxNewImplementationName,
861 flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos,
862 FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)},
Stepan Khapugin0be8f6d2022-09-21 20:22:26863 {"omnibox-on-focus-suggestions-contextual-web",
864 flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName,
865 flag_descriptions::
866 kOmniboxFocusTriggersContextualWebZeroSuggestDescription,
867 flags_ui::kOsIos,
868 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)},
869 {"omnibox-on-focus-suggestions-srp",
870 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName,
871 flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription,
872 flags_ui::kOsIos,
873 FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)},
Stepan Khapugin0da12382023-01-24 16:08:12874 {"omnibox-report-assisted-query-stats",
875 flag_descriptions::kOmniboxReportAssistedQueryStatsName,
876 flag_descriptions::kOmniboxReportAssistedQueryStatsDescription,
877 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)},
878 {"omnibox-report-searchbox-stats",
879 flag_descriptions::kOmniboxReportSearchboxStatsName,
880 flag_descriptions::kOmniboxReportSearchboxStatsDescription,
881 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)},
Stepan Khapuginecf128a92022-08-30 11:23:15882 {"omnibox-fuzzy-url-suggestions",
883 flag_descriptions::kOmniboxFuzzyUrlSuggestionsName,
884 flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription,
885 flags_ui::kOsIos,
886 FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)},
gogerald0ff29e52021-02-03 18:56:19887 {"start-surface", flag_descriptions::kStartSurfaceName,
888 flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos,
gogerald0e39e3aa2021-02-10 18:41:23889 FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface,
890 kStartSurfaceVariations,
891 "StartSurface")},
Vidhan Jain451b4752021-07-15 10:16:42892 {"autofill-address-verification-in-save-prompt",
893 flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName,
894 flag_descriptions::
895 kEnableAutofillAddressSavePromptAddressVerificationDescription,
896 flags_ui::kOsIos,
897 FEATURE_VALUE_TYPE(
898 autofill::features::
899 kAutofillAddressProfileSavePromptAddressVerificationSupport)},
Side Yilmaz6c53f7102021-09-07 13:26:19900 {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName,
901 flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos,
902 FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)},
Nohemi Fernandezc00842a2021-07-26 11:47:34903 {"wait-threshold-seconds-for-capabilities-api",
904 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName,
905 flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription,
906 flags_ui::kOsIos,
907 MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)},
Sylvain Defresnedff67e42021-09-24 09:43:03908 {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName,
909 flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos,
910 FEATURE_VALUE_TYPE(kNewOverflowMenu)},
Guillem Perez49e1df42023-08-23 22:15:24911 {"content-push-notifications",
912 flag_descriptions::kContentPushNotificationsName,
913 flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos,
914 FEATURE_VALUE_TYPE(kContentPushNotifications)},
Robbie Gibsoned7f6ffb2023-05-15 16:03:57915 {"overflow-menu-customization",
916 flag_descriptions::kOverflowMenuCustomizationName,
917 flag_descriptions::kOverflowMenuCustomizationDescription, flags_ui::kOsIos,
918 FEATURE_VALUE_TYPE(kOverflowMenuCustomization)},
Jason Hu3830a072022-08-19 20:56:22919 {"enable-lens-in-home-screen-widget",
920 flag_descriptions::kEnableLensInHomeScreenWidgetName,
921 flag_descriptions::kEnableLensInHomeScreenWidgetDescription,
922 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)},
923 {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName,
924 flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos,
925 FEATURE_VALUE_TYPE(kEnableLensInKeyboard)},
926 {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName,
927 flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos,
928 FEATURE_VALUE_TYPE(kEnableLensInNTP)},
Anudeep Palanki403c907a2023-01-25 20:30:03929 {"enable-lens-context-menu-alt-text",
930 flag_descriptions::kEnableLensContextMenuAltTextName,
931 flag_descriptions::kEnableLensContextMenuAltTextDescription,
932 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)},
Jason Hu67cfb0f2022-11-14 20:21:44933 {"enable-lens-in-omnibox-copied-image",
934 flag_descriptions::kEnableLensInOmniboxCopiedImageName,
935 flag_descriptions::kEnableLensInOmniboxCopiedImageDescription,
936 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)},
Benjamin Williamsbee6ab62022-02-28 18:09:40937 {"use-load-simulated-request-for-error-page-navigation",
Gauthier Ambard33cceaf2022-05-05 14:00:23938 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName,
939 flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription,
Benjamin Williamsbee6ab62022-02-28 18:09:40940 flags_ui::kOsIos,
Gauthier Ambard33cceaf2022-05-05 14:00:23941 FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)},
Sergio Collazos9fcc6ed2021-10-06 00:58:03942 {"enable-disco-feed-endpoint",
943 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName,
944 flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription,
945 flags_ui::kOsIos,
Aliona DANGLA8fae66f02021-10-06 15:47:11946 FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)},
Mohammad Refaatab6bee62022-05-16 16:31:15947 {"enable-discover-feed-top-sync-promo",
948 flag_descriptions::kEnableDiscoverFeedTopSyncPromoName,
949 flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription,
950 flags_ui::kOsIos,
951 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo,
952 kDiscoverFeedTopSyncPromoVariations,
953 "EnableDiscoverFeedTopSyncPromo")},
adamta4a6f2fd22023-02-13 17:37:14954 {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName,
955 flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos,
956 FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings,
957 kFeedHeaderSettingsVariations,
958 "FeedHeaderSettings")},
Tommy Martino7393d762021-10-12 17:59:28959 {"shared-highlighting-amp",
960 flag_descriptions::kIOSSharedHighlightingAmpName,
961 flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos,
962 FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)},
David Maunderf4a5e1e2021-10-18 17:24:28963 {"enable-commerce-price-tracking",
Matt Jones125dfb42022-02-11 17:23:42964 commerce::flag_descriptions::kCommercePriceTrackingName,
965 commerce::flag_descriptions::kCommercePriceTrackingDescription,
966 flags_ui::kOsIos,
967 FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking,
968 commerce::kCommercePriceTrackingVariations,
adamta67b6c5812021-10-19 17:02:15969 "CommercePriceTracking")},
adamta250f4ad2023-08-02 15:26:06970 {"web-feed-ios", flag_descriptions::kEnableWebChannelsName,
971 flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos,
972 FEATURE_VALUE_TYPE(kEnableWebChannels)},
adamta39331592021-11-01 20:18:54973 {"ntp-view-hierarchy-repair",
974 flag_descriptions::kNTPViewHierarchyRepairName,
975 flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos,
adamta8da8dce2022-11-17 18:03:20976 FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)},
Justin Cohen69cec682021-11-04 20:10:26977 {"synthesized-restore-session",
978 flag_descriptions::kSynthesizedRestoreSessionName,
979 flag_descriptions::kSynthesizedRestoreSessionDescription, flags_ui::kOsIos,
980 FEATURE_VALUE_TYPE(web::features::kSynthesizedRestoreSession)},
Joemer Ramosc34a30a02022-09-22 15:18:43981 {"enable-tailored-security-integration",
982 flag_descriptions::kTailoredSecurityIntegrationName,
983 flag_descriptions::kTailoredSecurityIntegrationDescription,
984 flags_ui::kOsIos,
985 FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)},
Vishwas Uppoor89303a92022-08-03 00:56:26986 {"autofill-enable-card-product-name",
987 flag_descriptions::kAutofillEnableCardProductNameName,
988 flag_descriptions::kAutofillEnableCardProductNameDescription,
989 flags_ui::kOsIos,
990 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)},
Victor Hugo Vianna Silvaf0a44002022-02-16 10:38:00991 {"send-tab-to-self-signin-promo",
992 flag_descriptions::kSendTabToSelfSigninPromoName,
993 flag_descriptions::kSendTabToSelfSigninPromoDescription, flags_ui::kOsIos,
994 FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfSigninPromo)},
Jared Saulb0473bd2022-04-20 00:03:41995 {"autofill-upstream-allow-additional-email-domains",
996 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName,
997 flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription,
998 flags_ui::kOsIos,
999 FEATURE_VALUE_TYPE(
1000 autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)},
1001 {"autofill-upstream-allow-all-email-domains",
1002 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName,
1003 flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription,
1004 flags_ui::kOsIos,
1005 FEATURE_VALUE_TYPE(
1006 autofill::features::kAutofillUpstreamAllowAllEmailDomains)},
Raj Tb95d813542022-11-16 21:27:521007 {"enable-download-service-foreground-session",
1008 flag_descriptions::kDownloadServiceForegroundSessionName,
1009 flag_descriptions::kDownloadServiceForegroundSessionDescription,
1010 flags_ui::kOsIos,
1011 FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)},
Olivier Robinffe767c2022-04-21 13:13:231012 {"enable-tflite-language-detection",
1013 flag_descriptions::kTFLiteLanguageDetectionName,
1014 flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos,
1015 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)},
Raj Ta921ffc2022-08-25 19:00:201016 {"optimization-guide-debug-logs",
1017 flag_descriptions::kOptimizationGuideDebugLogsName,
1018 flag_descriptions::kOptimizationGuideDebugLogsDescription,
1019 flags_ui::kOsIos,
1020 SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)},
Raj T5aacebd2023-05-22 19:45:091021 {"optimization-guide-install-wide-model-store",
1022 flag_descriptions::kOptimizationGuideInstallWideModelStoreName,
1023 flag_descriptions::kOptimizationGuideInstallWideModelStoreDescription,
1024 flags_ui::kOsIos,
1025 FEATURE_VALUE_TYPE(optimization_guide::features::
1026 kOptimizationGuideInstallWideModelStore)},
Daniel Whited02b6962023-02-14 14:19:551027 {"optimization-guide-push-notifications",
1028 flag_descriptions::kOptimizationGuidePushNotificationClientName,
1029 flag_descriptions::kOptimizationGuidePushNotificationClientDescription,
1030 flags_ui::kOsIos,
1031 FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)},
Benjamin Williams11f39912023-04-13 19:00:251032 {"sync-segments-data", flag_descriptions::kSyncSegmentsDataName,
1033 flag_descriptions::kSyncSegmentsDataDescription, flags_ui::kOsIos,
1034 FEATURE_VALUE_TYPE(history::kSyncSegmentsData)},
Christian Xub8c06cd2022-04-29 20:55:011035 {"suggestions-scrolling-ipad",
1036 flag_descriptions::kEnableSuggestionsScrollingOnIPadName,
1037 flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription,
1038 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)},
Stepan Khapuginfee136c62022-11-28 13:24:001039 {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName,
1040 flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos,
1041 FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)},
Elmehdi Rahmaoui5a6273a22022-11-28 16:19:251042 {"intents-on-phone-number", flag_descriptions::kPhoneNumberName,
1043 flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos,
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331044 FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)},
David Jeanad303a92023-07-31 16:58:111045 {"intents-on-measurements", flag_descriptions::kMeasurementsName,
1046 flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos,
1047 FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)},
Elmehdi Rahmaoui21e87d52022-11-09 15:00:551048 {"experience-kit-apple-calendar",
1049 flag_descriptions::kAppleCalendarExperienceKitName,
1050 flag_descriptions::kAppleCalendarExperienceKitDescription,
1051 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)},
Raj T7db7a0e2022-11-17 16:33:081052 {"enable-expkit-text-classifier",
1053 flag_descriptions::kEnableExpKitTextClassifierName,
1054 flag_descriptions::kEnableExpKitTextClassifierDescription,
Raj T18a2c8c2023-03-15 17:20:151055 flags_ui::kOsIos,
1056 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifier,
1057 kEnableExpKitTextClassifierVariations,
1058 "ExpKitTextClassifier")},
Elmehdi Rahmaoui458f4a22023-02-14 15:13:331059 {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName,
1060 flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos,
Olivier ROBIN82b67002023-07-31 14:34:461061 FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps,
1062 kOneTapForMapsWithVariations,
1063 "OneTapForMaps")},
David Jean139ba1bf2023-08-31 15:59:321064 {"enable-annotations-language-detection",
1065 flag_descriptions::kUseAnnotationsForLanguageDetectionName,
1066 flag_descriptions::kUseAnnotationsForLanguageDetectionDescription,
1067 flags_ui::kOsIos,
1068 FEATURE_VALUE_TYPE(web::features::kUseAnnotationsForLanguageDetection)},
Mustafa Emre Acerb8bb01f2022-07-20 19:43:251069 {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName,
1070 flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos,
1071 FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)},
Benjamin Williamsf721fc22023-01-10 23:28:251072 {"smart-sorting-price-tracking-destination",
1073 flag_descriptions::kSmartSortingPriceTrackingDestinationName,
1074 flag_descriptions::kSmartSortingPriceTrackingDestinationDescription,
1075 flags_ui::kOsIos,
1076 FEATURE_VALUE_TYPE(kSmartSortingPriceTrackingDestination)},
Alexander Tekleb4643812023-01-06 23:12:301077 {"autofill-enable-ranking-formula-address-profiles",
1078 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName,
1079 flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription,
1080 flags_ui::kOsIos,
1081 FEATURE_VALUE_TYPE(
1082 autofill::features::kAutofillEnableRankingFormulaAddressProfiles)},
Alexander Tekle35dfbbd2023-01-31 08:32:391083 {"autofill-enable-ranking-formula-credit-cards",
1084 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName,
1085 flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription,
1086 flags_ui::kOsIos,
1087 FEATURE_VALUE_TYPE(
1088 autofill::features::kAutofillEnableRankingFormulaCreditCards)},
Sergio Collazos58558712022-05-18 17:24:021089 {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName,
1090 flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos,
1091 FEATURE_VALUE_TYPE(kEnableFeedAblation)},
Tina Wang30df7172022-12-09 22:02:021092 {"enable-feed-card-menu-sign-in-promo",
1093 flag_descriptions::kEnableFeedCardMenuSignInPromoName,
1094 flag_descriptions::kEnableFeedCardMenuSignInPromoDescription,
1095 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)},
Chris Luc36e3962023-04-11 21:50:521096 {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName,
1097 flag_descriptions::kMagicStackDescription, flags_ui::kOsIos,
Chris Luce928eb2023-05-12 21:36:261098 FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack,
1099 kMagicStackVariations,
1100 flag_descriptions::kMagicStackName)},
Scott Yoder7b9e51f2023-09-13 23:47:261101 {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName,
1102 flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos,
1103 FEATURE_VALUE_TYPE(kIOSLargeFakebox)},
Chris Lub0bad572023-08-07 18:13:291104 {"ios-magic-stack-segmentation-ranking",
1105 flag_descriptions::kSegmentationPlatformIosModuleRankerName,
1106 flag_descriptions::kSegmentationPlatformIosModuleRankerDescription,
1107 flags_ui::kOsIos,
Chris Lu6fd4eaf2023-08-08 18:29:301108 FEATURE_WITH_PARAMS_VALUE_TYPE(
1109 segmentation_platform::features::kSegmentationPlatformIosModuleRanker,
1110 kSegmentationPlatformIosModuleRankerVariations,
1111 flag_descriptions::kSegmentationPlatformIosModuleRankerName)},
Olivier Robin058c1fad2022-05-31 18:24:061112 {"default-browser-intents-show-settings",
1113 flag_descriptions::kDefaultBrowserIntentsShowSettingsName,
1114 flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription,
1115 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)},
Tommy Martinoad42be52022-06-13 11:51:191116 {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName,
1117 flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos,
1118 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)},
Scott Yoder16bff3c2023-03-24 16:00:551119 {"ios-set-up-list", flag_descriptions::kIOSSetUpListName,
1120 flag_descriptions::kIOSSetUpListDescription, flags_ui::kOsIos,
1121 FEATURE_VALUE_TYPE(kIOSSetUpList)},
Veronique Nguyenc3d7db52023-03-08 22:52:321122 {"ios-password-bottom-sheet",
1123 flag_descriptions::kIOSPasswordBottomSheetName,
1124 flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos,
1125 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)},
Alexis Hétu459451a2023-06-01 17:05:311126 {"ios-payments-bottom-sheet",
1127 flag_descriptions::kIOSPaymentsBottomSheetName,
1128 flag_descriptions::kIOSPaymentsBottomSheetDescription, flags_ui::kOsIos,
1129 FEATURE_VALUE_TYPE(kIOSPaymentsBottomSheet)},
Moe Ahmadi098519d82022-07-27 18:34:241130 {"omnibox-zero-suggest-prefetching",
1131 flag_descriptions::kOmniboxZeroSuggestPrefetchingName,
1132 flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription,
1133 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)},
Khalid Peer79df5652022-10-26 21:59:451134 {"omnibox-zero-suggest-prefetching-on-srp",
1135 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName,
1136 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription,
1137 flags_ui::kOsIos,
1138 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)},
1139 {"omnibox-zero-suggest-prefetching-on-web",
1140 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName,
1141 flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription,
1142 flags_ui::kOsIos,
1143 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)},
Khalid Peer11b4b2c2022-10-12 20:53:471144 {"omnibox-zero-suggest-in-memory-caching",
1145 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName,
1146 flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription,
1147 flags_ui::kOsIos,
1148 FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)},
Ce Chenbdfaed22022-10-20 16:08:351149 {"omnibox-on-device-tail-suggestions",
1150 flag_descriptions::kOmniboxOnDeviceTailSuggestionsName,
1151 flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription,
1152 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)},
Joemer Ramosbde5d5d2023-03-31 13:18:371153 {"enable-browser-lockdown-mode",
Joemer Ramos944cbc792023-05-11 16:58:411154 flag_descriptions::kBrowserLockdownModeAvailableName,
1155 flag_descriptions::kBrowserLockdownModeAvailableDescription,
1156 flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kBrowserLockdownModeAvailable)},
Joemer Ramosada1e852023-03-10 19:14:411157 {"enable-button-configuration-usage",
1158 flag_descriptions::kEnableUIButtonConfigurationName,
1159 flag_descriptions::kEnableUIButtonConfigurationDescription,
1160 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableUIButtonConfiguration)},
Vincent Boisselle68105c6f2023-08-03 16:43:071161 {"enable-user-policy-for-signin-and-nosync-consent-level",
1162 flag_descriptions::kEnableUserPolicyForSigninAndNoSyncConsentLevelName,
1163 flag_descriptions::
1164 kEnableUserPolicyForSigninAndNoSyncConsentLevelDescription,
1165 flags_ui::kOsIos,
1166 FEATURE_VALUE_TYPE(policy::kUserPolicyForSigninAndNoSyncConsentLevel)},
1167 {"enable-user-policy-for-signin-or-sync-consent-level",
1168 flag_descriptions::kEnableUserPolicyForSigninOrSyncConsentLevelName,
1169 flag_descriptions::kEnableUserPolicyForSigninOrSyncConsentLevelDescription,
1170 flags_ui::kOsIos,
1171 FEATURE_VALUE_TYPE(policy::kUserPolicyForSigninOrSyncConsentLevel)},
Christian Xucf26d562022-07-06 09:28:361172 {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName,
1173 flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos,
1174 FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches,
1175 kOmniboxMaxURLMatchesVariations,
1176 "OmniboxMaxURLMatches")},
Olivier Robin60d3a062022-07-06 17:34:061177 {"metrickit-non-crash-reports",
1178 flag_descriptions::kMetrickitNonCrashReportName,
1179 flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos,
1180 FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)},
Siyu An3194bda2022-07-13 19:30:371181 {"autofill-enable-remade-downstream-metrics",
1182 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName,
1183 flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription,
1184 flags_ui::kOsIos,
1185 FEATURE_VALUE_TYPE(
1186 autofill::features::kAutofillEnableRemadeDownstreamMetrics)},
Nakul Vaidya13ca2042022-07-27 01:59:551187 {"autofill-parse-vcn-card-on-file-standalone-cvc-fields",
1188 flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName,
1189 flag_descriptions::
1190 kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription,
1191 flags_ui::kOsIos,
1192 FEATURE_VALUE_TYPE(
1193 autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)},
Cheick Cisse1a168ef2023-03-24 10:39:531194 {"default-browser-refactoring-promo-manager",
1195 flag_descriptions::kDefaultBrowserRefactoringPromoManagerName,
1196 flag_descriptions::kDefaultBrowserRefactoringPromoManagerDescription,
1197 flags_ui::kOsIos,
1198 FEATURE_VALUE_TYPE(kDefaultBrowserRefactoringPromoManager)},
Cheick Cisse2806f082b2023-04-25 14:20:011199 {"default-browser-video-promo",
1200 flag_descriptions::kDefaultBrowserVideoPromoName,
1201 flag_descriptions::kDefaultBrowserVideoPromoDescription, flags_ui::kOsIos,
1202 FEATURE_WITH_PARAMS_VALUE_TYPE(kDefaultBrowserVideoPromo,
1203 kDefaultBrowserVideoPromoVariations,
1204 "DefaultBrowserVideoPromoVariations")},
Cheick Cisse8835611a2023-06-02 21:42:541205 {"default-browser-promo-force-show-promo",
1206 flag_descriptions::kDefaultBrowserPromoForceShowPromoName,
1207 flag_descriptions::kDefaultBrowserPromoForceShowPromoDescription,
1208 flags_ui::kOsIos,
1209 MULTI_VALUE_TYPE(kDefaultBrowserPromoForceShowPromoChoices)},
Gayane Petrosyan5960a172023-06-19 15:40:171210 {"default-browser-promo-trigger-criteria-experiment",
1211 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName,
1212 flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription,
1213 flags_ui::kOsIos,
Gayane Petrosyandc3188c2023-08-10 17:28:501214 FEATURE_VALUE_TYPE(kDefaultBrowserTriggerCriteriaExperiment)},
1215 {"fullscreen-promo-on-omnibox-copy-paste",
1216 flag_descriptions::kFullScreenPromoOnOmniboxCopyPasteName,
1217 flag_descriptions::kFullScreenPromoOnOmniboxCopyPasteDescription,
1218 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kFullScreenPromoOnOmniboxCopyPaste)},
Ed Chin91e44992022-07-27 13:42:341219#if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
1220 {"feed-background-refresh-ios",
1221 flag_descriptions::kFeedBackgroundRefreshName,
1222 flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos,
1223 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh,
1224 kFeedBackgroundRefreshVariations,
1225 "FeedBackgroundRefresh")},
Ed Chin178ec2a2023-02-10 22:21:261226#endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED)
Ed Chin5c1fd532023-03-20 17:43:291227 {"feed-invisible-foreground-refresh-ios",
1228 flag_descriptions::kFeedInvisibleForegroundRefreshName,
1229 flag_descriptions::kFeedInvisibleForegroundRefreshDescription,
1230 flags_ui::kOsIos,
1231 FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedInvisibleForegroundRefresh,
1232 kFeedInvisibleForegroundRefreshVariations,
1233 "FeedInvisibleForegroundRefresh")},
Christian Xu164a2e512022-08-01 20:38:191234 {"omnibox-keyboard-paste-button",
1235 flag_descriptions::kOmniboxKeyboardPasteButtonName,
1236 flag_descriptions::kOmniboxKeyboardPasteButtonDescription,
1237 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)},
Cheick Cisse5d2b6cb82023-06-05 17:27:581238 {"whats-new-ios-m116", flag_descriptions::kWhatsNewIOSM116Name,
1239 flag_descriptions::kWhatsNewIOSM116Description, flags_ui::kOsIos,
1240 FEATURE_VALUE_TYPE(kWhatsNewIOSM116)},
ginnnnnnny591a4972022-09-01 16:10:271241 {"ios-autofill-branding", flag_descriptions::kAutofillBrandingIOSName,
1242 flag_descriptions::kAutofillBrandingIOSDescription, flags_ui::kOsIos,
1243 FEATURE_WITH_PARAMS_VALUE_TYPE(autofill::features::kAutofillBrandingIOS,
1244 kAutofillBrandingIOSVariations,
Hira Mahmoodb0e5f412022-09-01 19:41:051245 "AutofillBrandingIOS")},
1246 {"app-store-rating", flag_descriptions::kAppStoreRatingName,
1247 flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos,
1248 FEATURE_VALUE_TYPE(kAppStoreRating)},
Christian Xu6b90c2a32022-09-13 18:17:021249 {"most-visited-tiles", flag_descriptions::kMostVisitedTilesName,
1250 flag_descriptions::kMostVisitedTilesDescription, flags_ui::kOsIos,
1251 FEATURE_VALUE_TYPE(omnibox::kMostVisitedTiles)},
Olivier ROBINf05518782022-09-14 23:55:501252 {"enable-tflite-language-detection-ignore",
1253 flag_descriptions::kTFLiteLanguageDetectionIgnoreName,
1254 flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription,
1255 flags_ui::kOsIos,
1256 FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)},
Tina Wang89ae4252022-10-14 00:39:471257 {"enable-check-visibility-on-attention-log-start",
1258 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartName,
1259 flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartDescription,
1260 flags_ui::kOsIos,
1261 FEATURE_VALUE_TYPE(kEnableCheckVisibilityOnAttentionLogStart)},
1262 {"enable-refine-data-source-reload-reporting",
1263 flag_descriptions::kEnableRefineDataSourceReloadReportingName,
1264 flag_descriptions::kEnableRefineDataSourceReloadReportingDescription,
1265 flags_ui::kOsIos,
1266 FEATURE_VALUE_TYPE(kEnableRefineDataSourceReloadReporting)},
Petro Akzhygitov2e2322e2023-04-25 16:26:571267 {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName,
1268 flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos,
1269 FEATURE_VALUE_TYPE(kTabGridNewTransitions)},
Hira Mahmoodea109752022-11-17 17:45:411270 {"credential-provider-extension-promo",
1271 flag_descriptions::kCredentialProviderExtensionPromoName,
1272 flag_descriptions::kCredentialProviderExtensionPromoDescription,
Huiting Yud7d2a5322023-02-09 21:14:221273 flags_ui::kOsIos,
1274 FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo,
1275 kCredentialProviderExtensionPromoVariations,
1276 "CredentialProviderExtensionPromo")},
Nicolas MacBethfb43e152022-11-28 19:31:521277 {"default-browser-blue-dot-promo",
1278 flag_descriptions::kDefaultBrowserBlueDotPromoName,
1279 flag_descriptions::kDefaultBrowserBlueDotPromoDescription,
1280 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserBlueDotPromo)},
Olivier ROBINa8838c12022-12-05 17:50:271281 {"ios-force-translate-enabled",
1282 flag_descriptions::kIOSForceTranslateEnabledName,
1283 flag_descriptions::kIOSForceTranslateEnabledDescription, flags_ui::kOsIos,
1284 FEATURE_VALUE_TYPE(translate::kIOSForceTranslateEnabled)},
Daniel Whiteae1cb672022-12-14 18:25:251285 {"iph-price-notifications-while-browsing",
1286 flag_descriptions::kIPHPriceNotificationsWhileBrowsingName,
1287 flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription,
1288 flags_ui::kOsIos,
1289 FEATURE_VALUE_TYPE(
1290 feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)},
Qihui Zhao72836c62022-12-16 04:31:411291 {"autofill-offer-to-save-card-with-same-last-four",
1292 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourName,
1293 flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourDescription,
1294 flags_ui::kOsIos,
1295 FEATURE_VALUE_TYPE(
1296 autofill::features::kAutofillOfferToSaveCardWithSameLastFour)},
Christian Xu588330f32023-01-05 10:51:041297 {"omnibox-multiline-search-suggest",
1298 flag_descriptions::kOmniboxMultilineSearchSuggestName,
1299 flag_descriptions::kOmniboxMultilineSearchSuggestDescription,
1300 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxMultilineSearchSuggest)},
Vipul Vinod Koulaebbcb3a2023-01-05 19:50:501301 {"autofill-suggest-server-card-instead-of-local-card",
1302 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName,
1303 flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription,
1304 flags_ui::kOsIos,
1305 FEATURE_VALUE_TYPE(
1306 autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)},
Ernesto Izquierdo Clua023bb52352023-01-12 19:33:341307 {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName,
1308 flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos,
1309 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)},
Christian Xu7e5234c12023-01-16 09:26:351310 {"multiline-fade-truncating-label",
1311 flag_descriptions::kMultilineFadeTruncatingLabelName,
1312 flag_descriptions::kMultilineFadeTruncatingLabelDescription,
1313 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kMultilineFadeTruncatingLabel)},
Robbie Gibson88f680a2023-01-19 16:47:301314 {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName,
1315 flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos,
1316 FEATURE_VALUE_TYPE(kPromosManagerUsesFET)},
Matt Jonesc01327662023-08-02 16:34:291317 {"shopping-collection",
1318 commerce::flag_descriptions::kShoppingCollectionName,
1319 commerce::flag_descriptions::kShoppingCollectionDescription,
1320 flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kShoppingCollection)},
Ewann Pelledec2d042023-01-25 15:28:391321 {"shopping-list", commerce::flag_descriptions::kShoppingListName,
1322 commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos,
1323 FEATURE_VALUE_TYPE(commerce::kShoppingList)},
Matt Jones5c8c8e32023-06-13 22:49:471324 {"shopping-list-track-by-default",
1325 commerce::flag_descriptions::kShoppingListTrackByDefaultName,
1326 commerce::flag_descriptions::kShoppingListTrackByDefaultDescription,
1327 flags_ui::kOsIos,
1328 FEATURE_VALUE_TYPE(commerce::kShoppingListTrackByDefault)},
Matt Jones1795eda2023-05-09 20:24:481329 {"local-pdp-detection",
1330 commerce::flag_descriptions::kCommerceLocalPDPDetectionName,
1331 commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription,
1332 flags_ui::kOsIos,
1333 FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)},
Louis Romero93e9b50a2023-01-26 01:46:121334 {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName,
1335 flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos,
1336 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold,
1337 kTabInactivityThresholdVariations,
1338 "TabInactivityThreshold")},
Sergio Collazos8d2ac27942023-01-26 19:03:411339 {"enable-feed-synthetic-capabilities",
1340 flag_descriptions::kEnableFeedSyntheticCapabilitiesName,
1341 flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription,
1342 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)},
Joemer Ramos0fccdf62023-07-28 17:17:181343 {"enable-friendlier-safe-browsing-settings-enhanced-protection",
1344 flag_descriptions::
1345 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionName,
1346 flag_descriptions::
1347 kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionDescription,
1348 flags_ui::kOsIos,
1349 FEATURE_VALUE_TYPE(
1350 safe_browsing::kFriendlierSafeBrowsingSettingsEnhancedProtection)},
Awad Osmanf1a89122023-07-27 19:59:361351 {"enable-friendlier-safe-browsing-settings-standard-protection",
1352 flag_descriptions::
1353 kEnableFriendlierSafeBrowsingSettingsStandardProtectionName,
1354 flag_descriptions::
1355 kEnableFriendlierSafeBrowsingSettingsStandardProtectionDescription,
Joemer Ramos961389e52023-07-20 20:22:521356 flags_ui::kOsIos,
Awad Osmanf1a89122023-07-27 19:59:361357 FEATURE_VALUE_TYPE(
1358 safe_browsing::kFriendlierSafeBrowsingSettingsStandardProtection)},
Sarah Criel5d59a3932023-09-05 23:44:291359 {"enable-red-interstitial-facelift",
1360 flag_descriptions::kEnableRedInterstitialFaceliftName,
1361 flag_descriptions::kEnableRedInterstitialFaceliftDescription,
1362 flags_ui::kOsIos,
1363 FEATURE_VALUE_TYPE(safe_browsing::kRedInterstitialFacelift)},
Louis Romero58f355022023-02-13 19:04:311364 {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName,
1365 flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos,
1366 FEATURE_VALUE_TYPE(kShowInactiveTabsCount)},
Olivier ROBIN52eddbf32023-02-15 10:33:421367 {"ios-edit-menu-partial-translate",
1368 flag_descriptions::kIOSEditMenuPartialTranslateName,
1369 flag_descriptions::kIOSEditMenuPartialTranslateDescription,
Olivier ROBINfd3887b72023-02-23 14:45:421370 flags_ui::kOsIos,
1371 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate,
1372 kIOSEditMenuPartialTranslateVariations,
1373 "IOSEditMenuPartialTranslate")},
Ali Juma57849c42023-02-21 22:53:431374 {"notification-settings-menu-item",
1375 flag_descriptions::kNotificationSettingsMenuItemName,
1376 flag_descriptions::kNotificationSettingsMenuItemDescription,
1377 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)},
Ed Chin97560fc42023-02-20 16:48:321378 {"feed-experiment-tagging-ios",
1379 flag_descriptions::kFeedExperimentTaggingName,
1380 flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos,
1381 FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)},
Stepan Khapugin551917f82023-02-21 18:00:061382 {"spotlight-reading-list-source",
1383 flag_descriptions::kSpotlightReadingListSourceName,
1384 flag_descriptions::kSpotlightReadingListSourceDescription,
1385 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)},
Salma Elmahallawy72c5d34d2023-02-27 23:44:421386 {"policy-logs-page-ios", flag_descriptions::kPolicyLogsPageIOSName,
1387 flag_descriptions::kPolicyLogsPageIOSDescription, flags_ui::kOsIos,
1388 FEATURE_VALUE_TYPE(policy::features::kPolicyLogsPageIOS)},
Menghan YANGf3fe2de52023-02-27 16:38:501389 {"enable-bookmarks-account-storage",
1390 flag_descriptions::kEnableBookmarksAccountStorageName,
1391 flag_descriptions::kEnableBookmarksAccountStorageDescription,
1392 flags_ui::kOsIos,
Marc Treib98d17f52023-07-06 13:00:461393 FEATURE_VALUE_TYPE(syncer::kEnableBookmarksAccountStorage)},
kalettucefb09e402023-02-27 18:35:531394 {"web-feed-feedback-reroute",
1395 flag_descriptions::kWebFeedFeedbackRerouteName,
1396 flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos,
1397 FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)},
Jason Huac58fea2023-02-28 20:25:551398 {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName,
1399 flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos,
1400 FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)},
ginnnnnnny75903622023-03-01 18:00:001401 {"bring-your-own-tabs-ios", flag_descriptions::kBringYourOwnTabsIOSName,
1402 flag_descriptions::kBringYourOwnTabsIOSDescription, flags_ui::kOsIos,
1403 FEATURE_WITH_PARAMS_VALUE_TYPE(kBringYourOwnTabsIOS,
1404 kBringYourOwnTabsIOSVariations,
1405 "BringYourOwnTabsIOS")},
Tina Wangd3f6f192023-04-05 05:22:431406 {"enable-follow-IPH-exp-params",
1407 flag_descriptions::kEnableFollowIPHExpParamsName,
1408 flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos,
1409 FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)},
Tina Wange81e24d2023-03-08 21:10:031410 {"enable-follow-management-instant-reload",
1411 flag_descriptions::kEnableFollowManagementInstantReloadName,
1412 flag_descriptions::kEnableFollowManagementInstantReloadDescription,
1413 flags_ui::kOsIos,
1414 FEATURE_VALUE_TYPE(kEnableFollowManagementInstantReload)},
Guillem Perez3c139a822023-05-24 19:34:251415 {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName,
1416 flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos,
1417 FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)},
Mustafa Acerc8c0b152023-03-09 02:41:441418 {"mixed-content-autoupgrade-ios",
1419 flag_descriptions::kMixedContentAutoupgradeName,
1420 flag_descriptions::kMixedContentAutoupgradeDescription, flags_ui::kOsIos,
1421 FEATURE_VALUE_TYPE(
1422 security_interstitials::features::kMixedContentAutoupgrade)},
Jared Saul5363f3962023-03-10 23:03:511423 {"autofill-upstream-authenticate-preflight-call",
1424 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallName,
1425 flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallDescription,
1426 flags_ui::kOsIos,
1427 FEATURE_VALUE_TYPE(
1428 autofill::features::kAutofillUpstreamAuthenticatePreflightCall)},
Marc Treibe9f79ea72023-03-14 10:25:421429 {"enable-preferences-account-storage",
1430 flag_descriptions::kEnablePreferencesAccountStorageName,
1431 flag_descriptions::kEnablePreferencesAccountStorageDescription,
1432 flags_ui::kOsIos,
1433 FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)},
Olivier ROBINa229d2132023-03-21 12:44:201434 {"ios-browser-edit-menu-metrics",
1435 flag_descriptions::kIOSBrowserEditMenuMetricsName,
1436 flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos,
1437 FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)},
Nicolas MacBeth17c9b92c2023-08-24 14:15:401438 {"ios-bulk-upload-local-passwords",
1439 flag_descriptions::kIOSPasswordSettingsBulkUploadLocalPasswordsName,
1440 flag_descriptions::kIOSPasswordSettingsBulkUploadLocalPasswordsDescription,
1441 flags_ui::kOsIos,
1442 FEATURE_VALUE_TYPE(password_manager::features::
1443 kIOSPasswordSettingsBulkUploadLocalPasswords)},
Menghan YANG5b3a78a2023-03-24 17:38:261444 {"enable-reading-list-account-storage",
1445 flag_descriptions::kEnableReadingListAccountStorageName,
1446 flag_descriptions::kEnableReadingListAccountStorageDescription,
1447 flags_ui::kOsIos,
Marc Treib98d17f52023-07-06 13:00:461448 FEATURE_VALUE_TYPE(syncer::kReadingListEnableDualReadingListModel)},
Menghan YANG5b3a78a2023-03-24 17:38:261449 {"enable-reading-list-sign-in-promo",
1450 flag_descriptions::kEnableReadingListSignInPromoName,
1451 flag_descriptions::kEnableReadingListSignInPromoDescription,
1452 flags_ui::kOsIos,
Marc Treib98d17f52023-07-06 13:00:461453 FEATURE_VALUE_TYPE(syncer::kReadingListEnableSyncTransportModeUponSignIn)},
Stepan Khapuginb2f49522023-04-03 18:25:241454 {"omnibox-grouping-framework-zps",
1455 flag_descriptions::kOmniboxGroupingFrameworkForZPSName,
1456 flag_descriptions::kOmniboxGroupingFrameworkForZPSDescription,
1457 flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForZPS)},
1458 {"omnibox-grouping-framework-non-zps",
1459 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName,
1460 flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription,
1461 flags_ui::kOsIos,
1462 FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)},
Sylvain Defresne935e6f72023-04-04 09:54:471463 {"enable-session-serialization-optimizations",
1464 flag_descriptions::kEnableSessionSerializationOptimizationsName,
1465 flag_descriptions::kEnableSessionSerializationOptimizationsDescription,
1466 flags_ui::kOsIos,
1467 FEATURE_VALUE_TYPE(
1468 web::features::kEnableSessionSerializationOptimizations)},
Stepan Khapugin8c075872023-04-05 14:29:411469 {"bottom-omnibox-steady-state",
1470 flag_descriptions::kBottomOmniboxSteadyStateName,
1471 flag_descriptions::kBottomOmniboxSteadyStateDescription, flags_ui::kOsIos,
1472 FEATURE_VALUE_TYPE(kBottomOmniboxSteadyState)},
Jared Saul19f8ba12023-04-11 17:44:531473 {"autofill-upstream-use-alternate-secure-data-type",
1474 flag_descriptions::kAutofillUpstreamUseAlternateSecureDataTypeName,
1475 flag_descriptions::kAutofillUpstreamUseAlternateSecureDataTypeDescription,
1476 flags_ui::kOsIos,
1477 FEATURE_VALUE_TYPE(
1478 autofill::features::kAutofillUpstreamUseAlternateSecureDataType)},
Robbie Gibson0ea280602023-04-12 01:02:391479 {"only-access-clipboard-async",
1480 flag_descriptions::kOnlyAccessClipboardAsyncName,
1481 flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos,
1482 FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)},
Christian Xue5f60232023-04-12 17:50:091483 {"omnibox-tail-suggest", flag_descriptions::kOmniboxTailSuggestName,
1484 flag_descriptions::kOmniboxTailSuggestDescription, flags_ui::kOsIos,
1485 FEATURE_VALUE_TYPE(kOmniboxTailSuggest)},
Stepan Khapugin5f0a4ae2023-07-05 12:51:191486 {"omnibox-improved-rtl-suggestions",
1487 flag_descriptions::kOmniboxSuggestionsRTLImprovementsName,
1488 flag_descriptions::kOmniboxSuggestionsRTLImprovementsDescription,
1489 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxSuggestionsRTLImprovements)},
Ed Chinecb7d5b2023-04-14 19:22:091490 {"feed-disable-hot-start-refresh-ios",
1491 flag_descriptions::kFeedDisableHotStartRefreshName,
1492 flag_descriptions::kFeedDisableHotStartRefreshDescription,
1493 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kFeedDisableHotStartRefresh)},
Olivier ROBIN2613bcd02023-04-20 10:00:471494 {"ios-edit-menu-search-with", flag_descriptions::kIOSEditMenuSearchWithName,
1495 flag_descriptions::kIOSEditMenuSearchWithDescription, flags_ui::kOsIos,
1496 FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuSearchWith,
1497 kIOSEditMenuSearchWithVariations,
1498 "IOSEditMenuSearchWith")},
1499 {"ios-edit-menu-hide-search-web",
1500 flag_descriptions::kIOSEditMenuHideSearchWebName,
1501 flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos,
1502 FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)},
Stephen McGruer9afca1a2023-05-18 20:55:171503 {"autofill-enable-card-art-image",
1504 flag_descriptions::kAutofillEnableCardArtImageName,
1505 flag_descriptions::kAutofillEnableCardArtImageDescription,
1506 flags_ui::kOsIos,
1507 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)},
adamta09aa47e2023-05-23 18:20:431508 {"hide-content-suggestions-tiles",
1509 flag_descriptions::kHideContentSuggestionTilesName,
1510 flag_descriptions::kHideContentSuggestionTilesDescription,
1511 flags_ui::kOsIos,
1512 FEATURE_WITH_PARAMS_VALUE_TYPE(
1513 kHideContentSuggestionsTiles,
1514 kHideContentSuggestionTilesVariations,
1515 flag_descriptions::kHideContentSuggestionTilesName)},
Tina Wangcda2c902023-05-25 17:39:451516 {"enable-signed-out-view-demotion",
1517 flag_descriptions::kEnableSignedOutViewDemotionName,
1518 flag_descriptions::kEnableSignedOutViewDemotionDescription,
1519 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)},
Stephen McGruerb4c8f7f2023-06-01 21:28:251520 {"autofill-use-two-dots-for-last-four-digits",
1521 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsName,
1522 flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsDescription,
1523 flags_ui::kOsIos,
1524 FEATURE_VALUE_TYPE(
1525 autofill::features::kAutofillUseTwoDotsForLastFourDigits)},
Duong Dac4181ab52023-06-07 12:51:501526 {"enable-variations-google-group-filtering",
1527 flag_descriptions::kEnableVariationsGoogleGroupFilteringName,
1528 flag_descriptions::kEnableVariationsGoogleGroupFilteringDescription,
1529 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kVariationsGoogleGroupFiltering)},
sebsg977f9aa2023-06-08 18:48:241530 {"autofill-disable-profile-updates",
1531 flag_descriptions::kAutofillDisableProfileUpdatesName,
1532 flag_descriptions::kAutofillDisableProfileUpdatesDescription,
1533 flags_ui::kOsIos,
1534 FEATURE_VALUE_TYPE(
1535 autofill::features::test::kAutofillDisableProfileUpdates)},
1536 {"autofill-disable-silent-profile-updates",
1537 flag_descriptions::kAutofillDisableSilentProfileUpdatesName,
1538 flag_descriptions::kAutofillDisableSilentProfileUpdatesDescription,
1539 flags_ui::kOsIos,
1540 FEATURE_VALUE_TYPE(
1541 autofill::features::test::kAutofillDisableSilentProfileUpdates)},
1542 {"autofill-enable-admin-level-2",
1543 flag_descriptions::kAutofillEnableSupportForAdminLevel2Name,
1544 flag_descriptions::kAutofillEnableSupportForAdminLevel2Description,
1545 flags_ui::kOsIos,
1546 FEATURE_VALUE_TYPE(
1547 autofill::features::kAutofillEnableSupportForAdminLevel2)},
1548 {"autofill-enable-between-streets",
1549 flag_descriptions::kAutofillEnableSupportForBetweenStreetsName,
1550 flag_descriptions::kAutofillEnableSupportForBetweenStreetsDescription,
1551 flags_ui::kOsIos,
1552 FEATURE_VALUE_TYPE(
1553 autofill::features::kAutofillEnableSupportForBetweenStreets)},
1554 {"autofill-enable-landmark",
1555 flag_descriptions::kAutofillEnableSupportForLandmarkName,
1556 flag_descriptions::kAutofillEnableSupportForLandmarkDescription,
1557 flags_ui::kOsIos,
1558 FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableSupportForLandmark)},
Hira Mahmood6b0e5502023-06-12 21:51:431559 {"post-restore-default-browser-promo",
1560 flag_descriptions::kPostRestoreDefaultBrowserPromoName,
1561 flag_descriptions::kPostRestoreDefaultBrowserPromoDescription,
1562 flags_ui::kOsIos,
1563 FEATURE_WITH_PARAMS_VALUE_TYPE(
1564 kPostRestoreDefaultBrowserPromo,
1565 kPostRestoreDefaultBrowserPromoVariations,
1566 "PostRestoreDefaultBrowserPromoVariations")},
Ameur Hosnib40858a2023-06-12 17:27:311567 {"spotlight-open-tabs-source",
1568 flag_descriptions::kSpotlightOpenTabsSourceName,
1569 flag_descriptions::kSpotlightOpenTabsSourceDescription, flags_ui::kOsIos,
1570 FEATURE_VALUE_TYPE(kSpotlightOpenTabsSource)},
Stepan Khapuginc302b9412023-09-12 10:19:451571 {"spotlight-donate-new-intents",
1572 flag_descriptions::kSpotlightDonateNewIntentsName,
1573 flag_descriptions::kSpotlightDonateNewIntentsDescription, flags_ui::kOsIos,
1574 FEATURE_VALUE_TYPE(kSpotlightDonateNewIntents)},
Marc Treib9bddebb2023-06-15 14:03:341575 {"replace-sync-promos-with-sign-in-promos",
1576 flag_descriptions::kReplaceSyncPromosWithSignInPromosName,
1577 flag_descriptions::kReplaceSyncPromosWithSignInPromosDescription,
1578 flags_ui::kOsIos,
Gauthier Ambard6ca6d5e2023-06-20 09:33:301579 MULTI_VALUE_TYPE(kReplaceSyncPromosWithSignInPromosChoices)},
Aliona DANGLA4326cad82023-06-20 16:32:571580 {"tab-grid-refactoring", flag_descriptions::kTabGridRefactoringName,
1581 flag_descriptions::kTabGridRefactoringDescription, flags_ui::kOsIos,
1582 FEATURE_VALUE_TYPE(kTabGridRefactoring)},
Ewann Pelle6eecb8f2023-06-23 14:31:371583 {"tab-pickup-threshold", flag_descriptions::kTabPickupThresholdName,
1584 flag_descriptions::kTabPickupThresholdDescription, flags_ui::kOsIos,
1585 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabPickupThreshold,
1586 kTabPickupThresholdVariations,
1587 "TabPickupThreshold")},
Huiting Yubc1bf4d2023-06-26 18:15:321588 {"ios-iph-for-safari-switcher",
1589 flag_descriptions::kIPHForSafariSwitcherName,
1590 flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos,
1591 FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)},
Benjamin Williams9773edd42023-06-26 20:22:071592 {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName,
1593 flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos,
1594 FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)},
Hira Mahmood746047162023-07-11 22:02:061595 {"app-store-rating-loosened-triggers",
1596 flag_descriptions::kAppStoreRatingLoosenedTriggersName,
1597 flag_descriptions::kAppStoreRatingLoosenedTriggersDescription,
1598 flags_ui::kOsIos, FEATURE_VALUE_TYPE(kAppStoreRatingLoosenedTriggers)},
Ernesto Izquierdo Clua5e589f52023-07-06 20:52:151599 {"ios-password-auth-on-entry",
1600 flag_descriptions::kIOSPasswordAuthOnEntryName,
1601 flag_descriptions::kIOSPasswordAuthOnEntryDescription, flags_ui::kOsIos,
1602 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntry)},
Ewann Pelle9cd85b22023-07-12 14:42:011603 {"tab-resumption", flag_descriptions::kTabResumptionName,
1604 flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos,
Ewann Pellea2bcb3a2023-08-28 13:53:001605 FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption,
1606 kTabResumptionVariations,
1607 "TabResumption")},
Jason Huba0b87a2023-07-18 15:57:001608 {"ios-lens-use-direct-upload",
1609 flag_descriptions::kIOSLensUseDirectUploadName,
1610 flag_descriptions::kIOSLensUseDirectUploadDescription, flags_ui::kOsIos,
1611 FEATURE_VALUE_TYPE(kIOSLensUseDirectUpload)},
Siyu An33708bc2023-07-21 20:24:111612 {"autofill-enable-payments-mandatory-reauth-on-bling",
1613 flag_descriptions::kAutofillEnablePaymentsMandatoryReauthOnBlingName,
1614 flag_descriptions::
1615 kAutofillEnablePaymentsMandatoryReauthOnBlingDescription,
1616 flags_ui::kOsIos,
1617 FEATURE_VALUE_TYPE(
1618 autofill::features::kAutofillEnablePaymentsMandatoryReauthOnBling)},
Christian Xu07d600192023-07-24 12:29:521619 {"bottom-omnibox-default-setting",
1620 flag_descriptions::kBottomOmniboxDefaultSettingName,
1621 flag_descriptions::kBottomOmniboxDefaultSettingDescription,
1622 flags_ui::kOsIos,
1623 FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting,
1624 kBottomOmniboxDefaultSettingVariations,
1625 "BottomOmniboxDefaultSetting")},
Ewann Pelle422c0942023-08-01 12:28:131626 {"tab-pickup-minimum-delay", flag_descriptions::kTabPickupMinimumDelayName,
1627 flag_descriptions::kTabPickupMinimumDelayDescription, flags_ui::kOsIos,
1628 FEATURE_VALUE_TYPE(kTabPickupMinimumDelay)},
Nohemi Fernandez64acf982023-08-04 09:27:151629 {"enable-family-link-controls",
1630 flag_descriptions::kEnableFamilyLinkControlsName,
1631 flag_descriptions::kEnableFamilyLinkControlsDescription, flags_ui::kOsIos,
1632 FEATURE_VALUE_TYPE(
1633 supervised_user::kFilterWebsitesForSupervisedUsersOnDesktopAndIOS)},
adamta7be73b182023-08-08 22:30:351634 {"discover-feed-sport-card", flag_descriptions::kDiscoverFeedSportCardName,
1635 flag_descriptions::kDiscoverFeedSportCardDescription, flags_ui::kOsIos,
1636 FEATURE_VALUE_TYPE(kDiscoverFeedSportCard)},
Ernesto Izquierdo Clua6a00cb9d2023-08-11 15:12:501637 {"ios-password-auth-on-entry-v2",
1638 flag_descriptions::kIOSPasswordAuthOnEntryV2Name,
1639 flag_descriptions::kIOSPasswordAuthOnEntryV2Description, flags_ui::kOsIos,
1640 FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntryV2)},
Quentin Pubert476786e82023-08-16 12:45:281641 {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName,
1642 flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos,
1643 FEATURE_VALUE_TYPE(kIOSSaveToPhotos)},
Hira Mahmood4c15f382023-08-17 16:21:131644 {"ios-parcel-tracking", flag_descriptions::kIOSParcelTrackingName,
1645 flag_descriptions::kIOSParcelTrackingDescription, flags_ui::kOsIos,
1646 FEATURE_VALUE_TYPE(kIOSParcelTracking)},
Aliona DANGLAcc8379f2023-08-18 16:56:441647 {"enable-inactive-tabs-limit",
1648 flag_descriptions::kInactiveTabsMoveLimitName,
1649 flag_descriptions::kInactiveTabsMoveLimitDescription, flags_ui::kOsIos,
1650 FEATURE_VALUE_TYPE(kInactiveTabsMoveLimit)},
Justin Wells37e32c4d2023-09-06 22:11:111651 {"autofill-enable-merchant-domain-in-unmask-card-request",
1652 flag_descriptions::kAutofillEnableMerchantDomainInUnmaskCardRequestName,
1653 flag_descriptions::
1654 kAutofillEnableMerchantDomainInUnmaskCardRequestDescription,
1655 flags_ui::kOsIos,
1656 FEATURE_VALUE_TYPE(
1657 autofill::features::kAutofillEnableMerchantDomainInUnmaskCardRequest)},
Verina Armanyousb23d4612023-09-07 20:31:331658 {"autofill-update-chrome-settings-link-to-gpay-web",
1659 flag_descriptions::kAutofillUpdateChromeSettingsLinkToGPayWebName,
1660 flag_descriptions::kAutofillUpdateChromeSettingsLinkToGPayWebDescription,
1661 flags_ui::kOsIos,
1662 FEATURE_VALUE_TYPE(
1663 autofill::features::kAutofillUpdateChromeSettingsLinkToGPayWeb)},
Christian Xu90e952f2023-09-13 09:05:281664 {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName,
1665 flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos,
1666 FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)},
Noémie St-Onge2634eb82023-09-19 18:25:591667 {"iph-ios-promo-manager-widget-promo",
1668 flag_descriptions::kIPHiOSPromoPasswordManagerWidgetName,
1669 flag_descriptions::kIPHiOSPromoPasswordManagerWidgetDescription,
1670 flags_ui::kOsIos,
1671 FEATURE_VALUE_TYPE(
1672 feature_engagement::kIPHiOSPromoPasswordManagerWidgetFeature)},
Gauthier Ambard6ca6d5e2023-06-20 09:33:301673};
sdefresne14900ee2015-11-27 14:43:211674
Rohit Raobed794c2020-04-27 15:27:451675bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) {
1676 return false;
1677}
1678
1679flags_ui::FlagsState& GetGlobalFlagsState() {
1680 static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries,
1681 nullptr);
1682 return *flags_state;
1683}
David Jean5ca263c2021-08-18 09:19:301684// Creates the experimental test policies map, used by AsyncPolicyLoader and
1685// PolicyLoaderIOS to locally enable policies.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341686NSMutableDictionary* CreateExperimentalTestingPolicies() {
sdefresne14900ee2015-11-27 14:43:211687 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1688
Guillaume Jenkins25e9bd72020-08-27 17:39:061689 // Shared variables for all enterprise experimental flags.
Guillaume Jenkins57606d72020-08-13 17:32:551690 NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init];
Guillaume Jenkins25e9bd72020-08-27 17:39:061691 NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init];
Guillaume Jenkins57606d72020-08-13 17:32:551692
Guillaume Jenkins25e9bd72020-08-27 17:39:061693 // Set some sample policy values for testing if EnableSamplePolicies is set to
1694 // true.
Guillaume Jenkinseeb7007c2020-06-25 22:55:401695 if ([defaults boolForKey:@"EnableSamplePolicies"]) {
Guillaume Jenkins57606d72020-08-13 17:32:551696 [testing_policies addEntriesFromDictionary:@{
Tina Wang59d0b7e2020-08-11 04:41:011697 base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO,
1698
Guillaume Jenkinseeb7007c2020-06-25 22:55:401699 base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO,
1700
1701 // 2 = Disable all variations
1702 base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2,
1703
1704 // 2 = Do not allow any site to show popups
1705 base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2,
1706
Tina Wang5abee802020-07-29 23:09:521707 // Set default search engine.
1708 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) :
1709 @YES,
1710 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) :
1711 @"http://www.google.com/search?q={searchTerms}",
1712 base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) :
Tina Wang7cd0a062020-09-15 21:31:021713 @"TestEngine",
Tina Wang5abee802020-07-29 23:09:521714
Tina Wang89068c842020-10-29 15:51:501715 base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO,
1716
Gauthier Ambard21b23702021-04-16 16:11:271717 base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO,
1718
Tina Wang59d0b7e2020-08-11 04:41:011719 base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO,
Tina Wang54dddfc22020-08-20 22:34:531720
1721 // 2 = Enhanced safe browsing protection
1722 base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2,
1723
1724 base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES,
Hira Mahmooda53b8d632023-01-03 10:03:291725
1726 base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO,
Guillaume Jenkins57606d72020-08-13 17:32:551727 }];
1728 }
1729
Ewann227a3c02021-04-19 12:04:541730 if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) {
Guillaume Jenkinsfe46d3a2021-04-26 19:51:041731 NSString* sync_policy_key =
1732 base::SysUTF8ToNSString(policy::key::kSyncDisabled);
David Jean5ca263c2021-08-18 09:19:301733 [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}];
Ewann227a3c02021-04-19 12:04:541734 }
Ewann227a3c02021-04-19 12:04:541735
Ewann570a6302021-08-17 07:22:421736 // SyncTypesListDisabled policy.
1737 NSString* Sync_types_list_disabled_key =
1738 base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled);
1739 NSMutableArray* Sync_types_list_disabled_values =
1740 [[NSMutableArray alloc] init];
1741 if ([defaults boolForKey:@"SyncTypesListBookmarks"]) {
1742 [Sync_types_list_disabled_values addObject:@"bookmarks"];
1743 }
1744 if ([defaults boolForKey:@"SyncTypesListReadingList"]) {
1745 [Sync_types_list_disabled_values addObject:@"readingList"];
1746 }
1747 if ([defaults boolForKey:@"SyncTypesListPreferences"]) {
1748 [Sync_types_list_disabled_values addObject:@"preferences"];
1749 }
1750 if ([defaults boolForKey:@"SyncTypesListPasswords"]) {
1751 [Sync_types_list_disabled_values addObject:@"passwords"];
1752 }
1753 if ([defaults boolForKey:@"SyncTypesListAutofill"]) {
1754 [Sync_types_list_disabled_values addObject:@"autofill"];
1755 }
1756 if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) {
1757 [Sync_types_list_disabled_values addObject:@"typedUrls"];
1758 }
1759 if ([defaults boolForKey:@"SyncTypesListTabs"]) {
1760 [Sync_types_list_disabled_values addObject:@"tabs"];
1761 }
1762 if ([Sync_types_list_disabled_values count]) {
1763 [testing_policies addEntriesFromDictionary:@{
1764 Sync_types_list_disabled_key : Sync_types_list_disabled_values
1765 }];
Ewann570a6302021-08-17 07:22:421766 }
1767
Gauthier Ambard073eaa92021-11-22 15:24:131768 // If an incognito mode availability is set, set the value.
Tina Wangc6bcf572021-01-27 18:15:521769 NSString* incognito_policy_key =
1770 base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability);
1771 NSInteger incognito_mode_availability =
1772 [defaults integerForKey:incognito_policy_key];
1773 if (incognito_mode_availability) {
Tina Wangc6bcf572021-01-27 18:15:521774 [testing_policies addEntriesFromDictionary:@{
1775 incognito_policy_key : @(incognito_mode_availability),
1776 }];
1777 }
1778
Ewann40a8f8a2021-07-29 10:01:201779 NSString* restriction_pattern =
1780 [defaults stringForKey:@"RestrictAccountsToPatterns"];
1781 if ([restriction_pattern length] > 0) {
Ewannb3bee382021-08-16 09:12:291782 NSString* restrict_key =
1783 base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns);
Ewann40a8f8a2021-07-29 10:01:201784 [testing_policies addEntriesFromDictionary:@{
Ewannb3bee382021-08-16 09:12:291785 restrict_key : @[ restriction_pattern ]
Ewann40a8f8a2021-07-29 10:01:201786 }];
1787 }
1788
Vincent Boisselle19200bc2021-09-01 17:58:251789 // If the sign-in policy is set (not "None"), add the policy key to the list
1790 // of enabled experimental policies, and set the value.
1791 NSString* const kSigninPolicyKey = @"BrowserSignin";
1792 NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey];
1793 if (signin_policy_mode) {
1794 // Remove the mode offset that was used to represent the unset policy.
1795 --signin_policy_mode;
1796 DCHECK(signin_policy_mode >= 0);
1797
Vincent Boisselle19200bc2021-09-01 17:58:251798 [testing_policies addEntriesFromDictionary:@{
1799 kSigninPolicyKey : @(signin_policy_mode),
1800 }];
1801 }
1802
Veronique Nguyen9b1044f2022-01-11 14:41:131803 // If the New Tab Page URL is set (not empty) add the value to the list of
1804 // test policies.
1805 NSString* ntp_location = [defaults stringForKey:@"NTPLocation"];
1806 if ([ntp_location length] > 0) {
1807 NSString* ntp_location_key =
1808 base::SysUTF8ToNSString(policy::key::kNewTabPageLocation);
1809 [testing_policies
1810 addEntriesFromDictionary:@{ntp_location_key : ntp_location}];
Veronique Nguyen302d8702022-01-12 21:18:571811 [allowed_experimental_policies addObject:ntp_location_key];
Veronique Nguyen9b1044f2022-01-11 14:41:131812 }
1813
Ali Juma9ec36d22022-03-28 14:53:121814 if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) {
1815 NSString* allow_backups_key =
1816 base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups);
1817 [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}];
1818 [allowed_experimental_policies addObject:allow_backups_key];
1819 }
1820
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241821 if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) {
1822 NSString* password_manager_key =
1823 base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled);
1824 [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}];
1825 [allowed_experimental_policies addObject:password_manager_key];
1826 }
Vincent Boisselle003569a72023-09-11 16:03:121827
1828 if ([defaults boolForKey:@"EnableUserPolicyMerge"]) {
1829 NSString* user_policy_merge_key =
1830 base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge);
1831 [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}];
1832 [allowed_experimental_policies addObject:user_policy_merge_key];
1833 }
1834
Arthur Milchiorbb44f5c82023-03-14 16:14:461835 if ([defaults boolForKey:@"AddManagedBookmarks"]) {
1836 NSString* managed_bookmarks_key =
1837 base::SysUTF8ToNSString(policy::key::kManagedBookmarks);
1838 NSString* managed_bookmarks_value =
Avi Drissmanaa245812023-04-27 20:20:571839 @"["
1840 // The following gets filtered out from
1841 // the JSON string when parsed.
1842 " {"
1843 " \"toplevel_name\": \"Managed Bookmarks\""
1844 " },"
1845 " {"
1846 " \"name\": \"Google\","
1847 " \"url\": \"google.com\""
1848 " },"
1849 " {"
1850 " \"name\": \"Empty Folder\","
1851 " \"children\": []"
1852 " },"
1853 " {"
1854 " \"name\": \"Big Folder\","
1855 " \"children\": ["
1856 " {"
1857 " \"name\": \"Youtube\","
1858 " \"url\": \"youtube.com\""
1859 " },"
1860 " {"
1861 " \"name\": \"Chromium\","
1862 " \"url\": \"chromium.org\""
1863 " },"
1864 " {"
1865 " \"name\": \"More Stuff\","
1866 " \"children\": ["
1867 " {"
1868 " \"name\": \"Bugs\","
1869 " \"url\": \"crbug.com\""
1870 " }"
1871 " ]"
1872 " }"
1873 " ]"
1874 " }"
1875 "]";
Arthur Milchiorbb44f5c82023-03-14 16:14:461876 [testing_policies addEntriesFromDictionary:@{
1877 managed_bookmarks_key : managed_bookmarks_value
1878 }];
1879 [allowed_experimental_policies addObject:managed_bookmarks_key];
1880 }
Victor Hugo Vianna Silva9e1a7302023-02-21 08:56:241881
Guillaume Jenkins25e9bd72020-08-27 17:39:061882 // If any experimental policy was allowed, set the EnableExperimentalPolicies
1883 // policy.
1884 if ([allowed_experimental_policies count] > 0) {
1885 [testing_policies setValue:allowed_experimental_policies
1886 forKey:base::SysUTF8ToNSString(
1887 policy::key::kEnableExperimentalPolicies)];
1888 }
1889
jlebel2eb40222022-05-06 11:15:421890 NSString* metrics_reporting_key = @"MetricsReportingEnabled";
1891 switch ([defaults integerForKey:metrics_reporting_key]) {
1892 case 1:
1893 // Metrics reporting forced.
Louis Romeroec603fd5f62023-01-20 14:07:131894 [testing_policies setValue:@YES forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421895 break;
1896 case 2:
1897 // Metrics reporting disabled.
Louis Romeroec603fd5f62023-01-20 14:07:131898 [testing_policies setValue:@NO forKey:metrics_reporting_key];
jlebel2eb40222022-05-06 11:15:421899 break;
1900 default:
1901 // Metrics reporting not managed.
1902 break;
1903 }
1904
David Jean6f85d44f2021-08-19 08:08:451905 // Warning: Add new flags to TestingPoliciesHash() below.
1906
David Jean5ca263c2021-08-18 09:19:301907 return testing_policies;
1908}
David Jean6f85d44f2021-08-19 08:08:451909
David Jean5ca263c2021-08-18 09:19:301910} // namespace
1911
Gauthier Ambard02dbf022022-08-23 08:28:471912// Add all switches from experimental flags to `command_line`.
David Jean5ca263c2021-08-18 09:19:301913void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) {
1914 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
1915
1916 // Set the UA flag if UseMobileSafariUA is enabled.
1917 if ([defaults boolForKey:@"UseMobileSafariUA"]) {
1918 // Safari uses "Vesion/", followed by the OS version excluding bugfix, where
1919 // Chrome puts its product token.
1920 int32_t major = 0;
1921 int32_t minor = 0;
1922 int32_t bugfix = 0;
1923 base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix);
1924 std::string product = base::StringPrintf("Version/%d.%d", major, minor);
1925
1926 command_line->AppendSwitchASCII(switches::kUserAgent,
1927 web::BuildMobileUserAgent(product));
1928 }
1929
1930 // Shared variables for all enterprise experimental flags.
Vincent Boisselleed0e6f1a2021-11-09 06:47:341931 NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies();
David Jean5ca263c2021-08-18 09:19:301932
1933 // If a CBCM enrollment token is provided, force Chrome Browser Cloud
1934 // Management to enabled and add the token to the list of policies.
1935 NSString* token_key =
1936 base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken);
1937 NSString* token = [defaults stringForKey:token_key];
1938
1939 if ([token length] > 0) {
1940 command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement);
1941 [testing_policies setValue:token forKey:token_key];
1942 }
1943
Guillaume Jenkins57606d72020-08-13 17:32:551944 // If some policies were set, commit them to the app's registration defaults.
1945 if ([testing_policies count] > 0) {
Guillaume Jenkinseeb7007c2020-06-25 22:55:401946 NSDictionary* registration_defaults =
1947 @{kPolicyLoaderIOSConfigurationKey : testing_policies};
1948 [defaults registerDefaults:registration_defaults];
1949 }
1950
sdefresne14900ee2015-11-27 14:43:211951 // Freeform commandline flags. These are added last, so that any flags added
1952 // earlier in this function take precedence.
1953 if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) {
1954 base::CommandLine::StringVector flags;
1955 // Append an empty "program" argument.
1956 flags.push_back("");
1957
1958 // The number of flags corresponds to the number of text fields in
1959 // Experimental.plist.
1960 const int kNumFreeformFlags = 5;
1961 for (int i = 1; i <= kNumFreeformFlags; ++i) {
1962 NSString* key =
1963 [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i];
1964 NSString* flag = [defaults stringForKey:key];
1965 if ([flag length]) {
Robbie Gibsonc91ce622019-05-20 14:44:331966 // iOS keyboard replaces -- with —, so undo that.
1967 flag = [flag stringByReplacingOccurrencesOfString:@"—"
1968 withString:@"--"
1969 options:0
1970 range:NSMakeRange(0, 1)];
1971 // To make things easier, allow flags with no dashes by prepending them
1972 // here. This also allows for flags that just have one dash if they
1973 // exist.
1974 if (![flag hasPrefix:@"-"]) {
1975 flag = [@"--" stringByAppendingString:flag];
1976 }
sdefresne14900ee2015-11-27 14:43:211977 flags.push_back(base::SysNSStringToUTF8(flag));
1978 }
1979 }
1980
1981 base::CommandLine temp_command_line(flags);
1982 command_line->AppendArguments(temp_command_line, false);
1983 }
msardafc76f662017-02-24 12:46:281984
justincohendacc85d2017-06-28 23:34:101985 // Populate command line flag for 3rd party keyboard omnibox workaround.
1986 NSString* enableThirdPartyKeyboardWorkaround =
1987 [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"];
1988 if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) {
1989 command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround);
1990 } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) {
1991 command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround);
1992 }
1993
Sylvain Defresned3cd8d92022-01-18 13:35:081994 ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line);
sdefresne14900ee2015-11-27 14:43:211995}
1996
sdefresne14900ee2015-11-27 14:43:211997void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage,
1998 base::CommandLine* command_line) {
Sylvain Defresne8327a2f2019-01-17 14:19:181999 GetGlobalFlagsState().ConvertFlagsToSwitches(
sdefresnec9763902015-12-02 10:30:112000 flags_storage, command_line, flags_ui::kAddSentinels,
Gregory Chatzinofff6523722017-11-21 01:33:532001 switches::kEnableFeatures, switches::kDisableFeatures);
sdefresne14900ee2015-11-27 14:43:212002}
2003
jkrcalbf073372016-07-29 07:21:312004std::vector<std::string> RegisterAllFeatureVariationParameters(
2005 flags_ui::FlagsStorage* flags_storage,
2006 base::FeatureList* feature_list) {
Sylvain Defresne8327a2f2019-01-17 14:19:182007 return GetGlobalFlagsState().RegisterAllFeatureVariationParameters(
2008 flags_storage, feature_list);
jkrcalbf073372016-07-29 07:21:312009}
2010
sdefresne14900ee2015-11-27 14:43:212011void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage,
2012 flags_ui::FlagAccess access,
Matt Menke4d777572022-06-15 15:55:502013 base::Value::List& supported_entries,
2014 base::Value::List& unsupported_entries) {
Sylvain Defresne8327a2f2019-01-17 14:19:182015 GetGlobalFlagsState().GetFlagFeatureEntries(
sdefresne14900ee2015-11-27 14:43:212016 flags_storage, access, supported_entries, unsupported_entries,
Renjie Tang208c8192020-11-03 00:46:512017 base::BindRepeating(&SkipConditionalFeatureEntry));
sdefresne14900ee2015-11-27 14:43:212018}
2019
2020void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage,
2021 const std::string& internal_name,
2022 bool enable) {
Sylvain Defresne8327a2f2019-01-17 14:19:182023 GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name,
2024 enable);
sdefresne14900ee2015-11-27 14:43:212025}
2026
2027void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) {
Sylvain Defresne8327a2f2019-01-17 14:19:182028 GetGlobalFlagsState().ResetAllFlags(flags_storage);
sdefresne14900ee2015-11-27 14:43:212029}
2030
Nicolas MacBeth972e2592023-02-23 15:22:092031bool IsRestartNeededToCommitChanges() {
2032 return GetGlobalFlagsState().IsRestartNeededToCommitChanges();
2033}
2034
sdefresne14900ee2015-11-27 14:43:212035namespace testing {
2036
Elly Fong-Jones323ab1092021-08-23 22:36:312037base::span<const flags_ui::FeatureEntry> GetFeatureEntries() {
2038 return base::span<const flags_ui::FeatureEntry>(kFeatureEntries,
Daniel Cheng1f047a82022-02-26 10:04:532039 std::size(kFeatureEntries));
sdefresne14900ee2015-11-27 14:43:212040}
2041
2042} // namespace testing