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