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 | |
Avi Drissman | eac566b0 | 2023-08-18 02:56:21 | [diff] [blame] | 14 | #import "base/apple/foundation_util.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 15 | #import "base/base_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 16 | #import "base/check_op.h" |
Peter Boström | 3f79857 | 2022-07-26 23:44:36 | [diff] [blame] | 17 | #import "base/debug/debugging_buildflags.h" |
Avi Drissman | cac43f2 | 2023-01-12 00:58:41 | [diff] [blame] | 18 | #import "base/functional/bind.h" |
| 19 | #import "base/functional/callback_helpers.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 20 | #import "base/no_destructor.h" |
| 21 | #import "base/strings/stringprintf.h" |
| 22 | #import "base/strings/sys_string_conversions.h" |
| 23 | #import "base/system/sys_info.h" |
| 24 | #import "components/autofill/core/common/autofill_features.h" |
| 25 | #import "components/autofill/core/common/autofill_payments_features.h" |
| 26 | #import "components/autofill/core/common/autofill_switches.h" |
| 27 | #import "components/autofill/ios/browser/autofill_switches.h" |
Menghan YANG | f3fe2de5 | 2023-02-27 16:38:50 | [diff] [blame] | 28 | #import "components/bookmarks/common/bookmark_features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 29 | #import "components/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" |
Benjamin Williams | 11f3991 | 2023-04-13 19:00:25 | [diff] [blame] | 42 | #import "components/history/core/browser/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 43 | #import "components/invalidation/impl/invalidation_switches.h" |
Benjamin Williams | aa8da814 | 2022-11-14 19:51:03 | [diff] [blame] | 44 | #import "components/ntp_tiles/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 45 | #import "components/ntp_tiles/switches.h" |
| 46 | #import "components/omnibox/browser/omnibox_field_trial.h" |
| 47 | #import "components/omnibox/common/omnibox_features.h" |
| 48 | #import "components/optimization_guide/core/optimization_guide_features.h" |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 49 | #import "components/optimization_guide/core/optimization_guide_switches.h" |
Vasilii Sukhanov | 32b1445 | 2023-10-12 17:31:27 | [diff] [blame] | 50 | #import "components/password_manager/core/browser/features/password_features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 51 | #import "components/password_manager/core/common/password_manager_features.h" |
| 52 | #import "components/payments/core/features.h" |
| 53 | #import "components/policy/core/common/features.h" |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 54 | #import "components/policy/core/common/policy_loader_ios_constants.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 55 | #import "components/policy/policy_constants.h" |
Menghan YANG | 5b3a78a | 2023-03-24 17:38:26 | [diff] [blame] | 56 | #import "components/reading_list/features/reading_list_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 57 | #import "components/safe_browsing/core/common/features.h" |
Chris Lu | 6fd4eaf | 2023-08-08 18:29:30 | [diff] [blame] | 58 | #import "components/segmentation_platform/public/constants.h" |
Chris Lu | b0bad57 | 2023-08-07 18:13:29 | [diff] [blame] | 59 | #import "components/segmentation_platform/public/features.h" |
Victor Hugo Vianna Silva | 0399402f | 2021-09-07 21:41:25 | [diff] [blame] | 60 | #import "components/send_tab_to_self/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 61 | #import "components/shared_highlighting/core/common/shared_highlighting_features.h" |
| 62 | #import "components/signin/core/browser/account_reconcilor.h" |
| 63 | #import "components/signin/ios/browser/features.h" |
| 64 | #import "components/signin/public/base/signin_switches.h" |
| 65 | #import "components/strings/grit/components_strings.h" |
Nohemi Fernandez | 64acf98 | 2023-08-04 09:27:15 | [diff] [blame] | 66 | #import "components/supervised_user/core/common/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 67 | #import "components/sync/base/command_line_switches.h" |
| 68 | #import "components/sync/base/features.h" |
| 69 | #import "components/sync/base/pref_names.h" |
| 70 | #import "components/translate/core/browser/translate_prefs.h" |
| 71 | #import "components/translate/core/common/translate_util.h" |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 72 | #import "ios/chrome/app/background_mode_buildflags.h" |
Gauthier Ambard | 5b7f3c2 | 2023-09-13 12:03:30 | [diff] [blame] | 73 | #import "ios/chrome/browser/browsing_data/model/browsing_data_features.h" |
Aman Verma | b6f5557 | 2023-09-28 11:40:53 | [diff] [blame] | 74 | #import "ios/chrome/browser/crash_report/model/features.h" |
Aman Verma | 10315df6 | 2023-10-02 11:56:56 | [diff] [blame] | 75 | #import "ios/chrome/browser/credential_provider_promo/model/features.h" |
Aman Verma | f8a157f6 | 2023-10-03 15:32:11 | [diff] [blame] | 76 | #import "ios/chrome/browser/default_browser/model/utils.h" |
mmrashad | bc0ca94 | 2023-10-06 13:12:14 | [diff] [blame] | 77 | #import "ios/chrome/browser/find_in_page/model/util.h" |
Gauthier Ambard | 9260513 | 2022-08-26 13:25:17 | [diff] [blame] | 78 | #import "ios/chrome/browser/flags/chrome_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 79 | #import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h" |
Tina Wang | d3f6f19 | 2023-04-05 05:22:43 | [diff] [blame] | 80 | #import "ios/chrome/browser/follow/follow_features.h" |
Ali Juma | d29dc187 | 2023-10-19 13:33:58 | [diff] [blame] | 81 | #import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h" |
Ed Chin | 100660bf | 2022-04-26 16:59:13 | [diff] [blame] | 82 | #import "ios/chrome/browser/ntp/features.h" |
Ewann Pelle | 9fd59fc2 | 2023-10-10 10:14:24 | [diff] [blame] | 83 | #import "ios/chrome/browser/ntp/home/features.h" |
Chris Lu | e687fc7 | 2023-10-27 02:42:19 | [diff] [blame] | 84 | #import "ios/chrome/browser/parcel_tracking/features.h" |
Vincent Boisselle | 88fef22 | 2022-09-23 18:54:50 | [diff] [blame] | 85 | #import "ios/chrome/browser/policy/cloud/user_policy_constants.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 86 | #import "ios/chrome/browser/policy/policy_util.h" |
Benjamin Williams | 14233d7 | 2022-07-26 18:32:20 | [diff] [blame] | 87 | #import "ios/chrome/browser/promos_manager/features.h" |
mmrashad | f158cad94 | 2023-10-03 09:15:48 | [diff] [blame] | 88 | #import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h" |
Gauthier Ambard | 7aa0fb92 | 2023-03-09 15:10:46 | [diff] [blame] | 89 | #import "ios/chrome/browser/shared/public/features/features.h" |
Gauthier Ambard | 818938c | 2023-06-16 14:48:35 | [diff] [blame] | 90 | #import "ios/chrome/browser/shared/public/features/system_flags.h" |
Robbie Gibson | 596fe29 | 2023-10-27 01:00:36 | [diff] [blame] | 91 | #import "ios/chrome/browser/tabs/model/inactive_tabs/features.h" |
| 92 | #import "ios/chrome/browser/tabs/model/tab_pickup/features.h" |
Ewann Pelle | d2eaeba | 2023-09-19 09:15:28 | [diff] [blame] | 93 | #import "ios/chrome/browser/text_selection/model/text_selection_util.h" |
Hira Mahmood | b0e5f41 | 2022-09-01 19:41:05 | [diff] [blame] | 94 | #import "ios/chrome/browser/ui/app_store_rating/features.h" |
Hira Mahmood | 6b0e550 | 2023-06-12 21:51:43 | [diff] [blame] | 95 | #import "ios/chrome/browser/ui/default_promo/post_restore/features.h" |
Ewann | 1a9d33d | 2021-06-14 11:12:24 | [diff] [blame] | 96 | #import "ios/chrome/browser/ui/download/features.h" |
adamta | 27356847 | 2020-12-04 23:53:57 | [diff] [blame] | 97 | #import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h" |
Christian Xu | b8c06cd | 2022-04-29 20:55:01 | [diff] [blame] | 98 | #import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h" |
Robbie Gibson | 686c5673 | 2021-10-04 17:11:45 | [diff] [blame] | 99 | #import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h" |
Ernesto Izquierdo Clua | 5e589f5 | 2023-07-06 20:52:15 | [diff] [blame] | 100 | #import "ios/chrome/browser/ui/settings/password/password_manager_ui_features.h" |
Rubin Deliallisi | 072bc84 | 2023-10-19 12:00:41 | [diff] [blame] | 101 | #import "ios/chrome/browser/ui/settings/privacy/privacy_guide/features.h" |
gogerald | 0ff29e5 | 2021-02-03 18:56:19 | [diff] [blame] | 102 | #import "ios/chrome/browser/ui/start_surface/start_surface_features.h" |
Cheick Cisse | 5d2b6cb8 | 2023-06-05 17:27:58 | [diff] [blame] | 103 | #import "ios/chrome/browser/ui/whats_new/whats_new_util.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 104 | #import "ios/chrome/browser/web/features.h" |
| 105 | #import "ios/chrome/grit/ios_strings.h" |
| 106 | #import "ios/components/security_interstitials/https_only_mode/feature.h" |
| 107 | #import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h" |
| 108 | #import "ios/web/common/features.h" |
| 109 | #import "ios/web/common/user_agent.h" |
| 110 | #import "ios/web/common/web_view_creation_util.h" |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 111 | |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 112 | #if BUILDFLAG(IOS_SCREEN_TIME_ENABLED) |
mmrashad | f158cad94 | 2023-10-03 09:15:48 | [diff] [blame] | 113 | #import "ios/chrome/browser/screen_time/model/features.h" |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 114 | #endif |
| 115 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 116 | #if !defined(OFFICIAL_BUILD) |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 117 | #import "components/variations/variations_switches.h" |
vitaliii | 489217aa | 2017-01-30 14:50:22 | [diff] [blame] | 118 | #endif |
stkhapugin | c1be179 | 2016-12-13 14:30:53 | [diff] [blame] | 119 | |
elawrence | 816f6790e | 2017-06-16 18:19:28 | [diff] [blame] | 120 | using flags_ui::FeatureEntry; |
| 121 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 122 | namespace { |
Emily Stark | bafa906 | 2017-12-27 15:22:46 | [diff] [blame] | 123 | |
Olivier Robin | 3d6041162 | 2018-02-23 10:03:22 | [diff] [blame] | 124 | const FeatureEntry::Choice kAutofillIOSDelayBetweenFieldsChoices[] = { |
| 125 | {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 126 | {"0", autofill::switches::kAutofillIOSDelayBetweenFields, "0"}, |
| 127 | {"10", autofill::switches::kAutofillIOSDelayBetweenFields, "10"}, |
| 128 | {"20", autofill::switches::kAutofillIOSDelayBetweenFields, "20"}, |
| 129 | {"50", autofill::switches::kAutofillIOSDelayBetweenFields, "50"}, |
| 130 | {"100", autofill::switches::kAutofillIOSDelayBetweenFields, "100"}, |
| 131 | {"200", autofill::switches::kAutofillIOSDelayBetweenFields, "200"}, |
| 132 | {"500", autofill::switches::kAutofillIOSDelayBetweenFields, "500"}, |
| 133 | {"1000", autofill::switches::kAutofillIOSDelayBetweenFields, "1000"}, |
| 134 | }; |
| 135 | |
Nohemi Fernandez | c00842a | 2021-07-26 11:47:34 | [diff] [blame] | 136 | const FeatureEntry::Choice |
| 137 | kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = { |
| 138 | {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 139 | {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"}, |
| 140 | {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"}, |
| 141 | {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"}, |
| 142 | }; |
| 143 | |
Cheick Cisse | 8835611a | 2023-06-02 21:42:54 | [diff] [blame] | 144 | // Uses int values from DefaultPromoType enum. |
| 145 | const FeatureEntry::Choice kDefaultBrowserPromoForceShowPromoChoices[] = { |
| 146 | {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 147 | {"Show generic promo", "default-browser-promo-force-show-promo", "0"}, |
| 148 | {"Show tailored stay safe promo", "default-browser-promo-force-show-promo", |
| 149 | "1"}, |
| 150 | {"Show tailored made for ios promo", |
| 151 | "default-browser-promo-force-show-promo", "2"}, |
| 152 | {"Show tailored all tabs promo", "default-browser-promo-force-show-promo", |
| 153 | "3"}, |
| 154 | {"Show video promo", "default-browser-promo-force-show-promo", "4"}, |
| 155 | }; |
| 156 | |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 157 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = { |
| 158 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}}; |
| 159 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = { |
| 160 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}}; |
| 161 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = { |
| 162 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}}; |
| 163 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = { |
| 164 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}}; |
| 165 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = { |
| 166 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}}; |
| 167 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = { |
| 168 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}}; |
| 169 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = { |
| 170 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}}; |
| 171 | |
| 172 | const FeatureEntry::FeatureVariation |
| 173 | kOmniboxUIMaxAutocompleteMatchesVariations[] = { |
| 174 | {"3 matches", kOmniboxUIMaxAutocompleteMatches3, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 175 | std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 176 | {"4 matches", kOmniboxUIMaxAutocompleteMatches4, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 177 | std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 178 | {"5 matches", kOmniboxUIMaxAutocompleteMatches5, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 179 | std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 180 | {"6 matches", kOmniboxUIMaxAutocompleteMatches6, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 181 | std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 182 | {"8 matches", kOmniboxUIMaxAutocompleteMatches8, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 183 | std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 184 | {"10 matches", kOmniboxUIMaxAutocompleteMatches10, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 185 | std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 186 | {"12 matches", kOmniboxUIMaxAutocompleteMatches12, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 187 | std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}}; |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 188 | |
Stepan Khapugin | bac467e | 2022-05-06 21:11:54 | [diff] [blame] | 189 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = { |
| 190 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}}; |
| 191 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = { |
| 192 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}}; |
| 193 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = { |
| 194 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}}; |
| 195 | |
| 196 | const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = { |
| 197 | {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6), |
| 198 | nullptr}, |
| 199 | {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15), |
| 200 | nullptr}, |
| 201 | {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20), |
| 202 | nullptr}, |
| 203 | }; |
| 204 | |
Christian Xu | cf26d56 | 2022-07-06 09:28:36 | [diff] [blame] | 205 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = { |
| 206 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}}; |
| 207 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = { |
| 208 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}}; |
| 209 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = { |
| 210 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}}; |
| 211 | |
| 212 | const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = { |
| 213 | {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5), |
| 214 | nullptr}, |
| 215 | {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6), |
| 216 | nullptr}, |
| 217 | {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7), |
| 218 | nullptr}, |
| 219 | }; |
| 220 | |
Cheick Cisse | dc49dbe | 2023-08-09 13:33:52 | [diff] [blame] | 221 | const FeatureEntry::FeatureParam |
Jennifer Serrano | f384360c | 2023-10-27 00:25:51 | [diff] [blame] | 222 | kOmniboxCompanyEntityAdjustmentLeastAggressive[] = { |
| 223 | {"OmniboxCompanyEntityAdjustmentGroup", "least-aggressive"}}; |
| 224 | const FeatureEntry::FeatureParam kOmniboxCompanyEntityAdjustmentModerate[] = { |
| 225 | {"OmniboxCompanyEntityAdjustmentGroup", "moderate"}}; |
| 226 | const FeatureEntry::FeatureParam |
| 227 | kOmniboxCompanyEntityAdjustmentMostAggressive[] = { |
| 228 | {"OmniboxCompanyEntityAdjustmentGroup", "most-aggressive"}}; |
| 229 | |
| 230 | const FeatureEntry::FeatureVariation |
| 231 | kOmniboxCompanyEntityAdjustmentVariations[] = { |
| 232 | {"Least Aggressive", kOmniboxCompanyEntityAdjustmentLeastAggressive, |
| 233 | std::size(kOmniboxCompanyEntityAdjustmentLeastAggressive), nullptr}, |
| 234 | {"Moderate", kOmniboxCompanyEntityAdjustmentModerate, |
| 235 | std::size(kOmniboxCompanyEntityAdjustmentModerate), nullptr}, |
| 236 | {"Most Aggressive", kOmniboxCompanyEntityAdjustmentMostAggressive, |
| 237 | std::size(kOmniboxCompanyEntityAdjustmentMostAggressive), nullptr}, |
| 238 | }; |
| 239 | |
| 240 | const FeatureEntry::FeatureParam |
Cheick Cisse | dc49dbe | 2023-08-09 13:33:52 | [diff] [blame] | 241 | kDefaultBrowserVideoConditionsHalfscreenPromo[] = { |
| 242 | {kDefaultBrowserVideoPromoVariant, kVideoConditionsHalfscreenPromo}}; |
| 243 | const FeatureEntry::FeatureParam |
| 244 | kDefaultBrowserVideoConditionsFullscreenPromo[] = { |
| 245 | {kDefaultBrowserVideoPromoVariant, kVideoConditionsFullscreenPromo}}; |
| 246 | const FeatureEntry::FeatureParam |
| 247 | kDefaultBrowserGenericConsitionsFullscreenPromo[] = { |
| 248 | {kDefaultBrowserVideoPromoVariant, kGenericConditionsFullscreenPromo}}; |
| 249 | const FeatureEntry::FeatureParam |
| 250 | kDefaultBrowserGenericConditionsHalfscreenPromo[] = { |
| 251 | {kDefaultBrowserVideoPromoVariant, kGenericConditionsHalfscreenPromo}}; |
| 252 | |
Cheick Cisse | 2806f082b | 2023-04-25 14:20:01 | [diff] [blame] | 253 | const FeatureEntry::FeatureVariation kDefaultBrowserVideoPromoVariations[] = { |
Cheick Cisse | dc49dbe | 2023-08-09 13:33:52 | [diff] [blame] | 254 | {"Show half screen ui with video condtions", |
| 255 | kDefaultBrowserVideoConditionsHalfscreenPromo, |
| 256 | std::size(kDefaultBrowserVideoConditionsHalfscreenPromo), nullptr}, |
| 257 | {"Show full screen ui with video condtions", |
| 258 | kDefaultBrowserVideoConditionsFullscreenPromo, |
| 259 | std::size(kDefaultBrowserVideoConditionsFullscreenPromo), nullptr}, |
| 260 | {"Show full screen ui with generic condtions", |
| 261 | kDefaultBrowserGenericConsitionsFullscreenPromo, |
| 262 | std::size(kDefaultBrowserGenericConsitionsFullscreenPromo), nullptr}, |
| 263 | {"Show half screen ui with generic condtions", |
| 264 | kDefaultBrowserGenericConditionsHalfscreenPromo, |
| 265 | std::size(kDefaultBrowserGenericConditionsHalfscreenPromo), nullptr}, |
Cheick Cisse | 2806f082b | 2023-04-25 14:20:01 | [diff] [blame] | 266 | }; |
| 267 | |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 268 | const FeatureEntry::FeatureParam |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 269 | kAutofillUseMobileLabelDisambiguationShowAll[] = { |
| 270 | {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName, |
| 271 | autofill::features:: |
| 272 | kAutofillUseMobileLabelDisambiguationParameterShowAll}}; |
| 273 | const FeatureEntry::FeatureParam |
| 274 | kAutofillUseMobileLabelDisambiguationShowOne[] = { |
| 275 | {autofill::features::kAutofillUseMobileLabelDisambiguationParameterName, |
| 276 | autofill::features:: |
| 277 | kAutofillUseMobileLabelDisambiguationParameterShowOne}}; |
| 278 | |
| 279 | const FeatureEntry::FeatureVariation |
| 280 | kAutofillUseMobileLabelDisambiguationVariations[] = { |
| 281 | {"(show all)", kAutofillUseMobileLabelDisambiguationShowAll, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 282 | std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr}, |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 283 | {"(show one)", kAutofillUseMobileLabelDisambiguationShowOne, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 284 | std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}}; |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 285 | |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 286 | // Uses int values from SigninPromoViewStyle enum. |
| 287 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = { |
| 288 | {kDiscoverFeedTopSyncPromoStyle, "0"}}; |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 289 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] = |
Guillem Perez | c2d1394 | 2023-06-22 20:14:59 | [diff] [blame] | 290 | {{kDiscoverFeedTopSyncPromoStyle, "1"}}; |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 291 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = { |
Guillem Perez | c2d1394 | 2023-06-22 20:14:59 | [diff] [blame] | 292 | {kDiscoverFeedTopSyncPromoStyle, "2"}}; |
adamta | db0bfc6 | 2022-08-01 17:37:47 | [diff] [blame] | 293 | |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 294 | const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = { |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 295 | {"Standard", kDiscoverFeedTopSyncPromoStandard, |
| 296 | std::size(kDiscoverFeedTopSyncPromoStandard), nullptr}, |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 297 | {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal, |
| 298 | std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr}, |
| 299 | {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical, |
| 300 | std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}}; |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 301 | |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 302 | const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = { |
| 303 | {kDisableStickyHeaderForFollowingFeed, "true"}}; |
| 304 | const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = { |
adamta | bc04804 | 2023-03-15 22:42:18 | [diff] [blame] | 305 | {kOverrideFeedHeaderHeight, "30"}}; |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 306 | const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = { |
| 307 | {kDisableStickyHeaderForFollowingFeed, "true"}, |
adamta | bc04804 | 2023-03-15 22:42:18 | [diff] [blame] | 308 | {kOverrideFeedHeaderHeight, "30"}}; |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 309 | |
| 310 | const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = { |
| 311 | {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader, |
| 312 | std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr}, |
| 313 | {"Reduced header height", kFeedHeaderSettingReducedHeight, |
| 314 | std::size(kFeedHeaderSettingReducedHeight), nullptr}, |
| 315 | {"All improvements", kFeedHeaderSettingAllImprovements, |
| 316 | std::size(kFeedHeaderSettingAllImprovements), nullptr}}; |
| 317 | |
Chris Lu | dca9ce3 | 2023-09-20 16:53:50 | [diff] [blame] | 318 | const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = { |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 319 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
Chris Lu | dca9ce3 | 2023-09-20 16:53:50 | [diff] [blame] | 320 | const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = { |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 321 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 322 | |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 323 | const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = { |
Chris Lu | dca9ce3 | 2023-09-20 16:53:50 | [diff] [blame] | 324 | {"10s:Show Home Surface", kStartSurfaceTenSeconds, |
| 325 | std::size(kStartSurfaceTenSeconds), nullptr}, |
| 326 | {"1h:Show Home Surface", kStartSurfaceOneHour, |
| 327 | std::size(kStartSurfaceOneHour), nullptr}, |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 328 | }; |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 329 | |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 330 | const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = { |
| 331 | {kMagicStackMostVisitedModuleParam, "true"}, |
| 332 | {kReducedSpaceParam, "-80"}}; |
Chris Lu | 28c0ede | 2023-08-25 19:25:22 | [diff] [blame] | 333 | const FeatureEntry::FeatureParam |
| 334 | kMagicStackMostVisitedModuleHideIrrelevantModules[] = { |
| 335 | {kMagicStackMostVisitedModuleParam, "true"}, |
| 336 | {kReducedSpaceParam, "-80"}, |
| 337 | {kHideIrrelevantModulesParam, "true"}}; |
Chris Lu | 22909b4 | 2023-09-08 21:12:13 | [diff] [blame] | 338 | const FeatureEntry::FeatureParam kMagicStackReducedNTPTopSpace[] = { |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 339 | {kMagicStackMostVisitedModuleParam, "false"}, |
Chris Lu | 22909b4 | 2023-09-08 21:12:13 | [diff] [blame] | 340 | {kReducedSpaceParam, "20"}}; |
| 341 | const FeatureEntry::FeatureParam |
| 342 | kMagicStackReducedNTPTopSpaceHidIrrelevantModules[] = { |
| 343 | {kMagicStackMostVisitedModuleParam, "false"}, |
| 344 | {kReducedSpaceParam, "20"}, |
| 345 | {kHideIrrelevantModulesParam, "true"}}; |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 346 | |
| 347 | const FeatureEntry::FeatureVariation kMagicStackVariations[]{ |
| 348 | {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule, |
| 349 | std::size(kMagicStackMostVisitedModule), nullptr}, |
Chris Lu | 28c0ede | 2023-08-25 19:25:22 | [diff] [blame] | 350 | {"Most Visited Tiles in Magic Stack and hide irrelevant modules", |
| 351 | kMagicStackMostVisitedModuleHideIrrelevantModules, |
| 352 | std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr}, |
Chris Lu | 22909b4 | 2023-09-08 21:12:13 | [diff] [blame] | 353 | {"Magic Stack with less NTP Top Space", kMagicStackReducedNTPTopSpace, |
| 354 | std::size(kMagicStackReducedNTPTopSpace), nullptr}, |
| 355 | {"Magic Stack with less NTP Top Space and hide irrelevant modules", |
| 356 | kMagicStackReducedNTPTopSpaceHidIrrelevantModules, |
| 357 | std::size(kMagicStackReducedNTPTopSpaceHidIrrelevantModules), nullptr}, |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 358 | }; |
| 359 | |
Chris Lu | 6fd4eaf | 2023-08-08 18:29:30 | [diff] [blame] | 360 | const FeatureEntry::FeatureParam kEnableDefaultModel[] = { |
| 361 | {segmentation_platform::kDefaultModelEnabledParam, "true"}}; |
| 362 | |
| 363 | const FeatureEntry::FeatureVariation |
| 364 | kSegmentationPlatformIosModuleRankerVariations[]{ |
| 365 | {"Enabled With Default Model Parameter (Must Set this!)", |
| 366 | kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr}, |
| 367 | }; |
| 368 | |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 369 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 370 | // Feed Background Refresh Feature Params. |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 371 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 372 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 373 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 374 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 375 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 376 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 377 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 378 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 379 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 380 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 381 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 382 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 383 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 384 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 385 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 386 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 387 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 388 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 389 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 390 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 391 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 392 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 393 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 394 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 395 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 396 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 397 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 398 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 399 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 400 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 401 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = { |
| 402 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 403 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
| 404 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 405 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 406 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = { |
| 407 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 408 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
| 409 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 410 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 411 | |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 412 | // Feed Background Refresh Feature Variations. |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 413 | const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = { |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 414 | {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce, |
| 415 | std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr}, |
| 416 | {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce, |
| 417 | std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr}, |
| 418 | {"1hr Interval 1hr Max Age Recurring", |
| 419 | kOneHourIntervalOneHourMaxAgeRecurring, |
| 420 | std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr}, |
| 421 | {"4hr Interval 6hr Max Age Recurring", |
| 422 | kFourHourIntervalSixHourMaxAgeRecurring, |
| 423 | std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr}, |
| 424 | {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce, |
| 425 | std::size(kServerDrivenOneHourMaxAgeOnce), nullptr}, |
| 426 | {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring, |
| 427 | std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr}, |
| 428 | {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce, |
| 429 | std::size(kServerDrivenSixHourMaxAgeOnce), nullptr}, |
| 430 | {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring, |
| 431 | std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 432 | }; |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 433 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 434 | |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 435 | // Feed Foreground Refresh Feature Params. |
Ed Chin | 5c1fd53 | 2023-03-20 17:43:29 | [diff] [blame] | 436 | const FeatureEntry::FeatureParam kFeedSessionCloseForegroundRefresh[] = { |
| 437 | {kEnableFeedSessionCloseForegroundRefresh, "true"}, |
Ed Chin | 44e6c7e | 2023-03-22 00:32:54 | [diff] [blame] | 438 | {kEnableFeedAppCloseForegroundRefresh, "false"}, |
| 439 | {kEnableFeedAppCloseBackgroundRefresh, "false"}}; |
Ed Chin | 5c1fd53 | 2023-03-20 17:43:29 | [diff] [blame] | 440 | const FeatureEntry::FeatureParam kFeedAppCloseForegroundRefresh[] = { |
| 441 | {kEnableFeedSessionCloseForegroundRefresh, "false"}, |
Ed Chin | 44e6c7e | 2023-03-22 00:32:54 | [diff] [blame] | 442 | {kEnableFeedAppCloseForegroundRefresh, "true"}, |
| 443 | {kEnableFeedAppCloseBackgroundRefresh, "false"}}; |
| 444 | const FeatureEntry::FeatureParam kFeedAppCloseBackgroundRefresh[] = { |
| 445 | {kEnableFeedSessionCloseForegroundRefresh, "false"}, |
| 446 | {kEnableFeedAppCloseForegroundRefresh, "false"}, |
| 447 | {kEnableFeedAppCloseBackgroundRefresh, "true"}}; |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 448 | |
Ed Chin | 5c1fd53 | 2023-03-20 17:43:29 | [diff] [blame] | 449 | // Feed Invisible Foreground Refresh Feature Variations. |
| 450 | const FeatureEntry::FeatureVariation |
| 451 | kFeedInvisibleForegroundRefreshVariations[] = { |
| 452 | {"session close foreground refresh", kFeedSessionCloseForegroundRefresh, |
| 453 | std::size(kFeedSessionCloseForegroundRefresh), nullptr}, |
| 454 | {"app close foreground refresh", kFeedAppCloseForegroundRefresh, |
| 455 | std::size(kFeedAppCloseForegroundRefresh), nullptr}, |
Ed Chin | 44e6c7e | 2023-03-22 00:32:54 | [diff] [blame] | 456 | {"app close background refresh", kFeedAppCloseBackgroundRefresh, |
| 457 | std::size(kFeedAppCloseBackgroundRefresh), nullptr}, |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 458 | }; |
| 459 | |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 460 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierDate[] = { |
| 461 | {"date", "true"}}; |
| 462 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddress[] = { |
| 463 | {"address", "true"}}; |
| 464 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierPhoneNumber[] = { |
| 465 | {"phonenumber", "true"}}; |
| 466 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmail[] = { |
| 467 | {"email", "true"}}; |
Raj T | e702d4e | 2023-05-15 21:03:50 | [diff] [blame] | 468 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierOneTap[] = { |
| 469 | {"onetap", "true"}}; |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 470 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAll[] = { |
| 471 | {"date", "true"}, |
| 472 | {"address", "true"}, |
| 473 | {"phonenumber", "true"}, |
| 474 | {"email", "true"}}; |
| 475 | const FeatureEntry::FeatureVariation kEnableExpKitTextClassifierVariations[] = { |
| 476 | {"Enabled for all entities", kEnableExpKitTextClassifierAll, |
| 477 | std::size(kEnableExpKitTextClassifierAll), nullptr}, |
| 478 | {"Enabled for date", kEnableExpKitTextClassifierDate, |
| 479 | std::size(kEnableExpKitTextClassifierDate), nullptr}, |
| 480 | {"Enabled for address", kEnableExpKitTextClassifierAddress, |
| 481 | std::size(kEnableExpKitTextClassifierAddress), nullptr}, |
| 482 | {"Enabled for phonenumber", kEnableExpKitTextClassifierPhoneNumber, |
| 483 | std::size(kEnableExpKitTextClassifierPhoneNumber), nullptr}, |
| 484 | {"Enabled for email", kEnableExpKitTextClassifierEmail, |
Raj T | e702d4e | 2023-05-15 21:03:50 | [diff] [blame] | 485 | std::size(kEnableExpKitTextClassifierEmail), nullptr}, |
| 486 | {"Enabled for One Tap mode", kEnableExpKitTextClassifierOneTap, |
| 487 | std::size(kEnableExpKitTextClassifierOneTap), nullptr}}; |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 488 | |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 489 | const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = { |
| 490 | {kTabInactivityThresholdParameterName, |
| 491 | kTabInactivityThresholdOneWeekParam}}; |
| 492 | const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = { |
| 493 | {kTabInactivityThresholdParameterName, |
| 494 | kTabInactivityThresholdTwoWeeksParam}}; |
| 495 | const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = { |
| 496 | {kTabInactivityThresholdParameterName, |
| 497 | kTabInactivityThresholdThreeWeeksParam}}; |
Louis Romero | 56abd90 | 2023-03-15 16:21:58 | [diff] [blame] | 498 | const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = { |
| 499 | {kTabInactivityThresholdParameterName, |
| 500 | kTabInactivityThresholdOneMinuteDemoParam}}; |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 501 | |
| 502 | const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = { |
| 503 | {"One week", kTabInactivityThresholdOneWeek, |
| 504 | std::size(kTabInactivityThresholdOneWeek), nullptr}, |
| 505 | {"Two weeks", kTabInactivityThresholdTwoWeeks, |
| 506 | std::size(kTabInactivityThresholdTwoWeeks), nullptr}, |
| 507 | {"Three weeks", kTabInactivityThresholdThreeWeeks, |
| 508 | std::size(kTabInactivityThresholdThreeWeeks), nullptr}, |
Louis Romero | 56abd90 | 2023-03-15 16:21:58 | [diff] [blame] | 509 | {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo, |
| 510 | std::size(kTabInactivityThresholdOneMinuteDemo), nullptr}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 511 | }; |
| 512 | |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 513 | const FeatureEntry::FeatureParam kTabPickupThresholdTenMinutes[] = { |
| 514 | {kTabPickupThresholdParameterName, kTabPickupThresholdTenMinutesParam}}; |
| 515 | const FeatureEntry::FeatureParam kTabPickupThresholdOneHour[] = { |
| 516 | {kTabPickupThresholdParameterName, kTabPickupThresholdOneHourParam}}; |
| 517 | const FeatureEntry::FeatureParam kTabPickupThresholdTwoHours[] = { |
| 518 | {kTabPickupThresholdParameterName, kTabPickupThresholdTwoHoursParam}}; |
| 519 | |
| 520 | const FeatureEntry::FeatureVariation kTabPickupThresholdVariations[] = { |
| 521 | {"Ten Minutes", kTabPickupThresholdTenMinutes, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 522 | std::size(kTabPickupThresholdTenMinutes), nullptr}, |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 523 | {"One Hour", kTabPickupThresholdOneHour, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 524 | std::size(kTabPickupThresholdOneHour), nullptr}, |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 525 | {"Two Hours", kTabPickupThresholdTwoHours, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 526 | std::size(kTabPickupThresholdTwoHours), nullptr}, |
| 527 | }; |
| 528 | |
| 529 | const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = { |
| 530 | {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}}; |
| 531 | const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = { |
| 532 | {kTabResumptionParameterName, kTabResumptionAllTabsParam}}; |
Ewann Pelle | b08ee06 | 2023-10-16 10:04:48 | [diff] [blame] | 533 | const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = { |
| 534 | {kTabResumptionParameterName, kTabResumptionAllTabsOneDayThresholdParam}}; |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 535 | |
| 536 | const FeatureEntry::FeatureVariation kTabResumptionVariations[] = { |
| 537 | {"Most recent tab only", kTabResumptionMostRecentTabOnly, |
| 538 | std::size(kTabResumptionMostRecentTabOnly), nullptr}, |
Ewann Pelle | b08ee06 | 2023-10-16 10:04:48 | [diff] [blame] | 539 | {"Most recent tab and last synced tab (12 hours threshold)", |
| 540 | kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr}, |
| 541 | {"Most recent tab and last synced tab (24 hours threshold)", |
| 542 | kTabResumptionAllTabsOneDayThreshold, |
| 543 | std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}, |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 544 | }; |
| 545 | |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 546 | const FeatureEntry::FeatureParam |
| 547 | kCredentialProviderExtensionPromoOnPasswordSaved[] = { |
| 548 | {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}}; |
| 549 | const FeatureEntry::FeatureParam |
| 550 | kCredentialProviderExtensionPromoOnPasswordCopied[] = { |
| 551 | {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}}; |
| 552 | const FeatureEntry::FeatureParam |
Hira Mahmood | 1baa9be | 2023-05-25 13:55:20 | [diff] [blame] | 553 | kCredentialProviderExtensionPromoOnAllTriggers[] = { |
Hira Mahmood | 1baa9be | 2023-05-25 13:55:20 | [diff] [blame] | 554 | {kCredentialProviderExtensionPromoOnPasswordCopiedParam, "true"}, |
| 555 | {kCredentialProviderExtensionPromoOnPasswordSavedParam, "true"}}; |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 556 | |
| 557 | const FeatureEntry::FeatureVariation |
| 558 | kCredentialProviderExtensionPromoVariations[] = { |
| 559 | {"On password saved", kCredentialProviderExtensionPromoOnPasswordSaved, |
| 560 | std::size(kCredentialProviderExtensionPromoOnPasswordSaved), nullptr}, |
| 561 | {"On password copied", |
| 562 | kCredentialProviderExtensionPromoOnPasswordCopied, |
| 563 | std::size(kCredentialProviderExtensionPromoOnPasswordCopied), nullptr}, |
Hira Mahmood | 1baa9be | 2023-05-25 13:55:20 | [diff] [blame] | 564 | {"On all triggers", kCredentialProviderExtensionPromoOnAllTriggers, |
Huiting Yu | 7997667e | 2023-07-07 16:12:30 | [diff] [blame] | 565 | std::size(kCredentialProviderExtensionPromoOnAllTriggers), nullptr}}; |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 566 | |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 567 | const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = { |
| 568 | {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}}; |
Olivier Robin | fa8de550 | 2023-06-21 19:53:44 | [diff] [blame] | 569 | const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateWithIncognito[] = { |
| 570 | {kIOSEditMenuPartialTranslateNoIncognitoParam, "false"}}; |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 571 | const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] = |
| 572 | {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito, |
Olivier Robin | fa8de550 | 2023-06-21 19:53:44 | [diff] [blame] | 573 | std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr}, |
| 574 | {"Enable on incognito", kIOSEditMenuPartialTranslateWithIncognito, |
| 575 | std::size(kIOSEditMenuPartialTranslateWithIncognito), nullptr}}; |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 576 | |
Olivier ROBIN | 2613bcd0 | 2023-04-20 10:00:47 | [diff] [blame] | 577 | const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearchWith[] = { |
| 578 | {kIOSEditMenuSearchWithTitleParamTitle, |
| 579 | kIOSEditMenuSearchWithTitleSearchWithParam}}; |
| 580 | const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearch[] = { |
| 581 | {kIOSEditMenuSearchWithTitleParamTitle, |
| 582 | kIOSEditMenuSearchWithTitleSearchParam}}; |
| 583 | const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleWebSearch[] = { |
| 584 | {kIOSEditMenuSearchWithTitleParamTitle, |
| 585 | kIOSEditMenuSearchWithTitleWebSearchParam}}; |
| 586 | const FeatureEntry::FeatureVariation kIOSEditMenuSearchWithVariations[] = { |
| 587 | {"Search with DSE", kIOSEditMenuSearchWithTitleSearchWith, |
| 588 | std::size(kIOSEditMenuSearchWithTitleSearchWith), nullptr}, |
| 589 | {"Search", kIOSEditMenuSearchWithTitleSearch, |
| 590 | std::size(kIOSEditMenuSearchWithTitleSearch), nullptr}, |
| 591 | {"Web Search", kIOSEditMenuSearchWithTitleWebSearch, |
| 592 | std::size(kIOSEditMenuSearchWithTitleWebSearch), nullptr}, |
| 593 | }; |
| 594 | |
Hira Mahmood | 6b0e550 | 2023-06-12 21:51:43 | [diff] [blame] | 595 | const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoHalfscreen[] = { |
| 596 | {kPostRestoreDefaultBrowserPromoHalfscreenParam, "true"}}; |
| 597 | const FeatureEntry::FeatureParam kPostRestoreDefaultBrowserPromoFullscreen[] = { |
| 598 | {kPostRestoreDefaultBrowserPromoFullscreenParam, "true"}}; |
| 599 | const FeatureEntry::FeatureVariation |
| 600 | kPostRestoreDefaultBrowserPromoVariations[] = { |
| 601 | {"with half screen ui", kPostRestoreDefaultBrowserPromoHalfscreen, |
| 602 | std::size(kPostRestoreDefaultBrowserPromoHalfscreen), nullptr}, |
| 603 | {"with full screen ui", kPostRestoreDefaultBrowserPromoFullscreen, |
| 604 | std::size(kPostRestoreDefaultBrowserPromoFullscreen), nullptr}, |
| 605 | }; |
| 606 | |
Christian Xu | 07d60019 | 2023-07-24 12:29:52 | [diff] [blame] | 607 | const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = { |
| 608 | {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}}; |
| 609 | const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = { |
| 610 | {kBottomOmniboxDefaultSettingParam, |
| 611 | kBottomOmniboxDefaultSettingParamBottom}}; |
| 612 | const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] = |
| 613 | {{kBottomOmniboxDefaultSettingParam, |
| 614 | kBottomOmniboxDefaultSettingParamSafariSwitcher}}; |
| 615 | const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] = |
| 616 | { |
| 617 | {"Top", kBottomOmniboxDefaultSettingTop, |
| 618 | std::size(kBottomOmniboxDefaultSettingTop), nullptr}, |
| 619 | {"Bottom", kBottomOmniboxDefaultSettingBottom, |
| 620 | std::size(kBottomOmniboxDefaultSettingBottom), nullptr}, |
| 621 | {"Bottom for Safari Switcher", |
| 622 | kBottomOmniboxDefaultSettingSafariSwitcher, |
| 623 | std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr}, |
| 624 | }; |
| 625 | |
Marc Treib | 9bddebb | 2023-06-15 14:03:34 | [diff] [blame] | 626 | const FeatureEntry::Choice kReplaceSyncPromosWithSignInPromosChoices[] = { |
| 627 | {"Default", "", ""}, |
Marc Treib | 565b418 | 2023-07-28 10:27:25 | [diff] [blame] | 628 | {"Disabled", "disable-features", |
| 629 | "ReplaceSyncPromosWithSignInPromos," |
Victor Hugo Vianna Silva | a730e2c | 2023-08-31 10:28:24 | [diff] [blame] | 630 | "ConsistencyNewAccountInterface," |
Victor Hugo Vianna Silva | 4e9893b | 2023-10-30 11:17:02 | [diff] [blame] | 631 | "FeedBottomSyncStringRemoval," |
| 632 | "SyncEnableContactInfoDataTypeInTransportMode," |
| 633 | "SyncEnableContactInfoDataTypeForCustomPassphraseUsers," |
| 634 | "SyncEnableBatchUploadLocalData," |
| 635 | "SyncEnableWalletMetadataInTransportMode," |
| 636 | "SyncEnableWalletOfferInTransportMode," |
| 637 | "IOSPasswordSettingsBulkUploadLocalPasswords"}, |
| 638 | {"Enabled without fast-follows", "enable-features", |
Marc Treib | 9bddebb | 2023-06-15 14:03:34 | [diff] [blame] | 639 | "ReplaceSyncPromosWithSignInPromos," |
Victor Hugo Vianna Silva | a730e2c | 2023-08-31 10:28:24 | [diff] [blame] | 640 | "ConsistencyNewAccountInterface," |
Marc Treib | 565b418 | 2023-07-28 10:27:25 | [diff] [blame] | 641 | "FeedBottomSyncStringRemoval," |
Marc Treib | 9bddebb | 2023-06-15 14:03:34 | [diff] [blame] | 642 | "SyncEnableContactInfoDataTypeInTransportMode," |
Marc Treib | ae48ec48 | 2023-08-04 16:33:37 | [diff] [blame] | 643 | "SyncEnableContactInfoDataTypeForCustomPassphraseUsers," |
Jood Hajeer | 5c609ec | 2023-09-05 12:20:55 | [diff] [blame] | 644 | "SyncEnableBatchUploadLocalData," |
Marc Treib | d4de927 | 2023-09-19 13:54:06 | [diff] [blame] | 645 | "SyncEnableWalletMetadataInTransportMode," |
Marc Treib | fcc40d0 | 2023-09-20 18:16:06 | [diff] [blame] | 646 | "SyncEnableWalletOfferInTransportMode," |
| 647 | "IOSPasswordSettingsBulkUploadLocalPasswords"}, |
Victor Hugo Vianna Silva | 4e9893b | 2023-10-30 11:17:02 | [diff] [blame] | 648 | {"Enabled with fast-follows", "enable-features", |
| 649 | "ReplaceSyncPromosWithSignInPromos," |
| 650 | "ConsistencyNewAccountInterface," |
| 651 | "FeedBottomSyncStringRemoval," |
| 652 | "SyncEnableContactInfoDataTypeInTransportMode," |
| 653 | "SyncEnableContactInfoDataTypeForCustomPassphraseUsers," |
| 654 | "SyncEnableBatchUploadLocalData," |
| 655 | "SyncEnableWalletMetadataInTransportMode," |
| 656 | "SyncEnableWalletOfferInTransportMode," |
| 657 | "IOSPasswordSettingsBulkUploadLocalPasswords," |
| 658 | "HistoryOptInForRestoreShortyAndReSignin"}, |
Marc Treib | 9bddebb | 2023-06-15 14:03:34 | [diff] [blame] | 659 | }; |
| 660 | |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 661 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = { |
| 662 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 663 | web::features::kOneTapForMapsConsentModeDefaultParam}}; |
| 664 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = { |
| 665 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 666 | web::features::kOneTapForMapsConsentModeForcedParam}}; |
| 667 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = { |
| 668 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 669 | web::features::kOneTapForMapsConsentModeDisabledParam}}; |
Olivier ROBIN | 333f0b54 | 2023-09-01 14:53:31 | [diff] [blame] | 670 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = { |
| 671 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 672 | web::features::kOneTapForMapsConsentModeIPHParam}}; |
| 673 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = { |
| 674 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 675 | web::features::kOneTapForMapsConsentModeIPHForcedParam}}; |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 676 | const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = { |
| 677 | {"Consent Default", kOneTapForMapsConsentModeDefault, |
| 678 | std::size(kOneTapForMapsConsentModeDefault), nullptr}, |
| 679 | {"Consent Forced", kOneTapForMapsConsentModeForced, |
| 680 | std::size(kOneTapForMapsConsentModeForced), nullptr}, |
Olivier ROBIN | 333f0b54 | 2023-09-01 14:53:31 | [diff] [blame] | 681 | {"Consent IPH", kOneTapForMapsConsentModeIPH, |
| 682 | std::size(kOneTapForMapsConsentModeIPH), nullptr}, |
| 683 | {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced, |
| 684 | std::size(kOneTapForMapsConsentModeIPHForced), nullptr}, |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 685 | {"Consent Disabled", kOneTapForMapsConsentModeDisabled, |
| 686 | std::size(kOneTapForMapsConsentModeDisabled), nullptr}, |
| 687 | }; |
| 688 | |
Stepan Khapugin | ec68d5bb | 2023-10-16 13:35:25 | [diff] [blame] | 689 | constexpr FeatureEntry::FeatureParam kOmniboxInspireMeWith25Total5Trends[] = { |
| 690 | {OmniboxFieldTrial::kInspireMeAdditionalTrendingQueries.name, "5"}, |
Ameur Hosni | 15084c2a | 2023-10-23 09:30:19 | [diff] [blame] | 691 | {OmniboxFieldTrial::kInspireMePsuggestQueries.name, "20"}}; |
Stepan Khapugin | ec68d5bb | 2023-10-16 13:35:25 | [diff] [blame] | 692 | constexpr FeatureEntry::FeatureParam kOmniboxInspireMeWith20Total5Trends[] = { |
| 693 | {OmniboxFieldTrial::kInspireMeAdditionalTrendingQueries.name, "5"}, |
Ameur Hosni | 15084c2a | 2023-10-23 09:30:19 | [diff] [blame] | 694 | {OmniboxFieldTrial::kInspireMePsuggestQueries.name, "15"}}; |
Stepan Khapugin | ec68d5bb | 2023-10-16 13:35:25 | [diff] [blame] | 695 | constexpr FeatureEntry::FeatureParam kOmniboxInspireMeWith25Total10Trends[] = { |
| 696 | {OmniboxFieldTrial::kInspireMeAdditionalTrendingQueries.name, "10"}, |
Ameur Hosni | 15084c2a | 2023-10-23 09:30:19 | [diff] [blame] | 697 | {OmniboxFieldTrial::kInspireMePsuggestQueries.name, "15"}}; |
Stepan Khapugin | ec68d5bb | 2023-10-16 13:35:25 | [diff] [blame] | 698 | constexpr FeatureEntry::FeatureParam kOmniboxInspireMeWith20Total10Trends[] = { |
| 699 | {OmniboxFieldTrial::kInspireMeAdditionalTrendingQueries.name, "10"}, |
Ameur Hosni | 15084c2a | 2023-10-23 09:30:19 | [diff] [blame] | 700 | {OmniboxFieldTrial::kInspireMePsuggestQueries.name, "10"}}; |
Stepan Khapugin | ec68d5bb | 2023-10-16 13:35:25 | [diff] [blame] | 701 | |
| 702 | constexpr FeatureEntry::FeatureVariation kOmniboxInspireMeVariants[] = { |
| 703 | {"25 total, 5 Trends", kOmniboxInspireMeWith25Total5Trends, |
| 704 | std::size(kOmniboxInspireMeWith25Total5Trends), "t3363282"}, |
| 705 | {"20 total, 5 Trends", kOmniboxInspireMeWith20Total5Trends, |
| 706 | std::size(kOmniboxInspireMeWith20Total5Trends), "t3363282"}, |
| 707 | {"25 total, 10 Trends", kOmniboxInspireMeWith25Total10Trends, |
| 708 | std::size(kOmniboxInspireMeWith25Total10Trends), "t3363285"}, |
| 709 | {"20 total, 10 Trends", kOmniboxInspireMeWith20Total10Trends, |
| 710 | std::size(kOmniboxInspireMeWith20Total10Trends), "t3363285"}, |
| 711 | }; |
| 712 | |
Rafał Godlewski | e75d1240 | 2023-10-25 15:31:53 | [diff] [blame] | 713 | const FeatureEntry::Choice kEnablePasswordSharingChoices[] = { |
| 714 | {"Default", "", ""}, |
| 715 | {"Bootstraping Only", switches::kEnableFeatures, |
| 716 | "SharingOfferKeyPairBootstrap"}, |
| 717 | {"Enabled", switches::kEnableFeatures, |
| 718 | "SharingOfferKeyPairBootstrap,SendPasswords," |
| 719 | "PasswordManagerEnableSenderService," |
| 720 | "PasswordManagerEnableReceiverService,SharedPasswordNotificationUI"}, |
| 721 | }; |
| 722 | |
Scott Yoder | d781bd1 | 2023-10-25 20:47:15 | [diff] [blame] | 723 | const FeatureEntry::FeatureParam kIOSHideFeedWithSearchChoiceTargetedParams[] = |
| 724 | {{kIOSHideFeedWithSearchChoiceTargeted, "true"}}; |
| 725 | const FeatureEntry::FeatureVariation kIOSHideFeedWithSearchChoiceVariations[]{ |
| 726 | {"with targeting", kIOSHideFeedWithSearchChoiceTargetedParams, |
| 727 | std::size(kIOSHideFeedWithSearchChoiceTargetedParams), nullptr}, |
| 728 | }; |
| 729 | |
Matt Jones | 7953439 | 2023-10-27 14:35:02 | [diff] [blame] | 730 | const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataDelivered[] = |
| 731 | {{commerce::kParcelTrackingTestDataParam, |
| 732 | commerce::kParcelTrackingTestDataParamDelivered}}; |
| 733 | const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataInProgress[] = |
| 734 | {{commerce::kParcelTrackingTestDataParam, |
| 735 | commerce::kParcelTrackingTestDataParamInProgress}}; |
| 736 | const flags_ui::FeatureEntry::FeatureParam |
| 737 | kParcelTrackingTestDataOutForDelivery[] = { |
| 738 | {commerce::kParcelTrackingTestDataParam, |
| 739 | commerce::kParcelTrackingTestDataParamOutForDelivery}}; |
| 740 | const flags_ui::FeatureEntry::FeatureVariation |
| 741 | kParcelTrackingTestDataVariations[] = { |
| 742 | {"Delivered", kParcelTrackingTestDataDelivered, |
| 743 | std::size(kParcelTrackingTestDataDelivered), nullptr}, |
| 744 | {"In progress", kParcelTrackingTestDataInProgress, |
| 745 | std::size(kParcelTrackingTestDataInProgress), nullptr}, |
| 746 | {"Out for delivery", kParcelTrackingTestDataOutForDelivery, |
| 747 | std::size(kParcelTrackingTestDataOutForDelivery), nullptr}, |
| 748 | }; |
| 749 | |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 750 | // To add a new entry, add to the end of kFeatureEntries. There are four |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 751 | // distinct types of entries: |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 752 | // . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the |
| 753 | // default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 754 | // macro for this type supplying the command line to the macro. |
| 755 | // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
| 756 | // deactivated state for this lab (i.e. no command line option). To specify |
| 757 | // this type of entry use the macro MULTI_VALUE_TYPE supplying it the |
| 758 | // array of choices. |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 759 | // . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is |
| 760 | // either enabled, disabled, or uses the default value of the associated |
| 761 | // base::Feature instance. To specify this type of entry use the macro |
| 762 | // FEATURE_VALUE_TYPE supplying it the base::Feature instance. |
| 763 | // . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a |
| 764 | // base::Feature instance. Choices corresponding to the default state, a |
| 765 | // universally enabled state, and a universally disabled state are |
| 766 | // automatically included. To specify this type of entry use the macro |
| 767 | // FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and |
| 768 | // the array of choices. |
| 769 | // |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 770 | // See the documentation of FeatureEntry for details on the fields. |
| 771 | // |
| 772 | // When adding a new choice, add it to the end of the list. |
| 773 | const flags_ui::FeatureEntry kFeatureEntries[] = { |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 774 | {"in-product-help-demo-mode-choice", |
| 775 | flag_descriptions::kInProductHelpDemoModeName, |
| 776 | flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos, |
| 777 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
Tommy Nyquist | c1d6dea1 | 2017-07-26 20:37:23 | [diff] [blame] | 778 | feature_engagement::kIPHDemoMode, |
| 779 | feature_engagement::kIPHDemoModeChoiceVariations, |
Marc Treib | 2752e8b | 2017-08-04 14:12:09 | [diff] [blame] | 780 | "IPH_DemoMode")}, |
Moe Ahmadi | c3fd7cd | 2018-05-11 21:40:22 | [diff] [blame] | 781 | {"enable-autofill-credit-card-upload", |
| 782 | flag_descriptions::kAutofillCreditCardUploadName, |
| 783 | flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos, |
Anne Lim | 579b573 | 2018-08-30 18:24:24 | [diff] [blame] | 784 | FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)}, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 785 | {"use-sync-sandbox", flag_descriptions::kSyncSandboxName, |
| 786 | flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos, |
| 787 | SINGLE_VALUE_TYPE_AND_VALUE( |
Victor Hugo Vianna Silva | 3cd7ae9 | 2022-02-09 20:49:51 | [diff] [blame] | 788 | syncer::kSyncServiceURL, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 789 | "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")}, |
| 790 | {"wallet-service-use-sandbox", |
| 791 | flag_descriptions::kWalletServiceUseSandboxName, |
| 792 | flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos, |
| 793 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
| 794 | autofill::switches::kWalletServiceUseSandbox, |
| 795 | "1", |
| 796 | autofill::switches::kWalletServiceUseSandbox, |
| 797 | "0")}, |
Mohamad Ahmadi | c4df81f | 2017-12-20 04:41:59 | [diff] [blame] | 798 | {"show-autofill-type-predictions", |
| 799 | flag_descriptions::kShowAutofillTypePredictionsName, |
| 800 | flag_descriptions::kShowAutofillTypePredictionsDescription, |
| 801 | flags_ui::kOsIos, |
Florian Leimgruber | f53ca39 | 2023-02-21 15:56:50 | [diff] [blame] | 802 | FEATURE_VALUE_TYPE( |
| 803 | autofill::features::test::kAutofillShowTypePredictions)}, |
Vidhan Jain | b86c94b | 2023-04-06 14:13:57 | [diff] [blame] | 804 | {"autofill-account-profiles-storage", |
| 805 | flag_descriptions::kAutofillAccountProfilesStorageName, |
| 806 | flag_descriptions::kAutofillAccountProfilesStorageDescription, |
| 807 | flags_ui::kOsIos, |
| 808 | FEATURE_VALUE_TYPE(autofill::features::kAutofillAccountProfileStorage)}, |
Olivier Robin | 3d6041162 | 2018-02-23 10:03:22 | [diff] [blame] | 809 | {"autofill-ios-delay-between-fields", |
| 810 | flag_descriptions::kAutofillIOSDelayBetweenFieldsName, |
| 811 | flag_descriptions::kAutofillIOSDelayBetweenFieldsDescription, |
| 812 | flags_ui::kOsIos, MULTI_VALUE_TYPE(kAutofillIOSDelayBetweenFieldsChoices)}, |
Benjamin Williams | df18e7e | 2022-10-03 18:46:05 | [diff] [blame] | 813 | {"fullscreen-promos-manager-skip-internal-limits", |
| 814 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName, |
| 815 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription, |
| 816 | flags_ui::kOsIos, |
| 817 | FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)}, |
Kurt Horimoto | dc33af3 | 2018-05-01 01:39:14 | [diff] [blame] | 818 | {"fullscreen-viewport-adjustment-experiment", |
Chris Lu | 481a932 | 2019-09-25 22:16:53 | [diff] [blame] | 819 | flag_descriptions::kFullscreenSmoothScrollingName, |
| 820 | flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos, |
Aliona DANGLA | 4e3b473 | 2023-03-22 09:35:19 | [diff] [blame] | 821 | FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)}, |
Robbie Gibson | 1f37a5e | 2020-08-06 17:03:06 | [diff] [blame] | 822 | {"webpage-default-zoom-from-dynamic-type", |
| 823 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName, |
| 824 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription, |
| 825 | flags_ui::kOsIos, |
| 826 | FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)}, |
Robbie Gibson | 88f2396 | 2020-09-28 14:35:56 | [diff] [blame] | 827 | {"webpage-alternative-text-zoom", |
| 828 | flag_descriptions::kWebPageAlternativeTextZoomName, |
| 829 | flag_descriptions::kWebPageAlternativeTextZoomDescription, |
| 830 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)}, |
Robbie Gibson | 1095b72c | 2022-06-06 17:03:34 | [diff] [blame] | 831 | {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName, |
| 832 | flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos, |
| 833 | FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 834 | {"omnibox-ui-max-autocomplete-matches", |
| 835 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName, |
| 836 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription, |
| 837 | flags_ui::kOsIos, |
| 838 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 839 | omnibox::kUIExperimentMaxAutocompleteMatches, |
| 840 | kOmniboxUIMaxAutocompleteMatchesVariations, |
| 841 | "OmniboxUIMaxAutocompleteVariations")}, |
Moe Ahmadi | 01028f2 | 2022-08-06 17:57:35 | [diff] [blame] | 842 | {"omnibox-local-history-zero-suggest-beyond-ntp", |
| 843 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName, |
| 844 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription, |
| 845 | flags_ui::kOsIos, |
| 846 | FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)}, |
Stepan Khapugin | bac467e | 2022-05-06 21:11:54 | [diff] [blame] | 847 | {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName, |
| 848 | flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos, |
| 849 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches, |
| 850 | kOmniboxMaxZPSMatchesVariations, |
| 851 | "OmniboxMaxZPSVariations")}, |
Stepan Khapugin | ec68d5bb | 2023-10-16 13:35:25 | [diff] [blame] | 852 | {"omnibox-inspire-me", flag_descriptions::kOmniboxInspireMeName, |
| 853 | flag_descriptions::kOmniboxInspireMeDescription, flags_ui::kOsIos, |
| 854 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kInspireMe, |
| 855 | kOmniboxInspireMeVariants, |
| 856 | "OmniboxBundledExperimentV1")}, |
| 857 | {"omnibox-inspire-me-signed-out", |
| 858 | flag_descriptions::kOmniboxInspireMeSignedOutName, |
| 859 | flag_descriptions::kOmniboxInspireMeSignedOutDescription, flags_ui::kOsIos, |
| 860 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestOnNTPForSignedOutUsers)}, |
Caitlin Fischer | 43edd90a | 2019-05-01 13:24:30 | [diff] [blame] | 861 | {"autofill-use-mobile-label-disambiguation", |
| 862 | flag_descriptions::kAutofillUseMobileLabelDisambiguationName, |
| 863 | flag_descriptions::kAutofillUseMobileLabelDisambiguationDescription, |
| 864 | flags_ui::kOsIos, |
Caitlin Fischer | 37e0123 | 2019-05-24 13:05:45 | [diff] [blame] | 865 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 866 | autofill::features::kAutofillUseMobileLabelDisambiguation, |
| 867 | kAutofillUseMobileLabelDisambiguationVariations, |
| 868 | "AutofillUseMobileLabelDisambiguation")}, |
Jérôme Lebel | c374fdd | 2019-09-27 10:36:48 | [diff] [blame] | 869 | {"force-startup-signin-promo", |
| 870 | flag_descriptions::kForceStartupSigninPromoName, |
| 871 | flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos, |
Alice Wang | 345e0944 | 2021-07-05 09:03:29 | [diff] [blame] | 872 | FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)}, |
Yoichi Osato | 7ae1175 | 2021-03-16 03:27:22 | [diff] [blame] | 873 | {"restore-session-from-cache", |
| 874 | flag_descriptions::kRestoreSessionFromCacheName, |
| 875 | flag_descriptions::kRestoreSessionFromCacheDescription, flags_ui::kOsIos, |
Justin Cohen | 3ec2522c | 2021-04-23 18:23:49 | [diff] [blame] | 876 | FEATURE_VALUE_TYPE(web::kRestoreSessionFromCache)}, |
Tommy Martino | 6b4eb7e | 2020-06-25 18:25:41 | [diff] [blame] | 877 | {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName, |
| 878 | flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos, |
| 879 | FEATURE_VALUE_TYPE(kSharedHighlightingIOS)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 880 | #if BUILDFLAG(IOS_SCREEN_TIME_ENABLED) |
edchin | 81467b8 | 2020-09-03 19:31:45 | [diff] [blame] | 881 | {"screen-time-integration-ios", |
| 882 | flag_descriptions::kScreenTimeIntegrationName, |
| 883 | flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos, |
| 884 | FEATURE_VALUE_TYPE(kScreenTimeIntegration)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 885 | #endif |
Nazerke | 3e993f7 | 2020-09-21 13:00:06 | [diff] [blame] | 886 | {"modern-tab-strip", flag_descriptions::kModernTabStripName, |
| 887 | flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos, |
| 888 | FEATURE_VALUE_TYPE(kModernTabStrip)}, |
Cheick Cisse | 76ade3d | 2020-12-16 00:15:11 | [diff] [blame] | 889 | {"ios-shared-highlighting-color-change", |
| 890 | flag_descriptions::kIOSSharedHighlightingColorChangeName, |
| 891 | flag_descriptions::kIOSSharedHighlightingColorChangeDescription, |
Cheick Cisse | d0b5bfe | 2021-02-11 14:23:07 | [diff] [blame] | 892 | flags_ui::kOsIos, |
| 893 | FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)}, |
Cheick Cisse | fe99486 | 2021-12-15 16:01:34 | [diff] [blame] | 894 | {"ios-shared-highlighting-v2", |
| 895 | flag_descriptions::kIOSSharedHighlightingV2Name, |
| 896 | flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos, |
| 897 | FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)}, |
Stepan Khapugin | 0434120 | 2021-01-07 12:22:45 | [diff] [blame] | 898 | {"omnibox-new-textfield-implementation", |
| 899 | flag_descriptions::kOmniboxNewImplementationName, |
| 900 | flag_descriptions::kOmniboxNewImplementationDescription, flags_ui::kOsIos, |
| 901 | FEATURE_VALUE_TYPE(kIOSNewOmniboxImplementation)}, |
Stepan Khapugin | 0da1238 | 2023-01-24 16:08:12 | [diff] [blame] | 902 | {"omnibox-report-assisted-query-stats", |
| 903 | flag_descriptions::kOmniboxReportAssistedQueryStatsName, |
| 904 | flag_descriptions::kOmniboxReportAssistedQueryStatsDescription, |
| 905 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportAssistedQueryStats)}, |
| 906 | {"omnibox-report-searchbox-stats", |
| 907 | flag_descriptions::kOmniboxReportSearchboxStatsName, |
| 908 | flag_descriptions::kOmniboxReportSearchboxStatsDescription, |
| 909 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kReportSearchboxStats)}, |
gogerald | 0ff29e5 | 2021-02-03 18:56:19 | [diff] [blame] | 910 | {"start-surface", flag_descriptions::kStartSurfaceName, |
| 911 | flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos, |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 912 | FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface, |
| 913 | kStartSurfaceVariations, |
| 914 | "StartSurface")}, |
Vidhan Jain | 451b475 | 2021-07-15 10:16:42 | [diff] [blame] | 915 | {"autofill-address-verification-in-save-prompt", |
| 916 | flag_descriptions::kEnableAutofillAddressSavePromptAddressVerificationName, |
| 917 | flag_descriptions:: |
| 918 | kEnableAutofillAddressSavePromptAddressVerificationDescription, |
| 919 | flags_ui::kOsIos, |
| 920 | FEATURE_VALUE_TYPE( |
| 921 | autofill::features:: |
| 922 | kAutofillAddressProfileSavePromptAddressVerificationSupport)}, |
Side Yilmaz | 6c53f710 | 2021-09-07 13:26:19 | [diff] [blame] | 923 | {"incognito-ntp-revamp", flag_descriptions::kIncognitoNtpRevampName, |
| 924 | flag_descriptions::kIncognitoNtpRevampDescription, flags_ui::kOsIos, |
| 925 | FEATURE_VALUE_TYPE(kIncognitoNtpRevamp)}, |
Nohemi Fernandez | c00842a | 2021-07-26 11:47:34 | [diff] [blame] | 926 | {"wait-threshold-seconds-for-capabilities-api", |
| 927 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName, |
| 928 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription, |
| 929 | flags_ui::kOsIos, |
| 930 | MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)}, |
Robbie Gibson | 26d6fbf | 2023-10-20 00:08:28 | [diff] [blame] | 931 | {"new-overflow-menu", flag_descriptions::kNewOverflowMenuName, |
| 932 | flag_descriptions::kNewOverflowMenuDescription, flags_ui::kOsIos, |
| 933 | FEATURE_VALUE_TYPE(kNewOverflowMenu)}, |
Guillem Perez | 49e1df4 | 2023-08-23 22:15:24 | [diff] [blame] | 934 | {"content-push-notifications", |
| 935 | flag_descriptions::kContentPushNotificationsName, |
| 936 | flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos, |
| 937 | FEATURE_VALUE_TYPE(kContentPushNotifications)}, |
Robbie Gibson | ed7f6ffb | 2023-05-15 16:03:57 | [diff] [blame] | 938 | {"overflow-menu-customization", |
| 939 | flag_descriptions::kOverflowMenuCustomizationName, |
| 940 | flag_descriptions::kOverflowMenuCustomizationDescription, flags_ui::kOsIos, |
| 941 | FEATURE_VALUE_TYPE(kOverflowMenuCustomization)}, |
Jason Hu | 3830a07 | 2022-08-19 20:56:22 | [diff] [blame] | 942 | {"enable-lens-in-home-screen-widget", |
| 943 | flag_descriptions::kEnableLensInHomeScreenWidgetName, |
| 944 | flag_descriptions::kEnableLensInHomeScreenWidgetDescription, |
| 945 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInHomeScreenWidget)}, |
| 946 | {"enable-lens-in-keyboard", flag_descriptions::kEnableLensInKeyboardName, |
| 947 | flag_descriptions::kEnableLensInKeyboardDescription, flags_ui::kOsIos, |
| 948 | FEATURE_VALUE_TYPE(kEnableLensInKeyboard)}, |
| 949 | {"enable-lens-in-ntp", flag_descriptions::kEnableLensInNTPName, |
| 950 | flag_descriptions::kEnableLensInNTPDescription, flags_ui::kOsIos, |
| 951 | FEATURE_VALUE_TYPE(kEnableLensInNTP)}, |
Jason Hu | 67cfb0f | 2022-11-14 20:21:44 | [diff] [blame] | 952 | {"enable-lens-in-omnibox-copied-image", |
| 953 | flag_descriptions::kEnableLensInOmniboxCopiedImageName, |
| 954 | flag_descriptions::kEnableLensInOmniboxCopiedImageDescription, |
| 955 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)}, |
Benjamin Williams | bee6ab6 | 2022-02-28 18:09:40 | [diff] [blame] | 956 | {"use-load-simulated-request-for-error-page-navigation", |
Gauthier Ambard | 33cceaf | 2022-05-05 14:00:23 | [diff] [blame] | 957 | flag_descriptions::kUseLoadSimulatedRequestForOfflinePageName, |
| 958 | flag_descriptions::kUseLoadSimulatedRequestForOfflinePageDescription, |
Benjamin Williams | bee6ab6 | 2022-02-28 18:09:40 | [diff] [blame] | 959 | flags_ui::kOsIos, |
Gauthier Ambard | 33cceaf | 2022-05-05 14:00:23 | [diff] [blame] | 960 | FEATURE_VALUE_TYPE(web::features::kUseLoadSimulatedRequestForOfflinePage)}, |
Sergio Collazos | 9fcc6ed | 2021-10-06 00:58:03 | [diff] [blame] | 961 | {"enable-disco-feed-endpoint", |
| 962 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName, |
| 963 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription, |
| 964 | flags_ui::kOsIos, |
Aliona DANGLA | 8fae66f0 | 2021-10-06 15:47:11 | [diff] [blame] | 965 | FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)}, |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 966 | {"enable-discover-feed-top-sync-promo", |
| 967 | flag_descriptions::kEnableDiscoverFeedTopSyncPromoName, |
| 968 | flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription, |
| 969 | flags_ui::kOsIos, |
| 970 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo, |
| 971 | kDiscoverFeedTopSyncPromoVariations, |
| 972 | "EnableDiscoverFeedTopSyncPromo")}, |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 973 | {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName, |
| 974 | flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos, |
| 975 | FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings, |
| 976 | kFeedHeaderSettingsVariations, |
| 977 | "FeedHeaderSettings")}, |
Tommy Martino | 7393d76 | 2021-10-12 17:59:28 | [diff] [blame] | 978 | {"shared-highlighting-amp", |
| 979 | flag_descriptions::kIOSSharedHighlightingAmpName, |
| 980 | flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos, |
| 981 | FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)}, |
David Maunder | f4a5e1e | 2021-10-18 17:24:28 | [diff] [blame] | 982 | {"enable-commerce-price-tracking", |
Matt Jones | 125dfb4 | 2022-02-11 17:23:42 | [diff] [blame] | 983 | commerce::flag_descriptions::kCommercePriceTrackingName, |
| 984 | commerce::flag_descriptions::kCommercePriceTrackingDescription, |
| 985 | flags_ui::kOsIos, |
| 986 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking, |
| 987 | commerce::kCommercePriceTrackingVariations, |
adamta | 67b6c581 | 2021-10-19 17:02:15 | [diff] [blame] | 988 | "CommercePriceTracking")}, |
adamta | 250f4ad | 2023-08-02 15:26:06 | [diff] [blame] | 989 | {"web-feed-ios", flag_descriptions::kEnableWebChannelsName, |
| 990 | flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos, |
| 991 | FEATURE_VALUE_TYPE(kEnableWebChannels)}, |
adamta | 3933159 | 2021-11-01 20:18:54 | [diff] [blame] | 992 | {"ntp-view-hierarchy-repair", |
| 993 | flag_descriptions::kNTPViewHierarchyRepairName, |
| 994 | flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos, |
adamta | 8da8dce | 2022-11-17 18:03:20 | [diff] [blame] | 995 | FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)}, |
Vishwas Uppoor | 89303a9 | 2022-08-03 00:56:26 | [diff] [blame] | 996 | {"autofill-enable-card-product-name", |
| 997 | flag_descriptions::kAutofillEnableCardProductNameName, |
| 998 | flag_descriptions::kAutofillEnableCardProductNameDescription, |
| 999 | flags_ui::kOsIos, |
| 1000 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)}, |
Jared Saul | b0473bd | 2022-04-20 00:03:41 | [diff] [blame] | 1001 | {"autofill-upstream-allow-additional-email-domains", |
| 1002 | flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsName, |
| 1003 | flag_descriptions::kAutofillUpstreamAllowAdditionalEmailDomainsDescription, |
| 1004 | flags_ui::kOsIos, |
| 1005 | FEATURE_VALUE_TYPE( |
| 1006 | autofill::features::kAutofillUpstreamAllowAdditionalEmailDomains)}, |
| 1007 | {"autofill-upstream-allow-all-email-domains", |
| 1008 | flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsName, |
| 1009 | flag_descriptions::kAutofillUpstreamAllowAllEmailDomainsDescription, |
| 1010 | flags_ui::kOsIos, |
| 1011 | FEATURE_VALUE_TYPE( |
| 1012 | autofill::features::kAutofillUpstreamAllowAllEmailDomains)}, |
Raj T | b95d81354 | 2022-11-16 21:27:52 | [diff] [blame] | 1013 | {"enable-download-service-foreground-session", |
| 1014 | flag_descriptions::kDownloadServiceForegroundSessionName, |
| 1015 | flag_descriptions::kDownloadServiceForegroundSessionDescription, |
| 1016 | flags_ui::kOsIos, |
| 1017 | FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)}, |
Olivier Robin | ffe767c | 2022-04-21 13:13:23 | [diff] [blame] | 1018 | {"enable-tflite-language-detection", |
| 1019 | flag_descriptions::kTFLiteLanguageDetectionName, |
| 1020 | flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos, |
| 1021 | FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)}, |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 1022 | {"optimization-guide-debug-logs", |
| 1023 | flag_descriptions::kOptimizationGuideDebugLogsName, |
| 1024 | flag_descriptions::kOptimizationGuideDebugLogsDescription, |
| 1025 | flags_ui::kOsIos, |
| 1026 | SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)}, |
Raj T | 5aacebd | 2023-05-22 19:45:09 | [diff] [blame] | 1027 | {"optimization-guide-install-wide-model-store", |
| 1028 | flag_descriptions::kOptimizationGuideInstallWideModelStoreName, |
| 1029 | flag_descriptions::kOptimizationGuideInstallWideModelStoreDescription, |
| 1030 | flags_ui::kOsIos, |
| 1031 | FEATURE_VALUE_TYPE(optimization_guide::features:: |
| 1032 | kOptimizationGuideInstallWideModelStore)}, |
Daniel White | d02b696 | 2023-02-14 14:19:55 | [diff] [blame] | 1033 | {"optimization-guide-push-notifications", |
| 1034 | flag_descriptions::kOptimizationGuidePushNotificationClientName, |
| 1035 | flag_descriptions::kOptimizationGuidePushNotificationClientDescription, |
| 1036 | flags_ui::kOsIos, |
| 1037 | FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)}, |
Benjamin Williams | 11f3991 | 2023-04-13 19:00:25 | [diff] [blame] | 1038 | {"sync-segments-data", flag_descriptions::kSyncSegmentsDataName, |
| 1039 | flag_descriptions::kSyncSegmentsDataDescription, flags_ui::kOsIos, |
| 1040 | FEATURE_VALUE_TYPE(history::kSyncSegmentsData)}, |
Christian Xu | b8c06cd | 2022-04-29 20:55:01 | [diff] [blame] | 1041 | {"suggestions-scrolling-ipad", |
| 1042 | flag_descriptions::kEnableSuggestionsScrollingOnIPadName, |
| 1043 | flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription, |
| 1044 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)}, |
Stepan Khapugin | fee136c6 | 2022-11-28 13:24:00 | [diff] [blame] | 1045 | {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName, |
| 1046 | flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos, |
| 1047 | FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)}, |
Elmehdi Rahmaoui | 5a6273a2 | 2022-11-28 16:19:25 | [diff] [blame] | 1048 | {"intents-on-phone-number", flag_descriptions::kPhoneNumberName, |
| 1049 | flag_descriptions::kPhoneNumberDescription, flags_ui::kOsIos, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 1050 | FEATURE_VALUE_TYPE(web::features::kEnablePhoneNumbers)}, |
David Jean | ad303a9 | 2023-07-31 16:58:11 | [diff] [blame] | 1051 | {"intents-on-measurements", flag_descriptions::kMeasurementsName, |
| 1052 | flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos, |
| 1053 | FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)}, |
Elmehdi Rahmaoui | 21e87d5 | 2022-11-09 15:00:55 | [diff] [blame] | 1054 | {"experience-kit-apple-calendar", |
| 1055 | flag_descriptions::kAppleCalendarExperienceKitName, |
| 1056 | flag_descriptions::kAppleCalendarExperienceKitDescription, |
| 1057 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitAppleCalendar)}, |
Raj T | 7db7a0e | 2022-11-17 16:33:08 | [diff] [blame] | 1058 | {"enable-expkit-text-classifier", |
| 1059 | flag_descriptions::kEnableExpKitTextClassifierName, |
| 1060 | flag_descriptions::kEnableExpKitTextClassifierDescription, |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 1061 | flags_ui::kOsIos, |
| 1062 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifier, |
| 1063 | kEnableExpKitTextClassifierVariations, |
| 1064 | "ExpKitTextClassifier")}, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 1065 | {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName, |
| 1066 | flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos, |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 1067 | FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps, |
| 1068 | kOneTapForMapsWithVariations, |
| 1069 | "OneTapForMaps")}, |
David Jean | 139ba1bf | 2023-08-31 15:59:32 | [diff] [blame] | 1070 | {"enable-annotations-language-detection", |
| 1071 | flag_descriptions::kUseAnnotationsForLanguageDetectionName, |
| 1072 | flag_descriptions::kUseAnnotationsForLanguageDetectionDescription, |
| 1073 | flags_ui::kOsIos, |
| 1074 | FEATURE_VALUE_TYPE(web::features::kUseAnnotationsForLanguageDetection)}, |
Mustafa Emre Acer | b8bb01f | 2022-07-20 19:43:25 | [diff] [blame] | 1075 | {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName, |
| 1076 | flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos, |
| 1077 | FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)}, |
Alexander Tekle | b464381 | 2023-01-06 23:12:30 | [diff] [blame] | 1078 | {"autofill-enable-ranking-formula-address-profiles", |
| 1079 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName, |
| 1080 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription, |
| 1081 | flags_ui::kOsIos, |
| 1082 | FEATURE_VALUE_TYPE( |
| 1083 | autofill::features::kAutofillEnableRankingFormulaAddressProfiles)}, |
Alexander Tekle | 35dfbbd | 2023-01-31 08:32:39 | [diff] [blame] | 1084 | {"autofill-enable-ranking-formula-credit-cards", |
| 1085 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName, |
| 1086 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription, |
| 1087 | flags_ui::kOsIos, |
| 1088 | FEATURE_VALUE_TYPE( |
| 1089 | autofill::features::kAutofillEnableRankingFormulaCreditCards)}, |
Sergio Collazos | 5855871 | 2022-05-18 17:24:02 | [diff] [blame] | 1090 | {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName, |
| 1091 | flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos, |
| 1092 | FEATURE_VALUE_TYPE(kEnableFeedAblation)}, |
Tina Wang | 30df717 | 2022-12-09 22:02:02 | [diff] [blame] | 1093 | {"enable-feed-card-menu-sign-in-promo", |
| 1094 | flag_descriptions::kEnableFeedCardMenuSignInPromoName, |
| 1095 | flag_descriptions::kEnableFeedCardMenuSignInPromoDescription, |
| 1096 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedCardMenuSignInPromo)}, |
Chris Lu | c36e396 | 2023-04-11 21:50:52 | [diff] [blame] | 1097 | {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName, |
| 1098 | flag_descriptions::kMagicStackDescription, flags_ui::kOsIos, |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 1099 | FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack, |
| 1100 | kMagicStackVariations, |
| 1101 | flag_descriptions::kMagicStackName)}, |
Scott Yoder | feaf2c26 | 2023-10-16 21:23:21 | [diff] [blame] | 1102 | {"ios-hide-feed-with-search-choice", |
| 1103 | flag_descriptions::kIOSHideFeedWithSearchChoiceName, |
| 1104 | flag_descriptions::kIOSHideFeedWithSearchChoiceDescription, |
Scott Yoder | d781bd1 | 2023-10-25 20:47:15 | [diff] [blame] | 1105 | flags_ui::kOsIos, |
| 1106 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1107 | kIOSHideFeedWithSearchChoice, |
| 1108 | kIOSHideFeedWithSearchChoiceVariations, |
| 1109 | flag_descriptions::kIOSHideFeedWithSearchChoiceName)}, |
Scott Yoder | 7b9e51f | 2023-09-13 23:47:26 | [diff] [blame] | 1110 | {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName, |
| 1111 | flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos, |
| 1112 | FEATURE_VALUE_TYPE(kIOSLargeFakebox)}, |
Chris Lu | b0bad57 | 2023-08-07 18:13:29 | [diff] [blame] | 1113 | {"ios-magic-stack-segmentation-ranking", |
| 1114 | flag_descriptions::kSegmentationPlatformIosModuleRankerName, |
| 1115 | flag_descriptions::kSegmentationPlatformIosModuleRankerDescription, |
| 1116 | flags_ui::kOsIos, |
Chris Lu | 6fd4eaf | 2023-08-08 18:29:30 | [diff] [blame] | 1117 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1118 | segmentation_platform::features::kSegmentationPlatformIosModuleRanker, |
| 1119 | kSegmentationPlatformIosModuleRankerVariations, |
| 1120 | flag_descriptions::kSegmentationPlatformIosModuleRankerName)}, |
Olivier Robin | 058c1fad | 2022-05-31 18:24:06 | [diff] [blame] | 1121 | {"default-browser-intents-show-settings", |
| 1122 | flag_descriptions::kDefaultBrowserIntentsShowSettingsName, |
| 1123 | flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription, |
| 1124 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)}, |
Tommy Martino | ad42be5 | 2022-06-13 11:51:19 | [diff] [blame] | 1125 | {"ios-password-ui-split", flag_descriptions::kIOSPasswordUISplitName, |
| 1126 | flag_descriptions::kIOSPasswordUISplitDescription, flags_ui::kOsIos, |
| 1127 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordUISplit)}, |
Scott Yoder | 16bff3c | 2023-03-24 16:00:55 | [diff] [blame] | 1128 | {"ios-set-up-list", flag_descriptions::kIOSSetUpListName, |
| 1129 | flag_descriptions::kIOSSetUpListDescription, flags_ui::kOsIos, |
| 1130 | FEATURE_VALUE_TYPE(kIOSSetUpList)}, |
Veronique Nguyen | c3d7db5 | 2023-03-08 22:52:32 | [diff] [blame] | 1131 | {"ios-password-bottom-sheet", |
| 1132 | flag_descriptions::kIOSPasswordBottomSheetName, |
| 1133 | flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos, |
| 1134 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)}, |
Alexis Hétu | 459451a | 2023-06-01 17:05:31 | [diff] [blame] | 1135 | {"ios-payments-bottom-sheet", |
| 1136 | flag_descriptions::kIOSPaymentsBottomSheetName, |
| 1137 | flag_descriptions::kIOSPaymentsBottomSheetDescription, flags_ui::kOsIos, |
| 1138 | FEATURE_VALUE_TYPE(kIOSPaymentsBottomSheet)}, |
Moe Ahmadi | 098519d8 | 2022-07-27 18:34:24 | [diff] [blame] | 1139 | {"omnibox-zero-suggest-prefetching", |
| 1140 | flag_descriptions::kOmniboxZeroSuggestPrefetchingName, |
| 1141 | flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription, |
| 1142 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)}, |
Khalid Peer | 79df565 | 2022-10-26 21:59:45 | [diff] [blame] | 1143 | {"omnibox-zero-suggest-prefetching-on-srp", |
| 1144 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName, |
| 1145 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription, |
| 1146 | flags_ui::kOsIos, |
| 1147 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)}, |
| 1148 | {"omnibox-zero-suggest-prefetching-on-web", |
| 1149 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName, |
| 1150 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription, |
| 1151 | flags_ui::kOsIos, |
| 1152 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)}, |
Khalid Peer | 11b4b2c | 2022-10-12 20:53:47 | [diff] [blame] | 1153 | {"omnibox-zero-suggest-in-memory-caching", |
| 1154 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName, |
| 1155 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription, |
| 1156 | flags_ui::kOsIos, |
| 1157 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)}, |
Ce Chen | bdfaed2 | 2022-10-20 16:08:35 | [diff] [blame] | 1158 | {"omnibox-on-device-tail-suggestions", |
| 1159 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsName, |
| 1160 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription, |
| 1161 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)}, |
Joemer Ramos | ada1e85 | 2023-03-10 19:14:41 | [diff] [blame] | 1162 | {"enable-button-configuration-usage", |
| 1163 | flag_descriptions::kEnableUIButtonConfigurationName, |
| 1164 | flag_descriptions::kEnableUIButtonConfigurationDescription, |
| 1165 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableUIButtonConfiguration)}, |
Vincent Boisselle | 68105c6f | 2023-08-03 16:43:07 | [diff] [blame] | 1166 | {"enable-user-policy-for-signin-and-nosync-consent-level", |
| 1167 | flag_descriptions::kEnableUserPolicyForSigninAndNoSyncConsentLevelName, |
| 1168 | flag_descriptions:: |
| 1169 | kEnableUserPolicyForSigninAndNoSyncConsentLevelDescription, |
| 1170 | flags_ui::kOsIos, |
| 1171 | FEATURE_VALUE_TYPE(policy::kUserPolicyForSigninAndNoSyncConsentLevel)}, |
| 1172 | {"enable-user-policy-for-signin-or-sync-consent-level", |
| 1173 | flag_descriptions::kEnableUserPolicyForSigninOrSyncConsentLevelName, |
| 1174 | flag_descriptions::kEnableUserPolicyForSigninOrSyncConsentLevelDescription, |
| 1175 | flags_ui::kOsIos, |
| 1176 | FEATURE_VALUE_TYPE(policy::kUserPolicyForSigninOrSyncConsentLevel)}, |
Christian Xu | cf26d56 | 2022-07-06 09:28:36 | [diff] [blame] | 1177 | {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName, |
| 1178 | flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos, |
| 1179 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches, |
| 1180 | kOmniboxMaxURLMatchesVariations, |
| 1181 | "OmniboxMaxURLMatches")}, |
Olivier Robin | 60d3a06 | 2022-07-06 17:34:06 | [diff] [blame] | 1182 | {"metrickit-non-crash-reports", |
| 1183 | flag_descriptions::kMetrickitNonCrashReportName, |
| 1184 | flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos, |
| 1185 | FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)}, |
Siyu An | 3194bda | 2022-07-13 19:30:37 | [diff] [blame] | 1186 | {"autofill-enable-remade-downstream-metrics", |
| 1187 | flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName, |
| 1188 | flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription, |
| 1189 | flags_ui::kOsIos, |
| 1190 | FEATURE_VALUE_TYPE( |
| 1191 | autofill::features::kAutofillEnableRemadeDownstreamMetrics)}, |
Nakul Vaidya | 13ca204 | 2022-07-27 01:59:55 | [diff] [blame] | 1192 | {"autofill-parse-vcn-card-on-file-standalone-cvc-fields", |
| 1193 | flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName, |
| 1194 | flag_descriptions:: |
| 1195 | kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription, |
| 1196 | flags_ui::kOsIos, |
| 1197 | FEATURE_VALUE_TYPE( |
| 1198 | autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)}, |
Cheick Cisse | 2806f082b | 2023-04-25 14:20:01 | [diff] [blame] | 1199 | {"default-browser-video-promo", |
| 1200 | flag_descriptions::kDefaultBrowserVideoPromoName, |
| 1201 | flag_descriptions::kDefaultBrowserVideoPromoDescription, flags_ui::kOsIos, |
| 1202 | FEATURE_WITH_PARAMS_VALUE_TYPE(kDefaultBrowserVideoPromo, |
| 1203 | kDefaultBrowserVideoPromoVariations, |
| 1204 | "DefaultBrowserVideoPromoVariations")}, |
Cheick Cisse | 8835611a | 2023-06-02 21:42:54 | [diff] [blame] | 1205 | {"default-browser-promo-force-show-promo", |
| 1206 | flag_descriptions::kDefaultBrowserPromoForceShowPromoName, |
| 1207 | flag_descriptions::kDefaultBrowserPromoForceShowPromoDescription, |
| 1208 | flags_ui::kOsIos, |
| 1209 | MULTI_VALUE_TYPE(kDefaultBrowserPromoForceShowPromoChoices)}, |
Gayane Petrosyan | 5960a17 | 2023-06-19 15:40:17 | [diff] [blame] | 1210 | {"default-browser-promo-trigger-criteria-experiment", |
| 1211 | flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName, |
| 1212 | flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription, |
| 1213 | flags_ui::kOsIos, |
Gayane Petrosyan | dc3188c | 2023-08-10 17:28:50 | [diff] [blame] | 1214 | FEATURE_VALUE_TYPE(kDefaultBrowserTriggerCriteriaExperiment)}, |
Gayane Petrosyan | 6fb7975 | 2023-09-26 15:39:44 | [diff] [blame] | 1215 | {"default-browser-video-in-settings", |
Gayane Petrosyan | 01c8495 | 2023-10-02 18:28:21 | [diff] [blame] | 1216 | flag_descriptions::kDefaultBrowserVideoInSettingsName, |
| 1217 | flag_descriptions::kDefaultBrowserVideoInSettingsDescription, |
| 1218 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserVideoInSettings)}, |
Gayane Petrosyan | dc3188c | 2023-08-10 17:28:50 | [diff] [blame] | 1219 | {"fullscreen-promo-on-omnibox-copy-paste", |
| 1220 | flag_descriptions::kFullScreenPromoOnOmniboxCopyPasteName, |
| 1221 | flag_descriptions::kFullScreenPromoOnOmniboxCopyPasteDescription, |
| 1222 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kFullScreenPromoOnOmniboxCopyPaste)}, |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 1223 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
| 1224 | {"feed-background-refresh-ios", |
| 1225 | flag_descriptions::kFeedBackgroundRefreshName, |
| 1226 | flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos, |
| 1227 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh, |
| 1228 | kFeedBackgroundRefreshVariations, |
| 1229 | "FeedBackgroundRefresh")}, |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 1230 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 5c1fd53 | 2023-03-20 17:43:29 | [diff] [blame] | 1231 | {"feed-invisible-foreground-refresh-ios", |
| 1232 | flag_descriptions::kFeedInvisibleForegroundRefreshName, |
| 1233 | flag_descriptions::kFeedInvisibleForegroundRefreshDescription, |
| 1234 | flags_ui::kOsIos, |
| 1235 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedInvisibleForegroundRefresh, |
| 1236 | kFeedInvisibleForegroundRefreshVariations, |
| 1237 | "FeedInvisibleForegroundRefresh")}, |
Christian Xu | 164a2e51 | 2022-08-01 20:38:19 | [diff] [blame] | 1238 | {"omnibox-keyboard-paste-button", |
| 1239 | flag_descriptions::kOmniboxKeyboardPasteButtonName, |
| 1240 | flag_descriptions::kOmniboxKeyboardPasteButtonDescription, |
| 1241 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxKeyboardPasteButton)}, |
Cheick Cisse | 5d2b6cb8 | 2023-06-05 17:27:58 | [diff] [blame] | 1242 | {"whats-new-ios-m116", flag_descriptions::kWhatsNewIOSM116Name, |
| 1243 | flag_descriptions::kWhatsNewIOSM116Description, flags_ui::kOsIos, |
| 1244 | FEATURE_VALUE_TYPE(kWhatsNewIOSM116)}, |
Hira Mahmood | b0e5f41 | 2022-09-01 19:41:05 | [diff] [blame] | 1245 | {"app-store-rating", flag_descriptions::kAppStoreRatingName, |
| 1246 | flag_descriptions::kAppStoreRatingDescription, flags_ui::kOsIos, |
| 1247 | FEATURE_VALUE_TYPE(kAppStoreRating)}, |
Olivier ROBIN | f0551878 | 2022-09-14 23:55:50 | [diff] [blame] | 1248 | {"enable-tflite-language-detection-ignore", |
| 1249 | flag_descriptions::kTFLiteLanguageDetectionIgnoreName, |
| 1250 | flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription, |
| 1251 | flags_ui::kOsIos, |
| 1252 | FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)}, |
Petro Akzhygitov | 2e2322e | 2023-04-25 16:26:57 | [diff] [blame] | 1253 | {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName, |
| 1254 | flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos, |
| 1255 | FEATURE_VALUE_TYPE(kTabGridNewTransitions)}, |
Hira Mahmood | ea10975 | 2022-11-17 17:45:41 | [diff] [blame] | 1256 | {"credential-provider-extension-promo", |
| 1257 | flag_descriptions::kCredentialProviderExtensionPromoName, |
| 1258 | flag_descriptions::kCredentialProviderExtensionPromoDescription, |
Huiting Yu | d7d2a532 | 2023-02-09 21:14:22 | [diff] [blame] | 1259 | flags_ui::kOsIos, |
| 1260 | FEATURE_WITH_PARAMS_VALUE_TYPE(kCredentialProviderExtensionPromo, |
| 1261 | kCredentialProviderExtensionPromoVariations, |
| 1262 | "CredentialProviderExtensionPromo")}, |
Daniel White | ae1cb67 | 2022-12-14 18:25:25 | [diff] [blame] | 1263 | {"iph-price-notifications-while-browsing", |
| 1264 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingName, |
| 1265 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription, |
| 1266 | flags_ui::kOsIos, |
| 1267 | FEATURE_VALUE_TYPE( |
| 1268 | feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)}, |
Vipul Vinod Koul | aebbcb3a | 2023-01-05 19:50:50 | [diff] [blame] | 1269 | {"autofill-suggest-server-card-instead-of-local-card", |
| 1270 | flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardName, |
| 1271 | flag_descriptions::kAutofillSuggestServerCardInsteadOfLocalCardDescription, |
| 1272 | flags_ui::kOsIos, |
| 1273 | FEATURE_VALUE_TYPE( |
| 1274 | autofill::features::kAutofillSuggestServerCardInsteadOfLocalCard)}, |
Ernesto Izquierdo Clua | 023bb5235 | 2023-01-12 19:33:34 | [diff] [blame] | 1275 | {"ios-password-checkup", flag_descriptions::kIOSPasswordCheckupName, |
| 1276 | flag_descriptions::kIOSPasswordCheckupDescription, flags_ui::kOsIos, |
| 1277 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordCheckup)}, |
Robbie Gibson | 88f680a | 2023-01-19 16:47:30 | [diff] [blame] | 1278 | {"promos-manager-uses-fet", flag_descriptions::kPromosManagerUsesFETName, |
| 1279 | flag_descriptions::kPromosManagerUsesFETDescription, flags_ui::kOsIos, |
| 1280 | FEATURE_VALUE_TYPE(kPromosManagerUsesFET)}, |
Matt Jones | c0132766 | 2023-08-02 16:34:29 | [diff] [blame] | 1281 | {"shopping-collection", |
| 1282 | commerce::flag_descriptions::kShoppingCollectionName, |
| 1283 | commerce::flag_descriptions::kShoppingCollectionDescription, |
| 1284 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kShoppingCollection)}, |
Ewann Pelle | dec2d04 | 2023-01-25 15:28:39 | [diff] [blame] | 1285 | {"shopping-list", commerce::flag_descriptions::kShoppingListName, |
| 1286 | commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos, |
| 1287 | FEATURE_VALUE_TYPE(commerce::kShoppingList)}, |
Matt Jones | 5c8c8e3 | 2023-06-13 22:49:47 | [diff] [blame] | 1288 | {"shopping-list-track-by-default", |
| 1289 | commerce::flag_descriptions::kShoppingListTrackByDefaultName, |
| 1290 | commerce::flag_descriptions::kShoppingListTrackByDefaultDescription, |
| 1291 | flags_ui::kOsIos, |
| 1292 | FEATURE_VALUE_TYPE(commerce::kShoppingListTrackByDefault)}, |
Matt Jones | 1795eda | 2023-05-09 20:24:48 | [diff] [blame] | 1293 | {"local-pdp-detection", |
| 1294 | commerce::flag_descriptions::kCommerceLocalPDPDetectionName, |
| 1295 | commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription, |
| 1296 | flags_ui::kOsIos, |
| 1297 | FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 1298 | {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName, |
| 1299 | flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos, |
| 1300 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold, |
| 1301 | kTabInactivityThresholdVariations, |
| 1302 | "TabInactivityThreshold")}, |
Sergio Collazos | 8d2ac2794 | 2023-01-26 19:03:41 | [diff] [blame] | 1303 | {"enable-feed-synthetic-capabilities", |
| 1304 | flag_descriptions::kEnableFeedSyntheticCapabilitiesName, |
| 1305 | flag_descriptions::kEnableFeedSyntheticCapabilitiesDescription, |
| 1306 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableFeedSyntheticCapabilities)}, |
Joemer Ramos | 0fccdf6 | 2023-07-28 17:17:18 | [diff] [blame] | 1307 | {"enable-friendlier-safe-browsing-settings-enhanced-protection", |
| 1308 | flag_descriptions:: |
| 1309 | kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionName, |
| 1310 | flag_descriptions:: |
| 1311 | kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionDescription, |
| 1312 | flags_ui::kOsIos, |
| 1313 | FEATURE_VALUE_TYPE( |
| 1314 | safe_browsing::kFriendlierSafeBrowsingSettingsEnhancedProtection)}, |
Awad Osman | f1a8912 | 2023-07-27 19:59:36 | [diff] [blame] | 1315 | {"enable-friendlier-safe-browsing-settings-standard-protection", |
| 1316 | flag_descriptions:: |
| 1317 | kEnableFriendlierSafeBrowsingSettingsStandardProtectionName, |
| 1318 | flag_descriptions:: |
| 1319 | kEnableFriendlierSafeBrowsingSettingsStandardProtectionDescription, |
Joemer Ramos | 961389e5 | 2023-07-20 20:22:52 | [diff] [blame] | 1320 | flags_ui::kOsIos, |
Awad Osman | f1a8912 | 2023-07-27 19:59:36 | [diff] [blame] | 1321 | FEATURE_VALUE_TYPE( |
| 1322 | safe_browsing::kFriendlierSafeBrowsingSettingsStandardProtection)}, |
Sarah Criel | 5d59a393 | 2023-09-05 23:44:29 | [diff] [blame] | 1323 | {"enable-red-interstitial-facelift", |
| 1324 | flag_descriptions::kEnableRedInterstitialFaceliftName, |
| 1325 | flag_descriptions::kEnableRedInterstitialFaceliftDescription, |
| 1326 | flags_ui::kOsIos, |
| 1327 | FEATURE_VALUE_TYPE(safe_browsing::kRedInterstitialFacelift)}, |
Louis Romero | 58f35502 | 2023-02-13 19:04:31 | [diff] [blame] | 1328 | {"show-inactive-tabs-count", flag_descriptions::kShowInactiveTabsCountName, |
| 1329 | flag_descriptions::kShowInactiveTabsCountDescription, flags_ui::kOsIos, |
| 1330 | FEATURE_VALUE_TYPE(kShowInactiveTabsCount)}, |
Olivier ROBIN | 52eddbf3 | 2023-02-15 10:33:42 | [diff] [blame] | 1331 | {"ios-edit-menu-partial-translate", |
| 1332 | flag_descriptions::kIOSEditMenuPartialTranslateName, |
| 1333 | flag_descriptions::kIOSEditMenuPartialTranslateDescription, |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 1334 | flags_ui::kOsIos, |
| 1335 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate, |
| 1336 | kIOSEditMenuPartialTranslateVariations, |
| 1337 | "IOSEditMenuPartialTranslate")}, |
Ali Juma | 57849c4 | 2023-02-21 22:53:43 | [diff] [blame] | 1338 | {"notification-settings-menu-item", |
| 1339 | flag_descriptions::kNotificationSettingsMenuItemName, |
| 1340 | flag_descriptions::kNotificationSettingsMenuItemDescription, |
| 1341 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)}, |
Ed Chin | 97560fc4 | 2023-02-20 16:48:32 | [diff] [blame] | 1342 | {"feed-experiment-tagging-ios", |
| 1343 | flag_descriptions::kFeedExperimentTaggingName, |
| 1344 | flag_descriptions::kFeedExperimentTaggingDescription, flags_ui::kOsIos, |
| 1345 | FEATURE_VALUE_TYPE(kEnableFeedExperimentTagging)}, |
Stepan Khapugin | 551917f8 | 2023-02-21 18:00:06 | [diff] [blame] | 1346 | {"spotlight-reading-list-source", |
| 1347 | flag_descriptions::kSpotlightReadingListSourceName, |
| 1348 | flag_descriptions::kSpotlightReadingListSourceDescription, |
| 1349 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)}, |
Yann Dago | b206dca4 | 2023-10-30 17:24:48 | [diff] [blame] | 1350 | {"enable-policy-test-page-ios", |
| 1351 | flag_descriptions::kEnablePolicyTestPageName, |
| 1352 | flag_descriptions::kEnablePolicyTestPageDescription, flags_ui::kOsIos, |
| 1353 | FEATURE_VALUE_TYPE(policy::features::kEnablePolicyTestPage)}, |
Menghan YANG | f3fe2de5 | 2023-02-27 16:38:50 | [diff] [blame] | 1354 | {"enable-bookmarks-account-storage", |
| 1355 | flag_descriptions::kEnableBookmarksAccountStorageName, |
| 1356 | flag_descriptions::kEnableBookmarksAccountStorageDescription, |
| 1357 | flags_ui::kOsIos, |
Marc Treib | 98d17f5 | 2023-07-06 13:00:46 | [diff] [blame] | 1358 | FEATURE_VALUE_TYPE(syncer::kEnableBookmarksAccountStorage)}, |
kalettuce | fb09e40 | 2023-02-27 18:35:53 | [diff] [blame] | 1359 | {"web-feed-feedback-reroute", |
| 1360 | flag_descriptions::kWebFeedFeedbackRerouteName, |
| 1361 | flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos, |
| 1362 | FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)}, |
Jason Hu | ac58fea | 2023-02-28 20:25:55 | [diff] [blame] | 1363 | {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName, |
| 1364 | flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos, |
| 1365 | FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)}, |
Tina Wang | d3f6f19 | 2023-04-05 05:22:43 | [diff] [blame] | 1366 | {"enable-follow-IPH-exp-params", |
| 1367 | flag_descriptions::kEnableFollowIPHExpParamsName, |
| 1368 | flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos, |
| 1369 | FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)}, |
Tina Wang | e81e24d | 2023-03-08 21:10:03 | [diff] [blame] | 1370 | {"enable-follow-management-instant-reload", |
| 1371 | flag_descriptions::kEnableFollowManagementInstantReloadName, |
| 1372 | flag_descriptions::kEnableFollowManagementInstantReloadDescription, |
| 1373 | flags_ui::kOsIos, |
| 1374 | FEATURE_VALUE_TYPE(kEnableFollowManagementInstantReload)}, |
Guillem Perez | 3c139a82 | 2023-05-24 19:34:25 | [diff] [blame] | 1375 | {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName, |
| 1376 | flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos, |
| 1377 | FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)}, |
Mustafa Acer | c8c0b15 | 2023-03-09 02:41:44 | [diff] [blame] | 1378 | {"mixed-content-autoupgrade-ios", |
| 1379 | flag_descriptions::kMixedContentAutoupgradeName, |
| 1380 | flag_descriptions::kMixedContentAutoupgradeDescription, flags_ui::kOsIos, |
| 1381 | FEATURE_VALUE_TYPE( |
| 1382 | security_interstitials::features::kMixedContentAutoupgrade)}, |
Marc Treib | e9f79ea7 | 2023-03-14 10:25:42 | [diff] [blame] | 1383 | {"enable-preferences-account-storage", |
| 1384 | flag_descriptions::kEnablePreferencesAccountStorageName, |
| 1385 | flag_descriptions::kEnablePreferencesAccountStorageDescription, |
| 1386 | flags_ui::kOsIos, |
| 1387 | FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)}, |
Olivier ROBIN | a229d213 | 2023-03-21 12:44:20 | [diff] [blame] | 1388 | {"ios-browser-edit-menu-metrics", |
| 1389 | flag_descriptions::kIOSBrowserEditMenuMetricsName, |
| 1390 | flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos, |
| 1391 | FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)}, |
Nicolas MacBeth | 17c9b92c | 2023-08-24 14:15:40 | [diff] [blame] | 1392 | {"ios-bulk-upload-local-passwords", |
| 1393 | flag_descriptions::kIOSPasswordSettingsBulkUploadLocalPasswordsName, |
| 1394 | flag_descriptions::kIOSPasswordSettingsBulkUploadLocalPasswordsDescription, |
| 1395 | flags_ui::kOsIos, |
| 1396 | FEATURE_VALUE_TYPE(password_manager::features:: |
| 1397 | kIOSPasswordSettingsBulkUploadLocalPasswords)}, |
Menghan YANG | 5b3a78a | 2023-03-24 17:38:26 | [diff] [blame] | 1398 | {"enable-reading-list-account-storage", |
| 1399 | flag_descriptions::kEnableReadingListAccountStorageName, |
| 1400 | flag_descriptions::kEnableReadingListAccountStorageDescription, |
| 1401 | flags_ui::kOsIos, |
Marc Treib | 98d17f5 | 2023-07-06 13:00:46 | [diff] [blame] | 1402 | FEATURE_VALUE_TYPE(syncer::kReadingListEnableDualReadingListModel)}, |
Menghan YANG | 5b3a78a | 2023-03-24 17:38:26 | [diff] [blame] | 1403 | {"enable-reading-list-sign-in-promo", |
| 1404 | flag_descriptions::kEnableReadingListSignInPromoName, |
| 1405 | flag_descriptions::kEnableReadingListSignInPromoDescription, |
| 1406 | flags_ui::kOsIos, |
Marc Treib | 98d17f5 | 2023-07-06 13:00:46 | [diff] [blame] | 1407 | FEATURE_VALUE_TYPE(syncer::kReadingListEnableSyncTransportModeUponSignIn)}, |
Stepan Khapugin | b2f4952 | 2023-04-03 18:25:24 | [diff] [blame] | 1408 | {"omnibox-grouping-framework-zps", |
| 1409 | flag_descriptions::kOmniboxGroupingFrameworkForZPSName, |
| 1410 | flag_descriptions::kOmniboxGroupingFrameworkForZPSDescription, |
| 1411 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForZPS)}, |
| 1412 | {"omnibox-grouping-framework-non-zps", |
| 1413 | flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName, |
| 1414 | flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription, |
| 1415 | flags_ui::kOsIos, |
| 1416 | FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)}, |
Sylvain Defresne | 935e6f7 | 2023-04-04 09:54:47 | [diff] [blame] | 1417 | {"enable-session-serialization-optimizations", |
| 1418 | flag_descriptions::kEnableSessionSerializationOptimizationsName, |
| 1419 | flag_descriptions::kEnableSessionSerializationOptimizationsDescription, |
| 1420 | flags_ui::kOsIos, |
| 1421 | FEATURE_VALUE_TYPE( |
| 1422 | web::features::kEnableSessionSerializationOptimizations)}, |
Stepan Khapugin | 8c07587 | 2023-04-05 14:29:41 | [diff] [blame] | 1423 | {"bottom-omnibox-steady-state", |
| 1424 | flag_descriptions::kBottomOmniboxSteadyStateName, |
| 1425 | flag_descriptions::kBottomOmniboxSteadyStateDescription, flags_ui::kOsIos, |
| 1426 | FEATURE_VALUE_TYPE(kBottomOmniboxSteadyState)}, |
Robbie Gibson | 0ea28060 | 2023-04-12 01:02:39 | [diff] [blame] | 1427 | {"only-access-clipboard-async", |
| 1428 | flag_descriptions::kOnlyAccessClipboardAsyncName, |
| 1429 | flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos, |
| 1430 | FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)}, |
Christian Xu | e5f6023 | 2023-04-12 17:50:09 | [diff] [blame] | 1431 | {"omnibox-tail-suggest", flag_descriptions::kOmniboxTailSuggestName, |
| 1432 | flag_descriptions::kOmniboxTailSuggestDescription, flags_ui::kOsIos, |
| 1433 | FEATURE_VALUE_TYPE(kOmniboxTailSuggest)}, |
Stepan Khapugin | 5f0a4ae | 2023-07-05 12:51:19 | [diff] [blame] | 1434 | {"omnibox-improved-rtl-suggestions", |
| 1435 | flag_descriptions::kOmniboxSuggestionsRTLImprovementsName, |
| 1436 | flag_descriptions::kOmniboxSuggestionsRTLImprovementsDescription, |
| 1437 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxSuggestionsRTLImprovements)}, |
Ed Chin | ecb7d5b | 2023-04-14 19:22:09 | [diff] [blame] | 1438 | {"feed-disable-hot-start-refresh-ios", |
| 1439 | flag_descriptions::kFeedDisableHotStartRefreshName, |
| 1440 | flag_descriptions::kFeedDisableHotStartRefreshDescription, |
| 1441 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kFeedDisableHotStartRefresh)}, |
Olivier ROBIN | 2613bcd0 | 2023-04-20 10:00:47 | [diff] [blame] | 1442 | {"ios-edit-menu-search-with", flag_descriptions::kIOSEditMenuSearchWithName, |
| 1443 | flag_descriptions::kIOSEditMenuSearchWithDescription, flags_ui::kOsIos, |
| 1444 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuSearchWith, |
| 1445 | kIOSEditMenuSearchWithVariations, |
| 1446 | "IOSEditMenuSearchWith")}, |
| 1447 | {"ios-edit-menu-hide-search-web", |
| 1448 | flag_descriptions::kIOSEditMenuHideSearchWebName, |
| 1449 | flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos, |
| 1450 | FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)}, |
Stephen McGruer | 9afca1a | 2023-05-18 20:55:17 | [diff] [blame] | 1451 | {"autofill-enable-card-art-image", |
| 1452 | flag_descriptions::kAutofillEnableCardArtImageName, |
| 1453 | flag_descriptions::kAutofillEnableCardArtImageDescription, |
| 1454 | flags_ui::kOsIos, |
| 1455 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)}, |
Tina Wang | cda2c90 | 2023-05-25 17:39:45 | [diff] [blame] | 1456 | {"enable-signed-out-view-demotion", |
| 1457 | flag_descriptions::kEnableSignedOutViewDemotionName, |
| 1458 | flag_descriptions::kEnableSignedOutViewDemotionDescription, |
| 1459 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)}, |
Stephen McGruer | b4c8f7f | 2023-06-01 21:28:25 | [diff] [blame] | 1460 | {"autofill-use-two-dots-for-last-four-digits", |
| 1461 | flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsName, |
| 1462 | flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsDescription, |
| 1463 | flags_ui::kOsIos, |
| 1464 | FEATURE_VALUE_TYPE( |
| 1465 | autofill::features::kAutofillUseTwoDotsForLastFourDigits)}, |
sebsg | 977f9aa | 2023-06-08 18:48:24 | [diff] [blame] | 1466 | {"autofill-disable-profile-updates", |
| 1467 | flag_descriptions::kAutofillDisableProfileUpdatesName, |
| 1468 | flag_descriptions::kAutofillDisableProfileUpdatesDescription, |
| 1469 | flags_ui::kOsIos, |
| 1470 | FEATURE_VALUE_TYPE( |
| 1471 | autofill::features::test::kAutofillDisableProfileUpdates)}, |
| 1472 | {"autofill-disable-silent-profile-updates", |
| 1473 | flag_descriptions::kAutofillDisableSilentProfileUpdatesName, |
| 1474 | flag_descriptions::kAutofillDisableSilentProfileUpdatesDescription, |
| 1475 | flags_ui::kOsIos, |
| 1476 | FEATURE_VALUE_TYPE( |
| 1477 | autofill::features::test::kAutofillDisableSilentProfileUpdates)}, |
| 1478 | {"autofill-enable-admin-level-2", |
| 1479 | flag_descriptions::kAutofillEnableSupportForAdminLevel2Name, |
| 1480 | flag_descriptions::kAutofillEnableSupportForAdminLevel2Description, |
| 1481 | flags_ui::kOsIos, |
| 1482 | FEATURE_VALUE_TYPE( |
| 1483 | autofill::features::kAutofillEnableSupportForAdminLevel2)}, |
| 1484 | {"autofill-enable-between-streets", |
| 1485 | flag_descriptions::kAutofillEnableSupportForBetweenStreetsName, |
| 1486 | flag_descriptions::kAutofillEnableSupportForBetweenStreetsDescription, |
| 1487 | flags_ui::kOsIos, |
| 1488 | FEATURE_VALUE_TYPE( |
| 1489 | autofill::features::kAutofillEnableSupportForBetweenStreets)}, |
| 1490 | {"autofill-enable-landmark", |
| 1491 | flag_descriptions::kAutofillEnableSupportForLandmarkName, |
| 1492 | flag_descriptions::kAutofillEnableSupportForLandmarkDescription, |
| 1493 | flags_ui::kOsIos, |
| 1494 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableSupportForLandmark)}, |
Hira Mahmood | 6b0e550 | 2023-06-12 21:51:43 | [diff] [blame] | 1495 | {"post-restore-default-browser-promo", |
| 1496 | flag_descriptions::kPostRestoreDefaultBrowserPromoName, |
| 1497 | flag_descriptions::kPostRestoreDefaultBrowserPromoDescription, |
| 1498 | flags_ui::kOsIos, |
| 1499 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1500 | kPostRestoreDefaultBrowserPromo, |
| 1501 | kPostRestoreDefaultBrowserPromoVariations, |
| 1502 | "PostRestoreDefaultBrowserPromoVariations")}, |
Ameur Hosni | b40858a | 2023-06-12 17:27:31 | [diff] [blame] | 1503 | {"spotlight-open-tabs-source", |
| 1504 | flag_descriptions::kSpotlightOpenTabsSourceName, |
| 1505 | flag_descriptions::kSpotlightOpenTabsSourceDescription, flags_ui::kOsIos, |
| 1506 | FEATURE_VALUE_TYPE(kSpotlightOpenTabsSource)}, |
Stepan Khapugin | c302b941 | 2023-09-12 10:19:45 | [diff] [blame] | 1507 | {"spotlight-donate-new-intents", |
| 1508 | flag_descriptions::kSpotlightDonateNewIntentsName, |
| 1509 | flag_descriptions::kSpotlightDonateNewIntentsDescription, flags_ui::kOsIos, |
| 1510 | FEATURE_VALUE_TYPE(kSpotlightDonateNewIntents)}, |
Marc Treib | 9bddebb | 2023-06-15 14:03:34 | [diff] [blame] | 1511 | {"replace-sync-promos-with-sign-in-promos", |
| 1512 | flag_descriptions::kReplaceSyncPromosWithSignInPromosName, |
| 1513 | flag_descriptions::kReplaceSyncPromosWithSignInPromosDescription, |
| 1514 | flags_ui::kOsIos, |
Gauthier Ambard | 6ca6d5e | 2023-06-20 09:33:30 | [diff] [blame] | 1515 | MULTI_VALUE_TYPE(kReplaceSyncPromosWithSignInPromosChoices)}, |
Aliona DANGLA | 4326cad8 | 2023-06-20 16:32:57 | [diff] [blame] | 1516 | {"tab-grid-refactoring", flag_descriptions::kTabGridRefactoringName, |
| 1517 | flag_descriptions::kTabGridRefactoringDescription, flags_ui::kOsIos, |
| 1518 | FEATURE_VALUE_TYPE(kTabGridRefactoring)}, |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 1519 | {"tab-pickup-threshold", flag_descriptions::kTabPickupThresholdName, |
| 1520 | flag_descriptions::kTabPickupThresholdDescription, flags_ui::kOsIos, |
| 1521 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabPickupThreshold, |
| 1522 | kTabPickupThresholdVariations, |
| 1523 | "TabPickupThreshold")}, |
Huiting Yu | bc1bf4d | 2023-06-26 18:15:32 | [diff] [blame] | 1524 | {"ios-iph-for-safari-switcher", |
| 1525 | flag_descriptions::kIPHForSafariSwitcherName, |
| 1526 | flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos, |
| 1527 | FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)}, |
Benjamin Williams | 9773edd4 | 2023-06-26 20:22:07 | [diff] [blame] | 1528 | {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName, |
| 1529 | flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos, |
| 1530 | FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)}, |
Hira Mahmood | 74604716 | 2023-07-11 22:02:06 | [diff] [blame] | 1531 | {"app-store-rating-loosened-triggers", |
| 1532 | flag_descriptions::kAppStoreRatingLoosenedTriggersName, |
| 1533 | flag_descriptions::kAppStoreRatingLoosenedTriggersDescription, |
| 1534 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kAppStoreRatingLoosenedTriggers)}, |
Ernesto Izquierdo Clua | 5e589f5 | 2023-07-06 20:52:15 | [diff] [blame] | 1535 | {"ios-password-auth-on-entry", |
| 1536 | flag_descriptions::kIOSPasswordAuthOnEntryName, |
| 1537 | flag_descriptions::kIOSPasswordAuthOnEntryDescription, flags_ui::kOsIos, |
| 1538 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntry)}, |
Ewann Pelle | 9cd85b2 | 2023-07-12 14:42:01 | [diff] [blame] | 1539 | {"tab-resumption", flag_descriptions::kTabResumptionName, |
| 1540 | flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 1541 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption, |
| 1542 | kTabResumptionVariations, |
| 1543 | "TabResumption")}, |
Jason Hu | ba0b87a | 2023-07-18 15:57:00 | [diff] [blame] | 1544 | {"ios-lens-use-direct-upload", |
| 1545 | flag_descriptions::kIOSLensUseDirectUploadName, |
| 1546 | flag_descriptions::kIOSLensUseDirectUploadDescription, flags_ui::kOsIos, |
| 1547 | FEATURE_VALUE_TYPE(kIOSLensUseDirectUpload)}, |
Siyu An | 33708bc | 2023-07-21 20:24:11 | [diff] [blame] | 1548 | {"autofill-enable-payments-mandatory-reauth-on-bling", |
| 1549 | flag_descriptions::kAutofillEnablePaymentsMandatoryReauthOnBlingName, |
| 1550 | flag_descriptions:: |
| 1551 | kAutofillEnablePaymentsMandatoryReauthOnBlingDescription, |
| 1552 | flags_ui::kOsIos, |
| 1553 | FEATURE_VALUE_TYPE( |
| 1554 | autofill::features::kAutofillEnablePaymentsMandatoryReauthOnBling)}, |
Christian Xu | 07d60019 | 2023-07-24 12:29:52 | [diff] [blame] | 1555 | {"bottom-omnibox-default-setting", |
| 1556 | flag_descriptions::kBottomOmniboxDefaultSettingName, |
| 1557 | flag_descriptions::kBottomOmniboxDefaultSettingDescription, |
| 1558 | flags_ui::kOsIos, |
| 1559 | FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting, |
| 1560 | kBottomOmniboxDefaultSettingVariations, |
| 1561 | "BottomOmniboxDefaultSetting")}, |
Ewann Pelle | 422c094 | 2023-08-01 12:28:13 | [diff] [blame] | 1562 | {"tab-pickup-minimum-delay", flag_descriptions::kTabPickupMinimumDelayName, |
| 1563 | flag_descriptions::kTabPickupMinimumDelayDescription, flags_ui::kOsIos, |
| 1564 | FEATURE_VALUE_TYPE(kTabPickupMinimumDelay)}, |
Nohemi Fernandez | 64acf98 | 2023-08-04 09:27:15 | [diff] [blame] | 1565 | {"enable-family-link-controls", |
| 1566 | flag_descriptions::kEnableFamilyLinkControlsName, |
| 1567 | flag_descriptions::kEnableFamilyLinkControlsDescription, flags_ui::kOsIos, |
| 1568 | FEATURE_VALUE_TYPE( |
| 1569 | supervised_user::kFilterWebsitesForSupervisedUsersOnDesktopAndIOS)}, |
adamta | 7be73b18 | 2023-08-08 22:30:35 | [diff] [blame] | 1570 | {"discover-feed-sport-card", flag_descriptions::kDiscoverFeedSportCardName, |
| 1571 | flag_descriptions::kDiscoverFeedSportCardDescription, flags_ui::kOsIos, |
| 1572 | FEATURE_VALUE_TYPE(kDiscoverFeedSportCard)}, |
Ernesto Izquierdo Clua | 6a00cb9d | 2023-08-11 15:12:50 | [diff] [blame] | 1573 | {"ios-password-auth-on-entry-v2", |
| 1574 | flag_descriptions::kIOSPasswordAuthOnEntryV2Name, |
| 1575 | flag_descriptions::kIOSPasswordAuthOnEntryV2Description, flags_ui::kOsIos, |
| 1576 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntryV2)}, |
Quentin Pubert | 476786e8 | 2023-08-16 12:45:28 | [diff] [blame] | 1577 | {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName, |
| 1578 | flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos, |
| 1579 | FEATURE_VALUE_TYPE(kIOSSaveToPhotos)}, |
Hira Mahmood | 4c15f38 | 2023-08-17 16:21:13 | [diff] [blame] | 1580 | {"ios-parcel-tracking", flag_descriptions::kIOSParcelTrackingName, |
| 1581 | flag_descriptions::kIOSParcelTrackingDescription, flags_ui::kOsIos, |
| 1582 | FEATURE_VALUE_TYPE(kIOSParcelTracking)}, |
Matt Jones | 7953439 | 2023-10-27 14:35:02 | [diff] [blame] | 1583 | {"parcel-tracking-test-data", |
| 1584 | commerce::flag_descriptions::kParcelTrackingTestDataName, |
| 1585 | commerce::flag_descriptions::kParcelTrackingTestDataDescription, |
| 1586 | flags_ui::kOsIos, |
| 1587 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kParcelTrackingTestData, |
| 1588 | kParcelTrackingTestDataVariations, |
| 1589 | "ParcelTrackingTestData")}, |
Justin Wells | 37e32c4d | 2023-09-06 22:11:11 | [diff] [blame] | 1590 | {"autofill-enable-merchant-domain-in-unmask-card-request", |
| 1591 | flag_descriptions::kAutofillEnableMerchantDomainInUnmaskCardRequestName, |
| 1592 | flag_descriptions:: |
| 1593 | kAutofillEnableMerchantDomainInUnmaskCardRequestDescription, |
| 1594 | flags_ui::kOsIos, |
| 1595 | FEATURE_VALUE_TYPE( |
| 1596 | autofill::features::kAutofillEnableMerchantDomainInUnmaskCardRequest)}, |
Verina Armanyous | b23d461 | 2023-09-07 20:31:33 | [diff] [blame] | 1597 | {"autofill-update-chrome-settings-link-to-gpay-web", |
| 1598 | flag_descriptions::kAutofillUpdateChromeSettingsLinkToGPayWebName, |
| 1599 | flag_descriptions::kAutofillUpdateChromeSettingsLinkToGPayWebDescription, |
| 1600 | flags_ui::kOsIos, |
| 1601 | FEATURE_VALUE_TYPE( |
| 1602 | autofill::features::kAutofillUpdateChromeSettingsLinkToGPayWeb)}, |
Christian Xu | 90e952f | 2023-09-13 09:05:28 | [diff] [blame] | 1603 | {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName, |
| 1604 | flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos, |
| 1605 | FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)}, |
Noémie St-Onge | 2634eb8 | 2023-09-19 18:25:59 | [diff] [blame] | 1606 | {"iph-ios-promo-manager-widget-promo", |
| 1607 | flag_descriptions::kIPHiOSPromoPasswordManagerWidgetName, |
| 1608 | flag_descriptions::kIPHiOSPromoPasswordManagerWidgetDescription, |
| 1609 | flags_ui::kOsIos, |
| 1610 | FEATURE_VALUE_TYPE( |
| 1611 | feature_engagement::kIPHiOSPromoPasswordManagerWidgetFeature)}, |
Siyu | 263cf56 | 2023-09-25 20:59:57 | [diff] [blame] | 1612 | {"autofill-enable-virtual-cards", |
| 1613 | flag_descriptions::kAutofillEnableVirtualCardsName, |
| 1614 | flag_descriptions::kAutofillEnableVirtualCardsDescription, |
| 1615 | flags_ui::kOsIos, |
| 1616 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVirtualCards)}, |
Zaina Al-Mashni | 73a64a8 | 2023-09-29 14:33:55 | [diff] [blame] | 1617 | {"ios-incognito-downloads-warning", |
| 1618 | flag_descriptions::kIOSIncognitoDownloadsWarningName, |
| 1619 | flag_descriptions::kIOSIncognitoDownloadsWarningDescription, |
| 1620 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSIncognitoDownloadsWarning)}, |
Christian Xu | f211f63 | 2023-10-02 19:07:57 | [diff] [blame] | 1621 | {"omnibox-shortcuts-database-ios", |
| 1622 | flag_descriptions::kOmniboxPopulateShortcutsDatabaseName, |
| 1623 | flag_descriptions::kOmniboxPopulateShortcutsDatabaseDescription, |
| 1624 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxPopulateShortcutsDatabase)}, |
adamta | 80ec373 | 2023-10-11 16:04:02 | [diff] [blame] | 1625 | {"enable-feed-containment", flag_descriptions::kEnableFeedContainmentName, |
| 1626 | flag_descriptions::kEnableFeedContainmentDescription, flags_ui::kOsIos, |
| 1627 | FEATURE_VALUE_TYPE(kEnableFeedContainment)}, |
Vasilii Sukhanov | 32b1445 | 2023-10-12 17:31:27 | [diff] [blame] | 1628 | {"delete-undecryptable-passwords", |
| 1629 | flag_descriptions::kClearUndecryptablePasswordsOnSyncName, |
| 1630 | flag_descriptions::kClearUndecryptablePasswordsOnSyncDescription, |
| 1631 | flags_ui::kOsIos, |
| 1632 | FEATURE_VALUE_TYPE( |
| 1633 | password_manager::features::kClearUndecryptablePasswordsOnSync)}, |
| 1634 | {"ignore-undecryptable-passwords", |
| 1635 | flag_descriptions::kSkipUndecryptablePasswordsName, |
| 1636 | flag_descriptions::kSkipUndecryptablePasswordsDescription, |
| 1637 | flags_ui::kOsIos, |
| 1638 | FEATURE_VALUE_TYPE( |
| 1639 | password_manager::features::kSkipUndecryptablePasswords)}, |
Rubin Deliallisi | 072bc84 | 2023-10-19 12:00:41 | [diff] [blame] | 1640 | {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName, |
| 1641 | flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos, |
| 1642 | FEATURE_VALUE_TYPE(kPrivacyGuideIos)}, |
Christian Xu | bb3374c | 2023-10-24 10:58:22 | [diff] [blame] | 1643 | {"bottom-omnibox-device-switcher-results", |
| 1644 | flag_descriptions::kBottomOmniboxDeviceSwitcherResultsName, |
| 1645 | flag_descriptions::kBottomOmniboxDeviceSwitcherResultsDescription, |
| 1646 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kBottomOmniboxDeviceSwitcherResults)}, |
Ewann Pelle | 54e51bd6 | 2023-10-24 17:28:12 | [diff] [blame] | 1647 | {"sync-session-on-visibility-changed", |
| 1648 | flag_descriptions::kSyncSessionOnVisibilityChangedName, |
| 1649 | flag_descriptions::kSyncSessionOnVisibilityChangedDescription, |
| 1650 | flags_ui::kOsIos, |
| 1651 | FEATURE_VALUE_TYPE(syncer::kSyncSessionOnVisibilityChanged)}, |
Quentin Pubert | f2d75c3 | 2023-10-25 12:17:45 | [diff] [blame] | 1652 | {"enable-save-to-drive", flag_descriptions::kIOSSaveToDriveName, |
| 1653 | flag_descriptions::kIOSSaveToDriveDescription, flags_ui::kOsIos, |
| 1654 | FEATURE_VALUE_TYPE(kIOSSaveToDrive)}, |
Rafał Godlewski | e75d1240 | 2023-10-25 15:31:53 | [diff] [blame] | 1655 | {"password-sharing", flag_descriptions::kPasswordSharingName, |
| 1656 | flag_descriptions::kPasswordSharingDescription, flags_ui::kOsIos, |
| 1657 | MULTI_VALUE_TYPE(kEnablePasswordSharingChoices)}, |
Jennifer Serrano | f384360c | 2023-10-27 00:25:51 | [diff] [blame] | 1658 | {"omnibox-company-entity-icon-adjustment", |
| 1659 | flag_descriptions::kOmniboxCompanyEntityIconAdjustmentName, |
| 1660 | flag_descriptions::kOmniboxCompanyEntityIconAdjustmentDescription, |
| 1661 | flags_ui::kOsIos, |
| 1662 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kCompanyEntityIconAdjustment, |
| 1663 | kOmniboxCompanyEntityAdjustmentVariations, |
| 1664 | "OmniboxCompanyEntityAdjustment")}, |
Gauthier Ambard | c6246a10 | 2023-10-30 18:29:05 | [diff] [blame] | 1665 | {"dynamic-theme-color", flag_descriptions::kDynamicThemeColorName, |
| 1666 | flag_descriptions::kDynamicThemeColorDescription, flags_ui::kOsIos, |
| 1667 | FEATURE_VALUE_TYPE(kDynamicThemeColor)}, |
| 1668 | {"dynamic-background-color", flag_descriptions::kDynamicBackgroundColorName, |
| 1669 | flag_descriptions::kDynamicBackgroundColorDescription, flags_ui::kOsIos, |
| 1670 | FEATURE_VALUE_TYPE(kDynamicBackgroundColor)}, |
| 1671 | |
Gauthier Ambard | 6ca6d5e | 2023-06-20 09:33:30 | [diff] [blame] | 1672 | }; |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1673 | |
Rohit Rao | bed794c | 2020-04-27 15:27:45 | [diff] [blame] | 1674 | bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) { |
| 1675 | return false; |
| 1676 | } |
| 1677 | |
| 1678 | flags_ui::FlagsState& GetGlobalFlagsState() { |
| 1679 | static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries, |
| 1680 | nullptr); |
| 1681 | return *flags_state; |
| 1682 | } |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1683 | // Creates the experimental test policies map, used by AsyncPolicyLoader and |
| 1684 | // PolicyLoaderIOS to locally enable policies. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 1685 | NSMutableDictionary* CreateExperimentalTestingPolicies() { |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1686 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 1687 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1688 | // Shared variables for all enterprise experimental flags. |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1689 | NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init]; |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1690 | NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init]; |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1691 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1692 | // Set some sample policy values for testing if EnableSamplePolicies is set to |
| 1693 | // true. |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1694 | if ([defaults boolForKey:@"EnableSamplePolicies"]) { |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1695 | [testing_policies addEntriesFromDictionary:@{ |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1696 | base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO, |
| 1697 | |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1698 | base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO, |
| 1699 | |
| 1700 | // 2 = Disable all variations |
| 1701 | base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2, |
| 1702 | |
| 1703 | // 2 = Do not allow any site to show popups |
| 1704 | base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2, |
| 1705 | |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1706 | // Set default search engine. |
| 1707 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) : |
| 1708 | @YES, |
| 1709 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) : |
| 1710 | @"http://www.google.com/search?q={searchTerms}", |
| 1711 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) : |
Tina Wang | 7cd0a06 | 2020-09-15 21:31:02 | [diff] [blame] | 1712 | @"TestEngine", |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1713 | |
Tina Wang | 89068c8 | 2020-10-29 15:51:50 | [diff] [blame] | 1714 | base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO, |
| 1715 | |
Gauthier Ambard | 21b2370 | 2021-04-16 16:11:27 | [diff] [blame] | 1716 | base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO, |
| 1717 | |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1718 | base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO, |
Tina Wang | 54dddfc2 | 2020-08-20 22:34:53 | [diff] [blame] | 1719 | |
| 1720 | // 2 = Enhanced safe browsing protection |
| 1721 | base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2, |
| 1722 | |
| 1723 | base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES, |
Hira Mahmood | a53b8d63 | 2023-01-03 10:03:29 | [diff] [blame] | 1724 | |
| 1725 | base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO, |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1726 | }]; |
| 1727 | } |
| 1728 | |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1729 | if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) { |
Guillaume Jenkins | fe46d3a | 2021-04-26 19:51:04 | [diff] [blame] | 1730 | NSString* sync_policy_key = |
| 1731 | base::SysUTF8ToNSString(policy::key::kSyncDisabled); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1732 | [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}]; |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1733 | } |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1734 | |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 1735 | // SyncTypesListDisabled policy. |
| 1736 | NSString* Sync_types_list_disabled_key = |
| 1737 | base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled); |
| 1738 | NSMutableArray* Sync_types_list_disabled_values = |
| 1739 | [[NSMutableArray alloc] init]; |
| 1740 | if ([defaults boolForKey:@"SyncTypesListBookmarks"]) { |
| 1741 | [Sync_types_list_disabled_values addObject:@"bookmarks"]; |
| 1742 | } |
| 1743 | if ([defaults boolForKey:@"SyncTypesListReadingList"]) { |
| 1744 | [Sync_types_list_disabled_values addObject:@"readingList"]; |
| 1745 | } |
| 1746 | if ([defaults boolForKey:@"SyncTypesListPreferences"]) { |
| 1747 | [Sync_types_list_disabled_values addObject:@"preferences"]; |
| 1748 | } |
| 1749 | if ([defaults boolForKey:@"SyncTypesListPasswords"]) { |
| 1750 | [Sync_types_list_disabled_values addObject:@"passwords"]; |
| 1751 | } |
| 1752 | if ([defaults boolForKey:@"SyncTypesListAutofill"]) { |
| 1753 | [Sync_types_list_disabled_values addObject:@"autofill"]; |
| 1754 | } |
| 1755 | if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) { |
| 1756 | [Sync_types_list_disabled_values addObject:@"typedUrls"]; |
| 1757 | } |
| 1758 | if ([defaults boolForKey:@"SyncTypesListTabs"]) { |
| 1759 | [Sync_types_list_disabled_values addObject:@"tabs"]; |
| 1760 | } |
| 1761 | if ([Sync_types_list_disabled_values count]) { |
| 1762 | [testing_policies addEntriesFromDictionary:@{ |
| 1763 | Sync_types_list_disabled_key : Sync_types_list_disabled_values |
| 1764 | }]; |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 1765 | } |
| 1766 | |
Gauthier Ambard | 073eaa9 | 2021-11-22 15:24:13 | [diff] [blame] | 1767 | // If an incognito mode availability is set, set the value. |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 1768 | NSString* incognito_policy_key = |
| 1769 | base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability); |
| 1770 | NSInteger incognito_mode_availability = |
| 1771 | [defaults integerForKey:incognito_policy_key]; |
| 1772 | if (incognito_mode_availability) { |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 1773 | [testing_policies addEntriesFromDictionary:@{ |
| 1774 | incognito_policy_key : @(incognito_mode_availability), |
| 1775 | }]; |
| 1776 | } |
| 1777 | |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1778 | NSString* restriction_pattern = |
| 1779 | [defaults stringForKey:@"RestrictAccountsToPatterns"]; |
| 1780 | if ([restriction_pattern length] > 0) { |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 1781 | NSString* restrict_key = |
| 1782 | base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns); |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1783 | [testing_policies addEntriesFromDictionary:@{ |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 1784 | restrict_key : @[ restriction_pattern ] |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1785 | }]; |
| 1786 | } |
| 1787 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 1788 | // If the sign-in policy is set (not "None"), add the policy key to the list |
| 1789 | // of enabled experimental policies, and set the value. |
| 1790 | NSString* const kSigninPolicyKey = @"BrowserSignin"; |
| 1791 | NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey]; |
| 1792 | if (signin_policy_mode) { |
| 1793 | // Remove the mode offset that was used to represent the unset policy. |
| 1794 | --signin_policy_mode; |
| 1795 | DCHECK(signin_policy_mode >= 0); |
| 1796 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 1797 | [testing_policies addEntriesFromDictionary:@{ |
| 1798 | kSigninPolicyKey : @(signin_policy_mode), |
| 1799 | }]; |
| 1800 | } |
| 1801 | |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 1802 | // If the New Tab Page URL is set (not empty) add the value to the list of |
| 1803 | // test policies. |
| 1804 | NSString* ntp_location = [defaults stringForKey:@"NTPLocation"]; |
| 1805 | if ([ntp_location length] > 0) { |
| 1806 | NSString* ntp_location_key = |
| 1807 | base::SysUTF8ToNSString(policy::key::kNewTabPageLocation); |
| 1808 | [testing_policies |
| 1809 | addEntriesFromDictionary:@{ntp_location_key : ntp_location}]; |
Veronique Nguyen | 302d870 | 2022-01-12 21:18:57 | [diff] [blame] | 1810 | [allowed_experimental_policies addObject:ntp_location_key]; |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 1811 | } |
| 1812 | |
Ali Juma | 9ec36d2 | 2022-03-28 14:53:12 | [diff] [blame] | 1813 | if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) { |
| 1814 | NSString* allow_backups_key = |
| 1815 | base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups); |
| 1816 | [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}]; |
| 1817 | [allowed_experimental_policies addObject:allow_backups_key]; |
| 1818 | } |
| 1819 | |
Victor Hugo Vianna Silva | 9e1a730 | 2023-02-21 08:56:24 | [diff] [blame] | 1820 | if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) { |
| 1821 | NSString* password_manager_key = |
| 1822 | base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled); |
| 1823 | [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}]; |
| 1824 | [allowed_experimental_policies addObject:password_manager_key]; |
| 1825 | } |
Vincent Boisselle | 003569a7 | 2023-09-11 16:03:12 | [diff] [blame] | 1826 | |
| 1827 | if ([defaults boolForKey:@"EnableUserPolicyMerge"]) { |
| 1828 | NSString* user_policy_merge_key = |
| 1829 | base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge); |
| 1830 | [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}]; |
| 1831 | [allowed_experimental_policies addObject:user_policy_merge_key]; |
| 1832 | } |
| 1833 | |
Arthur Milchior | bb44f5c8 | 2023-03-14 16:14:46 | [diff] [blame] | 1834 | if ([defaults boolForKey:@"AddManagedBookmarks"]) { |
| 1835 | NSString* managed_bookmarks_key = |
| 1836 | base::SysUTF8ToNSString(policy::key::kManagedBookmarks); |
| 1837 | NSString* managed_bookmarks_value = |
Avi Drissman | aa24581 | 2023-04-27 20:20:57 | [diff] [blame] | 1838 | @"[" |
| 1839 | // The following gets filtered out from |
| 1840 | // the JSON string when parsed. |
| 1841 | " {" |
| 1842 | " \"toplevel_name\": \"Managed Bookmarks\"" |
| 1843 | " }," |
| 1844 | " {" |
| 1845 | " \"name\": \"Google\"," |
| 1846 | " \"url\": \"google.com\"" |
| 1847 | " }," |
| 1848 | " {" |
| 1849 | " \"name\": \"Empty Folder\"," |
| 1850 | " \"children\": []" |
| 1851 | " }," |
| 1852 | " {" |
| 1853 | " \"name\": \"Big Folder\"," |
| 1854 | " \"children\": [" |
| 1855 | " {" |
| 1856 | " \"name\": \"Youtube\"," |
| 1857 | " \"url\": \"youtube.com\"" |
| 1858 | " }," |
| 1859 | " {" |
| 1860 | " \"name\": \"Chromium\"," |
| 1861 | " \"url\": \"chromium.org\"" |
| 1862 | " }," |
| 1863 | " {" |
| 1864 | " \"name\": \"More Stuff\"," |
| 1865 | " \"children\": [" |
| 1866 | " {" |
| 1867 | " \"name\": \"Bugs\"," |
| 1868 | " \"url\": \"crbug.com\"" |
| 1869 | " }" |
| 1870 | " ]" |
| 1871 | " }" |
| 1872 | " ]" |
| 1873 | " }" |
| 1874 | "]"; |
Arthur Milchior | bb44f5c8 | 2023-03-14 16:14:46 | [diff] [blame] | 1875 | [testing_policies addEntriesFromDictionary:@{ |
| 1876 | managed_bookmarks_key : managed_bookmarks_value |
| 1877 | }]; |
| 1878 | [allowed_experimental_policies addObject:managed_bookmarks_key]; |
| 1879 | } |
Victor Hugo Vianna Silva | 9e1a730 | 2023-02-21 08:56:24 | [diff] [blame] | 1880 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1881 | // If any experimental policy was allowed, set the EnableExperimentalPolicies |
| 1882 | // policy. |
| 1883 | if ([allowed_experimental_policies count] > 0) { |
| 1884 | [testing_policies setValue:allowed_experimental_policies |
| 1885 | forKey:base::SysUTF8ToNSString( |
| 1886 | policy::key::kEnableExperimentalPolicies)]; |
| 1887 | } |
| 1888 | |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1889 | NSString* metrics_reporting_key = @"MetricsReportingEnabled"; |
| 1890 | switch ([defaults integerForKey:metrics_reporting_key]) { |
| 1891 | case 1: |
| 1892 | // Metrics reporting forced. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 1893 | [testing_policies setValue:@YES forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1894 | break; |
| 1895 | case 2: |
| 1896 | // Metrics reporting disabled. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 1897 | [testing_policies setValue:@NO forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1898 | break; |
| 1899 | default: |
| 1900 | // Metrics reporting not managed. |
| 1901 | break; |
| 1902 | } |
| 1903 | |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 1904 | // Warning: Add new flags to TestingPoliciesHash() below. |
| 1905 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1906 | return testing_policies; |
| 1907 | } |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 1908 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1909 | } // namespace |
| 1910 | |
Gauthier Ambard | 02dbf02 | 2022-08-23 08:28:47 | [diff] [blame] | 1911 | // Add all switches from experimental flags to `command_line`. |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1912 | void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) { |
| 1913 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 1914 | |
| 1915 | // Set the UA flag if UseMobileSafariUA is enabled. |
| 1916 | if ([defaults boolForKey:@"UseMobileSafariUA"]) { |
| 1917 | // Safari uses "Vesion/", followed by the OS version excluding bugfix, where |
| 1918 | // Chrome puts its product token. |
| 1919 | int32_t major = 0; |
| 1920 | int32_t minor = 0; |
| 1921 | int32_t bugfix = 0; |
| 1922 | base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix); |
| 1923 | std::string product = base::StringPrintf("Version/%d.%d", major, minor); |
| 1924 | |
| 1925 | command_line->AppendSwitchASCII(switches::kUserAgent, |
| 1926 | web::BuildMobileUserAgent(product)); |
| 1927 | } |
| 1928 | |
| 1929 | // Shared variables for all enterprise experimental flags. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 1930 | NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies(); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1931 | |
| 1932 | // If a CBCM enrollment token is provided, force Chrome Browser Cloud |
| 1933 | // Management to enabled and add the token to the list of policies. |
| 1934 | NSString* token_key = |
| 1935 | base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken); |
| 1936 | NSString* token = [defaults stringForKey:token_key]; |
| 1937 | |
| 1938 | if ([token length] > 0) { |
| 1939 | command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement); |
| 1940 | [testing_policies setValue:token forKey:token_key]; |
| 1941 | } |
| 1942 | |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1943 | // If some policies were set, commit them to the app's registration defaults. |
| 1944 | if ([testing_policies count] > 0) { |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1945 | NSDictionary* registration_defaults = |
| 1946 | @{kPolicyLoaderIOSConfigurationKey : testing_policies}; |
| 1947 | [defaults registerDefaults:registration_defaults]; |
| 1948 | } |
| 1949 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1950 | // Freeform commandline flags. These are added last, so that any flags added |
| 1951 | // earlier in this function take precedence. |
| 1952 | if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) { |
| 1953 | base::CommandLine::StringVector flags; |
| 1954 | // Append an empty "program" argument. |
| 1955 | flags.push_back(""); |
| 1956 | |
| 1957 | // The number of flags corresponds to the number of text fields in |
| 1958 | // Experimental.plist. |
| 1959 | const int kNumFreeformFlags = 5; |
| 1960 | for (int i = 1; i <= kNumFreeformFlags; ++i) { |
| 1961 | NSString* key = |
| 1962 | [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i]; |
| 1963 | NSString* flag = [defaults stringForKey:key]; |
| 1964 | if ([flag length]) { |
Robbie Gibson | c91ce62 | 2019-05-20 14:44:33 | [diff] [blame] | 1965 | // iOS keyboard replaces -- with —, so undo that. |
| 1966 | flag = [flag stringByReplacingOccurrencesOfString:@"—" |
| 1967 | withString:@"--" |
| 1968 | options:0 |
| 1969 | range:NSMakeRange(0, 1)]; |
| 1970 | // To make things easier, allow flags with no dashes by prepending them |
| 1971 | // here. This also allows for flags that just have one dash if they |
| 1972 | // exist. |
| 1973 | if (![flag hasPrefix:@"-"]) { |
| 1974 | flag = [@"--" stringByAppendingString:flag]; |
| 1975 | } |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1976 | flags.push_back(base::SysNSStringToUTF8(flag)); |
| 1977 | } |
| 1978 | } |
| 1979 | |
| 1980 | base::CommandLine temp_command_line(flags); |
| 1981 | command_line->AppendArguments(temp_command_line, false); |
| 1982 | } |
msarda | fc76f66 | 2017-02-24 12:46:28 | [diff] [blame] | 1983 | |
justincohen | dacc85d | 2017-06-28 23:34:10 | [diff] [blame] | 1984 | // Populate command line flag for 3rd party keyboard omnibox workaround. |
| 1985 | NSString* enableThirdPartyKeyboardWorkaround = |
| 1986 | [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"]; |
| 1987 | if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) { |
| 1988 | command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround); |
| 1989 | } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) { |
| 1990 | command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround); |
| 1991 | } |
| 1992 | |
Sylvain Defresne | d3cd8d9 | 2022-01-18 13:35:08 | [diff] [blame] | 1993 | ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1994 | } |
| 1995 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1996 | void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage, |
| 1997 | base::CommandLine* command_line) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 1998 | GetGlobalFlagsState().ConvertFlagsToSwitches( |
sdefresne | c976390 | 2015-12-02 10:30:11 | [diff] [blame] | 1999 | flags_storage, command_line, flags_ui::kAddSentinels, |
Gregory Chatzinoff | f652372 | 2017-11-21 01:33:53 | [diff] [blame] | 2000 | switches::kEnableFeatures, switches::kDisableFeatures); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2001 | } |
| 2002 | |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 2003 | std::vector<std::string> RegisterAllFeatureVariationParameters( |
| 2004 | flags_ui::FlagsStorage* flags_storage, |
| 2005 | base::FeatureList* feature_list) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2006 | return GetGlobalFlagsState().RegisterAllFeatureVariationParameters( |
| 2007 | flags_storage, feature_list); |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 2008 | } |
| 2009 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2010 | void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage, |
| 2011 | flags_ui::FlagAccess access, |
Matt Menke | 4d77757 | 2022-06-15 15:55:50 | [diff] [blame] | 2012 | base::Value::List& supported_entries, |
| 2013 | base::Value::List& unsupported_entries) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2014 | GetGlobalFlagsState().GetFlagFeatureEntries( |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2015 | flags_storage, access, supported_entries, unsupported_entries, |
Renjie Tang | 208c819 | 2020-11-03 00:46:51 | [diff] [blame] | 2016 | base::BindRepeating(&SkipConditionalFeatureEntry)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2017 | } |
| 2018 | |
| 2019 | void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage, |
| 2020 | const std::string& internal_name, |
| 2021 | bool enable) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2022 | GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name, |
| 2023 | enable); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2024 | } |
| 2025 | |
| 2026 | void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2027 | GetGlobalFlagsState().ResetAllFlags(flags_storage); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2028 | } |
| 2029 | |
Nicolas MacBeth | 972e259 | 2023-02-23 15:22:09 | [diff] [blame] | 2030 | bool IsRestartNeededToCommitChanges() { |
| 2031 | return GetGlobalFlagsState().IsRestartNeededToCommitChanges(); |
| 2032 | } |
| 2033 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2034 | namespace testing { |
| 2035 | |
Elly Fong-Jones | 323ab109 | 2021-08-23 22:36:31 | [diff] [blame] | 2036 | base::span<const flags_ui::FeatureEntry> GetFeatureEntries() { |
| 2037 | return base::span<const flags_ui::FeatureEntry>(kFeatureEntries, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 2038 | std::size(kFeatureEntries)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2039 | } |
| 2040 | |
| 2041 | } // namespace testing |