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