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