Avi Drissman | ea1be23 | 2022-09-14 23:29:06 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2 | // 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 Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 8 | #import "ios/chrome/browser/flags/about_flags.h" |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 9 | |
Nazerke | 9c25905 | 2019-06-26 15:30:10 | [diff] [blame] | 10 | #import <UIKit/UIKit.h> |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 11 | #import <stddef.h> |
| 12 | #import <stdint.h> |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 13 | |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 14 | #import "base/base_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 15 | #import "base/check_op.h" |
Peter Boström | 3f79857 | 2022-07-26 23:44:36 | [diff] [blame] | 16 | #import "base/debug/debugging_buildflags.h" |
Avi Drissman | cac43f2 | 2023-01-12 00:58:41 | [diff] [blame] | 17 | #import "base/functional/bind.h" |
| 18 | #import "base/functional/callback_helpers.h" |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 19 | #import "base/mac/foundation_util.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 20 | #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 YANG | f3fe2de5 | 2023-02-27 16:38:50 | [diff] [blame] | 28 | #import "components/bookmarks/common/bookmark_features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 29 | #import "components/breadcrumbs/core/features.h" |
| 30 | #import "components/commerce/core/commerce_feature_list.h" |
| 31 | #import "components/commerce/core/flag_descriptions.h" |
| 32 | #import "components/content_settings/core/common/features.h" |
| 33 | #import "components/dom_distiller/core/dom_distiller_switches.h" |
Raj T | b95d81354 | 2022-11-16 21:27:52 | [diff] [blame] | 34 | #import "components/download/public/background_service/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 35 | #import "components/enterprise/browser/enterprise_switches.h" |
| 36 | #import "components/feature_engagement/public/feature_constants.h" |
| 37 | #import "components/feature_engagement/public/feature_list.h" |
| 38 | #import "components/feed/feed_feature_list.h" |
| 39 | #import "components/flags_ui/feature_entry.h" |
| 40 | #import "components/flags_ui/feature_entry_macros.h" |
| 41 | #import "components/flags_ui/flags_storage.h" |
| 42 | #import "components/flags_ui/flags_ui_switches.h" |
Benjamin Williams | 11f3991 | 2023-04-13 19:00:25 | [diff] [blame] | 43 | #import "components/history/core/browser/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 44 | #import "components/invalidation/impl/invalidation_switches.h" |
Benjamin Williams | aa8da814 | 2022-11-14 19:51:03 | [diff] [blame] | 45 | #import "components/ntp_tiles/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 46 | #import "components/ntp_tiles/switches.h" |
| 47 | #import "components/omnibox/browser/omnibox_field_trial.h" |
| 48 | #import "components/omnibox/common/omnibox_features.h" |
| 49 | #import "components/optimization_guide/core/optimization_guide_features.h" |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 50 | #import "components/optimization_guide/core/optimization_guide_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 51 | #import "components/password_manager/core/common/password_manager_features.h" |
| 52 | #import "components/payments/core/features.h" |
| 53 | #import "components/policy/core/common/features.h" |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 54 | #import "components/policy/core/common/policy_loader_ios_constants.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 55 | #import "components/policy/policy_constants.h" |
Menghan YANG | 5b3a78a | 2023-03-24 17:38:26 | [diff] [blame] | 56 | #import "components/reading_list/features/reading_list_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 57 | #import "components/safe_browsing/core/common/features.h" |
Victor Hugo Vianna Silva | 0399402f | 2021-09-07 21:41:25 | [diff] [blame] | 58 | #import "components/send_tab_to_self/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 59 | #import "components/shared_highlighting/core/common/shared_highlighting_features.h" |
| 60 | #import "components/signin/core/browser/account_reconcilor.h" |
| 61 | #import "components/signin/ios/browser/features.h" |
| 62 | #import "components/signin/public/base/signin_switches.h" |
| 63 | #import "components/strings/grit/components_strings.h" |
| 64 | #import "components/sync/base/command_line_switches.h" |
| 65 | #import "components/sync/base/features.h" |
| 66 | #import "components/sync/base/pref_names.h" |
| 67 | #import "components/translate/core/browser/translate_prefs.h" |
| 68 | #import "components/translate/core/common/translate_util.h" |
Duong Dac | 4181ab5 | 2023-06-07 12:51:50 | [diff] [blame] | 69 | #import "components/variations/service/google_groups_updater_service.h" |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 70 | #import "ios/chrome/app/background_mode_buildflags.h" |
ginnnnnnny | a81c719 | 2023-03-24 18:05:20 | [diff] [blame] | 71 | #import "ios/chrome/browser/bring_android_tabs/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 72 | #import "ios/chrome/browser/browsing_data/browsing_data_features.h" |
| 73 | #import "ios/chrome/browser/crash_report/features.h" |
Huiting Yu | a68998d | 2022-12-14 17:47:54 | [diff] [blame] | 74 | #import "ios/chrome/browser/credential_provider_promo/features.h" |
Scott Yoder | 663a226 | 2023-03-29 14:27:04 | [diff] [blame] | 75 | #import "ios/chrome/browser/default_browser/utils.h" |
Quentin Pubert | 154fc6a | 2023-01-09 15:58:58 | [diff] [blame] | 76 | #import "ios/chrome/browser/find_in_page/features.h" |
Gauthier Ambard | 9260513 | 2022-08-26 13:25:17 | [diff] [blame] | 77 | #import "ios/chrome/browser/flags/chrome_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 78 | #import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h" |
Tina Wang | d3f6f19 | 2023-04-05 05:22:43 | [diff] [blame] | 79 | #import "ios/chrome/browser/follow/follow_features.h" |
Ed Chin | 100660bf | 2022-04-26 16:59:13 | [diff] [blame] | 80 | #import "ios/chrome/browser/ntp/features.h" |
Vincent Boisselle | 88fef22 | 2022-09-23 18:54:50 | [diff] [blame] | 81 | #import "ios/chrome/browser/policy/cloud/user_policy_constants.h" |
Vincent Boisselle | ad6cbe2 | 2022-07-04 19:32:39 | [diff] [blame] | 82 | #import "ios/chrome/browser/policy/cloud/user_policy_switch.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 83 | #import "ios/chrome/browser/policy/policy_util.h" |
Benjamin Williams | 14233d7 | 2022-07-26 18:32:20 | [diff] [blame] | 84 | #import "ios/chrome/browser/promos_manager/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 85 | #import "ios/chrome/browser/screen_time/screen_time_buildflags.h" |
Gauthier Ambard | 7aa0fb92 | 2023-03-09 15:10:46 | [diff] [blame] | 86 | #import "ios/chrome/browser/shared/public/features/features.h" |
Gauthier Ambard | 818938c | 2023-06-16 14:48:35 | [diff] [blame^] | 87 | #import "ios/chrome/browser/shared/public/features/system_flags.h" |
Ewann Pelle | 903a05e6 | 2023-02-01 17:51:06 | [diff] [blame] | 88 | #import "ios/chrome/browser/tabs/features.h" |
Aliona DANGLA | 3de5d24 | 2023-02-15 16:52:30 | [diff] [blame] | 89 | #import "ios/chrome/browser/tabs/inactive_tabs/features.h" |
Zhixiang Teoh | 40027a2 | 2022-07-28 03:24:34 | [diff] [blame] | 90 | #import "ios/chrome/browser/text_selection/text_selection_util.h" |
Hira Mahmood | b0e5f41 | 2022-09-01 19:41:05 | [diff] [blame] | 91 | #import "ios/chrome/browser/ui/app_store_rating/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 92 | #import "ios/chrome/browser/ui/autofill/features.h" |
adamta | 22a4d50 | 2020-05-21 03:12:21 | [diff] [blame] | 93 | #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h" |
Hira Mahmood | 6b0e550 | 2023-06-12 21:51:43 | [diff] [blame] | 94 | #import "ios/chrome/browser/ui/default_promo/post_restore/features.h" |
Ewann | 1a9d33d | 2021-06-14 11:12:24 | [diff] [blame] | 95 | #import "ios/chrome/browser/ui/download/features.h" |
adamta | 27356847 | 2020-12-04 23:53:57 | [diff] [blame] | 96 | #import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h" |
adamta | b69ebd5 | 2023-05-23 18:37:31 | [diff] [blame] | 97 | #import "ios/chrome/browser/ui/ntp/new_tab_page_field_trial_constants.h" |
Christian Xu | b8c06cd | 2022-04-29 20:55:01 | [diff] [blame] | 98 | #import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h" |
Robbie Gibson | 686c5673 | 2021-10-04 17:11:45 | [diff] [blame] | 99 | #import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h" |
gogerald | 0ff29e5 | 2021-02-03 18:56:19 | [diff] [blame] | 100 | #import "ios/chrome/browser/ui/start_surface/start_surface_features.h" |
Cheick Cisse | 5d2b6cb8 | 2023-06-05 17:27:58 | [diff] [blame] | 101 | #import "ios/chrome/browser/ui/whats_new/whats_new_util.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 102 | #import "ios/chrome/browser/web/features.h" |
| 103 | #import "ios/chrome/grit/ios_strings.h" |
| 104 | #import "ios/components/security_interstitials/https_only_mode/feature.h" |
| 105 | #import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h" |
| 106 | #import "ios/web/common/features.h" |
| 107 | #import "ios/web/common/user_agent.h" |
| 108 | #import "ios/web/common/web_view_creation_util.h" |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 109 | |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 110 | #if BUILDFLAG(IOS_SCREEN_TIME_ENABLED) |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 111 | #import "ios/chrome/browser/screen_time/features.h" |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 112 | #endif |
| 113 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 114 | #if !defined(OFFICIAL_BUILD) |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 115 | #import "components/variations/variations_switches.h" |
vitaliii | 489217aa | 2017-01-30 14:50:22 | [diff] [blame] | 116 | #endif |
stkhapugin | c1be179 | 2016-12-13 14:30:53 | [diff] [blame] | 117 | |
| 118 | #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 119 | #error "This file requires ARC support." |
| 120 | #endif |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 121 | |
elawrence | 816f6790e | 2017-06-16 18:19:28 | [diff] [blame] | 122 | using flags_ui::FeatureEntry; |
| 123 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 124 | namespace { |
Emily Stark | bafa906 | 2017-12-27 15:22:46 | [diff] [blame] | 125 | |
Olivier Robin | 3d6041162 | 2018-02-23 10:03:22 | [diff] [blame] | 126 | const FeatureEntry::Choice kAutofillIOSDelayBetweenFieldsChoices[] = { |
| 127 | {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 128 | {"0", autofill::switches::kAutofillIOSDelayBetweenFields, "0"}, |
| 129 | {"10", autofill::switches::kAutofillIOSDelayBetweenFields, "10"}, |
| 130 | {"20", autofill::switches::kAutofillIOSDelayBetweenFields, "20"}, |
| 131 | {"50", autofill::switches::kAutofillIOSDelayBetweenFields, "50"}, |
| 132 | {"100", autofill::switches::kAutofillIOSDelayBetweenFields, "100"}, |
| 133 | {"200", autofill::switches::kAutofillIOSDelayBetweenFields, "200"}, |
| 134 | {"500", autofill::switches::kAutofillIOSDelayBetweenFields, "500"}, |
| 135 | {"1000", autofill::switches::kAutofillIOSDelayBetweenFields, "1000"}, |
| 136 | }; |
| 137 | |
Nohemi Fernandez | c00842a | 2021-07-26 11:47:34 | [diff] [blame] | 138 | const FeatureEntry::Choice |
| 139 | kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = { |
| 140 | {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 141 | {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"}, |
| 142 | {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"}, |
| 143 | {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"}, |
| 144 | }; |
| 145 | |
Cheick Cisse | 8835611a | 2023-06-02 21:42:54 | [diff] [blame] | 146 | // Uses int values from DefaultPromoType enum. |
| 147 | const FeatureEntry::Choice kDefaultBrowserPromoForceShowPromoChoices[] = { |
| 148 | {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 149 | {"Show generic promo", "default-browser-promo-force-show-promo", "0"}, |
| 150 | {"Show tailored stay safe promo", "default-browser-promo-force-show-promo", |
| 151 | "1"}, |
| 152 | {"Show tailored made for ios promo", |
| 153 | "default-browser-promo-force-show-promo", "2"}, |
| 154 | {"Show tailored all tabs promo", "default-browser-promo-force-show-promo", |
| 155 | "3"}, |
| 156 | {"Show video promo", "default-browser-promo-force-show-promo", "4"}, |
| 157 | }; |
| 158 | |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 159 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = { |
| 160 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}}; |
| 161 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = { |
| 162 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}}; |
| 163 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = { |
| 164 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}}; |
| 165 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = { |
| 166 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}}; |
| 167 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = { |
| 168 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}}; |
| 169 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = { |
| 170 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}}; |
| 171 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = { |
| 172 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}}; |
| 173 | |
| 174 | const FeatureEntry::FeatureVariation |
| 175 | kOmniboxUIMaxAutocompleteMatchesVariations[] = { |
| 176 | {"3 matches", kOmniboxUIMaxAutocompleteMatches3, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 177 | std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 178 | {"4 matches", kOmniboxUIMaxAutocompleteMatches4, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 179 | std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 180 | {"5 matches", kOmniboxUIMaxAutocompleteMatches5, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 181 | std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 182 | {"6 matches", kOmniboxUIMaxAutocompleteMatches6, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 183 | std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 184 | {"8 matches", kOmniboxUIMaxAutocompleteMatches8, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 185 | std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 186 | {"10 matches", kOmniboxUIMaxAutocompleteMatches10, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 187 | std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 188 | {"12 matches", kOmniboxUIMaxAutocompleteMatches12, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 189 | std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}}; |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 190 | |
Stepan Khapugin | bac467e | 2022-05-06 21:11:54 | [diff] [blame] | 191 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = { |
| 192 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}}; |
| 193 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = { |
| 194 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}}; |
| 195 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = { |
| 196 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}}; |
| 197 | |
| 198 | const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = { |
| 199 | {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6), |
| 200 | nullptr}, |
| 201 | {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15), |
| 202 | nullptr}, |
| 203 | {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20), |
| 204 | nullptr}, |
| 205 | }; |
| 206 | |
Christian Xu | cf26d56 | 2022-07-06 09:28:36 | [diff] [blame] | 207 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = { |
| 208 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}}; |
| 209 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = { |
| 210 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}}; |
| 211 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = { |
| 212 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}}; |
| 213 | |
| 214 | const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = { |
| 215 | {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5), |
| 216 | nullptr}, |
| 217 | {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6), |
| 218 | nullptr}, |
| 219 | {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7), |
| 220 | nullptr}, |
| 221 | }; |
| 222 | |
Cheick Cisse | 2806f082b | 2023-04-25 14:20:01 | [diff] [blame] | 223 | const FeatureEntry::FeatureParam kDefaultBrowserVideoPromoHalfscreen[] = { |
| 224 | {"default_browser_video_promo_halfscreen", "true"}}; |
Cheick Cisse | 929dd75 | 2023-06-14 15:07:01 | [diff] [blame] | 225 | const FeatureEntry::FeatureParam kDefaultBrowserVideoPromoFullscreen[] = { |
| 226 | {"default_browser_video_promo_halfscreen", "false"}}; |
Cheick Cisse | 2806f082b | 2023-04-25 14:20:01 | [diff] [blame] | 227 | const FeatureEntry::FeatureVariation kDefaultBrowserVideoPromoVariations[] = { |
| 228 | {"Show half screen ui", kDefaultBrowserVideoPromoHalfscreen, |
| 229 | std::size(kDefaultBrowserVideoPromoHalfscreen), nullptr}, |
Cheick Cisse | 929dd75 | 2023-06-14 15:07:01 | [diff] [blame] | 230 | {"Show full screen ui", kDefaultBrowserVideoPromoFullscreen, |
| 231 | std::size(kDefaultBrowserVideoPromoFullscreen), nullptr}, |
Cheick Cisse | 2806f082b | 2023-04-25 14:20:01 | [diff] [blame] | 232 | }; |
| 233 | |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 234 | const FeatureEntry::FeatureParam |
| 235 | kAutofillUseMobileLabelDisambiguationShowAll[] = { |
| 236 | {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName, |
| 237 | autofill::features:: |
| 238 | kAutofillUseMobileLabelDisambiguationParameterShowAll}}; |
| 239 | const FeatureEntry::FeatureParam |
| 240 | kAutofillUseMobileLabelDisambiguationShowOne[] = { |
| 241 | {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName, |
| 242 | autofill::features:: |
| 243 | kAutofillUseMobileLabelDisambiguationParameterShowOne}}; |
| 244 | |
| 245 | const FeatureEntry::FeatureVariation |
| 246 | kAutofillUseMobileLabelDisambiguationVariations[] = { |
| 247 | {"(show all)", kAutofillUseMobileLabelDisambiguationShowAll, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 248 | std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr}, |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 249 | {"(show one)", kAutofillUseMobileLabelDisambiguationShowOne, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 250 | std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}}; |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 251 | |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 252 | // Uses int values from SigninPromoViewStyle enum. |
| 253 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = { |
| 254 | {kDiscoverFeedTopSyncPromoStyle, "0"}}; |
| 255 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactTitled[] = { |
| 256 | {kDiscoverFeedTopSyncPromoStyle, "1"}}; |
| 257 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] = |
| 258 | {{kDiscoverFeedTopSyncPromoStyle, "2"}}; |
| 259 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = { |
| 260 | {kDiscoverFeedTopSyncPromoStyle, "3"}}; |
adamta | db0bfc6 | 2022-08-01 17:37:47 | [diff] [blame] | 261 | |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 262 | const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = { |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 263 | {"Standard", kDiscoverFeedTopSyncPromoStandard, |
| 264 | std::size(kDiscoverFeedTopSyncPromoStandard), nullptr}, |
| 265 | {"Compact Titled (Unpersonalized)", kDiscoverFeedTopSyncPromoCompactTitled, |
| 266 | std::size(kDiscoverFeedTopSyncPromoCompactTitled), nullptr}, |
| 267 | {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal, |
| 268 | std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr}, |
| 269 | {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical, |
| 270 | std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}}; |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 271 | |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 272 | const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = { |
| 273 | {kDisableStickyHeaderForFollowingFeed, "true"}}; |
| 274 | const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = { |
adamta | bc04804 | 2023-03-15 22:42:18 | [diff] [blame] | 275 | {kOverrideFeedHeaderHeight, "30"}}; |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 276 | const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = { |
| 277 | {kDisableStickyHeaderForFollowingFeed, "true"}, |
adamta | bc04804 | 2023-03-15 22:42:18 | [diff] [blame] | 278 | {kOverrideFeedHeaderHeight, "30"}}; |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 279 | |
| 280 | const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = { |
| 281 | {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader, |
| 282 | std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr}, |
| 283 | {"Reduced header height", kFeedHeaderSettingReducedHeight, |
| 284 | std::size(kFeedHeaderSettingReducedHeight), nullptr}, |
| 285 | {"All improvements", kFeedHeaderSettingAllImprovements, |
| 286 | std::size(kFeedHeaderSettingAllImprovements), nullptr}}; |
| 287 | |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 288 | const FeatureEntry::FeatureParam kStartSurfaceTenSecondsShrinkLogo[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 289 | {kStartSurfaceShrinkLogoParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 290 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 291 | const FeatureEntry::FeatureParam kStartSurfaceTenSecondsHideShortcuts[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 292 | {kStartSurfaceHideShortcutsParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 293 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 294 | const FeatureEntry::FeatureParam kStartSurfaceTenSecondsReturnToRecentTab[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 295 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 296 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 297 | const FeatureEntry::FeatureParam |
| 298 | kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab[] = { |
| 299 | {kStartSurfaceShrinkLogoParam, "true"}, |
| 300 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
| 301 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 302 | const FeatureEntry::FeatureParam |
| 303 | kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab[] = { |
| 304 | {kStartSurfaceHideShortcutsParam, "true"}, |
| 305 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
| 306 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 307 | const FeatureEntry::FeatureParam kStartSurfaceOneHourShrinkLogo[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 308 | {kStartSurfaceShrinkLogoParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 309 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
| 310 | const FeatureEntry::FeatureParam kStartSurfaceOneHourHideShortcuts[] = { |
| 311 | {kStartSurfaceHideShortcutsParam, "true"}, |
| 312 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
| 313 | const FeatureEntry::FeatureParam kStartSurfaceOneHourReturnToRecentTab[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 314 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 315 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
| 316 | const FeatureEntry::FeatureParam |
| 317 | kStartSurfaceOneHourShrinkLogoReturnToRecentTab[] = { |
| 318 | {kStartSurfaceShrinkLogoParam, "true"}, |
| 319 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
| 320 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
| 321 | const FeatureEntry::FeatureParam |
| 322 | kStartSurfaceOneHourHideShortcutsReturnToRecentTab[] = { |
| 323 | {kStartSurfaceHideShortcutsParam, "true"}, |
| 324 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
| 325 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 326 | |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 327 | const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = { |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 328 | {"10s:Show Return to Recent Tab tile", |
| 329 | kStartSurfaceTenSecondsReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 330 | std::size(kStartSurfaceTenSecondsReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 331 | {"10s:Shrink Logo", kStartSurfaceTenSecondsShrinkLogo, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 332 | std::size(kStartSurfaceTenSecondsShrinkLogo), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 333 | {"10s:Hide Shortcuts", kStartSurfaceTenSecondsHideShortcuts, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 334 | std::size(kStartSurfaceTenSecondsHideShortcuts), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 335 | {"10s:Shrink Logo and show Return to Recent Tab tile", |
| 336 | kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 337 | std::size(kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 338 | {"10s:Hide Shortcuts and show Return to Recent Tab tile", |
| 339 | kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 340 | std::size(kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 341 | {"1h:Show Return to Recent Tab tile", kStartSurfaceOneHourReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 342 | std::size(kStartSurfaceOneHourReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 343 | {"1h:Shrink Logo", kStartSurfaceOneHourShrinkLogo, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 344 | std::size(kStartSurfaceOneHourShrinkLogo), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 345 | {"1h:Hide Shortcuts", kStartSurfaceOneHourHideShortcuts, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 346 | std::size(kStartSurfaceOneHourHideShortcuts), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 347 | {"1h:Shrink Logo and show Return to Recent Tab tile", |
| 348 | kStartSurfaceOneHourShrinkLogoReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 349 | std::size(kStartSurfaceOneHourShrinkLogoReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 350 | {"1h:Hide Shortcuts and show Return to Recent Tab tile", |
| 351 | kStartSurfaceOneHourHideShortcutsReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 352 | std::size(kStartSurfaceOneHourHideShortcutsReturnToRecentTab), nullptr}, |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 353 | }; |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 354 | |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 355 | const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = { |
| 356 | {kMagicStackMostVisitedModuleParam, "true"}, |
| 357 | {kReducedSpaceParam, "-80"}}; |
| 358 | const FeatureEntry::FeatureParam kMagicStackPushedDown[] = { |
| 359 | {kMagicStackMostVisitedModuleParam, "false"}, |
| 360 | {kReducedSpaceParam, "-30"}}; |
| 361 | const FeatureEntry::FeatureParam kMagicStackReducedNTPTopSpace[] = { |
| 362 | {kMagicStackMostVisitedModuleParam, "false"}, |
| 363 | {kReducedSpaceParam, "20"}}; |
| 364 | |
| 365 | const FeatureEntry::FeatureVariation kMagicStackVariations[]{ |
| 366 | {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule, |
| 367 | std::size(kMagicStackMostVisitedModule), nullptr}, |
| 368 | {"Magic Stack with more NTP Top Space", kMagicStackPushedDown, |
| 369 | std::size(kMagicStackPushedDown), nullptr}, |
| 370 | {"Magic Stack with Reduced NTP Top Space", kMagicStackReducedNTPTopSpace, |
| 371 | std::size(kMagicStackReducedNTPTopSpace), nullptr}, |
| 372 | }; |
| 373 | |
adamta | 09aa47e | 2023-05-23 18:20:43 | [diff] [blame] | 374 | const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesAll[] = { |
| 375 | {kHideContentSuggestionsTilesParamMostVisited, "true"}, |
| 376 | {kHideContentSuggestionsTilesParamShortcuts, "true"}, |
| 377 | }; |
| 378 | const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesMVT[] = { |
| 379 | {kHideContentSuggestionsTilesParamMostVisited, "true"}, |
| 380 | {kHideContentSuggestionsTilesParamShortcuts, "false"}, |
| 381 | }; |
| 382 | const FeatureEntry::FeatureParam kHideAllContentSuggestionsTilesShortcuts[] = { |
| 383 | {kHideContentSuggestionsTilesParamMostVisited, "false"}, |
| 384 | {kHideContentSuggestionsTilesParamShortcuts, "true"}, |
| 385 | }; |
| 386 | |
| 387 | const FeatureEntry::FeatureVariation kHideContentSuggestionTilesVariations[]{ |
| 388 | {"Hide all tiles", kHideAllContentSuggestionsTilesAll, |
| 389 | std::size(kHideAllContentSuggestionsTilesAll), nullptr}, |
| 390 | {"Hide Most Visited tiles", kHideAllContentSuggestionsTilesMVT, |
| 391 | std::size(kHideAllContentSuggestionsTilesMVT), nullptr}, |
| 392 | {"Hide Shortcuts tiles", kHideAllContentSuggestionsTilesShortcuts, |
| 393 | std::size(kHideAllContentSuggestionsTilesShortcuts), nullptr}, |
| 394 | }; |
| 395 | |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 396 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 397 | // Feed Background Refresh Feature Params. |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 398 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 399 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 400 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 401 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 402 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 403 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 404 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 405 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 406 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 407 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 408 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 409 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 410 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 411 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 412 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 413 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 414 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 415 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 416 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 417 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 418 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 419 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 420 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 421 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 422 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 423 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 424 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 425 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 426 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 427 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 428 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = { |
| 429 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 430 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
| 431 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 432 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 433 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = { |
| 434 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 435 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
| 436 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 437 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 438 | |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 439 | // Feed Background Refresh Feature Variations. |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 440 | const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = { |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 441 | {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce, |
| 442 | std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr}, |
| 443 | {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce, |
| 444 | std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr}, |
| 445 | {"1hr Interval 1hr Max Age Recurring", |
| 446 | kOneHourIntervalOneHourMaxAgeRecurring, |
| 447 | std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr}, |
| 448 | {"4hr Interval 6hr Max Age Recurring", |
| 449 | kFourHourIntervalSixHourMaxAgeRecurring, |
| 450 | std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr}, |
| 451 | {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce, |
| 452 | std::size(kServerDrivenOneHourMaxAgeOnce), nullptr}, |
| 453 | {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring, |
| 454 | std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr}, |
| 455 | {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce, |
| 456 | std::size(kServerDrivenSixHourMaxAgeOnce), nullptr}, |
| 457 | {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring, |
| 458 | std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 459 | }; |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 460 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 461 | |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 462 | // Feed Foreground Refresh Feature Params. |
Ed Chin | 5c1fd53 | 2023-03-20 17:43:29 | [diff] [blame] | 463 | const FeatureEntry::FeatureParam kFeedSessionCloseForegroundRefresh[] = { |
| 464 | {kEnableFeedSessionCloseForegroundRefresh, "true"}, |
Ed Chin | 44e6c7e | 2023-03-22 00:32:54 | [diff] [blame] | 465 | {kEnableFeedAppCloseForegroundRefresh, "false"}, |
| 466 | {kEnableFeedAppCloseBackgroundRefresh, "false"}}; |
Ed Chin | 5c1fd53 | 2023-03-20 17:43:29 | [diff] [blame] | 467 | const FeatureEntry::FeatureParam kFeedAppCloseForegroundRefresh[] = { |
| 468 | {kEnableFeedSessionCloseForegroundRefresh, "false"}, |
Ed Chin | 44e6c7e | 2023-03-22 00:32:54 | [diff] [blame] | 469 | {kEnableFeedAppCloseForegroundRefresh, "true"}, |
| 470 | {kEnableFeedAppCloseBackgroundRefresh, "false"}}; |
| 471 | const FeatureEntry::FeatureParam kFeedAppCloseBackgroundRefresh[] = { |
| 472 | {kEnableFeedSessionCloseForegroundRefresh, "false"}, |
| 473 | {kEnableFeedAppCloseForegroundRefresh, "false"}, |
| 474 | {kEnableFeedAppCloseBackgroundRefresh, "true"}}; |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 475 | |
Ed Chin | 5c1fd53 | 2023-03-20 17:43:29 | [diff] [blame] | 476 | // Feed Invisible Foreground Refresh Feature Variations. |
| 477 | const FeatureEntry::FeatureVariation |
| 478 | kFeedInvisibleForegroundRefreshVariations[] = { |
| 479 | {"session close foreground refresh", kFeedSessionCloseForegroundRefresh, |
| 480 | std::size(kFeedSessionCloseForegroundRefresh), nullptr}, |
| 481 | {"app close foreground refresh", kFeedAppCloseForegroundRefresh, |
| 482 | std::size(kFeedAppCloseForegroundRefresh), nullptr}, |
Ed Chin | 44e6c7e | 2023-03-22 00:32:54 | [diff] [blame] | 483 | {"app close background refresh", kFeedAppCloseBackgroundRefresh, |
| 484 | std::size(kFeedAppCloseBackgroundRefresh), nullptr}, |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 485 | }; |
| 486 | |
Ewann Pelle | 87019cdf | 2023-02-17 14:28:16 | [diff] [blame] | 487 | const FeatureEntry::FeatureParam kEnablePinnedTabsOverflow[] = { |
| 488 | {kEnablePinnedTabsOverflowParam, "true"}}; |
Ewann Pelle | 3774cac53 | 2022-11-15 10:12:37 | [diff] [blame] | 489 | |
| 490 | const FeatureEntry::FeatureVariation kEnablePinnedTabsVariations[] = { |
Ewann Pelle | 87019cdf | 2023-02-17 14:28:16 | [diff] [blame] | 491 | {"+ overflow entry", kEnablePinnedTabsOverflow, |
| 492 | std::size(kEnablePinnedTabsOverflow), nullptr}, |
Ewann Pelle | 3774cac53 | 2022-11-15 10:12:37 | [diff] [blame] | 493 | }; |
| 494 | |
ginnnnnnny | f907fd9 | 2023-06-14 22:21:40 | [diff] [blame] | 495 | const FeatureEntry::FeatureParam kAutofillBrandingIOSUntilInteracted[] = { |
| 496 | {autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone, |
| 497 | autofill::features::kAutofillBrandingIOSParamFrequencyTypeUntilInteracted}, |
| 498 | {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet, |
| 499 | autofill::features:: |
| 500 | kAutofillBrandingIOSParamFrequencyTypeUntilInteracted}}; |
| 501 | const FeatureEntry::FeatureParam kAutofillBrandingIOSAlwaysShowAndSlideOut[] = { |
ginnnnnnny | cde6fcbb | 2023-05-23 16:18:07 | [diff] [blame] | 502 | {autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone, |
| 503 | autofill::features:: |
| 504 | kAutofillBrandingIOSParamFrequencyTypeAlwaysShowAndDismiss}, |
| 505 | {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet, |
| 506 | autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}}; |
ginnnnnnny | f907fd9 | 2023-06-14 22:21:40 | [diff] [blame] | 507 | const FeatureEntry::FeatureParam kAutofillBrandingIOSSlideOutWhenInteracted[] = |
| 508 | {{autofill::features::kAutofillBrandingIOSParamFrequencyTypePhone, |
| 509 | autofill::features:: |
| 510 | kAutofillBrandingIOSParamFrequencyTypeDismissWhenInteracted}, |
| 511 | {autofill::features::kAutofillBrandingIOSParamFrequencyTypeTablet, |
| 512 | autofill::features::kAutofillBrandingIOSParamFrequencyTypeAlways}}; |
ginnnnnnny | 591a497 | 2022-09-01 16:10:27 | [diff] [blame] | 513 | const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = { |
ginnnnnnny | cde6fcbb | 2023-05-23 16:18:07 | [diff] [blame] | 514 | {"(will not show again after user interacts with keyboard accessories)", |
ginnnnnnny | f907fd9 | 2023-06-14 22:21:40 | [diff] [blame] | 515 | kAutofillBrandingIOSUntilInteracted, |
| 516 | std::size(kAutofillBrandingIOSUntilInteracted), nullptr}, |
| 517 | {"(shows and slides out from leading edge every time)", |
| 518 | kAutofillBrandingIOSAlwaysShowAndSlideOut, |
| 519 | std::size(kAutofillBrandingIOSAlwaysShowAndSlideOut), nullptr}, |
| 520 | {"(slides out from leading edge after user interacts with keyboard " |
| 521 | "accessories)", |
| 522 | kAutofillBrandingIOSSlideOutWhenInteracted, |
| 523 | std::size(kAutofillBrandingIOSSlideOutWhenInteracted), nullptr}}; |
ginnnnnnny | 591a497 | 2022-09-01 16:10:27 | [diff] [blame] | 524 | |
adamta | b69ebd5 | 2023-05-23 18:37:31 | [diff] [blame] | 525 | const FeatureEntry::FeatureParam kNewTabPageFieldTrialTileAblationHideAll[] = { |
| 526 | {ntp_tiles::kNewTabPageFieldTrialParam, "1"}}; |
| 527 | const FeatureEntry::FeatureParam |
| 528 | kNewTabPageFieldTrialTileAblationHideMVTOnly[] = { |
| 529 | {ntp_tiles::kNewTabPageFieldTrialParam, "2"}}; |
| 530 | const FeatureEntry::FeatureVariation kNewTabPageFieldTrialVariations[] = { |
| 531 | {"- Tile ablation, Hide all", kNewTabPageFieldTrialTileAblationHideAll, |
| 532 | std::size(kNewTabPageFieldTrialTileAblationHideAll), nullptr}, |
adamta | 8886def4 | 2023-03-07 19:45:23 | [diff] [blame] | 533 | {"- Tile ablation, Hide MVT only", |
adamta | b69ebd5 | 2023-05-23 18:37:31 | [diff] [blame] | 534 | kNewTabPageFieldTrialTileAblationHideMVTOnly, |
| 535 | std::size(kNewTabPageFieldTrialTileAblationHideMVTOnly), nullptr}}; |
Benjamin Williams | aa8da814 | 2022-11-14 19:51:03 | [diff] [blame] | 536 | |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 537 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierDate[] = { |
| 538 | {"date", "true"}}; |
| 539 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddress[] = { |
| 540 | {"address", "true"}}; |
| 541 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierPhoneNumber[] = { |
| 542 | {"phonenumber", "true"}}; |
| 543 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmail[] = { |
| 544 | {"email", "true"}}; |
Raj T | e702d4e | 2023-05-15 21:03:50 | [diff] [blame] | 545 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierOneTap[] = { |
| 546 | {"onetap", "true"}}; |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 547 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAll[] = { |
| 548 | {"date", "true"}, |
| 549 | {"address", "true"}, |
| 550 | {"phonenumber", "true"}, |
| 551 | {"email", "true"}}; |
| 552 | const FeatureEntry::FeatureVariation kEnableExpKitTextClassifierVariations[] = { |
| 553 | {"Enabled for all entities", kEnableExpKitTextClassifierAll, |
| 554 | std::size(kEnableExpKitTextClassifierAll), nullptr}, |
| 555 | {"Enabled for date", kEnableExpKitTextClassifierDate, |
| 556 | std::size(kEnableExpKitTextClassifierDate), nullptr}, |
| 557 | {"Enabled for address", kEnableExpKitTextClassifierAddress, |
| 558 | std::size(kEnableExpKitTextClassifierAddress), nullptr}, |
| 559 | {"Enabled for phonenumber", kEnableExpKitTextClassifierPhoneNumber, |
| 560 | std::size(kEnableExpKitTextClassifierPhoneNumber), nullptr}, |
| 561 | {"Enabled for email", kEnableExpKitTextClassifierEmail, |
Raj T | e702d4e | 2023-05-15 21:03:50 | [diff] [blame] | 562 | std::size(kEnableExpKitTextClassifierEmail), nullptr}, |
| 563 | {"Enabled for One Tap mode", kEnableExpKitTextClassifierOneTap, |
| 564 | std::size(kEnableExpKitTextClassifierOneTap), nullptr}}; |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 565 | |
adamta | 3811f918 | 2022-10-24 17:49:33 | [diff] [blame] | 566 | const FeatureEntry::FeatureParam kFollowingFeedSortTypeGroupedByPublisher[] = { |
| 567 | {kFollowingFeedDefaultSortTypeGroupedByPublisher, "true"}, |
| 568 | {kFollowingFeedDefaultSortTypeSortByLatest, "false"}}; |
| 569 | const FeatureEntry::FeatureParam kFollowingFeedSortTypeSortByLatest[] = { |
| 570 | {kFollowingFeedDefaultSortTypeGroupedByPublisher, "false"}, |
| 571 | {kFollowingFeedDefaultSortTypeSortByLatest, "true"}}; |
| 572 | |
| 573 | const FeatureEntry::FeatureVariation kFollowingFeedDefaultSortTypeVariations[] = |
| 574 | {{"Grouped by Publisher", kFollowingFeedSortTypeGroupedByPublisher, |
| 575 | std::size(kFollowingFeedSortTypeGroupedByPublisher), nullptr}, |
| 576 | {"Sort by Latest", kFollowingFeedSortTypeSortByLatest, |
| 577 | std::size(kFollowingFeedSortTypeSortByLatest), nullptr}}; |
| 578 | |
Quentin Pubert | 154fc6a | 2023-01-09 15:58:58 | [diff] [blame] | 579 | const FeatureEntry::FeatureParam kNativeFindInPageWithChromeFindBar[] = { |
| 580 | {kNativeFindInPageParameterName, kNativeFindInPageWithChromeFindBarParam}}; |
| 581 | const FeatureEntry::FeatureVariation kNativeFindInPageVariations[] = { |
| 582 | {"With Chrome Find Bar", kNativeFindInPageWithChromeFindBar, |
| 583 | std::size(kNativeFindInPageWithChromeFindBar), nullptr}}; |
| 584 | |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 585 | const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = { |
| 586 | {kTabInactivityThresholdParameterName, |
| 587 | kTabInactivityThresholdOneWeekParam}}; |
| 588 | const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = { |
| 589 | {kTabInactivityThresholdParameterName, |
| 590 | kTabInactivityThresholdTwoWeeksParam}}; |
| 591 | const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = { |
| 592 | {kTabInactivityThresholdParameterName, |
| 593 | kTabInactivityThresholdThreeWeeksParam}}; |
Louis Romero | 56abd90 | 2023-03-15 16:21:58 | [diff] [blame] | 594 | const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = { |
| 595 | {kTabInactivityThresholdParameterName, |
| 596 | kTabInactivityThresholdOneMinuteDemoParam}}; |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 597 | |
| 598 | const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = { |
| 599 | {"One week", kTabInactivityThresholdOneWeek, |
| 600 | std::size(kTabInactivityThresholdOneWeek), nullptr}, |
| 601 | {"Two weeks", kTabInactivityThresholdTwoWeeks, |
| 602 | std::size(kTabInactivityThresholdTwoWeeks), nullptr}, |
| 603 | {"Three weeks", kTabInactivityThresholdThreeWeeks, |
| 604 | std::size(kTabInactivityThresholdThreeWeeks), nullptr}, |
Louis Romero | 56abd90 | 2023-03-15 16:21:58 | [diff] [blame] | 605 | {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo, |
| 606 | std::size(kTabInactivityThresholdOneMinuteDemo), nullptr}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 607 | }; |
| 608 | |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 609 | const FeatureEntry::FeatureParam |
| 610 | kCredentialProviderExtensionPromoOnPasswordSaved[] = { |
| 611 | {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}}; |
| 612 | const FeatureEntry::FeatureParam |
| 613 | kCredentialProviderExtensionPromoOnPasswordCopied[] = { |
| 614 | {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}}; |
| 615 | const FeatureEntry::FeatureParam |
| 616 | kCredentialProviderExtensionPromoOnLoginWithAutofill[] = { |
| 617 | {kCredentialProviderExtensionPromoOnLoginWithAutofillParam, "true"}}; |
Hira Mahmood | 1baa9be | 2023-05-25 13:55:20 | [diff] [blame] | 618 | const FeatureEntry::FeatureParam |
| 619 | kCredentialProviderExtensionPromoOnAllTriggers[] = { |
| 620 | {kCredentialProviderExtensionPromoOnLoginWithAutofillParam, "true"}, |
| 621 | {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}, |
| 622 | {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}}; |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 623 | |
| 624 | const FeatureEntry::FeatureVariation |
| 625 | kCredentialProviderExtensionPromoVariations[] = { |
| 626 | {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved, |
| 627 | std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr}, |
| 628 | {"On password copied", |
| 629 | kCredentialProviderExtensionPromoOnPasswordCopied, |
| 630 | std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr}, |
| 631 | {"On successful login with autofill", |
| 632 | kCredentialProviderExtensionPromoOnLoginWithAutofill, |
| 633 | std::size(kCredentialProviderExtensionPromoOnLoginWithAutofill), |
| 634 | nullptr}, |
Hira Mahmood | 1baa9be | 2023-05-25 13:55:20 | [diff] [blame] | 635 | {"On all triggers", kCredentialProviderExtensionPromoOnAllTriggers, |
| 636 | std::size(kCredentialProviderExtensionPromoOnAllTriggers), nullptr}, |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 637 | }; |
| 638 | |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 639 | const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = { |
| 640 | {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}}; |
| 641 | const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] = |
| 642 | {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito, |
| 643 | std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr}}; |
| 644 | |
Olivier ROBIN | 2ca6495 | 2023-02-23 17:11:48 | [diff] [blame] | 645 | const FeatureEntry::FeatureParam kAddToHomeScreenDisableIncognito[] = { |
| 646 | {kAddToHomeScreenDisableIncognitoParam, "true"}}; |
| 647 | const FeatureEntry::FeatureVariation kAddToHomeScreenVariations[] = { |
| 648 | {"Disable on incognito", kAddToHomeScreenDisableIncognito, |
| 649 | std::size(kAddToHomeScreenDisableIncognito), nullptr}}; |
| 650 | |
ginnnnnnny | 7590362 | 2023-03-01 18:00:00 | [diff] [blame] | 651 | const FeatureEntry::FeatureParam kBringYourOwnTabsIOSBottomMessage[] = { |
| 652 | {kBringYourOwnTabsIOSParam, "true"}}; |
| 653 | const FeatureEntry::FeatureVariation kBringYourOwnTabsIOSVariations[] = { |
| 654 | {"with bottom message on tab grid", kBringYourOwnTabsIOSBottomMessage, |
| 655 | std::size(kBringYourOwnTabsIOSBottomMessage), nullptr}}; |
| 656 | |
Olivier ROBIN | 2613bcd0 | 2023-04-20 10:00:47 | [diff] [blame] | 657 | const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearchWith[] = { |
| 658 | {kIOSEditMenuSearchWithTitleParamTitle, |
| 659 | kIOSEditMenuSearchWithTitleSearchWithParam}}; |
| 660 | const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearch[] = { |
| 661 | {kIOSEditMenuSearchWithTitleParamTitle, |
| 662 | kIOSEditMenuSearchWithTitleSearchParam}}; |
| 663 | const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleWebSearch[] = { |
| 664 | {kIOSEditMenuSearchWithTitleParamTitle, |
| 665 | kIOSEditMenuSearchWithTitleWebSearchParam}}; |
| 666 | const FeatureEntry::FeatureVariation kIOSEditMenuSearchWithVariations[] = { |
| 667 | {"Search with DSE", kIOSEditMenuSearchWithTitleSearchWith, |
| 668 | std::size(kIOSEditMenuSearchWithTitleSearchWith), nullptr}, |
| 669 | {"Search", kIOSEditMenuSearchWithTitleSearch, |
| 670 | std::size(kIOSEditMenuSearchWithTitleSearch), nullptr}, |
| 671 | {"Web Search", kIOSEditMenuSearchWithTitleWebSearch, |
| 672 | std::size(kIOSEditMenuSearchWithTitleWebSearch), nullptr}, |
| 673 | }; |
| 674 | |
Hira Mahmood | 6b0e550 | 2023-06-12 21:51:43 | [diff] [blame] | 675 | const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoHalfscreen[] = { |
| 676 | {kPostRestoreDefaultBrowserPromoHalfscreenParam, "true"}}; |
| 677 | const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoFullscreen[] = { |
| 678 | {kPostRestoreDefaultBrowserPromoFullscreenParam, "true"}}; |
| 679 | const FeatureEntry::FeatureVariation |
| 680 | kPostRestoreDefaultBrowserPromoVariations[] = { |
| 681 | {"with half screen ui", kPostRestoreDefaultBrowserPromoHalfscreen, |
| 682 | std::size(kPostRestoreDefaultBrowserPromoHalfscreen), nullptr}, |
| 683 | {"with full screen ui", kPostRestoreDefaultBrowserPromoFullscreen, |
| 684 | std::size(kPostRestoreDefaultBrowserPromoFullscreen), nullptr}, |
| 685 | }; |
| 686 | |
Marc Treib | 9bddebb | 2023-06-15 14:03:34 | [diff] [blame] | 687 | const FeatureEntry::Choice kReplaceSyncPromosWithSignInPromosChoices[] = { |
| 688 | {"Default", "", ""}, |
| 689 | {"Base only", "enable-features", "ReplaceSyncPromosWithSignInPromos"}, |
| 690 | {"Everything (bookmarks, reading list, etc)", "enable-features", |
| 691 | "ReplaceSyncPromosWithSignInPromos," |
| 692 | "SyncEnableContactInfoDataTypeInTransportMode," |
| 693 | "EnablePasswordsAccountStorage," |
| 694 | "EnableBookmarksAccountStorage," |
| 695 | "ReadingListEnableDualReadingListModel," |
| 696 | "ReadingListEnableSyncTransportModeUponSignIn"}, |
| 697 | }; |
| 698 | |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 699 | // To add a new entry, add to the end of kFeatureEntries. There are four |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 700 | // distinct types of entries: |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 701 | // . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the |
| 702 | // default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 703 | // macro for this type supplying the command line to the macro. |
| 704 | // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
| 705 | // deactivated state for this lab (i.e. no command line option). To specify |
| 706 | // this type of entry use the macro MULTI_VALUE_TYPE supplying it the |
| 707 | // array of choices. |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 708 | // . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is |
| 709 | // either enabled, disabled, or uses the default value of the associated |
| 710 | // base::Feature instance. To specify this type of entry use the macro |
| 711 | // FEATURE_VALUE_TYPE supplying it the base::Feature instance. |
| 712 | // . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a |
| 713 | // base::Feature instance. Choices corresponding to the default state, a |
| 714 | // universally enabled state, and a universally disabled state are |
| 715 | // automatically included. To specify this type of entry use the macro |
| 716 | // FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and |
| 717 | // the array of choices. |
| 718 | // |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 719 | // See the documentation of FeatureEntry for details on the fields. |
| 720 | // |
| 721 | // When adding a new choice, add it to the end of the list. |
| 722 | const flags_ui::FeatureEntry kFeatureEntries[] = { |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 723 | {"in-product-help-demo-mode-choice", |
| 724 | flag_descriptions::kInProductHelpDemoModeName, |
| 725 | flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos, |
| 726 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
Tommy Nyquist | c1d6dea1 | 2017-07-26 20:37:23 | [diff] [blame] | 727 | feature_engagement::kIPHDemoMode, |
| 728 | feature_engagement::kIPHDemoModeChoiceVariations, |
Marc Treib | 2752e8b | 2017-08-04 14:12:09 | [diff] [blame] | 729 | "IPH_DemoMode")}, |
Moe Ahmadi | c3fd7cd | 2018-05-11 21:40:22 | [diff] [blame] | 730 | {"enable-autofill-credit-card-upload", |
| 731 | flag_descriptions::kAutofillCreditCardUploadName, |
| 732 | flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos, |
Anne Lim | 579b573 | 2018-08-30 18:24:24 | [diff] [blame] | 733 | FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)}, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 734 | {"use-sync-sandbox", flag_descriptions::kSyncSandboxName, |
| 735 | flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos, |
| 736 | SINGLE_VALUE_TYPE_AND_VALUE( |
Victor Hugo Vianna Silva | 3cd7ae9 | 2022-02-09 20:49:51 | [diff] [blame] | 737 | syncer::kSyncServiceURL, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 738 | "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")}, |
| 739 | {"wallet-service-use-sandbox", |
| 740 | flag_descriptions::kWalletServiceUseSandboxName, |
| 741 | flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos, |
| 742 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
| 743 | autofill::switches::kWalletServiceUseSandbox, |
| 744 | "1", |
| 745 | autofill::switches::kWalletServiceUseSandbox, |
| 746 | "0")}, |
Mohamad Ahmadi | c4df81f | 2017-12-20 04:41:59 | [diff] [blame] | 747 | {"show-autofill-type-predictions", |
| 748 | flag_descriptions::kShowAutofillTypePredictionsName, |
| 749 | flag_descriptions::kShowAutofillTypePredictionsDescription, |
| 750 | flags_ui::kOsIos, |
Florian Leimgruber | f53ca39 | 2023-02-21 15:56:50 | [diff] [blame] | 751 | FEATURE_VALUE_TYPE( |
| 752 | autofill::features::test::kAutofillShowTypePredictions)}, |
Vidhan Jain | b86c94b | 2023-04-06 14:13:57 | [diff] [blame] | 753 | {"autofill-account-profiles-storage", |
| 754 | flag_descriptions::kAutofillAccountProfilesStorageName, |
| 755 | flag_descriptions::kAutofillAccountProfilesStorageDescription, |
| 756 | flags_ui::kOsIos, |
| 757 | FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfileStorage)}, |
Vidhan Jain | cbb3d53f | 2023-01-23 19:13:26 | [diff] [blame] | 758 | {"autofill-account-profiles-union-view", |
| 759 | flag_descriptions::kAutofillAccountProfilesUnionViewName, |
| 760 | flag_descriptions::kAutofillAccountProfilesUnionViewDescription, |
| 761 | flags_ui::kOsIos, |
| 762 | FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfilesUnionView)}, |
Olivier Robin | 3d6041162 | 2018-02-23 10:03:22 | [diff] [blame] | 763 | {"autofill-ios-delay-between-fields", |
| 764 | flag_descriptions::kAutofillIOSDelayBetweenFieldsName, |
| 765 | flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription, |
| 766 | flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)}, |
Benjamin Williams | df18e7e | 2022-10-03 18:46:05 | [diff] [blame] | 767 | {"fullscreen-promos-manager-skip-internal-limits", |
| 768 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName, |
| 769 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription, |
| 770 | flags_ui::kOsIos, |
| 771 | FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)}, |
Kurt Horimoto | dc33af3 | 2018-05-01 01:39:14 | [diff] [blame] | 772 | {"fullscreen-viewport-adjustment-experiment", |
Chris Lu | 481a932 | 2019-09-25 22:16:53 | [diff] [blame] | 773 | flag_descriptions::kFullscreenSmoothScrollingName, |
| 774 | flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos, |
Aliona DANGLA | 4e3b473 | 2023-03-22 09:35:19 | [diff] [blame] | 775 | FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)}, |
Robbie Gibson | 1f37a5e | 2020-08-06 17:03:06 | [diff] [blame] | 776 | {"webpage-default-zoom-from-dynamic-type", |
| 777 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName, |
| 778 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription, |
| 779 | flags_ui::kOsIos, |
| 780 | FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)}, |
Robbie Gibson | 88f2396 | 2020-09-28 14:35:56 | [diff] [blame] | 781 | {"webpage-alternative-text-zoom", |
| 782 | flag_descriptions::kWebPageAlternativeTextZoomName, |
| 783 | flag_descriptions::kWebPageAlternativeTextZoomDescription, |
| 784 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)}, |
Robbie Gibson | 1095b72c | 2022-06-06 17:03:34 | [diff] [blame] | 785 | {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName, |
| 786 | flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos, |
| 787 | FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 788 | {"omnibox-ui-max-autocomplete-matches", |
| 789 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName, |
| 790 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription, |
| 791 | flags_ui::kOsIos, |
| 792 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 793 | omnibox::kUIExperimentMaxAutocompleteMatches, |
| 794 | kOmniboxUIMaxAutocompleteMatchesVariations, |
| 795 | "OmniboxUIMaxAutocompleteVariations")}, |
Moe Ahmadi | 01028f2 | 2022-08-06 17:57:35 | [diff] [blame] | 796 | {"omnibox-local-history-zero-suggest-beyond-ntp", |
| 797 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName, |
| 798 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription, |
| 799 | flags_ui::kOsIos, |
| 800 | FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)}, |
Stepan Khapugin | bac467e | 2022-05-06 21:11:54 | [diff] [blame] | 801 | {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName, |
| 802 | flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos, |
| 803 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches, |
| 804 | kOmniboxMaxZPSMatchesVariations, |
| 805 | "OmniboxMaxZPSVariations")}, |
Stepan Khapugin | d987684 | 2023-01-27 17:59:45 | [diff] [blame] | 806 | |
| 807 | {"omnibox-most-visited-tiles-on-srp", |
| 808 | flag_descriptions::kOmniboxMostVisitedTilesOnSrpName, |
| 809 | flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription, |
| 810 | flags_ui::kOsIos, |
| 811 | FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)}, |
Caitlin Fischer | 43edd90a | 2019-05-01 13:24:30 | [diff] [blame] | 812 | {"autofill-use-mobile-label-disambiguation", |
| 813 | flag_descriptions::kAutofillUseMobileLabelDisambiguationName, |
| 814 | flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription, |
| 815 | flags_ui::kOsIos, |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 816 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 817 | autofill::features::kAutofillUseMobileLabelDisambiguation, |
| 818 | kAutofillUseMobileLabelDisambiguationVariations, |
| 819 | "AutofillUseMobileLabelDisambiguation")}, |
Mike Dougherty | b6c770d | 2019-09-13 22:56:46 | [diff] [blame] | 820 | {"ios-breadcrumbs", flag_descriptions::kLogBreadcrumbsName, |
| 821 | flag_descriptions::kLogBreadcrumbsDescription, flags_ui::kOsIos, |
Jesse McKenna | 85c1a59f | 2021-05-05 19:08:30 | [diff] [blame] | 822 | FEATURE_VALUE_TYPE(breadcrumbs::kLogBreadcrumbs)}, |
Jérôme Lebel | c374fdd | 2019-09-27 10:36:48 | [diff] [blame] | 823 | {"force-startup-signin-promo", |
| 824 | flag_descriptions::kForceStartupSigninPromoName, |
| 825 | flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos, |
Alice Wang | 345e0944 | 2021-07-05 09:03:29 | [diff] [blame] | 826 | FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)}, |
Yoichi Osato | 7ae1175 | 2021-03-16 03:27:22 | [diff] [blame] | 827 | {"restore-session-from-cache", |
| 828 | flag_descriptions::kRestoreSessionFromCacheName, |
| 829 | flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos, |
Justin Cohen | 3ec2522c | 2021-04-23 18:23:49 | [diff] [blame] | 830 | FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)}, |
Roberto Moura | b87b972 | 2020-06-17 17:12:09 | [diff] [blame] | 831 | {"expanded-tab-strip", flag_descriptions::kExpandedTabStripName, |
| 832 | flag_descriptions::kExpandedTabStripDescription, flags_ui::kOsIos, |
| 833 | FEATURE_VALUE_TYPE(kExpandedTabStrip)}, |
Tommy Martino | 6b4eb7e | 2020-06-25 18:25:41 | [diff] [blame] | 834 | {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName, |
| 835 | flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos, |
| 836 | FEATURE_VALUE_TYPE(kSharedHighlightingIOS)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 837 | #if BUILDFLAG(IOS_SCREEN_TIME_ENABLED) |
edchin | 81467b8 | 2020-09-03 19:31:45 | [diff] [blame] | 838 | {"screen-time-integration-ios", |
| 839 | flag_descriptions::kScreenTimeIntegrationName, |
| 840 | flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos, |
| 841 | FEATURE_VALUE_TYPE(kScreenTimeIntegration)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 842 | #endif |
Nazerke | 3e993f7 | 2020-09-21 13:00:06 | [diff] [blame] | 843 | {"modern-tab-strip", flag_descriptions::kModernTabStripName, |
| 844 | flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos, |
| 845 | FEATURE_VALUE_TYPE(kModernTabStrip)}, |
Eugene But | f869bff | 2020-12-10 01:16:55 | [diff] [blame] | 846 | {"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName, |
| 847 | flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos, |
| 848 | FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)}, |
Cheick Cisse | 76ade3d | 2020-12-16 00:15:11 | [diff] [blame] | 849 | {"ios-shared-highlighting-color-change", |
| 850 | flag_descriptions::kIOSSharedHighlightingColorChangeName, |
| 851 | flag_descriptions::kIOSSharedHighlightingColorChangeDescription, |
Cheick Cisse | d0b5bfe | 2021-02-11 14:23:07 | [diff] [blame] | 852 | flags_ui::kOsIos, |
| 853 | FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)}, |
Cheick Cisse | fe99486 | 2021-12-15 16:01:34 | [diff] [blame] | 854 | {"ios-shared-highlighting-v2", |
| 855 | flag_descriptions::kIOSSharedHighlightingV2Name, |
| 856 | flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos, |
| 857 | FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)}, |
Stepan Khapugin | 0434120 | 2021-01-07 12:22:45 | [diff] [blame] | 858 | {"omnibox-new-textfield-implementation", |
| 859 | flag_descriptions::kOmniboxNewImplementationName, |
| 860 | flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos, |
| 861 | FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)}, |
Stepan Khapugin | 0be8f6d | 2022-09-21 20:22:26 | [diff] [blame] | 862 | {"omnibox-on-focus-suggestions-contextual-web", |
| 863 | flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName, |
| 864 | flag_descriptions:: |
| 865 | kOmniboxFocusTriggersContextualWebZeroSuggestDescription, |
| 866 | flags_ui::kOsIos, |
| 867 | FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)}, |
| 868 | {"omnibox-on-focus-suggestions-srp", |
| 869 | flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName, |
| 870 | flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription, |
| 871 | flags_ui::kOsIos, |
| 872 | FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)}, |
Stepan Khapugin | 0da1238 | 2023-01-24 16:08:12 | [diff] [blame] | 873 | {"omnibox-report-assisted-query-stats", |
| 874 | flag_descriptions::kOmniboxReportAssistedQueryStatsName, |
| 875 | flag_descriptions::kOmniboxReportAssistedQueryStatsDescription, |
| 876 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)}, |
| 877 | {"omnibox-report-searchbox-stats", |
| 878 | flag_descriptions::kOmniboxReportSearchboxStatsName, |
| 879 | flag_descriptions::kOmniboxReportSearchboxStatsDescription, |
| 880 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)}, |
Stepan Khapugin | ecf128a9 | 2022-08-30 11:23:15 | [diff] [blame] | 881 | {"omnibox-fuzzy-url-suggestions", |
| 882 | flag_descriptions::kOmniboxFuzzyUrlSuggestionsName, |
| 883 | flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription, |
| 884 | flags_ui::kOsIos, |
| 885 | FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)}, |
gogerald | 0ff29e5 | 2021-02-03 18:56:19 | [diff] [blame] | 886 | {"start-surface", flag_descriptions::kStartSurfaceName, |
| 887 | flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos, |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 888 | FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface, |
| 889 | kStartSurfaceVariations, |
| 890 | "StartSurface")}, |
Vidhan Jain | 451b475 | 2021-07-15 10:16:42 | [diff] [blame] | 891 | {"autofill-address-verification-in-save-prompt", |
| 892 | flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName, |
| 893 | flag_descriptions:: |
| 894 | kEnableAutofillAddressSavePromptAddressVerificationDescription, |
| 895 | flags_ui::kOsIos, |
| 896 | FEATURE_VALUE_TYPE( |
| 897 | autofill::features:: |
| 898 | kAutofillAddressProfileSavePromptAddressVerificationSupport)}, |
Viktor Semeniuk | 68e794a | 2021-03-24 10:23:25 | [diff] [blame] | 899 | {"filling-across-affiliated-websites", |
| 900 | flag_descriptions::kFillingAcrossAffiliatedWebsitesName, |
| 901 | flag_descriptions::kFillingAcrossAffiliatedWebsitesDescription, |
| 902 | flags_ui::kOsIos, |
| 903 | FEATURE_VALUE_TYPE( |
| 904 | password_manager::features::kFillingAcrossAffiliatedWebsites)}, |
Side Yilmaz | 6c53f710 | 2021-09-07 13:26:19 | [diff] [blame] | 905 | {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName, |
| 906 | flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos, |
| 907 | FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)}, |
Nohemi Fernandez | c00842a | 2021-07-26 11:47:34 | [diff] [blame] | 908 | {"wait-threshold-seconds-for-capabilities-api", |
| 909 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName, |
| 910 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription, |
| 911 | flags_ui::kOsIos, |
| 912 | MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)}, |
Jared Saul | 2188f76 | 2021-08-02 21:22:23 | [diff] [blame] | 913 | {"autofill-fill-merchant-promo-code-fields", |
| 914 | flag_descriptions::kAutofillFillMerchantPromoCodeFieldsName, |
| 915 | flag_descriptions::kAutofillFillMerchantPromoCodeFieldsDescription, |
| 916 | flags_ui::kOsIos, |
| 917 | FEATURE_VALUE_TYPE( |
| 918 | autofill::features::kAutofillFillMerchantPromoCodeFields)}, |
Sylvain Defresne | dff67e4 | 2021-09-24 09:43:03 | [diff] [blame] | 919 | {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName, |
| 920 | flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos, |
| 921 | FEATURE_VALUE_TYPE(kNewOverflowMenu)}, |
Robbie Gibson | ed7f6ffb | 2023-05-15 16:03:57 | [diff] [blame] | 922 | {"overflow-menu-customization", |
| 923 | flag_descriptions::kOverflowMenuCustomizationName, |
| 924 | flag_descriptions::kOverflowMenuCustomizationDescription, flags_ui::kOsIos, |
| 925 | FEATURE_VALUE_TYPE(kOverflowMenuCustomization)}, |
Jason Hu | 3830a07 | 2022-08-19 20:56:22 | [diff] [blame] | 926 | {"enable-lens-in-home-screen-widget", |
| 927 | flag_descriptions::kEnableLensInHomeScreenWidgetName, |
| 928 | flag_descriptions::kEnableLensInHomeScreenWidgetDescription, |
| 929 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)}, |
| 930 | {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName, |
| 931 | flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos, |
| 932 | FEATURE_VALUE_TYPE(kEnableLensInKeyboard)}, |
| 933 | {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName, |
| 934 | flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos, |
| 935 | FEATURE_VALUE_TYPE(kEnableLensInNTP)}, |
Anudeep Palanki | 403c907a | 2023-01-25 20:30:03 | [diff] [blame] | 936 | {"enable-lens-context-menu-alt-text", |
| 937 | flag_descriptions::kEnableLensContextMenuAltTextName, |
| 938 | flag_descriptions::kEnableLensContextMenuAltTextDescription, |
| 939 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)}, |
Jason Hu | 67cfb0f | 2022-11-14 20:21:44 | [diff] [blame] | 940 | {"enable-lens-in-omnibox-copied-image", |
| 941 | flag_descriptions::kEnableLensInOmniboxCopiedImageName, |
| 942 | flag_descriptions::kEnableLensInOmniboxCopiedImageDescription, |
| 943 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)}, |
Benjamin Williams | bee6ab6 | 2022-02-28 18:09:40 | [diff] [blame] | 944 | {"use-load-simulated-request-for-error-page-navigation", |
Gauthier Ambard | 33cceaf | 2022-05-05 14:00:23 | [diff] [blame] | 945 | flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName, |
| 946 | flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription, |
Benjamin Williams | bee6ab6 | 2022-02-28 18:09:40 | [diff] [blame] | 947 | flags_ui::kOsIos, |
Gauthier Ambard | 33cceaf | 2022-05-05 14:00:23 | [diff] [blame] | 948 | FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)}, |
Sergio Collazos | 9fcc6ed | 2021-10-06 00:58:03 | [diff] [blame] | 949 | {"enable-disco-feed-endpoint", |
| 950 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName, |
| 951 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription, |
| 952 | flags_ui::kOsIos, |
Aliona DANGLA | 8fae66f0 | 2021-10-06 15:47:11 | [diff] [blame] | 953 | FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)}, |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 954 | {"enable-discover-feed-top-sync-promo", |
| 955 | flag_descriptions::kEnableDiscoverFeedTopSyncPromoName, |
| 956 | flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription, |
| 957 | flags_ui::kOsIos, |
| 958 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo, |
| 959 | kDiscoverFeedTopSyncPromoVariations, |
| 960 | "EnableDiscoverFeedTopSyncPromo")}, |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 961 | {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName, |
| 962 | flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos, |
| 963 | FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings, |
| 964 | kFeedHeaderSettingsVariations, |
| 965 | "FeedHeaderSettings")}, |
Tommy Martino | 7393d76 | 2021-10-12 17:59:28 | [diff] [blame] | 966 | {"shared-highlighting-amp", |
| 967 | flag_descriptions::kIOSSharedHighlightingAmpName, |
| 968 | flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos, |
| 969 | FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)}, |
David Maunder | f4a5e1e | 2021-10-18 17:24:28 | [diff] [blame] | 970 | {"enable-commerce-price-tracking", |
Matt Jones | 125dfb4 | 2022-02-11 17:23:42 | [diff] [blame] | 971 | commerce::flag_descriptions::kCommercePriceTrackingName, |
| 972 | commerce::flag_descriptions::kCommercePriceTrackingDescription, |
| 973 | flags_ui::kOsIos, |
| 974 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking, |
| 975 | commerce::kCommercePriceTrackingVariations, |
adamta | 67b6c581 | 2021-10-19 17:02:15 | [diff] [blame] | 976 | "CommercePriceTracking")}, |
Tina Wang | 8058d5f | 2021-11-04 20:06:06 | [diff] [blame] | 977 | {"web-feed-ios", flag_descriptions::kEnableWebChannelsName, |
| 978 | flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos, |
| 979 | FEATURE_VALUE_TYPE(kEnableWebChannels)}, |
adamta | 3933159 | 2021-11-01 20:18:54 | [diff] [blame] | 980 | {"ntp-view-hierarchy-repair", |
| 981 | flag_descriptions::kNTPViewHierarchyRepairName, |
| 982 | flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos, |
adamta | 8da8dce | 2022-11-17 18:03:20 | [diff] [blame] | 983 | FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)}, |
Justin Cohen | 69cec68 | 2021-11-04 20:10:26 | [diff] [blame] | 984 | {"synthesized-restore-session", |
| 985 | flag_descriptions::kSynthesizedRestoreSessionName, |
| 986 | flag_descriptions::kSynthesizedRestoreSessionDescription, flags_ui::kOsIos, |
| 987 | FEATURE_VALUE_TYPE(web::features::kSynthesizedRestoreSession)}, |
Veronique Nguyen | 11f8c9f | 2022-09-12 16:51:26 | [diff] [blame] | 988 | {"enable-password-grouping", flag_descriptions::kPasswordsGroupingName, |
| 989 | flag_descriptions::kPasswordsGroupingDescription, flags_ui::kOsIos, |
| 990 | FEATURE_VALUE_TYPE(password_manager::features::kPasswordsGrouping)}, |
Ali Juma | 1429cf8a | 2022-02-09 15:31:01 | [diff] [blame] | 991 | {"enable-fullscreen-api", flag_descriptions::kEnableFullscreenAPIName, |
| 992 | flag_descriptions::kEnableFullscreenAPIDescription, flags_ui::kOsIos, |
| 993 | FEATURE_VALUE_TYPE(web::features::kEnableFullscreenAPI)}, |
Joemer Ramos | c34a30a0 | 2022-09-22 15:18:43 | [diff] [blame] | 994 | {"enable-tailored-security-integration", |
| 995 | flag_descriptions::kTailoredSecurityIntegrationName, |
| 996 | flag_descriptions::kTailoredSecurityIntegrationDescription, |
| 997 | flags_ui::kOsIos, |
| 998 | FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)}, |
Vishwas Uppoor | 89303a9 | 2022-08-03 00:56:26 | [diff] [blame] | 999 | {"autofill-enable-card-product-name", |
| 1000 | flag_descriptions::kAutofillEnableCardProductNameName, |
| 1001 | flag_descriptions::kAutofillEnableCardProductNameDescription, |
| 1002 | flags_ui::kOsIos, |
| 1003 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)}, |
Victor Hugo Vianna Silva | f0a4400 | 2022-02-16 10:38:00 | [diff] [blame] | 1004 | {"send-tab-to-self-signin-promo", |
| 1005 | flag_descriptions::kSendTabToSelfSigninPromoName, |
| 1006 | flag_descriptions::kSendTabToSelfSigninPromoDescription, flags_ui::kOsIos, |
| 1007 | FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfSigninPromo)}, |
Siyu An | ff02e74 | 2022-04-07 19:08:22 | [diff] [blame] | 1008 | {"autofill-enforce-delays-in-strike-database", |
| 1009 | flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseName, |
| 1010 | flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseDescription, |
| 1011 | flags_ui::kOsIos, |
| 1012 | FEATURE_VALUE_TYPE( |
| 1013 | autofill::features::kAutofillEnforceDelaysInStrikeDatabase)}, |
Jared Saul | b0473bd | 2022-04-20 00:03:41 | [diff] [blame] | 1014 | {"autofill-upstream-allow-additional-email-domains", |
| 1015 | flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName, |
| 1016 | flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription, |
| 1017 | flags_ui::kOsIos, |
| 1018 | FEATURE_VALUE_TYPE( |
| 1019 | autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)}, |
| 1020 | {"autofill-upstream-allow-all-email-domains", |
| 1021 | flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName, |
| 1022 | flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription, |
| 1023 | flags_ui::kOsIos, |
| 1024 | FEATURE_VALUE_TYPE( |
| 1025 | autofill::features::kAutofillUpstreamAllowAllEmailDomains)}, |
Raj T | b95d81354 | 2022-11-16 21:27:52 | [diff] [blame] | 1026 | {"enable-download-service-foreground-session", |
| 1027 | flag_descriptions::kDownloadServiceForegroundSessionName, |
| 1028 | flag_descriptions::kDownloadServiceForegroundSessionDescription, |
| 1029 | flags_ui::kOsIos, |
| 1030 | FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)}, |
Olivier Robin | ffe767c | 2022-04-21 13:13:23 | [diff] [blame] | 1031 | {"enable-tflite-language-detection", |
| 1032 | flag_descriptions::kTFLiteLanguageDetectionName, |
| 1033 | flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos, |
| 1034 | FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)}, |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 1035 | {"optimization-guide-debug-logs", |
| 1036 | flag_descriptions::kOptimizationGuideDebugLogsName, |
| 1037 | flag_descriptions::kOptimizationGuideDebugLogsDescription, |
| 1038 | flags_ui::kOsIos, |
| 1039 | SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)}, |
Raj T | 5aacebd | 2023-05-22 19:45:09 | [diff] [blame] | 1040 | {"optimization-guide-install-wide-model-store", |
| 1041 | flag_descriptions::kOptimizationGuideInstallWideModelStoreName, |
| 1042 | flag_descriptions::kOptimizationGuideInstallWideModelStoreDescription, |
| 1043 | flags_ui::kOsIos, |
| 1044 | FEATURE_VALUE_TYPE(optimization_guide::features:: |
| 1045 | kOptimizationGuideInstallWideModelStore)}, |
Daniel White | d02b696 | 2023-02-14 14:19:55 | [diff] [blame] | 1046 | {"optimization-guide-push-notifications", |
| 1047 | flag_descriptions::kOptimizationGuidePushNotificationClientName, |
| 1048 | flag_descriptions::kOptimizationGuidePushNotificationClientDescription, |
| 1049 | flags_ui::kOsIos, |
| 1050 | FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)}, |
Benjamin Williams | 11f3991 | 2023-04-13 19:00:25 | [diff] [blame] | 1051 | {"sync-segments-data", flag_descriptions::kSyncSegmentsDataName, |
| 1052 | flag_descriptions::kSyncSegmentsDataDescription, flags_ui::kOsIos, |
| 1053 | FEATURE_VALUE_TYPE(history::kSyncSegmentsData)}, |
Christian Xu | b8c06cd | 2022-04-29 20:55:01 | [diff] [blame] | 1054 | {"suggestions-scrolling-ipad", |
| 1055 | flag_descriptions::kEnableSuggestionsScrollingOnIPadName, |
| 1056 | flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription, |
| 1057 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)}, |
Stepan Khapugin | fee136c6 | 2022-11-28 13:24:00 | [diff] [blame] | 1058 | {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName, |
| 1059 | flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos, |
| 1060 | FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)}, |
Elmehdi Rahmaoui | 5a6273a2 | 2022-11-28 16:19:25 | [diff] [blame] | 1061 | {"intents-on-phone-number", flag_descriptions::kPhoneNumberName, |
| 1062 | flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 1063 | FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)}, |
Elmehdi Rahmaoui | 21e87d5 | 2022-11-09 15:00:55 | [diff] [blame] | 1064 | {"experience-kit-apple-calendar", |
| 1065 | flag_descriptions::kAppleCalendarExperienceKitName, |
| 1066 | flag_descriptions::kAppleCalendarExperienceKitDescription, |
| 1067 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)}, |
Raj T | 7db7a0e | 2022-11-17 16:33:08 | [diff] [blame] | 1068 | {"enable-expkit-text-classifier", |
| 1069 | flag_descriptions::kEnableExpKitTextClassifierName, |
| 1070 | flag_descriptions::kEnableExpKitTextClassifierDescription, |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 1071 | flags_ui::kOsIos, |
| 1072 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifier, |
| 1073 | kEnableExpKitTextClassifierVariations, |
| 1074 | "ExpKitTextClassifier")}, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 1075 | {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName, |
| 1076 | flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos, |
| 1077 | FEATURE_VALUE_TYPE(web::features::kOneTapForMaps)}, |
Mustafa Emre Acer | 4de8863a | 2022-05-03 22:17:01 | [diff] [blame] | 1078 | {"https-only-mode", flag_descriptions::kHttpsOnlyModeName, |
| 1079 | flag_descriptions::kHttpsOnlyModeDescription, flags_ui::kOsIos, |
| 1080 | FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsOnlyMode)}, |
Mustafa Emre Acer | b8bb01f | 2022-07-20 19:43:25 | [diff] [blame] | 1081 | {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName, |
| 1082 | flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos, |
| 1083 | FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)}, |
Benjamin Williams | f721fc2 | 2023-01-10 23:28:25 | [diff] [blame] | 1084 | {"smart-sorting-price-tracking-destination", |
| 1085 | flag_descriptions::kSmartSortingPriceTrackingDestinationName, |
| 1086 | flag_descriptions::kSmartSortingPriceTrackingDestinationDescription, |
| 1087 | flags_ui::kOsIos, |
| 1088 | FEATURE_VALUE_TYPE(kSmartSortingPriceTrackingDestination)}, |
Scott Yoder | 1049356 | 2022-06-28 17:37:44 | [diff] [blame] | 1089 | {"new-overflow-menu-share-chrome-action", |
| 1090 | flag_descriptions::kNewOverflowMenuShareChromeActionName, |
| 1091 | flag_descriptions::kNewOverflowMenuShareChromeActionDescription, |
| 1092 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuShareChromeAction)}, |
Alexander Tekle | b464381 | 2023-01-06 23:12:30 | [diff] [blame] | 1093 | {"autofill-enable-ranking-formula-address-profiles", |
| 1094 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName, |
| 1095 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription, |
| 1096 | flags_ui::kOsIos, |
| 1097 | FEATURE_VALUE_TYPE( |
| 1098 | autofill::features::kAutofillEnableRankingFormulaAddressProfiles)}, |
Alexander Tekle | 35dfbbd | 2023-01-31 08:32:39 | [diff] [blame] | 1099 | {"autofill-enable-ranking-formula-credit-cards", |
| 1100 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName, |
| 1101 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription, |
| 1102 | flags_ui::kOsIos, |
| 1103 | FEATURE_VALUE_TYPE( |
| 1104 | autofill::features::kAutofillEnableRankingFormulaCreditCards)}, |
Sergio Collazos | 5855871 | 2022-05-18 17:24:02 | [diff] [blame] | 1105 | {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName, |
| 1106 | flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos, |
| 1107 | FEATURE_VALUE_TYPE(kEnableFeedAblation)}, |
Tina Wang | 30df717 | 2022-12-09 22:02:02 | [diff] [blame] | 1108 | {"enable-feed-bottom-sign-in-promo", |
| 1109 | flag_descriptions::kEnableFeedBottomSignInPromoName, |
| 1110 | flag_descriptions::kEnableFeedBottomSignInPromoDescription, |
| 1111 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedBottomSignInPromo)}, |
| 1112 | {"enable-feed-card-menu-sign-in-promo", |
| 1113 | flag_descriptions::kEnableFeedCardMenuSignInPromoName, |
| 1114 | flag_descriptions::kEnableFeedCardMenuSignInPromoDescription, |
| 1115 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)}, |
Chris Lu | c36e396 | 2023-04-11 21:50:52 | [diff] [blame] | 1116 | {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName, |
| 1117 | flag_descriptions::kMagicStackDescription, flags_ui::kOsIos, |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 1118 | FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack, |
| 1119 | kMagicStackVariations, |
| 1120 | flag_descriptions::kMagicStackName)}, |
Olivier Robin | 058c1fad | 2022-05-31 18:24:06 | [diff] [blame] | 1121 | {"default-browser-intents-show-settings", |
| 1122 | flag_descriptions::kDefaultBrowserIntentsShowSettingsName, |
| 1123 | flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription, |
| 1124 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)}, |
Tommy Martino | ad42be5 | 2022-06-13 11:51:19 | [diff] [blame] | 1125 | {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName, |
| 1126 | flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos, |
| 1127 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)}, |
Scott Yoder | 16bff3c | 2023-03-24 16:00:55 | [diff] [blame] | 1128 | {"ios-set-up-list", flag_descriptions::kIOSSetUpListName, |
| 1129 | flag_descriptions::kIOSSetUpListDescription, flags_ui::kOsIos, |
| 1130 | FEATURE_VALUE_TYPE(kIOSSetUpList)}, |
Veronique Nguyen | c3d7db5 | 2023-03-08 22:52:32 | [diff] [blame] | 1131 | {"ios-password-bottom-sheet", |
| 1132 | flag_descriptions::kIOSPasswordBottomSheetName, |
| 1133 | flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos, |
| 1134 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)}, |
Alexis Hétu | 459451a | 2023-06-01 17:05:31 | [diff] [blame] | 1135 | {"ios-payments-bottom-sheet", |
| 1136 | flag_descriptions::kIOSPaymentsBottomSheetName, |
| 1137 | flag_descriptions::kIOSPaymentsBottomSheetDescription, flags_ui::kOsIos, |
| 1138 | FEATURE_VALUE_TYPE(kIOSPaymentsBottomSheet)}, |
adamta | b69ebd5 | 2023-05-23 18:37:31 | [diff] [blame] | 1139 | {"ios-new-tab-page-retention", flag_descriptions::kNewTabPageFieldTrialName, |
| 1140 | flag_descriptions::kNewTabPageFieldTrialDescription, flags_ui::kOsIos, |
| 1141 | FEATURE_WITH_PARAMS_VALUE_TYPE(ntp_tiles::kNewTabPageFieldTrial, |
| 1142 | kNewTabPageFieldTrialVariations, |
| 1143 | ntp_tiles::kNewTabPageFieldTrialName)}, |
Nakul Vaidya | ddfdfbc | 2022-06-28 23:43:32 | [diff] [blame] | 1144 | {"autofill-parse-iban-fields", |
Nakul Vaidya | 876210f | 2022-08-08 17:47:19 | [diff] [blame] | 1145 | flag_descriptions::kAutofillParseIBANFieldsName, |
| 1146 | flag_descriptions::kAutofillParseIBANFieldsDescription, flags_ui::kOsIos, |
| 1147 | FEATURE_VALUE_TYPE(autofill::features::kAutofillParseIBANFields)}, |
Moe Ahmadi | 098519d8 | 2022-07-27 18:34:24 | [diff] [blame] | 1148 | {"omnibox-zero-suggest-prefetching", |
| 1149 | flag_descriptions::kOmniboxZeroSuggestPrefetchingName, |
| 1150 | flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription, |
| 1151 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)}, |
Khalid Peer | 79df565 | 2022-10-26 21:59:45 | [diff] [blame] | 1152 | {"omnibox-zero-suggest-prefetching-on-srp", |
| 1153 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName, |
| 1154 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription, |
| 1155 | flags_ui::kOsIos, |
| 1156 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)}, |
| 1157 | {"omnibox-zero-suggest-prefetching-on-web", |
| 1158 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName, |
| 1159 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription, |
| 1160 | flags_ui::kOsIos, |
| 1161 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)}, |
Khalid Peer | 11b4b2c | 2022-10-12 20:53:47 | [diff] [blame] | 1162 | {"omnibox-zero-suggest-in-memory-caching", |
| 1163 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName, |
| 1164 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription, |
| 1165 | flags_ui::kOsIos, |
| 1166 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)}, |
Ce Chen | bdfaed2 | 2022-10-20 16:08:35 | [diff] [blame] | 1167 | {"omnibox-on-device-tail-suggestions", |
| 1168 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsName, |
| 1169 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription, |
| 1170 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)}, |
Joemer Ramos | bde5d5d | 2023-03-31 13:18:37 | [diff] [blame] | 1171 | {"enable-browser-lockdown-mode", |
Joemer Ramos | 944cbc79 | 2023-05-11 16:58:41 | [diff] [blame] | 1172 | flag_descriptions::kBrowserLockdownModeAvailableName, |
| 1173 | flag_descriptions::kBrowserLockdownModeAvailableDescription, |
| 1174 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kBrowserLockdownModeAvailable)}, |
Joemer Ramos | ada1e85 | 2023-03-10 19:14:41 | [diff] [blame] | 1175 | {"enable-button-configuration-usage", |
| 1176 | flag_descriptions::kEnableUIButtonConfigurationName, |
| 1177 | flag_descriptions::kEnableUIButtonConfigurationDescription, |
| 1178 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableUIButtonConfiguration)}, |
Vincent Boisselle | ad6cbe2 | 2022-07-04 19:32:39 | [diff] [blame] | 1179 | {"enable-user-policy", flag_descriptions::kEnableUserPolicyName, |
| 1180 | flag_descriptions::kEnableUserPolicyDescription, flags_ui::kOsIos, |
Vincent Boisselle | 88fef22 | 2022-09-23 18:54:50 | [diff] [blame] | 1181 | FEATURE_VALUE_TYPE(policy::kUserPolicy)}, |
Marc Treib | b9d8ed80 | 2022-07-05 15:15:49 | [diff] [blame] | 1182 | {"enable-sync-history-datatype", |
| 1183 | flag_descriptions::kSyncEnableHistoryDataTypeName, |
| 1184 | flag_descriptions::kSyncEnableHistoryDataTypeDescription, flags_ui::kOsIos, |
| 1185 | FEATURE_VALUE_TYPE(syncer::kSyncEnableHistoryDataType)}, |
Christian Xu | cf26d56 | 2022-07-06 09:28:36 | [diff] [blame] | 1186 | {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName, |
| 1187 | flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos, |
| 1188 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches, |
| 1189 | kOmniboxMaxURLMatchesVariations, |
| 1190 | "OmniboxMaxURLMatches")}, |
Olivier Robin | 60d3a06 | 2022-07-06 17:34:06 | [diff] [blame] | 1191 | {"metrickit-non-crash-reports", |
| 1192 | flag_descriptions::kMetrickitNonCrashReportName, |
| 1193 | flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos, |
| 1194 | FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)}, |
Siyu An | 3194bda | 2022-07-13 19:30:37 | [diff] [blame] | 1195 | {"autofill-enable-remade-downstream-metrics", |
| 1196 | flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName, |
| 1197 | flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription, |
| 1198 | flags_ui::kOsIos, |
| 1199 | FEATURE_VALUE_TYPE( |
| 1200 | autofill::features::kAutofillEnableRemadeDownstreamMetrics)}, |
Nakul Vaidya | 13ca204 | 2022-07-27 01:59:55 | [diff] [blame] | 1201 | {"autofill-parse-vcn-card-on-file-standalone-cvc-fields", |
| 1202 | flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName, |
| 1203 | flag_descriptions:: |
| 1204 | kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription, |
| 1205 | flags_ui::kOsIos, |
| 1206 | FEATURE_VALUE_TYPE( |
| 1207 | autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)}, |
Cheick Cisse | 1a168ef | 2023-03-24 10:39:53 | [diff] [blame] | 1208 | {"default-browser-refactoring-promo-manager", |
| 1209 | flag_descriptions::kDefaultBrowserRefactoringPromoManagerName, |
| 1210 | flag_descriptions::kDefaultBrowserRefactoringPromoManagerDescription, |
| 1211 | flags_ui::kOsIos, |
| 1212 | FEATURE_VALUE_TYPE(kDefaultBrowserRefactoringPromoManager)}, |
Cheick Cisse | 2806f082b | 2023-04-25 14:20:01 | [diff] [blame] | 1213 | {"default-browser-video-promo", |
| 1214 | flag_descriptions::kDefaultBrowserVideoPromoName, |
| 1215 | flag_descriptions::kDefaultBrowserVideoPromoDescription, flags_ui::kOsIos, |
| 1216 | FEATURE_WITH_PARAMS_VALUE_TYPE(kDefaultBrowserVideoPromo, |
| 1217 | kDefaultBrowserVideoPromoVariations, |
| 1218 | "DefaultBrowserVideoPromoVariations")}, |
Cheick Cisse | 8835611a | 2023-06-02 21:42:54 | [diff] [blame] | 1219 | {"default-browser-promo-force-show-promo", |
| 1220 | flag_descriptions::kDefaultBrowserPromoForceShowPromoName, |
| 1221 | flag_descriptions::kDefaultBrowserPromoForceShowPromoDescription, |
| 1222 | flags_ui::kOsIos, |
| 1223 | MULTI_VALUE_TYPE(kDefaultBrowserPromoForceShowPromoChoices)}, |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 1224 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
| 1225 | {"feed-background-refresh-ios", |
| 1226 | flag_descriptions::kFeedBackgroundRefreshName, |
| 1227 | flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos, |
| 1228 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh, |
| 1229 | kFeedBackgroundRefreshVariations, |
| 1230 | "FeedBackgroundRefresh")}, |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 1231 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 5c1fd53 | 2023-03-20 17:43:29 | [diff] [blame] | 1232 | {"feed-invisible-foreground-refresh-ios", |
| 1233 | flag_descriptions::kFeedInvisibleForegroundRefreshName, |
| 1234 | flag_descriptions::kFeedInvisibleForegroundRefreshDescription, |
| 1235 | flags_ui::kOsIos, |
| 1236 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedInvisibleForegroundRefresh, |
| 1237 | kFeedInvisibleForegroundRefreshVariations, |
| 1238 | "FeedInvisibleForegroundRefresh")}, |
Christian Xu | 164a2e51 | 2022-08-01 20:38:19 | [diff] [blame] | 1239 | {"omnibox-keyboard-paste-button", |
| 1240 | flag_descriptions::kOmniboxKeyboardPasteButtonName, |
| 1241 | flag_descriptions::kOmniboxKeyboardPasteButtonDescription, |
| 1242 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)}, |
Cheick Cisse | 5d2b6cb8 | 2023-06-05 17:27:58 | [diff] [blame] | 1243 | {"whats-new-ios-m116", flag_descriptions::kWhatsNewIOSM116Name, |
| 1244 | flag_descriptions::kWhatsNewIOSM116Description, flags_ui::kOsIos, |
| 1245 | FEATURE_VALUE_TYPE(kWhatsNewIOSM116)}, |
ginnnnnnny | 591a497 | 2022-09-01 16:10:27 | [diff] [blame] | 1246 | {"ios-autofill-branding", flag_descriptions::kAutofillBrandingIOSName, |
| 1247 | flag_descriptions::kAutofillBrandingIOSDescription, flags_ui::kOsIos, |
| 1248 | FEATURE_WITH_PARAMS_VALUE_TYPE(autofill::features::kAutofillBrandingIOS, |
| 1249 | kAutofillBrandingIOSVariations, |
Hira Mahmood | b0e5f41 | 2022-09-01 19:41:05 | [diff] [blame] | 1250 | "AutofillBrandingIOS")}, |
| 1251 | {"app-store-rating", flag_descriptions::kAppStoreRatingName, |
| 1252 | flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos, |
| 1253 | FEATURE_VALUE_TYPE(kAppStoreRating)}, |
Christian Xu | 6b90c2a3 | 2022-09-13 18:17:02 | [diff] [blame] | 1254 | {"most-visited-tiles", flag_descriptions::kMostVisitedTilesName, |
| 1255 | flag_descriptions::kMostVisitedTilesDescription, flags_ui::kOsIos, |
| 1256 | FEATURE_VALUE_TYPE(omnibox::kMostVisitedTiles)}, |
Olivier ROBIN | f0551878 | 2022-09-14 23:55:50 | [diff] [blame] | 1257 | {"enable-tflite-language-detection-ignore", |
| 1258 | flag_descriptions::kTFLiteLanguageDetectionIgnoreName, |
| 1259 | flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription, |
| 1260 | flags_ui::kOsIos, |
| 1261 | FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)}, |
Tina Wang | 89ae425 | 2022-10-14 00:39:47 | [diff] [blame] | 1262 | {"enable-check-visibility-on-attention-log-start", |
| 1263 | flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartName, |
| 1264 | flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartDescription, |
| 1265 | flags_ui::kOsIos, |
| 1266 | FEATURE_VALUE_TYPE(kEnableCheckVisibilityOnAttentionLogStart)}, |
| 1267 | {"enable-refine-data-source-reload-reporting", |
| 1268 | flag_descriptions::kEnableRefineDataSourceReloadReportingName, |
| 1269 | flag_descriptions::kEnableRefineDataSourceReloadReportingDescription, |
| 1270 | flags_ui::kOsIos, |
| 1271 | FEATURE_VALUE_TYPE(kEnableRefineDataSourceReloadReporting)}, |
Victor Hugo Vianna Silva | bb878dea | 2022-10-18 10:19:04 | [diff] [blame] | 1272 | {"enable-passwords-account-storage", |
| 1273 | flag_descriptions::kEnablePasswordsAccountStorageName, |
| 1274 | flag_descriptions::kEnablePasswordsAccountStorageDescription, |
| 1275 | flags_ui::kOsIos, |
| 1276 | FEATURE_VALUE_TYPE( |
| 1277 | password_manager::features::kEnablePasswordsAccountStorage)}, |
adamta | 3811f918 | 2022-10-24 17:49:33 | [diff] [blame] | 1278 | {"enable-default-following-feed-sort-type", |
| 1279 | flag_descriptions::kFollowingFeedDefaultSortTypeName, |
| 1280 | flag_descriptions::kFollowingFeedDefaultSortTypeDescription, |
| 1281 | flags_ui::kOsIos, |
adamta | 8da8dce | 2022-11-17 18:03:20 | [diff] [blame] | 1282 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFollowingFeedDefaultSortType, |
adamta | 3811f918 | 2022-10-24 17:49:33 | [diff] [blame] | 1283 | kFollowingFeedDefaultSortTypeVariations, |
adamta | 8da8dce | 2022-11-17 18:03:20 | [diff] [blame] | 1284 | "EnableFollowingFeedDefaultSortType")}, |
Louis Romero | 1e2a88e9 | 2023-01-18 17:08:20 | [diff] [blame] | 1285 | {"tab-grid-recency-sort", flag_descriptions::kTabGridRecencySortName, |
Gauthier Ambard | 9898eb88 | 2022-11-07 18:12:01 | [diff] [blame] | 1286 | flag_descriptions::kTabGridRecencySortDescription, flags_ui::kOsIos, |
| 1287 | FEATURE_VALUE_TYPE(kTabGridRecencySort)}, |
Petro Akzhygitov | 2e2322e | 2023-04-25 16:26:57 | [diff] [blame] | 1288 | {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName, |
| 1289 | flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos, |
| 1290 | FEATURE_VALUE_TYPE(kTabGridNewTransitions)}, |
Ewann Pelle | 3774cac53 | 2022-11-15 10:12:37 | [diff] [blame] | 1291 | {"enable-pinned-tabs", flag_descriptions::kEnablePinnedTabsName, |
| 1292 | flag_descriptions::kEnablePinnedTabsDescription, flags_ui::kOsIos, |
| 1293 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnablePinnedTabs, |
| 1294 | kEnablePinnedTabsVariations, |
| 1295 | "EnablePinnedTabs")}, |
Hira Mahmood | ea10975 | 2022-11-17 17:45:41 | [diff] [blame] | 1296 | {"credential-provider-extension-promo", |
| 1297 | flag_descriptions::kCredentialProviderExtensionPromoName, |
| 1298 | flag_descriptions::kCredentialProviderExtensionPromoDescription, |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 1299 | flags_ui::kOsIos, |
| 1300 | FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo, |
| 1301 | kCredentialProviderExtensionPromoVariations, |
| 1302 | "CredentialProviderExtensionPromo")}, |
Nicolas MacBeth | fb43e15 | 2022-11-28 19:31:52 | [diff] [blame] | 1303 | {"default-browser-blue-dot-promo", |
| 1304 | flag_descriptions::kDefaultBrowserBlueDotPromoName, |
| 1305 | flag_descriptions::kDefaultBrowserBlueDotPromoDescription, |
| 1306 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserBlueDotPromo)}, |
Olivier ROBIN | a8838c1 | 2022-12-05 17:50:27 | [diff] [blame] | 1307 | {"ios-force-translate-enabled", |
| 1308 | flag_descriptions::kIOSForceTranslateEnabledName, |
| 1309 | flag_descriptions::kIOSForceTranslateEnabledDescription, flags_ui::kOsIos, |
| 1310 | FEATURE_VALUE_TYPE(translate::kIOSForceTranslateEnabled)}, |
Daniel White | ae1cb67 | 2022-12-14 18:25:25 | [diff] [blame] | 1311 | {"iph-price-notifications-while-browsing", |
| 1312 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingName, |
| 1313 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription, |
| 1314 | flags_ui::kOsIos, |
| 1315 | FEATURE_VALUE_TYPE( |
| 1316 | feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)}, |
Qihui Zhao | 72836c6 | 2022-12-16 04:31:41 | [diff] [blame] | 1317 | {"autofill-offer-to-save-card-with-same-last-four", |
| 1318 | flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourName, |
| 1319 | flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourDescription, |
| 1320 | flags_ui::kOsIos, |
| 1321 | FEATURE_VALUE_TYPE( |
| 1322 | autofill::features::kAutofillOfferToSaveCardWithSameLastFour)}, |
Christian Xu | 588330f3 | 2023-01-05 10:51:04 | [diff] [blame] | 1323 | {"omnibox-multiline-search-suggest", |
| 1324 | flag_descriptions::kOmniboxMultilineSearchSuggestName, |
| 1325 | flag_descriptions::kOmniboxMultilineSearchSuggestDescription, |
| 1326 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxMultilineSearchSuggest)}, |
Vipul Vinod Koul | aebbcb3a | 2023-01-05 19:50:50 | [diff] [blame] | 1327 | {"autofill-suggest-server-card-instead-of-local-card", |
| 1328 | flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName, |
| 1329 | flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription, |
| 1330 | flags_ui::kOsIos, |
| 1331 | FEATURE_VALUE_TYPE( |
| 1332 | autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)}, |
Quentin Pubert | 154fc6a | 2023-01-09 15:58:58 | [diff] [blame] | 1333 | {"native-find-in-page", flag_descriptions::kNativeFindInPageName, |
| 1334 | flag_descriptions::kNativeFindInPageDescription, flags_ui::kOsIos, |
| 1335 | FEATURE_WITH_PARAMS_VALUE_TYPE(kNativeFindInPage, |
| 1336 | kNativeFindInPageVariations, |
| 1337 | "NativeFindInPage")}, |
Elmehdi Rahmaoui | 5d8ba8e | 2023-01-11 14:53:55 | [diff] [blame] | 1338 | {"intents-on-email", flag_descriptions::kEmailName, |
| 1339 | flag_descriptions::kEmailDescription, flags_ui::kOsIos, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 1340 | FEATURE_VALUE_TYPE(web::features::kEnableEmails)}, |
Ernesto Izquierdo Clua | 023bb5235 | 2023-01-12 19:33:34 | [diff] [blame] | 1341 | {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName, |
| 1342 | flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos, |
| 1343 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)}, |
Christian Xu | 7e5234c1 | 2023-01-16 09:26:35 | [diff] [blame] | 1344 | {"multiline-fade-truncating-label", |
| 1345 | flag_descriptions::kMultilineFadeTruncatingLabelName, |
| 1346 | flag_descriptions::kMultilineFadeTruncatingLabelDescription, |
| 1347 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kMultilineFadeTruncatingLabel)}, |
Robbie Gibson | 88f680a | 2023-01-19 16:47:30 | [diff] [blame] | 1348 | {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName, |
| 1349 | flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos, |
| 1350 | FEATURE_VALUE_TYPE(kPromosManagerUsesFET)}, |
Ewann Pelle | dec2d04 | 2023-01-25 15:28:39 | [diff] [blame] | 1351 | {"shopping-list", commerce::flag_descriptions::kShoppingListName, |
| 1352 | commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos, |
| 1353 | FEATURE_VALUE_TYPE(commerce::kShoppingList)}, |
Matt Jones | 5c8c8e3 | 2023-06-13 22:49:47 | [diff] [blame] | 1354 | {"shopping-list-track-by-default", |
| 1355 | commerce::flag_descriptions::kShoppingListTrackByDefaultName, |
| 1356 | commerce::flag_descriptions::kShoppingListTrackByDefaultDescription, |
| 1357 | flags_ui::kOsIos, |
| 1358 | FEATURE_VALUE_TYPE(commerce::kShoppingListTrackByDefault)}, |
Matt Jones | 1795eda | 2023-05-09 20:24:48 | [diff] [blame] | 1359 | {"local-pdp-detection", |
| 1360 | commerce::flag_descriptions::kCommerceLocalPDPDetectionName, |
| 1361 | commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription, |
| 1362 | flags_ui::kOsIos, |
| 1363 | FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 1364 | {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName, |
| 1365 | flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos, |
| 1366 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold, |
| 1367 | kTabInactivityThresholdVariations, |
| 1368 | "TabInactivityThreshold")}, |
Sergio Collazos | 8d2ac2794 | 2023-01-26 19:03:41 | [diff] [blame] | 1369 | {"enable-feed-synthetic-capabilities", |
| 1370 | flag_descriptions::kEnableFeedSyntheticCapabilitiesName, |
| 1371 | flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription, |
| 1372 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)}, |
Louis Romero | 58f35502 | 2023-02-13 19:04:31 | [diff] [blame] | 1373 | {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName, |
| 1374 | flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos, |
| 1375 | FEATURE_VALUE_TYPE(kShowInactiveTabsCount)}, |
Olivier ROBIN | 52eddbf3 | 2023-02-15 10:33:42 | [diff] [blame] | 1376 | {"ios-edit-menu-partial-translate", |
| 1377 | flag_descriptions::kIOSEditMenuPartialTranslateName, |
| 1378 | flag_descriptions::kIOSEditMenuPartialTranslateDescription, |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 1379 | flags_ui::kOsIos, |
| 1380 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate, |
| 1381 | kIOSEditMenuPartialTranslateVariations, |
| 1382 | "IOSEditMenuPartialTranslate")}, |
Olivier Robin | 7057bd7 | 2023-02-16 18:35:20 | [diff] [blame] | 1383 | {"ios-custom-browser-edit-menu", |
| 1384 | flag_descriptions::kIOSCustomBrowserEditMenuName, |
| 1385 | flag_descriptions::kIOSCustomBrowserEditMenuDescription, flags_ui::kOsIos, |
| 1386 | FEATURE_VALUE_TYPE(kIOSCustomBrowserEditMenu)}, |
Ali Juma | 57849c4 | 2023-02-21 22:53:43 | [diff] [blame] | 1387 | {"notification-settings-menu-item", |
| 1388 | flag_descriptions::kNotificationSettingsMenuItemName, |
| 1389 | flag_descriptions::kNotificationSettingsMenuItemDescription, |
| 1390 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)}, |
rgod | ba72acf8 | 2023-02-20 10:29:35 | [diff] [blame] | 1391 | {"password-notes", flag_descriptions::kPasswordNotesWithBackupName, |
| 1392 | flag_descriptions::kPasswordNotesWithBackupDescription, flags_ui::kOsIos, |
| 1393 | FEATURE_VALUE_TYPE(syncer::kPasswordNotesWithBackup)}, |
Ed Chin | 97560fc4 | 2023-02-20 16:48:32 | [diff] [blame] | 1394 | {"feed-experiment-tagging-ios", |
| 1395 | flag_descriptions::kFeedExperimentTaggingName, |
| 1396 | flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos, |
| 1397 | FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)}, |
Stepan Khapugin | 551917f8 | 2023-02-21 18:00:06 | [diff] [blame] | 1398 | {"spotlight-reading-list-source", |
| 1399 | flag_descriptions::kSpotlightReadingListSourceName, |
| 1400 | flag_descriptions::kSpotlightReadingListSourceDescription, |
| 1401 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)}, |
kalettuce | d6ba72cb | 2023-02-22 00:55:38 | [diff] [blame] | 1402 | {"consistency-new-account-interface", |
| 1403 | flag_descriptions::kConsistencyNewAccountInterfaceName, |
| 1404 | flag_descriptions::kConsistencyNewAccountInterfaceDescription, |
| 1405 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kConsistencyNewAccountInterface)}, |
Olivier ROBIN | abcb8ce | 2023-02-22 13:55:20 | [diff] [blame] | 1406 | {"add-to-home-screen", flag_descriptions::kAddToHomeScreenName, |
| 1407 | flag_descriptions::kAddToHomeScreenDescription, flags_ui::kOsIos, |
Olivier ROBIN | 2ca6495 | 2023-02-23 17:11:48 | [diff] [blame] | 1408 | FEATURE_WITH_PARAMS_VALUE_TYPE(kAddToHomeScreen, |
| 1409 | kAddToHomeScreenVariations, |
| 1410 | "IOSEditMenuPartialTranslate")}, |
Salma Elmahallawy | 72c5d34d | 2023-02-27 23:44:42 | [diff] [blame] | 1411 | {"policy-logs-page-ios", flag_descriptions::kPolicyLogsPageIOSName, |
| 1412 | flag_descriptions::kPolicyLogsPageIOSDescription, flags_ui::kOsIos, |
| 1413 | FEATURE_VALUE_TYPE(policy::features::kPolicyLogsPageIOS)}, |
Vincent Boisselle | 6e9780c | 2023-02-25 01:05:34 | [diff] [blame] | 1414 | {"indicate-account-storage-error-in-account-cell", |
| 1415 | flag_descriptions::kIndicateAccountStorageErrorInAccountCellName, |
| 1416 | flag_descriptions::kIndicateAccountStorageErrorInAccountCellDescription, |
| 1417 | flags_ui::kOsIos, |
Mikel Astiz | e597fc8 | 2023-03-22 01:39:49 | [diff] [blame] | 1418 | FEATURE_VALUE_TYPE(syncer::kIndicateAccountStorageErrorInAccountCell)}, |
Menghan YANG | f3fe2de5 | 2023-02-27 16:38:50 | [diff] [blame] | 1419 | {"enable-bookmarks-account-storage", |
| 1420 | flag_descriptions::kEnableBookmarksAccountStorageName, |
| 1421 | flag_descriptions::kEnableBookmarksAccountStorageDescription, |
| 1422 | flags_ui::kOsIos, |
| 1423 | FEATURE_VALUE_TYPE(bookmarks::kEnableBookmarksAccountStorage)}, |
kalettuce | fb09e40 | 2023-02-27 18:35:53 | [diff] [blame] | 1424 | {"web-feed-feedback-reroute", |
| 1425 | flag_descriptions::kWebFeedFeedbackRerouteName, |
| 1426 | flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos, |
| 1427 | FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)}, |
Jason Hu | ac58fea | 2023-02-28 20:25:55 | [diff] [blame] | 1428 | {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName, |
| 1429 | flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos, |
| 1430 | FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)}, |
ginnnnnnny | 7590362 | 2023-03-01 18:00:00 | [diff] [blame] | 1431 | {"bring-your-own-tabs-ios", flag_descriptions::kBringYourOwnTabsIOSName, |
| 1432 | flag_descriptions::kBringYourOwnTabsIOSDescription, flags_ui::kOsIos, |
| 1433 | FEATURE_WITH_PARAMS_VALUE_TYPE(kBringYourOwnTabsIOS, |
| 1434 | kBringYourOwnTabsIOSVariations, |
| 1435 | "BringYourOwnTabsIOS")}, |
Tina Wang | d3f6f19 | 2023-04-05 05:22:43 | [diff] [blame] | 1436 | {"enable-follow-IPH-exp-params", |
| 1437 | flag_descriptions::kEnableFollowIPHExpParamsName, |
| 1438 | flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos, |
| 1439 | FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)}, |
Tina Wang | e81e24d | 2023-03-08 21:10:03 | [diff] [blame] | 1440 | {"enable-follow-management-instant-reload", |
| 1441 | flag_descriptions::kEnableFollowManagementInstantReloadName, |
| 1442 | flag_descriptions::kEnableFollowManagementInstantReloadDescription, |
| 1443 | flags_ui::kOsIos, |
| 1444 | FEATURE_VALUE_TYPE(kEnableFollowManagementInstantReload)}, |
Guillem Perez | 3c139a82 | 2023-05-24 19:34:25 | [diff] [blame] | 1445 | {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName, |
| 1446 | flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos, |
| 1447 | FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)}, |
Mustafa Acer | c8c0b15 | 2023-03-09 02:41:44 | [diff] [blame] | 1448 | {"mixed-content-autoupgrade-ios", |
| 1449 | flag_descriptions::kMixedContentAutoupgradeName, |
| 1450 | flag_descriptions::kMixedContentAutoupgradeDescription, flags_ui::kOsIos, |
| 1451 | FEATURE_VALUE_TYPE( |
| 1452 | security_interstitials::features::kMixedContentAutoupgrade)}, |
Menghan YANG | c4c94ea2 | 2023-03-09 12:48:24 | [diff] [blame] | 1453 | {"enable-email-in-bookmarks-reading-list-snackbar", |
| 1454 | flag_descriptions::kEnableEmailInBookmarksReadingListSnackbarName, |
| 1455 | flag_descriptions::kEnableEmailInBookmarksReadingListSnackbarDescription, |
| 1456 | flags_ui::kOsIos, |
| 1457 | FEATURE_VALUE_TYPE(kEnableEmailInBookmarksReadingListSnackbar)}, |
Jared Saul | 5363f396 | 2023-03-10 23:03:51 | [diff] [blame] | 1458 | {"autofill-upstream-authenticate-preflight-call", |
| 1459 | flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallName, |
| 1460 | flag_descriptions::kAutofillUpstreamAuthenticatePreflightCallDescription, |
| 1461 | flags_ui::kOsIos, |
| 1462 | FEATURE_VALUE_TYPE( |
| 1463 | autofill::features::kAutofillUpstreamAuthenticatePreflightCall)}, |
Marc Treib | e9f79ea7 | 2023-03-14 10:25:42 | [diff] [blame] | 1464 | {"enable-preferences-account-storage", |
| 1465 | flag_descriptions::kEnablePreferencesAccountStorageName, |
| 1466 | flag_descriptions::kEnablePreferencesAccountStorageDescription, |
| 1467 | flags_ui::kOsIos, |
| 1468 | FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)}, |
Vincent Boisselle | 92fa8c47 | 2023-03-20 21:35:51 | [diff] [blame] | 1469 | {"indicate-identity-error-overflow-menu", |
| 1470 | flag_descriptions::kIndicateIdentityErrorInOverflowMenuName, |
| 1471 | flag_descriptions::kIndicateIdentityErrorInOverflowMenuDescription, |
| 1472 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIndicateSyncErrorInOverflowMenu)}, |
Olivier ROBIN | a229d213 | 2023-03-21 12:44:20 | [diff] [blame] | 1473 | {"ios-browser-edit-menu-metrics", |
| 1474 | flag_descriptions::kIOSBrowserEditMenuMetricsName, |
| 1475 | flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos, |
| 1476 | FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)}, |
Gauthier Ambard | b27b29c | 2023-03-29 07:43:44 | [diff] [blame] | 1477 | {"sf-symbols-follow-up", flag_descriptions::kSFSymbolsFollowUpName, |
| 1478 | flag_descriptions::kSFSymbolsFollowUpDescription, flags_ui::kOsIos, |
| 1479 | FEATURE_VALUE_TYPE(kSFSymbolsFollowUp)}, |
Menghan YANG | 5b3a78a | 2023-03-24 17:38:26 | [diff] [blame] | 1480 | {"enable-reading-list-account-storage", |
| 1481 | flag_descriptions::kEnableReadingListAccountStorageName, |
| 1482 | flag_descriptions::kEnableReadingListAccountStorageDescription, |
| 1483 | flags_ui::kOsIos, |
| 1484 | FEATURE_VALUE_TYPE( |
| 1485 | reading_list::switches::kReadingListEnableDualReadingListModel)}, |
| 1486 | {"enable-reading-list-sign-in-promo", |
| 1487 | flag_descriptions::kEnableReadingListSignInPromoName, |
| 1488 | flag_descriptions::kEnableReadingListSignInPromoDescription, |
| 1489 | flags_ui::kOsIos, |
| 1490 | FEATURE_VALUE_TYPE(reading_list::switches:: |
| 1491 | kReadingListEnableSyncTransportModeUponSignIn)}, |
Stepan Khapugin | b2f4952 | 2023-04-03 18:25:24 | [diff] [blame] | 1492 | {"omnibox-grouping-framework-zps", |
| 1493 | flag_descriptions::kOmniboxGroupingFrameworkForZPSName, |
| 1494 | flag_descriptions::kOmniboxGroupingFrameworkForZPSDescription, |
| 1495 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForZPS)}, |
| 1496 | {"omnibox-grouping-framework-non-zps", |
| 1497 | flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName, |
| 1498 | flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription, |
| 1499 | flags_ui::kOsIos, |
| 1500 | FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)}, |
Sylvain Defresne | 935e6f7 | 2023-04-04 09:54:47 | [diff] [blame] | 1501 | {"enable-session-serialization-optimizations", |
| 1502 | flag_descriptions::kEnableSessionSerializationOptimizationsName, |
| 1503 | flag_descriptions::kEnableSessionSerializationOptimizationsDescription, |
| 1504 | flags_ui::kOsIos, |
| 1505 | FEATURE_VALUE_TYPE( |
| 1506 | web::features::kEnableSessionSerializationOptimizations)}, |
Stepan Khapugin | 8c07587 | 2023-04-05 14:29:41 | [diff] [blame] | 1507 | {"bottom-omnibox-steady-state", |
| 1508 | flag_descriptions::kBottomOmniboxSteadyStateName, |
| 1509 | flag_descriptions::kBottomOmniboxSteadyStateDescription, flags_ui::kOsIos, |
| 1510 | FEATURE_VALUE_TYPE(kBottomOmniboxSteadyState)}, |
Jared Saul | 19f8ba1 | 2023-04-11 17:44:53 | [diff] [blame] | 1511 | {"autofill-upstream-use-alternate-secure-data-type", |
| 1512 | flag_descriptions::kAutofillUpstreamUseAlternateSecureDataTypeName, |
| 1513 | flag_descriptions::kAutofillUpstreamUseAlternateSecureDataTypeDescription, |
| 1514 | flags_ui::kOsIos, |
| 1515 | FEATURE_VALUE_TYPE( |
| 1516 | autofill::features::kAutofillUpstreamUseAlternateSecureDataType)}, |
Robbie Gibson | 0ea28060 | 2023-04-12 01:02:39 | [diff] [blame] | 1517 | {"only-access-clipboard-async", |
| 1518 | flag_descriptions::kOnlyAccessClipboardAsyncName, |
| 1519 | flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos, |
| 1520 | FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)}, |
Christian Xu | e5f6023 | 2023-04-12 17:50:09 | [diff] [blame] | 1521 | {"omnibox-tail-suggest", flag_descriptions::kOmniboxTailSuggestName, |
| 1522 | flag_descriptions::kOmniboxTailSuggestDescription, flags_ui::kOsIos, |
| 1523 | FEATURE_VALUE_TYPE(kOmniboxTailSuggest)}, |
Ed Chin | ecb7d5b | 2023-04-14 19:22:09 | [diff] [blame] | 1524 | {"feed-disable-hot-start-refresh-ios", |
| 1525 | flag_descriptions::kFeedDisableHotStartRefreshName, |
| 1526 | flag_descriptions::kFeedDisableHotStartRefreshDescription, |
| 1527 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kFeedDisableHotStartRefresh)}, |
Olivier ROBIN | 2613bcd0 | 2023-04-20 10:00:47 | [diff] [blame] | 1528 | {"ios-edit-menu-search-with", flag_descriptions::kIOSEditMenuSearchWithName, |
| 1529 | flag_descriptions::kIOSEditMenuSearchWithDescription, flags_ui::kOsIos, |
| 1530 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuSearchWith, |
| 1531 | kIOSEditMenuSearchWithVariations, |
| 1532 | "IOSEditMenuSearchWith")}, |
| 1533 | {"ios-edit-menu-hide-search-web", |
| 1534 | flag_descriptions::kIOSEditMenuHideSearchWebName, |
| 1535 | flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos, |
| 1536 | FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)}, |
Stephen McGruer | 9afca1a | 2023-05-18 20:55:17 | [diff] [blame] | 1537 | {"autofill-enable-card-art-image", |
| 1538 | flag_descriptions::kAutofillEnableCardArtImageName, |
| 1539 | flag_descriptions::kAutofillEnableCardArtImageDescription, |
| 1540 | flags_ui::kOsIos, |
| 1541 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)}, |
adamta | 09aa47e | 2023-05-23 18:20:43 | [diff] [blame] | 1542 | {"hide-content-suggestions-tiles", |
| 1543 | flag_descriptions::kHideContentSuggestionTilesName, |
| 1544 | flag_descriptions::kHideContentSuggestionTilesDescription, |
| 1545 | flags_ui::kOsIos, |
| 1546 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1547 | kHideContentSuggestionsTiles, |
| 1548 | kHideContentSuggestionTilesVariations, |
| 1549 | flag_descriptions::kHideContentSuggestionTilesName)}, |
Tina Wang | cda2c90 | 2023-05-25 17:39:45 | [diff] [blame] | 1550 | {"enable-signed-out-view-demotion", |
| 1551 | flag_descriptions::kEnableSignedOutViewDemotionName, |
| 1552 | flag_descriptions::kEnableSignedOutViewDemotionDescription, |
| 1553 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)}, |
Stephen McGruer | b4c8f7f | 2023-06-01 21:28:25 | [diff] [blame] | 1554 | {"autofill-use-two-dots-for-last-four-digits", |
| 1555 | flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsName, |
| 1556 | flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsDescription, |
| 1557 | flags_ui::kOsIos, |
| 1558 | FEATURE_VALUE_TYPE( |
| 1559 | autofill::features::kAutofillUseTwoDotsForLastFourDigits)}, |
Duong Dac | 4181ab5 | 2023-06-07 12:51:50 | [diff] [blame] | 1560 | {"enable-variations-google-group-filtering", |
| 1561 | flag_descriptions::kEnableVariationsGoogleGroupFilteringName, |
| 1562 | flag_descriptions::kEnableVariationsGoogleGroupFilteringDescription, |
| 1563 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kVariationsGoogleGroupFiltering)}, |
sebsg | 977f9aa | 2023-06-08 18:48:24 | [diff] [blame] | 1564 | {"autofill-disable-profile-updates", |
| 1565 | flag_descriptions::kAutofillDisableProfileUpdatesName, |
| 1566 | flag_descriptions::kAutofillDisableProfileUpdatesDescription, |
| 1567 | flags_ui::kOsIos, |
| 1568 | FEATURE_VALUE_TYPE( |
| 1569 | autofill::features::test::kAutofillDisableProfileUpdates)}, |
| 1570 | {"autofill-disable-silent-profile-updates", |
| 1571 | flag_descriptions::kAutofillDisableSilentProfileUpdatesName, |
| 1572 | flag_descriptions::kAutofillDisableSilentProfileUpdatesDescription, |
| 1573 | flags_ui::kOsIos, |
| 1574 | FEATURE_VALUE_TYPE( |
| 1575 | autofill::features::test::kAutofillDisableSilentProfileUpdates)}, |
| 1576 | {"autofill-enable-admin-level-2", |
| 1577 | flag_descriptions::kAutofillEnableSupportForAdminLevel2Name, |
| 1578 | flag_descriptions::kAutofillEnableSupportForAdminLevel2Description, |
| 1579 | flags_ui::kOsIos, |
| 1580 | FEATURE_VALUE_TYPE( |
| 1581 | autofill::features::kAutofillEnableSupportForAdminLevel2)}, |
| 1582 | {"autofill-enable-between-streets", |
| 1583 | flag_descriptions::kAutofillEnableSupportForBetweenStreetsName, |
| 1584 | flag_descriptions::kAutofillEnableSupportForBetweenStreetsDescription, |
| 1585 | flags_ui::kOsIos, |
| 1586 | FEATURE_VALUE_TYPE( |
| 1587 | autofill::features::kAutofillEnableSupportForBetweenStreets)}, |
| 1588 | {"autofill-enable-landmark", |
| 1589 | flag_descriptions::kAutofillEnableSupportForLandmarkName, |
| 1590 | flag_descriptions::kAutofillEnableSupportForLandmarkDescription, |
| 1591 | flags_ui::kOsIos, |
| 1592 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableSupportForLandmark)}, |
Hira Mahmood | 6b0e550 | 2023-06-12 21:51:43 | [diff] [blame] | 1593 | {"post-restore-default-browser-promo", |
| 1594 | flag_descriptions::kPostRestoreDefaultBrowserPromoName, |
| 1595 | flag_descriptions::kPostRestoreDefaultBrowserPromoDescription, |
| 1596 | flags_ui::kOsIos, |
| 1597 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1598 | kPostRestoreDefaultBrowserPromo, |
| 1599 | kPostRestoreDefaultBrowserPromoVariations, |
| 1600 | "PostRestoreDefaultBrowserPromoVariations")}, |
Ameur Hosni | b40858a | 2023-06-12 17:27:31 | [diff] [blame] | 1601 | {"spotlight-open-tabs-source", |
| 1602 | flag_descriptions::kSpotlightOpenTabsSourceName, |
| 1603 | flag_descriptions::kSpotlightOpenTabsSourceDescription, flags_ui::kOsIos, |
| 1604 | FEATURE_VALUE_TYPE(kSpotlightOpenTabsSource)}, |
Marc Treib | 9bddebb | 2023-06-15 14:03:34 | [diff] [blame] | 1605 | {"replace-sync-promos-with-sign-in-promos", |
| 1606 | flag_descriptions::kReplaceSyncPromosWithSignInPromosName, |
| 1607 | flag_descriptions::kReplaceSyncPromosWithSignInPromosDescription, |
| 1608 | flags_ui::kOsIos, |
| 1609 | MULTI_VALUE_TYPE(kReplaceSyncPromosWithSignInPromosChoices)}}; |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1610 | |
Rohit Rao | bed794c | 2020-04-27 15:27:45 | [diff] [blame] | 1611 | bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) { |
| 1612 | return false; |
| 1613 | } |
| 1614 | |
| 1615 | flags_ui::FlagsState& GetGlobalFlagsState() { |
| 1616 | static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries, |
| 1617 | nullptr); |
| 1618 | return *flags_state; |
| 1619 | } |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1620 | // Creates the experimental test policies map, used by AsyncPolicyLoader and |
| 1621 | // PolicyLoaderIOS to locally enable policies. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 1622 | NSMutableDictionary* CreateExperimentalTestingPolicies() { |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1623 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 1624 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1625 | // Shared variables for all enterprise experimental flags. |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1626 | NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init]; |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1627 | NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init]; |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1628 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1629 | // Set some sample policy values for testing if EnableSamplePolicies is set to |
| 1630 | // true. |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1631 | if ([defaults boolForKey:@"EnableSamplePolicies"]) { |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1632 | [testing_policies addEntriesFromDictionary:@{ |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1633 | base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO, |
| 1634 | |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1635 | base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO, |
| 1636 | |
| 1637 | // 2 = Disable all variations |
| 1638 | base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2, |
| 1639 | |
| 1640 | // 2 = Do not allow any site to show popups |
| 1641 | base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2, |
| 1642 | |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1643 | // Set default search engine. |
| 1644 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) : |
| 1645 | @YES, |
| 1646 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) : |
| 1647 | @"http://www.google.com/search?q={searchTerms}", |
| 1648 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) : |
Tina Wang | 7cd0a06 | 2020-09-15 21:31:02 | [diff] [blame] | 1649 | @"TestEngine", |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1650 | |
Tina Wang | 89068c84 | 2020-10-29 15:51:50 | [diff] [blame] | 1651 | base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO, |
| 1652 | |
Gauthier Ambard | 21b2370 | 2021-04-16 16:11:27 | [diff] [blame] | 1653 | base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO, |
| 1654 | |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1655 | base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO, |
Tina Wang | 54dddfc2 | 2020-08-20 22:34:53 | [diff] [blame] | 1656 | |
| 1657 | // 2 = Enhanced safe browsing protection |
| 1658 | base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2, |
| 1659 | |
| 1660 | base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES, |
Hira Mahmood | a53b8d63 | 2023-01-03 10:03:29 | [diff] [blame] | 1661 | |
| 1662 | base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO, |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1663 | }]; |
| 1664 | } |
| 1665 | |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1666 | if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) { |
Guillaume Jenkins | fe46d3a | 2021-04-26 19:51:04 | [diff] [blame] | 1667 | NSString* sync_policy_key = |
| 1668 | base::SysUTF8ToNSString(policy::key::kSyncDisabled); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1669 | [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}]; |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1670 | } |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1671 | |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 1672 | // SyncTypesListDisabled policy. |
| 1673 | NSString* Sync_types_list_disabled_key = |
| 1674 | base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled); |
| 1675 | NSMutableArray* Sync_types_list_disabled_values = |
| 1676 | [[NSMutableArray alloc] init]; |
| 1677 | if ([defaults boolForKey:@"SyncTypesListBookmarks"]) { |
| 1678 | [Sync_types_list_disabled_values addObject:@"bookmarks"]; |
| 1679 | } |
| 1680 | if ([defaults boolForKey:@"SyncTypesListReadingList"]) { |
| 1681 | [Sync_types_list_disabled_values addObject:@"readingList"]; |
| 1682 | } |
| 1683 | if ([defaults boolForKey:@"SyncTypesListPreferences"]) { |
| 1684 | [Sync_types_list_disabled_values addObject:@"preferences"]; |
| 1685 | } |
| 1686 | if ([defaults boolForKey:@"SyncTypesListPasswords"]) { |
| 1687 | [Sync_types_list_disabled_values addObject:@"passwords"]; |
| 1688 | } |
| 1689 | if ([defaults boolForKey:@"SyncTypesListAutofill"]) { |
| 1690 | [Sync_types_list_disabled_values addObject:@"autofill"]; |
| 1691 | } |
| 1692 | if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) { |
| 1693 | [Sync_types_list_disabled_values addObject:@"typedUrls"]; |
| 1694 | } |
| 1695 | if ([defaults boolForKey:@"SyncTypesListTabs"]) { |
| 1696 | [Sync_types_list_disabled_values addObject:@"tabs"]; |
| 1697 | } |
| 1698 | if ([Sync_types_list_disabled_values count]) { |
| 1699 | [testing_policies addEntriesFromDictionary:@{ |
| 1700 | Sync_types_list_disabled_key : Sync_types_list_disabled_values |
| 1701 | }]; |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 1702 | } |
| 1703 | |
Gauthier Ambard | 073eaa9 | 2021-11-22 15:24:13 | [diff] [blame] | 1704 | // If an incognito mode availability is set, set the value. |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 1705 | NSString* incognito_policy_key = |
| 1706 | base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability); |
| 1707 | NSInteger incognito_mode_availability = |
| 1708 | [defaults integerForKey:incognito_policy_key]; |
| 1709 | if (incognito_mode_availability) { |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 1710 | [testing_policies addEntriesFromDictionary:@{ |
| 1711 | incognito_policy_key : @(incognito_mode_availability), |
| 1712 | }]; |
| 1713 | } |
| 1714 | |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1715 | NSString* restriction_pattern = |
| 1716 | [defaults stringForKey:@"RestrictAccountsToPatterns"]; |
| 1717 | if ([restriction_pattern length] > 0) { |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 1718 | NSString* restrict_key = |
| 1719 | base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns); |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1720 | [testing_policies addEntriesFromDictionary:@{ |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 1721 | restrict_key : @[ restriction_pattern ] |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1722 | }]; |
| 1723 | } |
| 1724 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 1725 | // If the sign-in policy is set (not "None"), add the policy key to the list |
| 1726 | // of enabled experimental policies, and set the value. |
| 1727 | NSString* const kSigninPolicyKey = @"BrowserSignin"; |
| 1728 | NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey]; |
| 1729 | if (signin_policy_mode) { |
| 1730 | // Remove the mode offset that was used to represent the unset policy. |
| 1731 | --signin_policy_mode; |
| 1732 | DCHECK(signin_policy_mode >= 0); |
| 1733 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 1734 | [testing_policies addEntriesFromDictionary:@{ |
| 1735 | kSigninPolicyKey : @(signin_policy_mode), |
| 1736 | }]; |
| 1737 | } |
| 1738 | |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 1739 | // If the New Tab Page URL is set (not empty) add the value to the list of |
| 1740 | // test policies. |
| 1741 | NSString* ntp_location = [defaults stringForKey:@"NTPLocation"]; |
| 1742 | if ([ntp_location length] > 0) { |
| 1743 | NSString* ntp_location_key = |
| 1744 | base::SysUTF8ToNSString(policy::key::kNewTabPageLocation); |
| 1745 | [testing_policies |
| 1746 | addEntriesFromDictionary:@{ntp_location_key : ntp_location}]; |
Veronique Nguyen | 302d870 | 2022-01-12 21:18:57 | [diff] [blame] | 1747 | [allowed_experimental_policies addObject:ntp_location_key]; |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 1748 | } |
| 1749 | |
Ali Juma | 9ec36d2 | 2022-03-28 14:53:12 | [diff] [blame] | 1750 | if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) { |
| 1751 | NSString* allow_backups_key = |
| 1752 | base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups); |
| 1753 | [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}]; |
| 1754 | [allowed_experimental_policies addObject:allow_backups_key]; |
| 1755 | } |
| 1756 | |
Victor Hugo Vianna Silva | 9e1a730 | 2023-02-21 08:56:24 | [diff] [blame] | 1757 | if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) { |
| 1758 | NSString* password_manager_key = |
| 1759 | base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled); |
| 1760 | [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}]; |
| 1761 | [allowed_experimental_policies addObject:password_manager_key]; |
| 1762 | } |
Arthur Milchior | bb44f5c8 | 2023-03-14 16:14:46 | [diff] [blame] | 1763 | if ([defaults boolForKey:@"AddManagedBookmarks"]) { |
| 1764 | NSString* managed_bookmarks_key = |
| 1765 | base::SysUTF8ToNSString(policy::key::kManagedBookmarks); |
| 1766 | NSString* managed_bookmarks_value = |
Avi Drissman | aa24581 | 2023-04-27 20:20:57 | [diff] [blame] | 1767 | @"[" |
| 1768 | // The following gets filtered out from |
| 1769 | // the JSON string when parsed. |
| 1770 | " {" |
| 1771 | " \"toplevel_name\": \"Managed Bookmarks\"" |
| 1772 | " }," |
| 1773 | " {" |
| 1774 | " \"name\": \"Google\"," |
| 1775 | " \"url\": \"google.com\"" |
| 1776 | " }," |
| 1777 | " {" |
| 1778 | " \"name\": \"Empty Folder\"," |
| 1779 | " \"children\": []" |
| 1780 | " }," |
| 1781 | " {" |
| 1782 | " \"name\": \"Big Folder\"," |
| 1783 | " \"children\": [" |
| 1784 | " {" |
| 1785 | " \"name\": \"Youtube\"," |
| 1786 | " \"url\": \"youtube.com\"" |
| 1787 | " }," |
| 1788 | " {" |
| 1789 | " \"name\": \"Chromium\"," |
| 1790 | " \"url\": \"chromium.org\"" |
| 1791 | " }," |
| 1792 | " {" |
| 1793 | " \"name\": \"More Stuff\"," |
| 1794 | " \"children\": [" |
| 1795 | " {" |
| 1796 | " \"name\": \"Bugs\"," |
| 1797 | " \"url\": \"crbug.com\"" |
| 1798 | " }" |
| 1799 | " ]" |
| 1800 | " }" |
| 1801 | " ]" |
| 1802 | " }" |
| 1803 | "]"; |
Arthur Milchior | bb44f5c8 | 2023-03-14 16:14:46 | [diff] [blame] | 1804 | [testing_policies addEntriesFromDictionary:@{ |
| 1805 | managed_bookmarks_key : managed_bookmarks_value |
| 1806 | }]; |
| 1807 | [allowed_experimental_policies addObject:managed_bookmarks_key]; |
| 1808 | } |
Victor Hugo Vianna Silva | 9e1a730 | 2023-02-21 08:56:24 | [diff] [blame] | 1809 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1810 | // If any experimental policy was allowed, set the EnableExperimentalPolicies |
| 1811 | // policy. |
| 1812 | if ([allowed_experimental_policies count] > 0) { |
| 1813 | [testing_policies setValue:allowed_experimental_policies |
| 1814 | forKey:base::SysUTF8ToNSString( |
| 1815 | policy::key::kEnableExperimentalPolicies)]; |
| 1816 | } |
| 1817 | |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1818 | NSString* metrics_reporting_key = @"MetricsReportingEnabled"; |
| 1819 | switch ([defaults integerForKey:metrics_reporting_key]) { |
| 1820 | case 1: |
| 1821 | // Metrics reporting forced. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 1822 | [testing_policies setValue:@YES forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1823 | break; |
| 1824 | case 2: |
| 1825 | // Metrics reporting disabled. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 1826 | [testing_policies setValue:@NO forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1827 | break; |
| 1828 | default: |
| 1829 | // Metrics reporting not managed. |
| 1830 | break; |
| 1831 | } |
| 1832 | |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 1833 | // Warning: Add new flags to TestingPoliciesHash() below. |
| 1834 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1835 | return testing_policies; |
| 1836 | } |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 1837 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1838 | } // namespace |
| 1839 | |
Gauthier Ambard | 02dbf02 | 2022-08-23 08:28:47 | [diff] [blame] | 1840 | // Add all switches from experimental flags to `command_line`. |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1841 | void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) { |
| 1842 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 1843 | |
| 1844 | // Set the UA flag if UseMobileSafariUA is enabled. |
| 1845 | if ([defaults boolForKey:@"UseMobileSafariUA"]) { |
| 1846 | // Safari uses "Vesion/", followed by the OS version excluding bugfix, where |
| 1847 | // Chrome puts its product token. |
| 1848 | int32_t major = 0; |
| 1849 | int32_t minor = 0; |
| 1850 | int32_t bugfix = 0; |
| 1851 | base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix); |
| 1852 | std::string product = base::StringPrintf("Version/%d.%d", major, minor); |
| 1853 | |
| 1854 | command_line->AppendSwitchASCII(switches::kUserAgent, |
| 1855 | web::BuildMobileUserAgent(product)); |
| 1856 | } |
| 1857 | |
| 1858 | // Shared variables for all enterprise experimental flags. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 1859 | NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies(); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1860 | |
| 1861 | // If a CBCM enrollment token is provided, force Chrome Browser Cloud |
| 1862 | // Management to enabled and add the token to the list of policies. |
| 1863 | NSString* token_key = |
| 1864 | base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken); |
| 1865 | NSString* token = [defaults stringForKey:token_key]; |
| 1866 | |
| 1867 | if ([token length] > 0) { |
| 1868 | command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement); |
| 1869 | [testing_policies setValue:token forKey:token_key]; |
| 1870 | } |
| 1871 | |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1872 | // If some policies were set, commit them to the app's registration defaults. |
| 1873 | if ([testing_policies count] > 0) { |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1874 | NSDictionary* registration_defaults = |
| 1875 | @{kPolicyLoaderIOSConfigurationKey : testing_policies}; |
| 1876 | [defaults registerDefaults:registration_defaults]; |
| 1877 | } |
| 1878 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1879 | // Freeform commandline flags. These are added last, so that any flags added |
| 1880 | // earlier in this function take precedence. |
| 1881 | if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) { |
| 1882 | base::CommandLine::StringVector flags; |
| 1883 | // Append an empty "program" argument. |
| 1884 | flags.push_back(""); |
| 1885 | |
| 1886 | // The number of flags corresponds to the number of text fields in |
| 1887 | // Experimental.plist. |
| 1888 | const int kNumFreeformFlags = 5; |
| 1889 | for (int i = 1; i <= kNumFreeformFlags; ++i) { |
| 1890 | NSString* key = |
| 1891 | [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i]; |
| 1892 | NSString* flag = [defaults stringForKey:key]; |
| 1893 | if ([flag length]) { |
Robbie Gibson | c91ce62 | 2019-05-20 14:44:33 | [diff] [blame] | 1894 | // iOS keyboard replaces -- with —, so undo that. |
| 1895 | flag = [flag stringByReplacingOccurrencesOfString:@"—" |
| 1896 | withString:@"--" |
| 1897 | options:0 |
| 1898 | range:NSMakeRange(0, 1)]; |
| 1899 | // To make things easier, allow flags with no dashes by prepending them |
| 1900 | // here. This also allows for flags that just have one dash if they |
| 1901 | // exist. |
| 1902 | if (![flag hasPrefix:@"-"]) { |
| 1903 | flag = [@"--" stringByAppendingString:flag]; |
| 1904 | } |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1905 | flags.push_back(base::SysNSStringToUTF8(flag)); |
| 1906 | } |
| 1907 | } |
| 1908 | |
| 1909 | base::CommandLine temp_command_line(flags); |
| 1910 | command_line->AppendArguments(temp_command_line, false); |
| 1911 | } |
msarda | fc76f66 | 2017-02-24 12:46:28 | [diff] [blame] | 1912 | |
justincohen | dacc85d | 2017-06-28 23:34:10 | [diff] [blame] | 1913 | // Populate command line flag for 3rd party keyboard omnibox workaround. |
| 1914 | NSString* enableThirdPartyKeyboardWorkaround = |
| 1915 | [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"]; |
| 1916 | if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) { |
| 1917 | command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround); |
| 1918 | } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) { |
| 1919 | command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround); |
| 1920 | } |
| 1921 | |
Sylvain Defresne | d3cd8d9 | 2022-01-18 13:35:08 | [diff] [blame] | 1922 | ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1923 | } |
| 1924 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1925 | void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage, |
| 1926 | base::CommandLine* command_line) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1927 | GetGlobalFlagsState().ConvertFlagsToSwitches( |
sdefresne | c976390 | 2015-12-02 10:30:11 | [diff] [blame] | 1928 | flags_storage, command_line, flags_ui::kAddSentinels, |
Gregory Chatzinoff | f652372 | 2017-11-21 01:33:53 | [diff] [blame] | 1929 | switches::kEnableFeatures, switches::kDisableFeatures); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1930 | } |
| 1931 | |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 1932 | std::vector<std::string> RegisterAllFeatureVariationParameters( |
| 1933 | flags_ui::FlagsStorage* flags_storage, |
| 1934 | base::FeatureList* feature_list) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1935 | return GetGlobalFlagsState().RegisterAllFeatureVariationParameters( |
| 1936 | flags_storage, feature_list); |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 1937 | } |
| 1938 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1939 | void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage, |
| 1940 | flags_ui::FlagAccess access, |
Matt Menke | 4d77757 | 2022-06-15 15:55:50 | [diff] [blame] | 1941 | base::Value::List& supported_entries, |
| 1942 | base::Value::List& unsupported_entries) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1943 | GetGlobalFlagsState().GetFlagFeatureEntries( |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1944 | flags_storage, access, supported_entries, unsupported_entries, |
Renjie Tang | 208c819 | 2020-11-03 00:46:51 | [diff] [blame] | 1945 | base::BindRepeating(&SkipConditionalFeatureEntry)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1946 | } |
| 1947 | |
| 1948 | void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage, |
| 1949 | const std::string& internal_name, |
| 1950 | bool enable) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1951 | GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name, |
| 1952 | enable); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1953 | } |
| 1954 | |
| 1955 | void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1956 | GetGlobalFlagsState().ResetAllFlags(flags_storage); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1957 | } |
| 1958 | |
Nicolas MacBeth | 972e259 | 2023-02-23 15:22:09 | [diff] [blame] | 1959 | bool IsRestartNeededToCommitChanges() { |
| 1960 | return GetGlobalFlagsState().IsRestartNeededToCommitChanges(); |
| 1961 | } |
| 1962 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1963 | namespace testing { |
| 1964 | |
Elly Fong-Jones | 323ab109 | 2021-08-23 22:36:31 | [diff] [blame] | 1965 | base::span<const flags_ui::FeatureEntry> GetFeatureEntries() { |
| 1966 | return base::span<const flags_ui::FeatureEntry>(kFeatureEntries, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 1967 | std::size(kFeatureEntries)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1968 | } |
| 1969 | |
| 1970 | } // namespace testing |