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" |
| 28 | #import "components/breadcrumbs/core/features.h" |
| 29 | #import "components/commerce/core/commerce_feature_list.h" |
| 30 | #import "components/commerce/core/flag_descriptions.h" |
| 31 | #import "components/content_settings/core/common/features.h" |
| 32 | #import "components/dom_distiller/core/dom_distiller_switches.h" |
Raj T | b95d81354 | 2022-11-16 21:27:52 | [diff] [blame] | 33 | #import "components/download/public/background_service/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 34 | #import "components/enterprise/browser/enterprise_switches.h" |
| 35 | #import "components/feature_engagement/public/feature_constants.h" |
| 36 | #import "components/feature_engagement/public/feature_list.h" |
| 37 | #import "components/feed/feed_feature_list.h" |
| 38 | #import "components/flags_ui/feature_entry.h" |
| 39 | #import "components/flags_ui/feature_entry_macros.h" |
| 40 | #import "components/flags_ui/flags_storage.h" |
| 41 | #import "components/flags_ui/flags_ui_switches.h" |
| 42 | #import "components/invalidation/impl/invalidation_switches.h" |
Benjamin Williams | aa8da814 | 2022-11-14 19:51:03 | [diff] [blame] | 43 | #import "components/ntp_tiles/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 44 | #import "components/ntp_tiles/switches.h" |
| 45 | #import "components/omnibox/browser/omnibox_field_trial.h" |
| 46 | #import "components/omnibox/common/omnibox_features.h" |
| 47 | #import "components/optimization_guide/core/optimization_guide_features.h" |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 48 | #import "components/optimization_guide/core/optimization_guide_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 49 | #import "components/password_manager/core/common/password_manager_features.h" |
| 50 | #import "components/payments/core/features.h" |
| 51 | #import "components/policy/core/common/features.h" |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 52 | #import "components/policy/core/common/policy_loader_ios_constants.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 53 | #import "components/policy/policy_constants.h" |
| 54 | #import "components/safe_browsing/core/common/features.h" |
Victor Hugo Vianna Silva | 0399402f | 2021-09-07 21:41:25 | [diff] [blame] | 55 | #import "components/send_tab_to_self/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 56 | #import "components/shared_highlighting/core/common/shared_highlighting_features.h" |
| 57 | #import "components/signin/core/browser/account_reconcilor.h" |
| 58 | #import "components/signin/ios/browser/features.h" |
| 59 | #import "components/signin/public/base/signin_switches.h" |
| 60 | #import "components/strings/grit/components_strings.h" |
| 61 | #import "components/sync/base/command_line_switches.h" |
| 62 | #import "components/sync/base/features.h" |
| 63 | #import "components/sync/base/pref_names.h" |
| 64 | #import "components/translate/core/browser/translate_prefs.h" |
| 65 | #import "components/translate/core/common/translate_util.h" |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 66 | #import "ios/chrome/app/background_mode_buildflags.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 67 | #import "ios/chrome/browser/browsing_data/browsing_data_features.h" |
| 68 | #import "ios/chrome/browser/crash_report/features.h" |
Huiting Yu | a68998d | 2022-12-14 17:47:54 | [diff] [blame] | 69 | #import "ios/chrome/browser/credential_provider_promo/features.h" |
Quentin Pubert | 154fc6a | 2023-01-09 15:58:58 | [diff] [blame] | 70 | #import "ios/chrome/browser/find_in_page/features.h" |
Gauthier Ambard | 9260513 | 2022-08-26 13:25:17 | [diff] [blame] | 71 | #import "ios/chrome/browser/flags/chrome_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 72 | #import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h" |
Gauthier Ambard | 9260513 | 2022-08-26 13:25:17 | [diff] [blame] | 73 | #import "ios/chrome/browser/flags/system_flags.h" |
Ed Chin | 100660bf | 2022-04-26 16:59:13 | [diff] [blame] | 74 | #import "ios/chrome/browser/ntp/features.h" |
Vincent Boisselle | 88fef22 | 2022-09-23 18:54:50 | [diff] [blame] | 75 | #import "ios/chrome/browser/policy/cloud/user_policy_constants.h" |
Vincent Boisselle | ad6cbe2 | 2022-07-04 19:32:39 | [diff] [blame] | 76 | #import "ios/chrome/browser/policy/cloud/user_policy_switch.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 77 | #import "ios/chrome/browser/policy/policy_util.h" |
Benjamin Williams | 14233d7 | 2022-07-26 18:32:20 | [diff] [blame] | 78 | #import "ios/chrome/browser/promos_manager/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 79 | #import "ios/chrome/browser/screen_time/screen_time_buildflags.h" |
Ewann Pelle | 903a05e6 | 2023-02-01 17:51:06 | [diff] [blame] | 80 | #import "ios/chrome/browser/tabs/features.h" |
Aliona DANGLA | 3de5d24 | 2023-02-15 16:52:30 | [diff] [blame] | 81 | #import "ios/chrome/browser/tabs/inactive_tabs/features.h" |
Zhixiang Teoh | 40027a2 | 2022-07-28 03:24:34 | [diff] [blame] | 82 | #import "ios/chrome/browser/text_selection/text_selection_util.h" |
Hira Mahmood | b0e5f41 | 2022-09-01 19:41:05 | [diff] [blame] | 83 | #import "ios/chrome/browser/ui/app_store_rating/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 84 | #import "ios/chrome/browser/ui/autofill/features.h" |
adamta | 22a4d50 | 2020-05-21 03:12:21 | [diff] [blame] | 85 | #import "ios/chrome/browser/ui/content_suggestions/content_suggestions_feature.h" |
Guillem Perez | f131a66 | 2023-02-16 02:20:36 | [diff] [blame] | 86 | #import "ios/chrome/browser/ui/content_suggestions/field_trial_constants.h" |
Javier Ernesto Flores Robles | 209b282 | 2021-03-25 19:16:50 | [diff] [blame] | 87 | #import "ios/chrome/browser/ui/default_promo/default_browser_utils.h" |
Ewann | 1a9d33d | 2021-06-14 11:12:24 | [diff] [blame] | 88 | #import "ios/chrome/browser/ui/download/features.h" |
Chris Lu | 438e1c05 | 2022-08-17 02:57:00 | [diff] [blame] | 89 | #import "ios/chrome/browser/ui/first_run/trending_queries_field_trial.h" |
Kurt Horimoto | 4da682b02 | 2018-04-12 07:43:35 | [diff] [blame] | 90 | #import "ios/chrome/browser/ui/fullscreen/fullscreen_features.h" |
Louis Romero | c18612b96 | 2022-10-07 12:08:14 | [diff] [blame] | 91 | #import "ios/chrome/browser/ui/keyboard/features.h" |
Benjamin Williams | aa8da814 | 2022-11-14 19:51:03 | [diff] [blame] | 92 | #import "ios/chrome/browser/ui/ntp/field_trial_constants.h" |
adamta | 27356847 | 2020-12-04 23:53:57 | [diff] [blame] | 93 | #import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h" |
Christian Xu | b8c06cd | 2022-04-29 20:55:01 | [diff] [blame] | 94 | #import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h" |
Aliona DANGLA | a5257ccc | 2022-08-29 14:01:49 | [diff] [blame] | 95 | #import "ios/chrome/browser/ui/open_in/features.h" |
Robbie Gibson | 686c5673 | 2021-10-04 17:11:45 | [diff] [blame] | 96 | #import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h" |
Benjamin Williams | 3d3a2ec | 2022-09-13 20:01:26 | [diff] [blame] | 97 | #import "ios/chrome/browser/ui/post_restore_signin/features.h" |
gogerald | 0ff29e5 | 2021-02-03 18:56:19 | [diff] [blame] | 98 | #import "ios/chrome/browser/ui/start_surface/start_surface_features.h" |
Kurt Horimoto | 79d590b | 2018-09-12 19:09:28 | [diff] [blame] | 99 | #import "ios/chrome/browser/ui/toolbar_container/toolbar_container_features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 100 | #import "ios/chrome/browser/ui/ui_feature_flags.h" |
Cheick Cisse | 87a51cb | 2022-09-08 21:29:17 | [diff] [blame] | 101 | #import "ios/chrome/browser/ui/whats_new/feature_flags.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 | |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 146 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = { |
| 147 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}}; |
| 148 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = { |
| 149 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}}; |
| 150 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = { |
| 151 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}}; |
| 152 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = { |
| 153 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}}; |
| 154 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = { |
| 155 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}}; |
| 156 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = { |
| 157 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}}; |
| 158 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = { |
| 159 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}}; |
| 160 | |
| 161 | const FeatureEntry::FeatureVariation |
| 162 | kOmniboxUIMaxAutocompleteMatchesVariations[] = { |
| 163 | {"3 matches", kOmniboxUIMaxAutocompleteMatches3, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 164 | std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 165 | {"4 matches", kOmniboxUIMaxAutocompleteMatches4, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 166 | std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 167 | {"5 matches", kOmniboxUIMaxAutocompleteMatches5, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 168 | std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 169 | {"6 matches", kOmniboxUIMaxAutocompleteMatches6, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 170 | std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 171 | {"8 matches", kOmniboxUIMaxAutocompleteMatches8, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 172 | std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 173 | {"10 matches", kOmniboxUIMaxAutocompleteMatches10, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 174 | std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 175 | {"12 matches", kOmniboxUIMaxAutocompleteMatches12, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 176 | std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}}; |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 177 | |
Stepan Khapugin | bac467e | 2022-05-06 21:11:54 | [diff] [blame] | 178 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = { |
| 179 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}}; |
| 180 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = { |
| 181 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}}; |
| 182 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = { |
| 183 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}}; |
| 184 | |
| 185 | const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = { |
| 186 | {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6), |
| 187 | nullptr}, |
| 188 | {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15), |
| 189 | nullptr}, |
| 190 | {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20), |
| 191 | nullptr}, |
| 192 | }; |
| 193 | |
Christian Xu | cf26d56 | 2022-07-06 09:28:36 | [diff] [blame] | 194 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = { |
| 195 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}}; |
| 196 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = { |
| 197 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}}; |
| 198 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = { |
| 199 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}}; |
| 200 | |
| 201 | const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = { |
| 202 | {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5), |
| 203 | nullptr}, |
| 204 | {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6), |
| 205 | nullptr}, |
| 206 | {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7), |
| 207 | nullptr}, |
| 208 | }; |
| 209 | |
Cheick Cisse | f3708790 | 2022-10-07 19:01:41 | [diff] [blame] | 210 | const FeatureEntry::FeatureParam kWhatsNewModuleLayout[] = { |
| 211 | {kWhatsNewModuleBasedLayoutParam, "true"}}; |
| 212 | |
| 213 | const FeatureEntry::FeatureVariation kWhatsNewLayoutVariations[] = { |
| 214 | {"Display module layout", kWhatsNewModuleLayout, |
| 215 | std::size(kWhatsNewModuleLayout), nullptr}, |
| 216 | }; |
| 217 | |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 218 | const FeatureEntry::FeatureParam |
| 219 | kAutofillUseMobileLabelDisambiguationShowAll[] = { |
| 220 | {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName, |
| 221 | autofill::features:: |
| 222 | kAutofillUseMobileLabelDisambiguationParameterShowAll}}; |
| 223 | const FeatureEntry::FeatureParam |
| 224 | kAutofillUseMobileLabelDisambiguationShowOne[] = { |
| 225 | {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName, |
| 226 | autofill::features:: |
| 227 | kAutofillUseMobileLabelDisambiguationParameterShowOne}}; |
| 228 | |
| 229 | const FeatureEntry::FeatureVariation |
| 230 | kAutofillUseMobileLabelDisambiguationVariations[] = { |
| 231 | {"(show all)", kAutofillUseMobileLabelDisambiguationShowAll, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 232 | std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr}, |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 233 | {"(show one)", kAutofillUseMobileLabelDisambiguationShowOne, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 234 | std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}}; |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 235 | |
Javier Ernesto Flores Robles | e85f4a1 | 2021-02-23 18:10:10 | [diff] [blame] | 236 | const FeatureEntry::FeatureParam |
Javier Ernesto Flores Robles | 15941423 | 2021-06-16 14:29:59 | [diff] [blame] | 237 | kDefaultBrowserFullscreenPromoExperimentRemindMeLater[] = { |
| 238 | {kDefaultBrowserFullscreenPromoExperimentRemindMeGroupParam, "true"}}; |
| 239 | const FeatureEntry::FeatureVariation |
| 240 | kDefaultBrowserFullscreenPromoExperimentVariations[] = { |
| 241 | {"Remind me later", |
| 242 | kDefaultBrowserFullscreenPromoExperimentRemindMeLater, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 243 | std::size(kDefaultBrowserFullscreenPromoExperimentRemindMeLater), |
Javier Ernesto Flores Robles | 15941423 | 2021-06-16 14:29:59 | [diff] [blame] | 244 | nullptr}}; |
| 245 | |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 246 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoFullWithTitle[] = { |
adamta | db0bfc6 | 2022-08-01 17:37:47 | [diff] [blame] | 247 | {kDiscoverFeedTopSyncPromoStyleFullWithTitle, "true"}, |
| 248 | {kDiscoverFeedTopSyncPromoStyleCompact, "false"}}; |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 249 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompact[] = { |
adamta | db0bfc6 | 2022-08-01 17:37:47 | [diff] [blame] | 250 | {kDiscoverFeedTopSyncPromoStyleFullWithTitle, "false"}, |
| 251 | {kDiscoverFeedTopSyncPromoStyleCompact, "true"}}; |
| 252 | |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 253 | const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = { |
| 254 | {"Full with title", kDiscoverFeedTopSyncPromoFullWithTitle, |
| 255 | std::size(kDiscoverFeedTopSyncPromoFullWithTitle), nullptr}, |
| 256 | {"Compact", kDiscoverFeedTopSyncPromoCompact, |
| 257 | std::size(kDiscoverFeedTopSyncPromoCompact), nullptr}}; |
| 258 | |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 259 | const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = { |
| 260 | {kDisableStickyHeaderForFollowingFeed, "true"}}; |
| 261 | const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = { |
| 262 | {kOverrideFeedHeaderHeight, "43"}}; |
| 263 | const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = { |
| 264 | {kDisableStickyHeaderForFollowingFeed, "true"}, |
| 265 | {kOverrideFeedHeaderHeight, "43"}}; |
| 266 | |
| 267 | const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = { |
| 268 | {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader, |
| 269 | std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr}, |
| 270 | {"Reduced header height", kFeedHeaderSettingReducedHeight, |
| 271 | std::size(kFeedHeaderSettingReducedHeight), nullptr}, |
| 272 | {"All improvements", kFeedHeaderSettingAllImprovements, |
| 273 | std::size(kFeedHeaderSettingAllImprovements), nullptr}}; |
| 274 | |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 275 | const FeatureEntry::FeatureParam kStartSurfaceTenSecondsShrinkLogo[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 276 | {kStartSurfaceShrinkLogoParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 277 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 278 | const FeatureEntry::FeatureParam kStartSurfaceTenSecondsHideShortcuts[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 279 | {kStartSurfaceHideShortcutsParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 280 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 281 | const FeatureEntry::FeatureParam kStartSurfaceTenSecondsReturnToRecentTab[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 282 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 283 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 284 | const FeatureEntry::FeatureParam |
| 285 | kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab[] = { |
| 286 | {kStartSurfaceShrinkLogoParam, "true"}, |
| 287 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
| 288 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 289 | const FeatureEntry::FeatureParam |
| 290 | kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab[] = { |
| 291 | {kStartSurfaceHideShortcutsParam, "true"}, |
| 292 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
| 293 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
| 294 | const FeatureEntry::FeatureParam kStartSurfaceOneHourShrinkLogo[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 295 | {kStartSurfaceShrinkLogoParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 296 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
| 297 | const FeatureEntry::FeatureParam kStartSurfaceOneHourHideShortcuts[] = { |
| 298 | {kStartSurfaceHideShortcutsParam, "true"}, |
| 299 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
| 300 | const FeatureEntry::FeatureParam kStartSurfaceOneHourReturnToRecentTab[] = { |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 301 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 302 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
| 303 | const FeatureEntry::FeatureParam |
| 304 | kStartSurfaceOneHourShrinkLogoReturnToRecentTab[] = { |
| 305 | {kStartSurfaceShrinkLogoParam, "true"}, |
| 306 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
| 307 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
| 308 | const FeatureEntry::FeatureParam |
| 309 | kStartSurfaceOneHourHideShortcutsReturnToRecentTab[] = { |
| 310 | {kStartSurfaceHideShortcutsParam, "true"}, |
| 311 | {kStartSurfaceReturnToRecentTabParam, "true"}, |
| 312 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 313 | |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 314 | const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = { |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 315 | {"10s:Show Return to Recent Tab tile", |
| 316 | kStartSurfaceTenSecondsReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 317 | std::size(kStartSurfaceTenSecondsReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 318 | {"10s:Shrink Logo", kStartSurfaceTenSecondsShrinkLogo, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 319 | std::size(kStartSurfaceTenSecondsShrinkLogo), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 320 | {"10s:Hide Shortcuts", kStartSurfaceTenSecondsHideShortcuts, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 321 | std::size(kStartSurfaceTenSecondsHideShortcuts), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 322 | {"10s:Shrink Logo and show Return to Recent Tab tile", |
| 323 | kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 324 | std::size(kStartSurfaceTenSecondsShrinkLogoReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 325 | {"10s:Hide Shortcuts and show Return to Recent Tab tile", |
| 326 | kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 327 | std::size(kStartSurfaceTenSecondsHideShortcutsReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 328 | {"1h:Show Return to Recent Tab tile", kStartSurfaceOneHourReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 329 | std::size(kStartSurfaceOneHourReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 330 | {"1h:Shrink Logo", kStartSurfaceOneHourShrinkLogo, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 331 | std::size(kStartSurfaceOneHourShrinkLogo), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 332 | {"1h:Hide Shortcuts", kStartSurfaceOneHourHideShortcuts, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 333 | std::size(kStartSurfaceOneHourHideShortcuts), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 334 | {"1h:Shrink Logo and show Return to Recent Tab tile", |
| 335 | kStartSurfaceOneHourShrinkLogoReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 336 | std::size(kStartSurfaceOneHourShrinkLogoReturnToRecentTab), nullptr}, |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 337 | {"1h:Hide Shortcuts and show Return to Recent Tab tile", |
| 338 | kStartSurfaceOneHourHideShortcutsReturnToRecentTab, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 339 | std::size(kStartSurfaceOneHourHideShortcutsReturnToRecentTab), nullptr}, |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 340 | }; |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 341 | |
Chris Lu | 8e308dc | 2022-09-06 16:59:40 | [diff] [blame] | 342 | const FeatureEntry::FeatureParam kModuleRefreshMinimizeSpacing[] = { |
| 343 | {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"}}; |
| 344 | const FeatureEntry::FeatureParam kModuleRefreshNoHeaders[] = { |
Chris Lu | 264e237 | 2022-09-08 13:12:57 | [diff] [blame] | 345 | {kContentSuggestionsUIModuleRefreshMinimizeSpacingParam, "true"}, |
Chris Lu | 8e308dc | 2022-09-06 16:59:40 | [diff] [blame] | 346 | {kContentSuggestionsUIModuleRefreshRemoveHeadersParam, "true"}}; |
| 347 | |
| 348 | const FeatureEntry::FeatureVariation kModuleRefreshVariations[] = { |
| 349 | {"Enabled with minimized spacing", kModuleRefreshMinimizeSpacing, |
| 350 | std::size(kModuleRefreshMinimizeSpacing), nullptr}, |
Chris Lu | 264e237 | 2022-09-08 13:12:57 | [diff] [blame] | 351 | {"Enabled with no headers and minimized spacing", kModuleRefreshNoHeaders, |
Chris Lu | 8e308dc | 2022-09-06 16:59:40 | [diff] [blame] | 352 | std::size(kModuleRefreshNoHeaders), nullptr}, |
| 353 | }; |
| 354 | |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 355 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 356 | // Feed Background Refresh Feature Params. |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 357 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 358 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 359 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 360 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 361 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 362 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 363 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 364 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 365 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 366 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 367 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 368 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 369 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 370 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 371 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 372 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 373 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 374 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 375 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 376 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 377 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 378 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 379 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 380 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 381 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 382 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 383 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 384 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 385 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 386 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 387 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = { |
| 388 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 389 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
| 390 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 391 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 392 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = { |
| 393 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 394 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
| 395 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 396 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 397 | |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 398 | // Feed Background Refresh Feature Variations. |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 399 | const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = { |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 400 | {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce, |
| 401 | std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr}, |
| 402 | {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce, |
| 403 | std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr}, |
| 404 | {"1hr Interval 1hr Max Age Recurring", |
| 405 | kOneHourIntervalOneHourMaxAgeRecurring, |
| 406 | std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr}, |
| 407 | {"4hr Interval 6hr Max Age Recurring", |
| 408 | kFourHourIntervalSixHourMaxAgeRecurring, |
| 409 | std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr}, |
| 410 | {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce, |
| 411 | std::size(kServerDrivenOneHourMaxAgeOnce), nullptr}, |
| 412 | {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring, |
| 413 | std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr}, |
| 414 | {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce, |
| 415 | std::size(kServerDrivenSixHourMaxAgeOnce), nullptr}, |
| 416 | {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring, |
| 417 | std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 418 | }; |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 419 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 420 | |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 421 | // Feed Foreground Refresh Feature Params. |
| 422 | const FeatureEntry::FeatureParam kFeedRefreshPostFeedSessionOnly[] = { |
| 423 | {kEnableFeedRefreshPostFeedSession, "true"}, |
| 424 | {kEnableFeedRefreshOnAppBackgrounding, "false"}}; |
| 425 | const FeatureEntry::FeatureParam kFeedRefreshOnAppBackgroundingOnly[] = { |
| 426 | {kEnableFeedRefreshPostFeedSession, "false"}, |
| 427 | {kEnableFeedRefreshOnAppBackgrounding, "true"}}; |
| 428 | const FeatureEntry::FeatureParam kFeedForegroundRefreshAll[] = { |
| 429 | {kEnableFeedRefreshPostFeedSession, "true"}, |
| 430 | {kEnableFeedRefreshOnAppBackgrounding, "true"}}; |
| 431 | |
| 432 | // Feed Foreground Refresh Feature Variations. |
| 433 | const FeatureEntry::FeatureVariation kFeedForegroundRefreshVariations[] = { |
| 434 | {"Post Feed session", kFeedRefreshPostFeedSessionOnly, |
| 435 | std::size(kFeedRefreshPostFeedSessionOnly), nullptr}, |
| 436 | {"On app backgrounding", kFeedRefreshOnAppBackgroundingOnly, |
| 437 | std::size(kFeedRefreshOnAppBackgroundingOnly), nullptr}, |
| 438 | {"All foreground refresh methods", kFeedForegroundRefreshAll, |
| 439 | std::size(kFeedForegroundRefreshAll), nullptr}, |
| 440 | }; |
| 441 | |
Chris Lu | c9a5cb1 | 2022-07-20 16:11:39 | [diff] [blame] | 442 | const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsers[] = { |
Chris Lu | 85e8cc64 | 2022-09-23 20:27:58 | [diff] [blame] | 443 | {kTrendingQueriesHideShortcutsParam, "false"}}; |
Chris Lu | c9a5cb1 | 2022-07-20 16:11:39 | [diff] [blame] | 444 | const FeatureEntry::FeatureParam kTrendingQueriesEnableAllUsersHideShortcuts[] = |
Chris Lu | 85e8cc64 | 2022-09-23 20:27:58 | [diff] [blame] | 445 | {{kTrendingQueriesHideShortcutsParam, "true"}}; |
Chris Lu | c9a5cb1 | 2022-07-20 16:11:39 | [diff] [blame] | 446 | const FeatureEntry::FeatureParam kTrendingQueriesEnableFeedDisabled[] = { |
| 447 | {kTrendingQueriesHideShortcutsParam, "false"}, |
| 448 | {kTrendingQueriesDisabledFeedParam, "true"}, |
Chris Lu | 85e8cc64 | 2022-09-23 20:27:58 | [diff] [blame] | 449 | }; |
Chris Lu | c9a5cb1 | 2022-07-20 16:11:39 | [diff] [blame] | 450 | |
| 451 | const FeatureEntry::FeatureVariation kTrendingQueriesModuleVariations[] = { |
| 452 | {"Enabled All Users", kTrendingQueriesEnableAllUsers, |
| 453 | std::size(kTrendingQueriesEnableAllUsers), nullptr}, |
| 454 | {"Enabled All Users Hide Shortcuts", |
| 455 | kTrendingQueriesEnableAllUsersHideShortcuts, |
| 456 | std::size(kTrendingQueriesEnableAllUsersHideShortcuts), nullptr}, |
| 457 | {"Enabled Disabled Feed", kTrendingQueriesEnableFeedDisabled, |
| 458 | std::size(kTrendingQueriesEnableFeedDisabled), nullptr}, |
Chris Lu | c9a5cb1 | 2022-07-20 16:11:39 | [diff] [blame] | 459 | }; |
| 460 | |
Igor Ruvinov | 44fed9f | 2022-06-10 22:51:42 | [diff] [blame] | 461 | const FeatureEntry::FeatureParam kDmTokenDeletionParam[] = {{"forced", "true"}}; |
| 462 | const FeatureEntry::FeatureVariation kDmTokenDeletionVariation[] = { |
| 463 | {"(Forced)", kDmTokenDeletionParam, std::size(kDmTokenDeletionParam), |
| 464 | nullptr}}; |
| 465 | |
Aliona DANGLA | 00ae7db | 2022-10-04 16:58:50 | [diff] [blame] | 466 | const FeatureEntry::FeatureParam kOpenInDownloadInShareButton[] = { |
Ewann Pelle | ec8ef89 | 2022-10-20 13:13:58 | [diff] [blame] | 467 | {kOpenInDownloadParameterName, kOpenInDownloadInShareButtonParam}}; |
Aliona DANGLA | a5257ccc | 2022-08-29 14:01:49 | [diff] [blame] | 468 | const FeatureEntry::FeatureParam kOpenInDownloadWithWKDownload[] = { |
Ewann Pelle | ec8ef89 | 2022-10-20 13:13:58 | [diff] [blame] | 469 | {kOpenInDownloadParameterName, kOpenInDownloadWithWKDownloadParam}}; |
Aliona DANGLA | a5257ccc | 2022-08-29 14:01:49 | [diff] [blame] | 470 | const FeatureEntry::FeatureParam kOpenInDownloadWithV2[] = { |
Ewann Pelle | ec8ef89 | 2022-10-20 13:13:58 | [diff] [blame] | 471 | {kOpenInDownloadParameterName, kOpenInDownloadWithV2Param}}; |
| 472 | |
Aliona DANGLA | a5257ccc | 2022-08-29 14:01:49 | [diff] [blame] | 473 | const FeatureEntry::FeatureVariation kOpenInDownloadVariations[] = { |
Aliona DANGLA | 00ae7db | 2022-10-04 16:58:50 | [diff] [blame] | 474 | {"With legacy download", kOpenInDownloadInShareButton, |
| 475 | std::size(kOpenInDownloadInShareButton), nullptr}, |
Aliona DANGLA | a5257ccc | 2022-08-29 14:01:49 | [diff] [blame] | 476 | {"With WKDownload", kOpenInDownloadWithWKDownload, |
| 477 | std::size(kOpenInDownloadWithWKDownload), nullptr}, |
| 478 | {"With V2", kOpenInDownloadWithV2, std::size(kOpenInDownloadWithV2), |
| 479 | nullptr}, |
| 480 | }; |
| 481 | |
Ewann Pelle | 87019cdf | 2023-02-17 14:28:16 | [diff] [blame] | 482 | const FeatureEntry::FeatureParam kEnablePinnedTabsOverflow[] = { |
| 483 | {kEnablePinnedTabsOverflowParam, "true"}}; |
Ewann Pelle | 3774cac53 | 2022-11-15 10:12:37 | [diff] [blame] | 484 | |
| 485 | const FeatureEntry::FeatureVariation kEnablePinnedTabsVariations[] = { |
Ewann Pelle | 87019cdf | 2023-02-17 14:28:16 | [diff] [blame] | 486 | {"+ overflow entry", kEnablePinnedTabsOverflow, |
| 487 | std::size(kEnablePinnedTabsOverflow), nullptr}, |
Ewann Pelle | 3774cac53 | 2022-11-15 10:12:37 | [diff] [blame] | 488 | }; |
| 489 | |
ginnnnnnny | 591a497 | 2022-09-01 16:10:27 | [diff] [blame] | 490 | const FeatureEntry::FeatureParam kAutofillBrandingIOSMonotone[] = { |
| 491 | {autofill::features::kAutofillBrandingIOSParam, "true"}}; |
| 492 | const FeatureEntry::FeatureVariation kAutofillBrandingIOSVariations[] = { |
| 493 | {"(Monotone)", kAutofillBrandingIOSMonotone, |
| 494 | std::size(kAutofillBrandingIOSMonotone), nullptr}}; |
| 495 | |
Scott Yoder | cb2fe63 | 2022-09-12 15:28:35 | [diff] [blame] | 496 | const FeatureEntry::FeatureParam kIOSNewPostRestoreExperienceMinimal[] = { |
Benjamin Williams | 3d3a2ec | 2022-09-13 20:01:26 | [diff] [blame] | 497 | {post_restore_signin::features::kIOSNewPostRestoreExperienceParam, "true"}}; |
Scott Yoder | cb2fe63 | 2022-09-12 15:28:35 | [diff] [blame] | 498 | const FeatureEntry::FeatureVariation kIOSNewPostRestoreExperienceVariations[] = |
| 499 | {{"minimal", kIOSNewPostRestoreExperienceMinimal, |
| 500 | std::size(kIOSNewPostRestoreExperienceMinimal), nullptr}}; |
| 501 | |
Benjamin Williams | aa8da814 | 2022-11-14 19:51:03 | [diff] [blame] | 502 | const FeatureEntry::FeatureParam kIOSPopularSitesExcludePopularApps[] = { |
| 503 | {ntp_tiles::kIOSPopularSitesExcludePopularAppsParam, "true"}}; |
| 504 | const FeatureEntry::FeatureVariation |
| 505 | kIOSPopularSitesImprovedSuggestionsVariations[] = { |
| 506 | {"(Exclude popular apps)", kIOSPopularSitesExcludePopularApps, |
| 507 | std::size(kIOSPopularSitesExcludePopularApps), nullptr}}; |
| 508 | |
Elmehdi Rahmaoui | 3d549fc | 2022-10-20 14:31:28 | [diff] [blame] | 509 | const FeatureEntry::FeatureParam kEnableExperienceKitMapsWithSrp[] = { |
| 510 | {kExperienceKitMapsVariationName, kEnableExperienceKitMapsVariationSrp}}; |
| 511 | const FeatureEntry::FeatureVariation kEnableExperienceKitMapsVariations[] = { |
| 512 | {"with search result page", kEnableExperienceKitMapsWithSrp, |
| 513 | std::size(kEnableExperienceKitMapsWithSrp), nullptr}}; |
| 514 | |
adamta | 3811f918 | 2022-10-24 17:49:33 | [diff] [blame] | 515 | const FeatureEntry::FeatureParam kFollowingFeedSortTypeGroupedByPublisher[] = { |
| 516 | {kFollowingFeedDefaultSortTypeGroupedByPublisher, "true"}, |
| 517 | {kFollowingFeedDefaultSortTypeSortByLatest, "false"}}; |
| 518 | const FeatureEntry::FeatureParam kFollowingFeedSortTypeSortByLatest[] = { |
| 519 | {kFollowingFeedDefaultSortTypeGroupedByPublisher, "false"}, |
| 520 | {kFollowingFeedDefaultSortTypeSortByLatest, "true"}}; |
| 521 | |
| 522 | const FeatureEntry::FeatureVariation kFollowingFeedDefaultSortTypeVariations[] = |
| 523 | {{"Grouped by Publisher", kFollowingFeedSortTypeGroupedByPublisher, |
| 524 | std::size(kFollowingFeedSortTypeGroupedByPublisher), nullptr}, |
| 525 | {"Sort by Latest", kFollowingFeedSortTypeSortByLatest, |
| 526 | std::size(kFollowingFeedSortTypeSortByLatest), nullptr}}; |
| 527 | |
Quentin Pubert | 154fc6a | 2023-01-09 15:58:58 | [diff] [blame] | 528 | const FeatureEntry::FeatureParam kNativeFindInPageWithChromeFindBar[] = { |
| 529 | {kNativeFindInPageParameterName, kNativeFindInPageWithChromeFindBarParam}}; |
| 530 | const FeatureEntry::FeatureVariation kNativeFindInPageVariations[] = { |
| 531 | {"With Chrome Find Bar", kNativeFindInPageWithChromeFindBar, |
| 532 | std::size(kNativeFindInPageWithChromeFindBar), nullptr}}; |
| 533 | |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 534 | const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = { |
| 535 | {kTabInactivityThresholdParameterName, |
| 536 | kTabInactivityThresholdOneWeekParam}}; |
| 537 | const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = { |
| 538 | {kTabInactivityThresholdParameterName, |
| 539 | kTabInactivityThresholdTwoWeeksParam}}; |
| 540 | const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = { |
| 541 | {kTabInactivityThresholdParameterName, |
| 542 | kTabInactivityThresholdThreeWeeksParam}}; |
| 543 | |
| 544 | const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = { |
| 545 | {"One week", kTabInactivityThresholdOneWeek, |
| 546 | std::size(kTabInactivityThresholdOneWeek), nullptr}, |
| 547 | {"Two weeks", kTabInactivityThresholdTwoWeeks, |
| 548 | std::size(kTabInactivityThresholdTwoWeeks), nullptr}, |
| 549 | {"Three weeks", kTabInactivityThresholdThreeWeeks, |
| 550 | std::size(kTabInactivityThresholdThreeWeeks), nullptr}, |
| 551 | }; |
| 552 | |
Guillem Perez | f131a66 | 2023-02-16 02:20:36 | [diff] [blame] | 553 | const FeatureEntry::FeatureParam kTileAblationMVTOnlyForNewUsers[] = { |
| 554 | {kTileAblationMVTAndShortcutsForNewUsersParam, "true"}}; |
| 555 | const FeatureEntry::FeatureVariation |
| 556 | kTileAblationMVTAndShortcutsForNewUsersVariations[] = { |
| 557 | {"Hide Only Most Visited", kTileAblationMVTOnlyForNewUsers, |
| 558 | std::size(kTileAblationMVTOnlyForNewUsers), nullptr}}; |
| 559 | |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 560 | const FeatureEntry::FeatureParam |
| 561 | kCredentialProviderExtensionPromoOnPasswordSaved[] = { |
| 562 | {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}}; |
| 563 | const FeatureEntry::FeatureParam |
| 564 | kCredentialProviderExtensionPromoOnPasswordCopied[] = { |
| 565 | {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}}; |
| 566 | const FeatureEntry::FeatureParam |
| 567 | kCredentialProviderExtensionPromoOnLoginWithAutofill[] = { |
| 568 | {kCredentialProviderExtensionPromoOnLoginWithAutofillParam, "true"}}; |
| 569 | |
| 570 | const FeatureEntry::FeatureVariation |
| 571 | kCredentialProviderExtensionPromoVariations[] = { |
| 572 | {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved, |
| 573 | std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr}, |
| 574 | {"On password copied", |
| 575 | kCredentialProviderExtensionPromoOnPasswordCopied, |
| 576 | std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr}, |
| 577 | {"On successful login with autofill", |
| 578 | kCredentialProviderExtensionPromoOnLoginWithAutofill, |
| 579 | std::size(kCredentialProviderExtensionPromoOnLoginWithAutofill), |
| 580 | nullptr}, |
| 581 | }; |
| 582 | |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 583 | // To add a new entry, add to the end of kFeatureEntries. There are four |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 584 | // distinct types of entries: |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 585 | // . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the |
| 586 | // default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 587 | // macro for this type supplying the command line to the macro. |
| 588 | // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
| 589 | // deactivated state for this lab (i.e. no command line option). To specify |
| 590 | // this type of entry use the macro MULTI_VALUE_TYPE supplying it the |
| 591 | // array of choices. |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 592 | // . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is |
| 593 | // either enabled, disabled, or uses the default value of the associated |
| 594 | // base::Feature instance. To specify this type of entry use the macro |
| 595 | // FEATURE_VALUE_TYPE supplying it the base::Feature instance. |
| 596 | // . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a |
| 597 | // base::Feature instance. Choices corresponding to the default state, a |
| 598 | // universally enabled state, and a universally disabled state are |
| 599 | // automatically included. To specify this type of entry use the macro |
| 600 | // FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and |
| 601 | // the array of choices. |
| 602 | // |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 603 | // See the documentation of FeatureEntry for details on the fields. |
| 604 | // |
| 605 | // When adding a new choice, add it to the end of the list. |
| 606 | const flags_ui::FeatureEntry kFeatureEntries[] = { |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 607 | {"in-product-help-demo-mode-choice", |
| 608 | flag_descriptions::kInProductHelpDemoModeName, |
| 609 | flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos, |
| 610 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
Tommy Nyquist | c1d6dea1 | 2017-07-26 20:37:23 | [diff] [blame] | 611 | feature_engagement::kIPHDemoMode, |
| 612 | feature_engagement::kIPHDemoModeChoiceVariations, |
Marc Treib | 2752e8b | 2017-08-04 14:12:09 | [diff] [blame] | 613 | "IPH_DemoMode")}, |
Moe Ahmadi | c3fd7cd | 2018-05-11 21:40:22 | [diff] [blame] | 614 | {"enable-autofill-credit-card-upload", |
| 615 | flag_descriptions::kAutofillCreditCardUploadName, |
| 616 | flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos, |
Anne Lim | 579b573 | 2018-08-30 18:24:24 | [diff] [blame] | 617 | FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)}, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 618 | {"use-sync-sandbox", flag_descriptions::kSyncSandboxName, |
| 619 | flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos, |
| 620 | SINGLE_VALUE_TYPE_AND_VALUE( |
Victor Hugo Vianna Silva | 3cd7ae9 | 2022-02-09 20:49:51 | [diff] [blame] | 621 | syncer::kSyncServiceURL, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 622 | "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")}, |
| 623 | {"wallet-service-use-sandbox", |
| 624 | flag_descriptions::kWalletServiceUseSandboxName, |
| 625 | flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos, |
| 626 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
| 627 | autofill::switches::kWalletServiceUseSandbox, |
| 628 | "1", |
| 629 | autofill::switches::kWalletServiceUseSandbox, |
| 630 | "0")}, |
Mohamad Ahmadi | c4df81f | 2017-12-20 04:41:59 | [diff] [blame] | 631 | {"show-autofill-type-predictions", |
| 632 | flag_descriptions::kShowAutofillTypePredictionsName, |
| 633 | flag_descriptions::kShowAutofillTypePredictionsDescription, |
| 634 | flags_ui::kOsIos, |
Florian Leimgruber | f53ca39 | 2023-02-21 15:56:50 | [diff] [blame] | 635 | FEATURE_VALUE_TYPE( |
| 636 | autofill::features::test::kAutofillShowTypePredictions)}, |
Vidhan Jain | cbb3d53f | 2023-01-23 19:13:26 | [diff] [blame] | 637 | {"autofill-account-profiles-union-view", |
| 638 | flag_descriptions::kAutofillAccountProfilesUnionViewName, |
| 639 | flag_descriptions::kAutofillAccountProfilesUnionViewDescription, |
| 640 | flags_ui::kOsIos, |
| 641 | FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfilesUnionView)}, |
Olivier Robin | 3d6041162 | 2018-02-23 10:03:22 | [diff] [blame] | 642 | {"autofill-ios-delay-between-fields", |
| 643 | flag_descriptions::kAutofillIOSDelayBetweenFieldsName, |
| 644 | flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription, |
| 645 | flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)}, |
Benjamin Williams | 14233d7 | 2022-07-26 18:32:20 | [diff] [blame] | 646 | {"fullscreen-promos-manager", |
| 647 | flag_descriptions::kFullscreenPromosManagerName, |
| 648 | flag_descriptions::kFullscreenPromosManagerDescription, flags_ui::kOsIos, |
| 649 | FEATURE_VALUE_TYPE(kFullscreenPromosManager)}, |
Benjamin Williams | df18e7e | 2022-10-03 18:46:05 | [diff] [blame] | 650 | {"fullscreen-promos-manager-skip-internal-limits", |
| 651 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName, |
| 652 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription, |
| 653 | flags_ui::kOsIos, |
| 654 | FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)}, |
Kurt Horimoto | dc33af3 | 2018-05-01 01:39:14 | [diff] [blame] | 655 | {"fullscreen-viewport-adjustment-experiment", |
Chris Lu | 481a932 | 2019-09-25 22:16:53 | [diff] [blame] | 656 | flag_descriptions::kFullscreenSmoothScrollingName, |
| 657 | flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos, |
| 658 | FEATURE_VALUE_TYPE(fullscreen::features::kSmoothScrollingDefault)}, |
Robbie Gibson | 1f37a5e | 2020-08-06 17:03:06 | [diff] [blame] | 659 | {"webpage-default-zoom-from-dynamic-type", |
| 660 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName, |
| 661 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription, |
| 662 | flags_ui::kOsIos, |
| 663 | FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)}, |
Robbie Gibson | 88f2396 | 2020-09-28 14:35:56 | [diff] [blame] | 664 | {"webpage-alternative-text-zoom", |
| 665 | flag_descriptions::kWebPageAlternativeTextZoomName, |
| 666 | flag_descriptions::kWebPageAlternativeTextZoomDescription, |
| 667 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)}, |
Robbie Gibson | 1095b72c | 2022-06-06 17:03:34 | [diff] [blame] | 668 | {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName, |
| 669 | flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos, |
| 670 | FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)}, |
Kurt Horimoto | 79d590b | 2018-09-12 19:09:28 | [diff] [blame] | 671 | {"toolbar-container", flag_descriptions::kToolbarContainerName, |
| 672 | flag_descriptions::kToolbarContainerDescription, flags_ui::kOsIos, |
| 673 | FEATURE_VALUE_TYPE(toolbar_container::kToolbarContainerEnabled)}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 674 | {"omnibox-ui-max-autocomplete-matches", |
| 675 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName, |
| 676 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription, |
| 677 | flags_ui::kOsIos, |
| 678 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 679 | omnibox::kUIExperimentMaxAutocompleteMatches, |
| 680 | kOmniboxUIMaxAutocompleteMatchesVariations, |
| 681 | "OmniboxUIMaxAutocompleteVariations")}, |
Moe Ahmadi | 01028f2 | 2022-08-06 17:57:35 | [diff] [blame] | 682 | {"omnibox-local-history-zero-suggest-beyond-ntp", |
| 683 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName, |
| 684 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription, |
| 685 | flags_ui::kOsIos, |
| 686 | FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)}, |
Stepan Khapugin | bac467e | 2022-05-06 21:11:54 | [diff] [blame] | 687 | {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName, |
| 688 | flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos, |
| 689 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches, |
| 690 | kOmniboxMaxZPSMatchesVariations, |
| 691 | "OmniboxMaxZPSVariations")}, |
Stepan Khapugin | d987684 | 2023-01-27 17:59:45 | [diff] [blame] | 692 | |
| 693 | {"omnibox-most-visited-tiles-on-srp", |
| 694 | flag_descriptions::kOmniboxMostVisitedTilesOnSrpName, |
| 695 | flag_descriptions::kOmniboxMostVisitedTilesOnSrpDescription, |
| 696 | flags_ui::kOsIos, |
| 697 | FEATURE_VALUE_TYPE(omnibox::kOmniboxMostVisitedTilesOnSrp)}, |
Caitlin Fischer | 43edd90a | 2019-05-01 13:24:30 | [diff] [blame] | 698 | {"autofill-use-mobile-label-disambiguation", |
| 699 | flag_descriptions::kAutofillUseMobileLabelDisambiguationName, |
| 700 | flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription, |
| 701 | flags_ui::kOsIos, |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 702 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 703 | autofill::features::kAutofillUseMobileLabelDisambiguation, |
| 704 | kAutofillUseMobileLabelDisambiguationVariations, |
| 705 | "AutofillUseMobileLabelDisambiguation")}, |
Mike Dougherty | b6c770d | 2019-09-13 22:56:46 | [diff] [blame] | 706 | {"ios-breadcrumbs", flag_descriptions::kLogBreadcrumbsName, |
| 707 | flag_descriptions::kLogBreadcrumbsDescription, flags_ui::kOsIos, |
Jesse McKenna | 85c1a59f | 2021-05-05 19:08:30 | [diff] [blame] | 708 | FEATURE_VALUE_TYPE(breadcrumbs::kLogBreadcrumbs)}, |
Jérôme Lebel | c374fdd | 2019-09-27 10:36:48 | [diff] [blame] | 709 | {"force-startup-signin-promo", |
| 710 | flag_descriptions::kForceStartupSigninPromoName, |
| 711 | flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos, |
Alice Wang | 345e0944 | 2021-07-05 09:03:29 | [diff] [blame] | 712 | FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)}, |
Tanmoy Mollik | 429d21a | 2022-11-28 15:42:06 | [diff] [blame] | 713 | {"identity-status-consistency", |
| 714 | flag_descriptions::kIdentityStatusConsistencyName, |
| 715 | flag_descriptions::kIdentityStatusConsistencyDescription, flags_ui::kOsIos, |
| 716 | FEATURE_VALUE_TYPE(switches::kIdentityStatusConsistency)}, |
Yoichi Osato | 7ae1175 | 2021-03-16 03:27:22 | [diff] [blame] | 717 | {"restore-session-from-cache", |
| 718 | flag_descriptions::kRestoreSessionFromCacheName, |
| 719 | flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos, |
Justin Cohen | 3ec2522c | 2021-04-23 18:23:49 | [diff] [blame] | 720 | FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)}, |
Roberto Moura | b87b972 | 2020-06-17 17:12:09 | [diff] [blame] | 721 | {"expanded-tab-strip", flag_descriptions::kExpandedTabStripName, |
| 722 | flag_descriptions::kExpandedTabStripDescription, flags_ui::kOsIos, |
| 723 | FEATURE_VALUE_TYPE(kExpandedTabStrip)}, |
Tommy Martino | 6b4eb7e | 2020-06-25 18:25:41 | [diff] [blame] | 724 | {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName, |
| 725 | flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos, |
| 726 | FEATURE_VALUE_TYPE(kSharedHighlightingIOS)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 727 | #if BUILDFLAG(IOS_SCREEN_TIME_ENABLED) |
edchin | 81467b8 | 2020-09-03 19:31:45 | [diff] [blame] | 728 | {"screen-time-integration-ios", |
| 729 | flag_descriptions::kScreenTimeIntegrationName, |
| 730 | flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos, |
| 731 | FEATURE_VALUE_TYPE(kScreenTimeIntegration)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 732 | #endif |
Nazerke | 3e993f7 | 2020-09-21 13:00:06 | [diff] [blame] | 733 | {"modern-tab-strip", flag_descriptions::kModernTabStripName, |
| 734 | flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos, |
| 735 | FEATURE_VALUE_TYPE(kModernTabStrip)}, |
Eugene But | f869bff | 2020-12-10 01:16:55 | [diff] [blame] | 736 | {"record-snapshot-size", flag_descriptions::kRecordSnapshotSizeName, |
| 737 | flag_descriptions::kRecordSnapshotSizeDescription, flags_ui::kOsIos, |
| 738 | FEATURE_VALUE_TYPE(web::features::kRecordSnapshotSize)}, |
Chris Lu | b17195f | 2020-12-10 20:49:14 | [diff] [blame] | 739 | {"default-browser-fullscreen-promo-experiment", |
| 740 | flag_descriptions::kDefaultBrowserFullscreenPromoExperimentName, |
| 741 | flag_descriptions::kDefaultBrowserFullscreenPromoExperimentDescription, |
| 742 | flags_ui::kOsIos, |
Javier Ernesto Flores Robles | 15941423 | 2021-06-16 14:29:59 | [diff] [blame] | 743 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 744 | kDefaultBrowserFullscreenPromoExperiment, |
| 745 | kDefaultBrowserFullscreenPromoExperimentVariations, |
| 746 | "IOSDefaultBrowserFullscreenPromoExperiment")}, |
Cheick Cisse | 76ade3d | 2020-12-16 00:15:11 | [diff] [blame] | 747 | {"ios-shared-highlighting-color-change", |
| 748 | flag_descriptions::kIOSSharedHighlightingColorChangeName, |
| 749 | flag_descriptions::kIOSSharedHighlightingColorChangeDescription, |
Cheick Cisse | d0b5bfe | 2021-02-11 14:23:07 | [diff] [blame] | 750 | flags_ui::kOsIos, |
| 751 | FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)}, |
Cheick Cisse | fe99486 | 2021-12-15 16:01:34 | [diff] [blame] | 752 | {"ios-shared-highlighting-v2", |
| 753 | flag_descriptions::kIOSSharedHighlightingV2Name, |
| 754 | flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos, |
| 755 | FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)}, |
Stepan Khapugin | 0434120 | 2021-01-07 12:22:45 | [diff] [blame] | 756 | {"omnibox-new-textfield-implementation", |
| 757 | flag_descriptions::kOmniboxNewImplementationName, |
| 758 | flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos, |
| 759 | FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)}, |
Stepan Khapugin | 0be8f6d | 2022-09-21 20:22:26 | [diff] [blame] | 760 | {"omnibox-on-focus-suggestions-contextual-web", |
| 761 | flag_descriptions::kOmniboxFocusTriggersContextualWebZeroSuggestName, |
| 762 | flag_descriptions:: |
| 763 | kOmniboxFocusTriggersContextualWebZeroSuggestDescription, |
| 764 | flags_ui::kOsIos, |
| 765 | FEATURE_VALUE_TYPE(omnibox::kFocusTriggersContextualWebZeroSuggest)}, |
| 766 | {"omnibox-on-focus-suggestions-srp", |
| 767 | flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestName, |
| 768 | flag_descriptions::kOmniboxFocusTriggersSRPZeroSuggestDescription, |
| 769 | flags_ui::kOsIos, |
| 770 | FEATURE_VALUE_TYPE(omnibox::kFocusTriggersSRPZeroSuggest)}, |
Stepan Khapugin | 0da1238 | 2023-01-24 16:08:12 | [diff] [blame] | 771 | {"omnibox-report-assisted-query-stats", |
| 772 | flag_descriptions::kOmniboxReportAssistedQueryStatsName, |
| 773 | flag_descriptions::kOmniboxReportAssistedQueryStatsDescription, |
| 774 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)}, |
| 775 | {"omnibox-report-searchbox-stats", |
| 776 | flag_descriptions::kOmniboxReportSearchboxStatsName, |
| 777 | flag_descriptions::kOmniboxReportSearchboxStatsDescription, |
| 778 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)}, |
Stepan Khapugin | ecf128a9 | 2022-08-30 11:23:15 | [diff] [blame] | 779 | {"omnibox-fuzzy-url-suggestions", |
| 780 | flag_descriptions::kOmniboxFuzzyUrlSuggestionsName, |
| 781 | flag_descriptions::kOmniboxFuzzyUrlSuggestionsDescription, |
| 782 | flags_ui::kOsIos, |
| 783 | FEATURE_VALUE_TYPE(omnibox::kOmniboxFuzzyUrlSuggestions)}, |
gogerald | 0ff29e5 | 2021-02-03 18:56:19 | [diff] [blame] | 784 | {"start-surface", flag_descriptions::kStartSurfaceName, |
| 785 | flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos, |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 786 | FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface, |
| 787 | kStartSurfaceVariations, |
| 788 | "StartSurface")}, |
Vidhan Jain | 451b475 | 2021-07-15 10:16:42 | [diff] [blame] | 789 | {"autofill-address-verification-in-save-prompt", |
| 790 | flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName, |
| 791 | flag_descriptions:: |
| 792 | kEnableAutofillAddressSavePromptAddressVerificationDescription, |
| 793 | flags_ui::kOsIos, |
| 794 | FEATURE_VALUE_TYPE( |
| 795 | autofill::features:: |
| 796 | kAutofillAddressProfileSavePromptAddressVerificationSupport)}, |
Viktor Semeniuk | 68e794a | 2021-03-24 10:23:25 | [diff] [blame] | 797 | {"filling-across-affiliated-websites", |
| 798 | flag_descriptions::kFillingAcrossAffiliatedWebsitesName, |
| 799 | flag_descriptions::kFillingAcrossAffiliatedWebsitesDescription, |
| 800 | flags_ui::kOsIos, |
| 801 | FEATURE_VALUE_TYPE( |
| 802 | password_manager::features::kFillingAcrossAffiliatedWebsites)}, |
Side Yilmaz | 6c53f710 | 2021-09-07 13:26:19 | [diff] [blame] | 803 | {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName, |
| 804 | flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos, |
| 805 | FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)}, |
Nohemi Fernandez | c00842a | 2021-07-26 11:47:34 | [diff] [blame] | 806 | {"wait-threshold-seconds-for-capabilities-api", |
| 807 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName, |
| 808 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription, |
| 809 | flags_ui::kOsIos, |
| 810 | MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)}, |
Jared Saul | 2188f76 | 2021-08-02 21:22:23 | [diff] [blame] | 811 | {"autofill-fill-merchant-promo-code-fields", |
| 812 | flag_descriptions::kAutofillFillMerchantPromoCodeFieldsName, |
| 813 | flag_descriptions::kAutofillFillMerchantPromoCodeFieldsDescription, |
| 814 | flags_ui::kOsIos, |
| 815 | FEATURE_VALUE_TYPE( |
| 816 | autofill::features::kAutofillFillMerchantPromoCodeFields)}, |
Sylvain Defresne | dff67e4 | 2021-09-24 09:43:03 | [diff] [blame] | 817 | {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName, |
| 818 | flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos, |
| 819 | FEATURE_VALUE_TYPE(kNewOverflowMenu)}, |
Robbie Gibson | df097a7 | 2022-09-05 08:17:18 | [diff] [blame] | 820 | {"new-overflow-menu-alternate-iph", |
| 821 | flag_descriptions::kNewOverflowMenuAlternateIPHName, |
| 822 | flag_descriptions::kNewOverflowMenuAlternateIPHDescription, |
| 823 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuAlternateIPH)}, |
Evan Bernstein | 0a85f33 | 2021-09-29 19:07:24 | [diff] [blame] | 824 | {"use-lens-to-search-for-image", |
| 825 | flag_descriptions::kUseLensToSearchForImageName, |
| 826 | flag_descriptions::kUseLensToSearchForImageDescription, flags_ui::kOsIos, |
Ali Juma | 02a9b7b | 2021-10-01 13:44:44 | [diff] [blame] | 827 | FEATURE_VALUE_TYPE(kUseLensToSearchForImage)}, |
Jason Hu | 3830a07 | 2022-08-19 20:56:22 | [diff] [blame] | 828 | {"enable-lens-in-home-screen-widget", |
| 829 | flag_descriptions::kEnableLensInHomeScreenWidgetName, |
| 830 | flag_descriptions::kEnableLensInHomeScreenWidgetDescription, |
| 831 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)}, |
| 832 | {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName, |
| 833 | flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos, |
| 834 | FEATURE_VALUE_TYPE(kEnableLensInKeyboard)}, |
| 835 | {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName, |
| 836 | flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos, |
| 837 | FEATURE_VALUE_TYPE(kEnableLensInNTP)}, |
Anudeep Palanki | 403c907a | 2023-01-25 20:30:03 | [diff] [blame] | 838 | {"enable-lens-context-menu-alt-text", |
| 839 | flag_descriptions::kEnableLensContextMenuAltTextName, |
| 840 | flag_descriptions::kEnableLensContextMenuAltTextDescription, |
| 841 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensContextMenuAltText)}, |
Jason Hu | 67cfb0f | 2022-11-14 20:21:44 | [diff] [blame] | 842 | {"enable-lens-in-omnibox-copied-image", |
| 843 | flag_descriptions::kEnableLensInOmniboxCopiedImageName, |
| 844 | flag_descriptions::kEnableLensInOmniboxCopiedImageDescription, |
| 845 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)}, |
Benjamin Williams | bee6ab6 | 2022-02-28 18:09:40 | [diff] [blame] | 846 | {"use-load-simulated-request-for-error-page-navigation", |
Gauthier Ambard | 33cceaf | 2022-05-05 14:00:23 | [diff] [blame] | 847 | flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName, |
| 848 | flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription, |
Benjamin Williams | bee6ab6 | 2022-02-28 18:09:40 | [diff] [blame] | 849 | flags_ui::kOsIos, |
Gauthier Ambard | 33cceaf | 2022-05-05 14:00:23 | [diff] [blame] | 850 | FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)}, |
Sergio Collazos | 9fcc6ed | 2021-10-06 00:58:03 | [diff] [blame] | 851 | {"enable-disco-feed-endpoint", |
| 852 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName, |
| 853 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription, |
| 854 | flags_ui::kOsIos, |
Aliona DANGLA | 8fae66f0 | 2021-10-06 15:47:11 | [diff] [blame] | 855 | FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)}, |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 856 | {"enable-discover-feed-top-sync-promo", |
| 857 | flag_descriptions::kEnableDiscoverFeedTopSyncPromoName, |
| 858 | flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription, |
| 859 | flags_ui::kOsIos, |
| 860 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo, |
| 861 | kDiscoverFeedTopSyncPromoVariations, |
| 862 | "EnableDiscoverFeedTopSyncPromo")}, |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 863 | {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName, |
| 864 | flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos, |
| 865 | FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings, |
| 866 | kFeedHeaderSettingsVariations, |
| 867 | "FeedHeaderSettings")}, |
Guillem Perez | c49aeebd | 2023-01-25 00:00:41 | [diff] [blame] | 868 | {"enable-hiding-mvt-shortcuts", |
Guillem Perez | f131a66 | 2023-02-16 02:20:36 | [diff] [blame] | 869 | flag_descriptions::kTileAblationMVTAndShortcutsForNewUsersName, |
| 870 | flag_descriptions::kTileAblationMVTAndShortcutsForNewUsersDescription, |
| 871 | flags_ui::kOsIos, |
| 872 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 873 | kTileAblationMVTAndShortcutsForNewUsers, |
| 874 | kTileAblationMVTAndShortcutsForNewUsersVariations, |
| 875 | "TileAblationMVTAndShortcutsForNewUser")}, |
Tommy Martino | 7393d76 | 2021-10-12 17:59:28 | [diff] [blame] | 876 | {"shared-highlighting-amp", |
| 877 | flag_descriptions::kIOSSharedHighlightingAmpName, |
| 878 | flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos, |
| 879 | FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)}, |
David Maunder | f4a5e1e | 2021-10-18 17:24:28 | [diff] [blame] | 880 | {"enable-commerce-price-tracking", |
Matt Jones | 125dfb4 | 2022-02-11 17:23:42 | [diff] [blame] | 881 | commerce::flag_descriptions::kCommercePriceTrackingName, |
| 882 | commerce::flag_descriptions::kCommercePriceTrackingDescription, |
| 883 | flags_ui::kOsIos, |
| 884 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking, |
| 885 | commerce::kCommercePriceTrackingVariations, |
adamta | 67b6c581 | 2021-10-19 17:02:15 | [diff] [blame] | 886 | "CommercePriceTracking")}, |
Tina Wang | 8058d5f | 2021-11-04 20:06:06 | [diff] [blame] | 887 | {"web-feed-ios", flag_descriptions::kEnableWebChannelsName, |
| 888 | flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos, |
| 889 | FEATURE_VALUE_TYPE(kEnableWebChannels)}, |
adamta | 3933159 | 2021-11-01 20:18:54 | [diff] [blame] | 890 | {"ntp-view-hierarchy-repair", |
| 891 | flag_descriptions::kNTPViewHierarchyRepairName, |
| 892 | flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos, |
adamta | 8da8dce | 2022-11-17 18:03:20 | [diff] [blame] | 893 | FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)}, |
Justin Cohen | 69cec68 | 2021-11-04 20:10:26 | [diff] [blame] | 894 | {"synthesized-restore-session", |
| 895 | flag_descriptions::kSynthesizedRestoreSessionName, |
| 896 | flag_descriptions::kSynthesizedRestoreSessionDescription, flags_ui::kOsIos, |
| 897 | FEATURE_VALUE_TYPE(web::features::kSynthesizedRestoreSession)}, |
ginnnnnnny | ee3036e | 2022-08-12 18:01:18 | [diff] [blame] | 898 | {"ios-media-permissions-control", |
| 899 | flag_descriptions::kMediaPermissionsControlName, |
| 900 | flag_descriptions::kMediaPermissionsControlDescription, flags_ui::kOsIos, |
| 901 | FEATURE_VALUE_TYPE(web::features::kMediaPermissionsControl)}, |
Ewann | 8c7aadc | 2022-05-19 15:41:05 | [diff] [blame] | 902 | {"use-sf-symbols", flag_descriptions::kUseSFSymbolsName, |
| 903 | flag_descriptions::kUseSFSymbolsDescription, flags_ui::kOsIos, |
| 904 | FEATURE_VALUE_TYPE(kUseSFSymbols)}, |
Veronique Nguyen | 11f8c9f | 2022-09-12 16:51:26 | [diff] [blame] | 905 | {"enable-password-grouping", flag_descriptions::kPasswordsGroupingName, |
| 906 | flag_descriptions::kPasswordsGroupingDescription, flags_ui::kOsIos, |
| 907 | FEATURE_VALUE_TYPE(password_manager::features::kPasswordsGrouping)}, |
Ali Juma | 1429cf8a | 2022-02-09 15:31:01 | [diff] [blame] | 908 | {"enable-fullscreen-api", flag_descriptions::kEnableFullscreenAPIName, |
| 909 | flag_descriptions::kEnableFullscreenAPIDescription, flags_ui::kOsIos, |
| 910 | FEATURE_VALUE_TYPE(web::features::kEnableFullscreenAPI)}, |
Joemer Ramos | c34a30a0 | 2022-09-22 15:18:43 | [diff] [blame] | 911 | {"enable-tailored-security-integration", |
| 912 | flag_descriptions::kTailoredSecurityIntegrationName, |
| 913 | flag_descriptions::kTailoredSecurityIntegrationDescription, |
| 914 | flags_ui::kOsIos, |
| 915 | FEATURE_VALUE_TYPE(safe_browsing::kTailoredSecurityIntegration)}, |
Vishwas Uppoor | 89303a9 | 2022-08-03 00:56:26 | [diff] [blame] | 916 | {"autofill-enable-card-product-name", |
| 917 | flag_descriptions::kAutofillEnableCardProductNameName, |
| 918 | flag_descriptions::kAutofillEnableCardProductNameDescription, |
| 919 | flags_ui::kOsIos, |
| 920 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)}, |
Victor Hugo Vianna Silva | f0a4400 | 2022-02-16 10:38:00 | [diff] [blame] | 921 | {"send-tab-to-self-signin-promo", |
| 922 | flag_descriptions::kSendTabToSelfSigninPromoName, |
| 923 | flag_descriptions::kSendTabToSelfSigninPromoDescription, flags_ui::kOsIos, |
| 924 | FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfSigninPromo)}, |
Siyu An | ff02e74 | 2022-04-07 19:08:22 | [diff] [blame] | 925 | {"autofill-enforce-delays-in-strike-database", |
| 926 | flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseName, |
| 927 | flag_descriptions::kAutofillEnforceDelaysInStrikeDatabaseDescription, |
| 928 | flags_ui::kOsIos, |
| 929 | FEATURE_VALUE_TYPE( |
| 930 | autofill::features::kAutofillEnforceDelaysInStrikeDatabase)}, |
Jared Saul | b0473bd | 2022-04-20 00:03:41 | [diff] [blame] | 931 | {"autofill-upstream-allow-additional-email-domains", |
| 932 | flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName, |
| 933 | flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription, |
| 934 | flags_ui::kOsIos, |
| 935 | FEATURE_VALUE_TYPE( |
| 936 | autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)}, |
| 937 | {"autofill-upstream-allow-all-email-domains", |
| 938 | flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName, |
| 939 | flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription, |
| 940 | flags_ui::kOsIos, |
| 941 | FEATURE_VALUE_TYPE( |
| 942 | autofill::features::kAutofillUpstreamAllowAllEmailDomains)}, |
Raj T | b95d81354 | 2022-11-16 21:27:52 | [diff] [blame] | 943 | {"enable-download-service-foreground-session", |
| 944 | flag_descriptions::kDownloadServiceForegroundSessionName, |
| 945 | flag_descriptions::kDownloadServiceForegroundSessionDescription, |
| 946 | flags_ui::kOsIos, |
| 947 | FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)}, |
Olivier Robin | ffe767c | 2022-04-21 13:13:23 | [diff] [blame] | 948 | {"enable-tflite-language-detection", |
| 949 | flag_descriptions::kTFLiteLanguageDetectionName, |
| 950 | flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos, |
| 951 | FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)}, |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 952 | {"optimization-guide-debug-logs", |
| 953 | flag_descriptions::kOptimizationGuideDebugLogsName, |
| 954 | flag_descriptions::kOptimizationGuideDebugLogsDescription, |
| 955 | flags_ui::kOsIos, |
| 956 | SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)}, |
Daniel White | d02b696 | 2023-02-14 14:19:55 | [diff] [blame] | 957 | {"optimization-guide-push-notifications", |
| 958 | flag_descriptions::kOptimizationGuidePushNotificationClientName, |
| 959 | flag_descriptions::kOptimizationGuidePushNotificationClientDescription, |
| 960 | flags_ui::kOsIos, |
| 961 | FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)}, |
Olivier Robin | ffe767c | 2022-04-21 13:13:23 | [diff] [blame] | 962 | {"optimization-guide-model-downloading", |
| 963 | flag_descriptions::kOptimizationGuideModelDownloadingName, |
| 964 | flag_descriptions::kOptimizationGuideModelDownloadingDescription, |
| 965 | flags_ui::kOsIos, |
| 966 | FEATURE_VALUE_TYPE( |
| 967 | optimization_guide::features::kOptimizationGuideModelDownloading)}, |
| 968 | {"optimization-target-prediction", |
| 969 | flag_descriptions::kOptimizationTargetPredictionName, |
| 970 | flag_descriptions::kOptimizationTargetPredictionDescription, |
| 971 | flags_ui::kOsIos, |
| 972 | FEATURE_VALUE_TYPE( |
| 973 | optimization_guide::features::kOptimizationTargetPrediction)}, |
Rushan Suleymanov | 72730960 | 2022-04-28 20:08:54 | [diff] [blame] | 974 | {"sync-standalone-invalidations", flag_descriptions::kSyncInvalidationsName, |
| 975 | flag_descriptions::kSyncInvalidationsDescription, flags_ui::kOsIos, |
| 976 | FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidations)}, |
| 977 | {"sync-standalone-invalidations-wallet-and-offer", |
| 978 | flag_descriptions::kSyncInvalidationsWalletAndOfferName, |
| 979 | flag_descriptions::kSyncInvalidationsWalletAndOfferDescription, |
| 980 | flags_ui::kOsIos, |
| 981 | FEATURE_VALUE_TYPE(::syncer::kUseSyncInvalidationsForWalletAndOffer)}, |
Christian Xu | b8c06cd | 2022-04-29 20:55:01 | [diff] [blame] | 982 | {"suggestions-scrolling-ipad", |
| 983 | flag_descriptions::kEnableSuggestionsScrollingOnIPadName, |
| 984 | flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription, |
| 985 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)}, |
Stepan Khapugin | fee136c6 | 2022-11-28 13:24:00 | [diff] [blame] | 986 | {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName, |
| 987 | flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos, |
| 988 | FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)}, |
David Jean | 7a8fa70 | 2022-05-02 15:21:22 | [diff] [blame] | 989 | {"experience-kit-calendar", flag_descriptions::kCalendarExperienceKitName, |
| 990 | flag_descriptions::kCalendarExperienceKitDescription, flags_ui::kOsIos, |
| 991 | FEATURE_VALUE_TYPE(kCalendarExperienceKit)}, |
Elmehdi Rahmaoui | 5a6273a2 | 2022-11-28 16:19:25 | [diff] [blame] | 992 | {"intents-on-phone-number", flag_descriptions::kPhoneNumberName, |
| 993 | flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 994 | FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)}, |
Elmehdi Rahmaoui | 21e87d5 | 2022-11-09 15:00:55 | [diff] [blame] | 995 | {"experience-kit-apple-calendar", |
| 996 | flag_descriptions::kAppleCalendarExperienceKitName, |
| 997 | flag_descriptions::kAppleCalendarExperienceKitDescription, |
| 998 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)}, |
Zhixiang Teoh | 82d17bb | 2022-06-16 21:00:39 | [diff] [blame] | 999 | {"enable-expkit-calendar-text-classifier", |
| 1000 | flag_descriptions::kEnableExpKitCalendarTextClassifierName, |
| 1001 | flag_descriptions::kEnableExpKitCalendarTextClassifierDescription, |
| 1002 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitCalendarTextClassifier)}, |
Raj T | 7db7a0e | 2022-11-17 16:33:08 | [diff] [blame] | 1003 | {"enable-expkit-text-classifier", |
| 1004 | flag_descriptions::kEnableExpKitTextClassifierName, |
| 1005 | flag_descriptions::kEnableExpKitTextClassifierDescription, |
| 1006 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifier)}, |
Elmehdi Rahmaoui | 9d4ce40c6 | 2022-08-05 15:31:18 | [diff] [blame] | 1007 | {"experience-kit-maps", flag_descriptions::kMapsExperienceKitName, |
| 1008 | flag_descriptions::kMapsExperienceKitDescription, flags_ui::kOsIos, |
Elmehdi Rahmaoui | 3d549fc | 2022-10-20 14:31:28 | [diff] [blame] | 1009 | FEATURE_WITH_PARAMS_VALUE_TYPE(kMapsExperienceKit, |
| 1010 | kEnableExperienceKitMapsVariations, |
| 1011 | "IOSExperienceKitMaps")}, |
Elmehdi Rahmaoui | c699dc1 | 2022-10-12 11:17:05 | [diff] [blame] | 1012 | {"enable-long-press-surrounding-text", |
| 1013 | flag_descriptions::kLongPressSurroundingTextName, |
| 1014 | flag_descriptions::kLongPressSurroundingTextDescription, flags_ui::kOsIos, |
| 1015 | FEATURE_VALUE_TYPE(web::features::kLongPressSurroundingText)}, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 1016 | {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName, |
| 1017 | flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos, |
| 1018 | FEATURE_VALUE_TYPE(web::features::kOneTapForMaps)}, |
Mustafa Emre Acer | 4de8863a | 2022-05-03 22:17:01 | [diff] [blame] | 1019 | {"https-only-mode", flag_descriptions::kHttpsOnlyModeName, |
| 1020 | flag_descriptions::kHttpsOnlyModeDescription, flags_ui::kOsIos, |
| 1021 | FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsOnlyMode)}, |
Mustafa Emre Acer | b8bb01f | 2022-07-20 19:43:25 | [diff] [blame] | 1022 | {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName, |
| 1023 | flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos, |
| 1024 | FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)}, |
Benjamin Williams | 419c81e | 2022-05-04 18:33:22 | [diff] [blame] | 1025 | {"smart-sorting-new-overflow-menu", |
| 1026 | flag_descriptions::kSmartSortingNewOverflowMenuName, |
| 1027 | flag_descriptions::kSmartSortingNewOverflowMenuDescription, |
| 1028 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSmartSortingNewOverflowMenu)}, |
Benjamin Williams | f721fc2 | 2023-01-10 23:28:25 | [diff] [blame] | 1029 | {"smart-sorting-price-tracking-destination", |
| 1030 | flag_descriptions::kSmartSortingPriceTrackingDestinationName, |
| 1031 | flag_descriptions::kSmartSortingPriceTrackingDestinationDescription, |
| 1032 | flags_ui::kOsIos, |
| 1033 | FEATURE_VALUE_TYPE(kSmartSortingPriceTrackingDestination)}, |
Scott Yoder | 1049356 | 2022-06-28 17:37:44 | [diff] [blame] | 1034 | {"new-overflow-menu-share-chrome-action", |
| 1035 | flag_descriptions::kNewOverflowMenuShareChromeActionName, |
| 1036 | flag_descriptions::kNewOverflowMenuShareChromeActionDescription, |
| 1037 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNewOverflowMenuShareChromeAction)}, |
Alexander Tekle | b464381 | 2023-01-06 23:12:30 | [diff] [blame] | 1038 | {"autofill-enable-ranking-formula-address-profiles", |
| 1039 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName, |
| 1040 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription, |
| 1041 | flags_ui::kOsIos, |
| 1042 | FEATURE_VALUE_TYPE( |
| 1043 | autofill::features::kAutofillEnableRankingFormulaAddressProfiles)}, |
Alexander Tekle | 35dfbbd | 2023-01-31 08:32:39 | [diff] [blame] | 1044 | {"autofill-enable-ranking-formula-credit-cards", |
| 1045 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName, |
| 1046 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription, |
| 1047 | flags_ui::kOsIos, |
| 1048 | FEATURE_VALUE_TYPE( |
| 1049 | autofill::features::kAutofillEnableRankingFormulaCreditCards)}, |
Sergio Collazos | 5855871 | 2022-05-18 17:24:02 | [diff] [blame] | 1050 | {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName, |
| 1051 | flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos, |
| 1052 | FEATURE_VALUE_TYPE(kEnableFeedAblation)}, |
Tina Wang | 30df717 | 2022-12-09 22:02:02 | [diff] [blame] | 1053 | {"enable-feed-bottom-sign-in-promo", |
| 1054 | flag_descriptions::kEnableFeedBottomSignInPromoName, |
| 1055 | flag_descriptions::kEnableFeedBottomSignInPromoDescription, |
| 1056 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedBottomSignInPromo)}, |
| 1057 | {"enable-feed-card-menu-sign-in-promo", |
| 1058 | flag_descriptions::kEnableFeedCardMenuSignInPromoName, |
| 1059 | flag_descriptions::kEnableFeedCardMenuSignInPromoDescription, |
| 1060 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)}, |
Chris Lu | 7f024ed2c | 2022-05-27 23:11:27 | [diff] [blame] | 1061 | {"content-suggestions-ui-module-refresh", |
| 1062 | flag_descriptions::kContentSuggestionsUIModuleRefreshName, |
| 1063 | flag_descriptions::kContentSuggestionsUIModuleRefreshDescription, |
Chris Lu | 8e308dc | 2022-09-06 16:59:40 | [diff] [blame] | 1064 | flags_ui::kOsIos, |
Chris Lu | 85e8cc64 | 2022-09-23 20:27:58 | [diff] [blame] | 1065 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1066 | kContentSuggestionsUIModuleRefresh, |
| 1067 | kModuleRefreshVariations, |
| 1068 | kContentSuggestionsUIModuleRefreshFlagOverrideFieldTrialName)}, |
Quentin Pubert | d7546ae | 2022-05-30 14:28:57 | [diff] [blame] | 1069 | {"3p-intents-in-incognito", flag_descriptions::kIOS3PIntentsInIncognitoName, |
| 1070 | flag_descriptions::kIOS3PIntentsInIncognitoDescription, flags_ui::kOsIos, |
| 1071 | FEATURE_VALUE_TYPE(kIOS3PIntentsInIncognito)}, |
Olivier Robin | 058c1fad | 2022-05-31 18:24:06 | [diff] [blame] | 1072 | {"default-browser-intents-show-settings", |
| 1073 | flag_descriptions::kDefaultBrowserIntentsShowSettingsName, |
| 1074 | flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription, |
| 1075 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)}, |
Igor Ruvinov | a43a66dc | 2022-06-09 21:57:45 | [diff] [blame] | 1076 | {"dm-token-deletion", flag_descriptions::kDmTokenDeletionName, |
| 1077 | flag_descriptions::kDmTokenDeletionDescription, flags_ui::kOsIos, |
Igor Ruvinov | 44fed9f | 2022-06-10 22:51:42 | [diff] [blame] | 1078 | FEATURE_WITH_PARAMS_VALUE_TYPE(policy::features::kDmTokenDeletion, |
| 1079 | kDmTokenDeletionVariation, |
| 1080 | "DmTokenDeletion")}, |
Tommy Martino | ad42be5 | 2022-06-13 11:51:19 | [diff] [blame] | 1081 | {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName, |
| 1082 | flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos, |
| 1083 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)}, |
Theodor-Stefan Cristea | 6d087b8 | 2022-07-26 15:25:29 | [diff] [blame] | 1084 | {"ios-password-manager-cross-origin-iframe-support", |
| 1085 | flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportName, |
| 1086 | flag_descriptions::kIOSPasswordManagerCrossOriginIframeSupportDescription, |
| 1087 | flags_ui::kOsIos, |
| 1088 | FEATURE_VALUE_TYPE(password_manager::features:: |
| 1089 | kIOSPasswordManagerCrossOriginIframeSupport)}, |
Benjamin Williams | aa8da814 | 2022-11-14 19:51:03 | [diff] [blame] | 1090 | {"ios-popular-sites-improved-suggestions", |
| 1091 | flag_descriptions::kIOSPopularSitesImprovedSuggestionsName, |
| 1092 | flag_descriptions::kIOSPopularSitesImprovedSuggestionsDescription, |
| 1093 | flags_ui::kOsIos, |
| 1094 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1095 | ntp_tiles::kIOSPopularSitesImprovedSuggestions, |
| 1096 | kIOSPopularSitesImprovedSuggestionsVariations, |
| 1097 | field_trial_constants:: |
| 1098 | kIOSPopularSitesImprovedSuggestionsFieldTrialName)}, |
Christian Xu | d105a135 | 2022-06-17 19:54:14 | [diff] [blame] | 1099 | {"omnibox-adaptive-suggestions-count", |
| 1100 | flag_descriptions::kAdaptiveSuggestionsCountName, |
| 1101 | flag_descriptions::kAdaptiveSuggestionsCountDescription, flags_ui::kOsIos, |
| 1102 | FEATURE_VALUE_TYPE(omnibox::kAdaptiveSuggestionsCount)}, |
Chris Lu | 2fd473f | 2022-06-28 13:38:20 | [diff] [blame] | 1103 | {"trending-queries-module", flag_descriptions::kTrendingQueriesModuleName, |
| 1104 | flag_descriptions::kTrendingQueriesModuleDescription, flags_ui::kOsIos, |
Chris Lu | 85e8cc64 | 2022-09-23 20:27:58 | [diff] [blame] | 1105 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1106 | kTrendingQueriesModule, |
| 1107 | kTrendingQueriesModuleVariations, |
| 1108 | kTrendingQueriesFlagOverrideFieldTrialName)}, |
Nakul Vaidya | ddfdfbc | 2022-06-28 23:43:32 | [diff] [blame] | 1109 | {"autofill-parse-iban-fields", |
Nakul Vaidya | 876210f | 2022-08-08 17:47:19 | [diff] [blame] | 1110 | flag_descriptions::kAutofillParseIBANFieldsName, |
| 1111 | flag_descriptions::kAutofillParseIBANFieldsDescription, flags_ui::kOsIos, |
| 1112 | FEATURE_VALUE_TYPE(autofill::features::kAutofillParseIBANFields)}, |
Ernesto Izquierdo Clua | 7f4e36e2 | 2022-07-01 09:38:36 | [diff] [blame] | 1113 | {"autofill-enable-new-card-unmask-prompt-view", |
| 1114 | flag_descriptions::kAutofillEnableNewCardUnmaskPromptViewName, |
| 1115 | flag_descriptions::kAutofillEnableNewCardUnmaskPromptViewDescription, |
| 1116 | flags_ui::kOsIos, |
ginnnnnnny | 591a497 | 2022-09-01 16:10:27 | [diff] [blame] | 1117 | FEATURE_VALUE_TYPE( |
| 1118 | autofill::features::kAutofillEnableNewCardUnmaskPromptView)}, |
Moe Ahmadi | 098519d8 | 2022-07-27 18:34:24 | [diff] [blame] | 1119 | {"omnibox-zero-suggest-prefetching", |
| 1120 | flag_descriptions::kOmniboxZeroSuggestPrefetchingName, |
| 1121 | flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription, |
| 1122 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)}, |
Khalid Peer | 79df565 | 2022-10-26 21:59:45 | [diff] [blame] | 1123 | {"omnibox-zero-suggest-prefetching-on-srp", |
| 1124 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName, |
| 1125 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription, |
| 1126 | flags_ui::kOsIos, |
| 1127 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)}, |
| 1128 | {"omnibox-zero-suggest-prefetching-on-web", |
| 1129 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName, |
| 1130 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription, |
| 1131 | flags_ui::kOsIos, |
| 1132 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)}, |
Khalid Peer | 11b4b2c | 2022-10-12 20:53:47 | [diff] [blame] | 1133 | {"omnibox-zero-suggest-in-memory-caching", |
| 1134 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName, |
| 1135 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription, |
| 1136 | flags_ui::kOsIos, |
| 1137 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)}, |
Ce Chen | bdfaed2 | 2022-10-20 16:08:35 | [diff] [blame] | 1138 | {"omnibox-on-device-tail-suggestions", |
| 1139 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsName, |
| 1140 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription, |
| 1141 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)}, |
Vincent Boisselle | ad6cbe2 | 2022-07-04 19:32:39 | [diff] [blame] | 1142 | {"enable-user-policy", flag_descriptions::kEnableUserPolicyName, |
| 1143 | flag_descriptions::kEnableUserPolicyDescription, flags_ui::kOsIos, |
Vincent Boisselle | 88fef22 | 2022-09-23 18:54:50 | [diff] [blame] | 1144 | FEATURE_VALUE_TYPE(policy::kUserPolicy)}, |
Marc Treib | b9d8ed80 | 2022-07-05 15:15:49 | [diff] [blame] | 1145 | {"enable-sync-history-datatype", |
| 1146 | flag_descriptions::kSyncEnableHistoryDataTypeName, |
| 1147 | flag_descriptions::kSyncEnableHistoryDataTypeDescription, flags_ui::kOsIos, |
| 1148 | FEATURE_VALUE_TYPE(syncer::kSyncEnableHistoryDataType)}, |
Christian Xu | cf26d56 | 2022-07-06 09:28:36 | [diff] [blame] | 1149 | {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName, |
| 1150 | flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos, |
| 1151 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches, |
| 1152 | kOmniboxMaxURLMatchesVariations, |
| 1153 | "OmniboxMaxURLMatches")}, |
Olivier Robin | 60d3a06 | 2022-07-06 17:34:06 | [diff] [blame] | 1154 | {"metrickit-non-crash-reports", |
| 1155 | flag_descriptions::kMetrickitNonCrashReportName, |
| 1156 | flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos, |
| 1157 | FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)}, |
Siyu An | 3194bda | 2022-07-13 19:30:37 | [diff] [blame] | 1158 | {"autofill-enable-remade-downstream-metrics", |
| 1159 | flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName, |
| 1160 | flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription, |
| 1161 | flags_ui::kOsIos, |
| 1162 | FEATURE_VALUE_TYPE( |
| 1163 | autofill::features::kAutofillEnableRemadeDownstreamMetrics)}, |
Nakul Vaidya | 13ca204 | 2022-07-27 01:59:55 | [diff] [blame] | 1164 | {"autofill-parse-vcn-card-on-file-standalone-cvc-fields", |
| 1165 | flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName, |
| 1166 | flag_descriptions:: |
| 1167 | kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription, |
| 1168 | flags_ui::kOsIos, |
| 1169 | FEATURE_VALUE_TYPE( |
| 1170 | autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)}, |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 1171 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
| 1172 | {"feed-background-refresh-ios", |
| 1173 | flag_descriptions::kFeedBackgroundRefreshName, |
| 1174 | flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos, |
| 1175 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh, |
| 1176 | kFeedBackgroundRefreshVariations, |
| 1177 | "FeedBackgroundRefresh")}, |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 1178 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
| 1179 | {"feed-foreground-refresh-ios", |
| 1180 | flag_descriptions::kFeedForegroundRefreshName, |
| 1181 | flag_descriptions::kFeedForegroundRefreshDescription, flags_ui::kOsIos, |
| 1182 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedForegroundRefresh, |
| 1183 | kFeedForegroundRefreshVariations, |
| 1184 | "FeedForegroundRefresh")}, |
Christian Xu | 164a2e51 | 2022-08-01 20:38:19 | [diff] [blame] | 1185 | {"omnibox-keyboard-paste-button", |
| 1186 | flag_descriptions::kOmniboxKeyboardPasteButtonName, |
| 1187 | flag_descriptions::kOmniboxKeyboardPasteButtonDescription, |
| 1188 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)}, |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 1189 | |
Aliona DANGLA | a5257ccc | 2022-08-29 14:01:49 | [diff] [blame] | 1190 | {"enable-open-in-download", flag_descriptions::kEnableOpenInDownloadName, |
| 1191 | flag_descriptions::kEnableOpenInDownloadDescription, flags_ui::kOsIos, |
| 1192 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableOpenInDownload, |
| 1193 | kOpenInDownloadVariations, |
| 1194 | "EnableOpenInDownload")}, |
Cheick Cisse | 87a51cb | 2022-09-08 21:29:17 | [diff] [blame] | 1195 | {"whats-new-ios", flag_descriptions::kWhatsNewIOSName, |
| 1196 | flag_descriptions::kWhatsNewIOSDescription, flags_ui::kOsIos, |
Cheick Cisse | f3708790 | 2022-10-07 19:01:41 | [diff] [blame] | 1197 | FEATURE_WITH_PARAMS_VALUE_TYPE(kWhatsNewIOS, |
| 1198 | kWhatsNewLayoutVariations, |
| 1199 | "WhatsNewLayoutVariations")}, |
ginnnnnnny | 591a497 | 2022-09-01 16:10:27 | [diff] [blame] | 1200 | {"ios-autofill-branding", flag_descriptions::kAutofillBrandingIOSName, |
| 1201 | flag_descriptions::kAutofillBrandingIOSDescription, flags_ui::kOsIos, |
| 1202 | FEATURE_WITH_PARAMS_VALUE_TYPE(autofill::features::kAutofillBrandingIOS, |
| 1203 | kAutofillBrandingIOSVariations, |
Hira Mahmood | b0e5f41 | 2022-09-01 19:41:05 | [diff] [blame] | 1204 | "AutofillBrandingIOS")}, |
| 1205 | {"app-store-rating", flag_descriptions::kAppStoreRatingName, |
| 1206 | flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos, |
| 1207 | FEATURE_VALUE_TYPE(kAppStoreRating)}, |
Scott Yoder | cb2fe63 | 2022-09-12 15:28:35 | [diff] [blame] | 1208 | {"ios-new-post-restore-experience", |
| 1209 | flag_descriptions::kIOSNewPostRestoreExperienceName, |
| 1210 | flag_descriptions::kIOSNewPostRestoreExperienceDescription, |
| 1211 | flags_ui::kOsIos, |
Benjamin Williams | 3d3a2ec | 2022-09-13 20:01:26 | [diff] [blame] | 1212 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1213 | post_restore_signin::features::kIOSNewPostRestoreExperience, |
| 1214 | kIOSNewPostRestoreExperienceVariations, |
| 1215 | "IOSNewPostRestoreExperience")}, |
Christian Xu | 6b90c2a3 | 2022-09-13 18:17:02 | [diff] [blame] | 1216 | {"most-visited-tiles", flag_descriptions::kMostVisitedTilesName, |
| 1217 | flag_descriptions::kMostVisitedTilesDescription, flags_ui::kOsIos, |
| 1218 | FEATURE_VALUE_TYPE(omnibox::kMostVisitedTiles)}, |
Olivier ROBIN | f0551878 | 2022-09-14 23:55:50 | [diff] [blame] | 1219 | {"enable-tflite-language-detection-ignore", |
| 1220 | flag_descriptions::kTFLiteLanguageDetectionIgnoreName, |
| 1221 | flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription, |
| 1222 | flags_ui::kOsIos, |
| 1223 | FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)}, |
Louis Romero | c18612b96 | 2022-10-07 12:08:14 | [diff] [blame] | 1224 | {"keyboard-shortcuts-menu", flag_descriptions::kKeyboardShortcutsMenuName, |
| 1225 | flag_descriptions::kKeyboardShortcutsMenuDescription, flags_ui::kOsIos, |
| 1226 | FEATURE_VALUE_TYPE(kKeyboardShortcutsMenu)}, |
Tina Wang | 89ae425 | 2022-10-14 00:39:47 | [diff] [blame] | 1227 | {"enable-check-visibility-on-attention-log-start", |
| 1228 | flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartName, |
| 1229 | flag_descriptions::kEnableCheckVisibilityOnAttentionLogStartDescription, |
| 1230 | flags_ui::kOsIos, |
| 1231 | FEATURE_VALUE_TYPE(kEnableCheckVisibilityOnAttentionLogStart)}, |
| 1232 | {"enable-refine-data-source-reload-reporting", |
| 1233 | flag_descriptions::kEnableRefineDataSourceReloadReportingName, |
| 1234 | flag_descriptions::kEnableRefineDataSourceReloadReportingDescription, |
| 1235 | flags_ui::kOsIos, |
| 1236 | FEATURE_VALUE_TYPE(kEnableRefineDataSourceReloadReporting)}, |
Victor Hugo Vianna Silva | bb878dea | 2022-10-18 10:19:04 | [diff] [blame] | 1237 | {"enable-passwords-account-storage", |
| 1238 | flag_descriptions::kEnablePasswordsAccountStorageName, |
| 1239 | flag_descriptions::kEnablePasswordsAccountStorageDescription, |
| 1240 | flags_ui::kOsIos, |
| 1241 | FEATURE_VALUE_TYPE( |
| 1242 | password_manager::features::kEnablePasswordsAccountStorage)}, |
adamta | 3811f918 | 2022-10-24 17:49:33 | [diff] [blame] | 1243 | {"enable-default-following-feed-sort-type", |
| 1244 | flag_descriptions::kFollowingFeedDefaultSortTypeName, |
| 1245 | flag_descriptions::kFollowingFeedDefaultSortTypeDescription, |
| 1246 | flags_ui::kOsIos, |
adamta | 8da8dce | 2022-11-17 18:03:20 | [diff] [blame] | 1247 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFollowingFeedDefaultSortType, |
adamta | 3811f918 | 2022-10-24 17:49:33 | [diff] [blame] | 1248 | kFollowingFeedDefaultSortTypeVariations, |
adamta | 8da8dce | 2022-11-17 18:03:20 | [diff] [blame] | 1249 | "EnableFollowingFeedDefaultSortType")}, |
Gauthier Ambard | d018759 | 2022-11-03 16:31:13 | [diff] [blame] | 1250 | {"use-sf-symbols-omnibox", flag_descriptions::kUseSFSymbolsInOmniboxName, |
| 1251 | flag_descriptions::kUseSFSymbolsInOmniboxDescription, flags_ui::kOsIos, |
| 1252 | FEATURE_VALUE_TYPE(kUseSFSymbolsInOmnibox)}, |
Louis Romero | 1e2a88e9 | 2023-01-18 17:08:20 | [diff] [blame] | 1253 | {"tab-grid-recency-sort", flag_descriptions::kTabGridRecencySortName, |
Gauthier Ambard | 9898eb88 | 2022-11-07 18:12:01 | [diff] [blame] | 1254 | flag_descriptions::kTabGridRecencySortDescription, flags_ui::kOsIos, |
| 1255 | FEATURE_VALUE_TYPE(kTabGridRecencySort)}, |
Ewann Pelle | 3774cac53 | 2022-11-15 10:12:37 | [diff] [blame] | 1256 | {"enable-pinned-tabs", flag_descriptions::kEnablePinnedTabsName, |
| 1257 | flag_descriptions::kEnablePinnedTabsDescription, flags_ui::kOsIos, |
| 1258 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnablePinnedTabs, |
| 1259 | kEnablePinnedTabsVariations, |
| 1260 | "EnablePinnedTabs")}, |
Ewann Pelle | db88a546 | 2023-02-17 14:34:59 | [diff] [blame] | 1261 | {"enable-pinned-tabs-ipad", flag_descriptions::kEnablePinnedTabsIpadName, |
| 1262 | flag_descriptions::kEnablePinnedTabsIpadDescription, flags_ui::kOsIos, |
| 1263 | FEATURE_VALUE_TYPE(kEnablePinnedTabsIpad)}, |
Justin Cohen | 726a70bc4 | 2022-11-15 23:15:03 | [diff] [blame] | 1264 | {"remove-crash-infobar", flag_descriptions::kRemoveCrashInfobarName, |
| 1265 | flag_descriptions::kRemoveCrashInfobarDescription, flags_ui::kOsIos, |
| 1266 | FEATURE_VALUE_TYPE(kRemoveCrashInfobar)}, |
Hira Mahmood | ea10975 | 2022-11-17 17:45:41 | [diff] [blame] | 1267 | {"credential-provider-extension-promo", |
| 1268 | flag_descriptions::kCredentialProviderExtensionPromoName, |
| 1269 | flag_descriptions::kCredentialProviderExtensionPromoDescription, |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 1270 | flags_ui::kOsIos, |
| 1271 | FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo, |
| 1272 | kCredentialProviderExtensionPromoVariations, |
| 1273 | "CredentialProviderExtensionPromo")}, |
Nicolas MacBeth | fb43e15 | 2022-11-28 19:31:52 | [diff] [blame] | 1274 | {"default-browser-blue-dot-promo", |
| 1275 | flag_descriptions::kDefaultBrowserBlueDotPromoName, |
| 1276 | flag_descriptions::kDefaultBrowserBlueDotPromoDescription, |
| 1277 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserBlueDotPromo)}, |
Olivier ROBIN | a8838c1 | 2022-12-05 17:50:27 | [diff] [blame] | 1278 | {"ios-force-translate-enabled", |
| 1279 | flag_descriptions::kIOSForceTranslateEnabledName, |
| 1280 | flag_descriptions::kIOSForceTranslateEnabledDescription, flags_ui::kOsIos, |
| 1281 | FEATURE_VALUE_TYPE(translate::kIOSForceTranslateEnabled)}, |
Daniel White | ae1cb67 | 2022-12-14 18:25:25 | [diff] [blame] | 1282 | {"iph-price-notifications-while-browsing", |
| 1283 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingName, |
| 1284 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription, |
| 1285 | flags_ui::kOsIos, |
| 1286 | FEATURE_VALUE_TYPE( |
| 1287 | feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)}, |
Qihui Zhao | 72836c6 | 2022-12-16 04:31:41 | [diff] [blame] | 1288 | {"autofill-offer-to-save-card-with-same-last-four", |
| 1289 | flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourName, |
| 1290 | flag_descriptions::kAutofillOfferToSaveCardWithSameLastFourDescription, |
| 1291 | flags_ui::kOsIos, |
| 1292 | FEATURE_VALUE_TYPE( |
| 1293 | autofill::features::kAutofillOfferToSaveCardWithSameLastFour)}, |
Christian Xu | 588330f3 | 2023-01-05 10:51:04 | [diff] [blame] | 1294 | {"omnibox-multiline-search-suggest", |
| 1295 | flag_descriptions::kOmniboxMultilineSearchSuggestName, |
| 1296 | flag_descriptions::kOmniboxMultilineSearchSuggestDescription, |
| 1297 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxMultilineSearchSuggest)}, |
Vipul Vinod Koul | aebbcb3a | 2023-01-05 19:50:50 | [diff] [blame] | 1298 | {"autofill-suggest-server-card-instead-of-local-card", |
| 1299 | flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName, |
| 1300 | flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription, |
| 1301 | flags_ui::kOsIos, |
| 1302 | FEATURE_VALUE_TYPE( |
| 1303 | autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)}, |
Quentin Pubert | 154fc6a | 2023-01-09 15:58:58 | [diff] [blame] | 1304 | {"native-find-in-page", flag_descriptions::kNativeFindInPageName, |
| 1305 | flag_descriptions::kNativeFindInPageDescription, flags_ui::kOsIos, |
| 1306 | FEATURE_WITH_PARAMS_VALUE_TYPE(kNativeFindInPage, |
| 1307 | kNativeFindInPageVariations, |
| 1308 | "NativeFindInPage")}, |
Elmehdi Rahmaoui | 5d8ba8e | 2023-01-11 14:53:55 | [diff] [blame] | 1309 | {"intents-on-email", flag_descriptions::kEmailName, |
| 1310 | flag_descriptions::kEmailDescription, flags_ui::kOsIos, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 1311 | FEATURE_VALUE_TYPE(web::features::kEnableEmails)}, |
Ernesto Izquierdo Clua | 023bb5235 | 2023-01-12 19:33:34 | [diff] [blame] | 1312 | {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName, |
| 1313 | flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos, |
| 1314 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)}, |
Christian Xu | 7e5234c1 | 2023-01-16 09:26:35 | [diff] [blame] | 1315 | {"multiline-fade-truncating-label", |
| 1316 | flag_descriptions::kMultilineFadeTruncatingLabelName, |
| 1317 | flag_descriptions::kMultilineFadeTruncatingLabelDescription, |
| 1318 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kMultilineFadeTruncatingLabel)}, |
Robbie Gibson | 88f680a | 2023-01-19 16:47:30 | [diff] [blame] | 1319 | {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName, |
| 1320 | flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos, |
| 1321 | FEATURE_VALUE_TYPE(kPromosManagerUsesFET)}, |
Ewann Pelle | dec2d04 | 2023-01-25 15:28:39 | [diff] [blame] | 1322 | {"shopping-list", commerce::flag_descriptions::kShoppingListName, |
| 1323 | commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos, |
| 1324 | FEATURE_VALUE_TYPE(commerce::kShoppingList)}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 1325 | {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName, |
| 1326 | flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos, |
| 1327 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold, |
| 1328 | kTabInactivityThresholdVariations, |
| 1329 | "TabInactivityThreshold")}, |
Sergio Collazos | 8d2ac2794 | 2023-01-26 19:03:41 | [diff] [blame] | 1330 | {"enable-feed-image-caching", |
| 1331 | flag_descriptions::kEnableFeedImageCachingName, |
| 1332 | flag_descriptions::kEnableFeedImageCachingDescription, flags_ui::kOsIos, |
| 1333 | FEATURE_VALUE_TYPE(kEnableFeedImageCaching)}, |
| 1334 | {"enable-feed-synthetic-capabilities", |
| 1335 | flag_descriptions::kEnableFeedSyntheticCapabilitiesName, |
| 1336 | flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription, |
| 1337 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)}, |
Victor Hugo Vianna Silva | bf1a43c | 2023-02-06 14:06:56 | [diff] [blame] | 1338 | {"ios-show-password-storage-in-save-infobar", |
| 1339 | flag_descriptions::kIOSShowPasswordStorageInSaveInfobarName, |
| 1340 | flag_descriptions::kIOSShowPasswordStorageInSaveInfobarDescription, |
| 1341 | flags_ui::kOsIos, |
| 1342 | FEATURE_VALUE_TYPE( |
| 1343 | password_manager::features::kIOSShowPasswordStorageInSaveInfobar)}, |
Louis Romero | 58f35502 | 2023-02-13 19:04:31 | [diff] [blame] | 1344 | {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName, |
| 1345 | flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos, |
| 1346 | FEATURE_VALUE_TYPE(kShowInactiveTabsCount)}, |
Olivier ROBIN | 52eddbf3 | 2023-02-15 10:33:42 | [diff] [blame] | 1347 | {"ios-edit-menu-partial-translate", |
| 1348 | flag_descriptions::kIOSEditMenuPartialTranslateName, |
| 1349 | flag_descriptions::kIOSEditMenuPartialTranslateDescription, |
| 1350 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSEditMenuPartialTranslate)}, |
Olivier Robin | 7057bd7 | 2023-02-16 18:35:20 | [diff] [blame] | 1351 | {"ios-custom-browser-edit-menu", |
| 1352 | flag_descriptions::kIOSCustomBrowserEditMenuName, |
| 1353 | flag_descriptions::kIOSCustomBrowserEditMenuDescription, flags_ui::kOsIos, |
| 1354 | FEATURE_VALUE_TYPE(kIOSCustomBrowserEditMenu)}, |
rgod | ba72acf8 | 2023-02-20 10:29:35 | [diff] [blame] | 1355 | {"password-notes", flag_descriptions::kPasswordNotesWithBackupName, |
| 1356 | flag_descriptions::kPasswordNotesWithBackupDescription, flags_ui::kOsIos, |
| 1357 | FEATURE_VALUE_TYPE(syncer::kPasswordNotesWithBackup)}, |
Ed Chin | 97560fc4 | 2023-02-20 16:48:32 | [diff] [blame] | 1358 | {"feed-experiment-tagging-ios", |
| 1359 | flag_descriptions::kFeedExperimentTaggingName, |
| 1360 | flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos, |
| 1361 | FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)}, |
Stepan Khapugin | 551917f8 | 2023-02-21 18:00:06 | [diff] [blame^] | 1362 | {"spotlight-reading-list-source", |
| 1363 | flag_descriptions::kSpotlightReadingListSourceName, |
| 1364 | flag_descriptions::kSpotlightReadingListSourceDescription, |
| 1365 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 1366 | }; |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1367 | |
Rohit Rao | bed794c | 2020-04-27 15:27:45 | [diff] [blame] | 1368 | bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) { |
| 1369 | return false; |
| 1370 | } |
| 1371 | |
| 1372 | flags_ui::FlagsState& GetGlobalFlagsState() { |
| 1373 | static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries, |
| 1374 | nullptr); |
| 1375 | return *flags_state; |
| 1376 | } |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1377 | // Creates the experimental test policies map, used by AsyncPolicyLoader and |
| 1378 | // PolicyLoaderIOS to locally enable policies. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 1379 | NSMutableDictionary* CreateExperimentalTestingPolicies() { |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1380 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 1381 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1382 | // Shared variables for all enterprise experimental flags. |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1383 | NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init]; |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1384 | NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init]; |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1385 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1386 | // Set some sample policy values for testing if EnableSamplePolicies is set to |
| 1387 | // true. |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1388 | if ([defaults boolForKey:@"EnableSamplePolicies"]) { |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1389 | [testing_policies addEntriesFromDictionary:@{ |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1390 | base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO, |
| 1391 | |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1392 | base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO, |
| 1393 | |
| 1394 | // 2 = Disable all variations |
| 1395 | base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2, |
| 1396 | |
| 1397 | // 2 = Do not allow any site to show popups |
| 1398 | base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2, |
| 1399 | |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1400 | // Set default search engine. |
| 1401 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) : |
| 1402 | @YES, |
| 1403 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) : |
| 1404 | @"http://www.google.com/search?q={searchTerms}", |
| 1405 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) : |
Tina Wang | 7cd0a06 | 2020-09-15 21:31:02 | [diff] [blame] | 1406 | @"TestEngine", |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1407 | |
Tina Wang | 89068c8 | 2020-10-29 15:51:50 | [diff] [blame] | 1408 | base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO, |
| 1409 | |
Gauthier Ambard | 21b2370 | 2021-04-16 16:11:27 | [diff] [blame] | 1410 | base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO, |
| 1411 | |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1412 | base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO, |
Tina Wang | 54dddfc2 | 2020-08-20 22:34:53 | [diff] [blame] | 1413 | |
| 1414 | // 2 = Enhanced safe browsing protection |
| 1415 | base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2, |
| 1416 | |
| 1417 | base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES, |
Hira Mahmood | a53b8d63 | 2023-01-03 10:03:29 | [diff] [blame] | 1418 | |
| 1419 | base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO, |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1420 | }]; |
| 1421 | } |
| 1422 | |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1423 | if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) { |
Guillaume Jenkins | fe46d3a | 2021-04-26 19:51:04 | [diff] [blame] | 1424 | NSString* sync_policy_key = |
| 1425 | base::SysUTF8ToNSString(policy::key::kSyncDisabled); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1426 | [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}]; |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1427 | } |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1428 | |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 1429 | // SyncTypesListDisabled policy. |
| 1430 | NSString* Sync_types_list_disabled_key = |
| 1431 | base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled); |
| 1432 | NSMutableArray* Sync_types_list_disabled_values = |
| 1433 | [[NSMutableArray alloc] init]; |
| 1434 | if ([defaults boolForKey:@"SyncTypesListBookmarks"]) { |
| 1435 | [Sync_types_list_disabled_values addObject:@"bookmarks"]; |
| 1436 | } |
| 1437 | if ([defaults boolForKey:@"SyncTypesListReadingList"]) { |
| 1438 | [Sync_types_list_disabled_values addObject:@"readingList"]; |
| 1439 | } |
| 1440 | if ([defaults boolForKey:@"SyncTypesListPreferences"]) { |
| 1441 | [Sync_types_list_disabled_values addObject:@"preferences"]; |
| 1442 | } |
| 1443 | if ([defaults boolForKey:@"SyncTypesListPasswords"]) { |
| 1444 | [Sync_types_list_disabled_values addObject:@"passwords"]; |
| 1445 | } |
| 1446 | if ([defaults boolForKey:@"SyncTypesListAutofill"]) { |
| 1447 | [Sync_types_list_disabled_values addObject:@"autofill"]; |
| 1448 | } |
| 1449 | if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) { |
| 1450 | [Sync_types_list_disabled_values addObject:@"typedUrls"]; |
| 1451 | } |
| 1452 | if ([defaults boolForKey:@"SyncTypesListTabs"]) { |
| 1453 | [Sync_types_list_disabled_values addObject:@"tabs"]; |
| 1454 | } |
| 1455 | if ([Sync_types_list_disabled_values count]) { |
| 1456 | [testing_policies addEntriesFromDictionary:@{ |
| 1457 | Sync_types_list_disabled_key : Sync_types_list_disabled_values |
| 1458 | }]; |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 1459 | } |
| 1460 | |
Gauthier Ambard | 073eaa9 | 2021-11-22 15:24:13 | [diff] [blame] | 1461 | // If an incognito mode availability is set, set the value. |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 1462 | NSString* incognito_policy_key = |
| 1463 | base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability); |
| 1464 | NSInteger incognito_mode_availability = |
| 1465 | [defaults integerForKey:incognito_policy_key]; |
| 1466 | if (incognito_mode_availability) { |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 1467 | [testing_policies addEntriesFromDictionary:@{ |
| 1468 | incognito_policy_key : @(incognito_mode_availability), |
| 1469 | }]; |
| 1470 | } |
| 1471 | |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1472 | NSString* restriction_pattern = |
| 1473 | [defaults stringForKey:@"RestrictAccountsToPatterns"]; |
| 1474 | if ([restriction_pattern length] > 0) { |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 1475 | NSString* restrict_key = |
| 1476 | base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns); |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1477 | [testing_policies addEntriesFromDictionary:@{ |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 1478 | restrict_key : @[ restriction_pattern ] |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1479 | }]; |
| 1480 | } |
| 1481 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 1482 | // If the sign-in policy is set (not "None"), add the policy key to the list |
| 1483 | // of enabled experimental policies, and set the value. |
| 1484 | NSString* const kSigninPolicyKey = @"BrowserSignin"; |
| 1485 | NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey]; |
| 1486 | if (signin_policy_mode) { |
| 1487 | // Remove the mode offset that was used to represent the unset policy. |
| 1488 | --signin_policy_mode; |
| 1489 | DCHECK(signin_policy_mode >= 0); |
| 1490 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 1491 | [testing_policies addEntriesFromDictionary:@{ |
| 1492 | kSigninPolicyKey : @(signin_policy_mode), |
| 1493 | }]; |
| 1494 | } |
| 1495 | |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 1496 | // If the New Tab Page URL is set (not empty) add the value to the list of |
| 1497 | // test policies. |
| 1498 | NSString* ntp_location = [defaults stringForKey:@"NTPLocation"]; |
| 1499 | if ([ntp_location length] > 0) { |
| 1500 | NSString* ntp_location_key = |
| 1501 | base::SysUTF8ToNSString(policy::key::kNewTabPageLocation); |
| 1502 | [testing_policies |
| 1503 | addEntriesFromDictionary:@{ntp_location_key : ntp_location}]; |
Veronique Nguyen | 302d870 | 2022-01-12 21:18:57 | [diff] [blame] | 1504 | [allowed_experimental_policies addObject:ntp_location_key]; |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 1505 | } |
| 1506 | |
Ali Juma | 9ec36d2 | 2022-03-28 14:53:12 | [diff] [blame] | 1507 | if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) { |
| 1508 | NSString* allow_backups_key = |
| 1509 | base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups); |
| 1510 | [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}]; |
| 1511 | [allowed_experimental_policies addObject:allow_backups_key]; |
| 1512 | } |
| 1513 | |
Victor Hugo Vianna Silva | 9e1a730 | 2023-02-21 08:56:24 | [diff] [blame] | 1514 | if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) { |
| 1515 | NSString* password_manager_key = |
| 1516 | base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled); |
| 1517 | [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}]; |
| 1518 | [allowed_experimental_policies addObject:password_manager_key]; |
| 1519 | } |
| 1520 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1521 | // If any experimental policy was allowed, set the EnableExperimentalPolicies |
| 1522 | // policy. |
| 1523 | if ([allowed_experimental_policies count] > 0) { |
| 1524 | [testing_policies setValue:allowed_experimental_policies |
| 1525 | forKey:base::SysUTF8ToNSString( |
| 1526 | policy::key::kEnableExperimentalPolicies)]; |
| 1527 | } |
| 1528 | |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1529 | NSString* metrics_reporting_key = @"MetricsReportingEnabled"; |
| 1530 | switch ([defaults integerForKey:metrics_reporting_key]) { |
| 1531 | case 1: |
| 1532 | // Metrics reporting forced. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 1533 | [testing_policies setValue:@YES forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1534 | break; |
| 1535 | case 2: |
| 1536 | // Metrics reporting disabled. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 1537 | [testing_policies setValue:@NO forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1538 | break; |
| 1539 | default: |
| 1540 | // Metrics reporting not managed. |
| 1541 | break; |
| 1542 | } |
| 1543 | |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 1544 | // Warning: Add new flags to TestingPoliciesHash() below. |
| 1545 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1546 | return testing_policies; |
| 1547 | } |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 1548 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1549 | } // namespace |
| 1550 | |
Gauthier Ambard | 02dbf02 | 2022-08-23 08:28:47 | [diff] [blame] | 1551 | // Add all switches from experimental flags to `command_line`. |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1552 | void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) { |
| 1553 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 1554 | |
| 1555 | // Set the UA flag if UseMobileSafariUA is enabled. |
| 1556 | if ([defaults boolForKey:@"UseMobileSafariUA"]) { |
| 1557 | // Safari uses "Vesion/", followed by the OS version excluding bugfix, where |
| 1558 | // Chrome puts its product token. |
| 1559 | int32_t major = 0; |
| 1560 | int32_t minor = 0; |
| 1561 | int32_t bugfix = 0; |
| 1562 | base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix); |
| 1563 | std::string product = base::StringPrintf("Version/%d.%d", major, minor); |
| 1564 | |
| 1565 | command_line->AppendSwitchASCII(switches::kUserAgent, |
| 1566 | web::BuildMobileUserAgent(product)); |
| 1567 | } |
| 1568 | |
| 1569 | // Shared variables for all enterprise experimental flags. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 1570 | NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies(); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1571 | |
| 1572 | // If a CBCM enrollment token is provided, force Chrome Browser Cloud |
| 1573 | // Management to enabled and add the token to the list of policies. |
| 1574 | NSString* token_key = |
| 1575 | base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken); |
| 1576 | NSString* token = [defaults stringForKey:token_key]; |
| 1577 | |
| 1578 | if ([token length] > 0) { |
| 1579 | command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement); |
| 1580 | [testing_policies setValue:token forKey:token_key]; |
| 1581 | } |
| 1582 | |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1583 | // If some policies were set, commit them to the app's registration defaults. |
| 1584 | if ([testing_policies count] > 0) { |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1585 | NSDictionary* registration_defaults = |
| 1586 | @{kPolicyLoaderIOSConfigurationKey : testing_policies}; |
| 1587 | [defaults registerDefaults:registration_defaults]; |
| 1588 | } |
| 1589 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1590 | // Freeform commandline flags. These are added last, so that any flags added |
| 1591 | // earlier in this function take precedence. |
| 1592 | if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) { |
| 1593 | base::CommandLine::StringVector flags; |
| 1594 | // Append an empty "program" argument. |
| 1595 | flags.push_back(""); |
| 1596 | |
| 1597 | // The number of flags corresponds to the number of text fields in |
| 1598 | // Experimental.plist. |
| 1599 | const int kNumFreeformFlags = 5; |
| 1600 | for (int i = 1; i <= kNumFreeformFlags; ++i) { |
| 1601 | NSString* key = |
| 1602 | [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i]; |
| 1603 | NSString* flag = [defaults stringForKey:key]; |
| 1604 | if ([flag length]) { |
Robbie Gibson | c91ce62 | 2019-05-20 14:44:33 | [diff] [blame] | 1605 | // iOS keyboard replaces -- with —, so undo that. |
| 1606 | flag = [flag stringByReplacingOccurrencesOfString:@"—" |
| 1607 | withString:@"--" |
| 1608 | options:0 |
| 1609 | range:NSMakeRange(0, 1)]; |
| 1610 | // To make things easier, allow flags with no dashes by prepending them |
| 1611 | // here. This also allows for flags that just have one dash if they |
| 1612 | // exist. |
| 1613 | if (![flag hasPrefix:@"-"]) { |
| 1614 | flag = [@"--" stringByAppendingString:flag]; |
| 1615 | } |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1616 | flags.push_back(base::SysNSStringToUTF8(flag)); |
| 1617 | } |
| 1618 | } |
| 1619 | |
| 1620 | base::CommandLine temp_command_line(flags); |
| 1621 | command_line->AppendArguments(temp_command_line, false); |
| 1622 | } |
msarda | fc76f66 | 2017-02-24 12:46:28 | [diff] [blame] | 1623 | |
justincohen | dacc85d | 2017-06-28 23:34:10 | [diff] [blame] | 1624 | // Populate command line flag for 3rd party keyboard omnibox workaround. |
| 1625 | NSString* enableThirdPartyKeyboardWorkaround = |
| 1626 | [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"]; |
| 1627 | if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) { |
| 1628 | command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround); |
| 1629 | } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) { |
| 1630 | command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround); |
| 1631 | } |
| 1632 | |
Sylvain Defresne | d3cd8d9 | 2022-01-18 13:35:08 | [diff] [blame] | 1633 | ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1634 | } |
| 1635 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1636 | void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage, |
| 1637 | base::CommandLine* command_line) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1638 | GetGlobalFlagsState().ConvertFlagsToSwitches( |
sdefresne | c976390 | 2015-12-02 10:30:11 | [diff] [blame] | 1639 | flags_storage, command_line, flags_ui::kAddSentinels, |
Gregory Chatzinoff | f652372 | 2017-11-21 01:33:53 | [diff] [blame] | 1640 | switches::kEnableFeatures, switches::kDisableFeatures); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1641 | } |
| 1642 | |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 1643 | std::vector<std::string> RegisterAllFeatureVariationParameters( |
| 1644 | flags_ui::FlagsStorage* flags_storage, |
| 1645 | base::FeatureList* feature_list) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1646 | return GetGlobalFlagsState().RegisterAllFeatureVariationParameters( |
| 1647 | flags_storage, feature_list); |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 1648 | } |
| 1649 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1650 | void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage, |
| 1651 | flags_ui::FlagAccess access, |
Matt Menke | 4d77757 | 2022-06-15 15:55:50 | [diff] [blame] | 1652 | base::Value::List& supported_entries, |
| 1653 | base::Value::List& unsupported_entries) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1654 | GetGlobalFlagsState().GetFlagFeatureEntries( |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1655 | flags_storage, access, supported_entries, unsupported_entries, |
Renjie Tang | 208c819 | 2020-11-03 00:46:51 | [diff] [blame] | 1656 | base::BindRepeating(&SkipConditionalFeatureEntry)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1657 | } |
| 1658 | |
| 1659 | void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage, |
| 1660 | const std::string& internal_name, |
| 1661 | bool enable) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1662 | GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name, |
| 1663 | enable); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1664 | } |
| 1665 | |
| 1666 | void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1667 | GetGlobalFlagsState().ResetAllFlags(flags_storage); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1668 | } |
| 1669 | |
| 1670 | namespace testing { |
| 1671 | |
Elly Fong-Jones | 323ab109 | 2021-08-23 22:36:31 | [diff] [blame] | 1672 | base::span<const flags_ui::FeatureEntry> GetFeatureEntries() { |
| 1673 | return base::span<const flags_ui::FeatureEntry>(kFeatureEntries, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 1674 | std::size(kFeatureEntries)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1675 | } |
| 1676 | |
| 1677 | } // namespace testing |