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" |
Vidhan Jain | 1199e20 | 2024-03-15 14:42:59 | [diff] [blame] | 27 | #import "components/autofill/ios/common/features.h" |
Menghan YANG | f3fe2de5 | 2023-02-27 16:38:50 | [diff] [blame] | 28 | #import "components/bookmarks/common/bookmark_features.h" |
Marc Treib | 1f6c5db99 | 2024-01-04 20:25:14 | [diff] [blame] | 29 | #import "components/browser_sync/browser_sync_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 30 | #import "components/commerce/core/commerce_feature_list.h" |
| 31 | #import "components/commerce/core/flag_descriptions.h" |
| 32 | #import "components/content_settings/core/common/features.h" |
| 33 | #import "components/dom_distiller/core/dom_distiller_switches.h" |
Raj T | b95d81354 | 2022-11-16 21:27:52 | [diff] [blame] | 34 | #import "components/download/public/background_service/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 35 | #import "components/enterprise/browser/enterprise_switches.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" |
Ameur Hosni | 3d764c9 | 2024-05-28 14:11:12 | [diff] [blame] | 47 | #import "components/omnibox/browser/omnibox_feature_configs.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 48 | #import "components/omnibox/browser/omnibox_field_trial.h" |
| 49 | #import "components/omnibox/common/omnibox_features.h" |
| 50 | #import "components/optimization_guide/core/optimization_guide_features.h" |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 51 | #import "components/optimization_guide/core/optimization_guide_switches.h" |
Raj T | c66dd12 | 2024-04-01 18:48:39 | [diff] [blame] | 52 | #import "components/page_content_annotations/core/page_content_annotations_features.h" |
Olivier ROBIN | cb76f4fe | 2024-06-05 16:11:42 | [diff] [blame] | 53 | #import "components/page_image_service/features.h" |
Vasilii Sukhanov | 32b1445 | 2023-10-12 17:31:27 | [diff] [blame] | 54 | #import "components/password_manager/core/browser/features/password_features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 55 | #import "components/password_manager/core/common/password_manager_features.h" |
| 56 | #import "components/payments/core/features.h" |
| 57 | #import "components/policy/core/common/features.h" |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 58 | #import "components/policy/core/common/policy_loader_ios_constants.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 59 | #import "components/policy/policy_constants.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 60 | #import "components/safe_browsing/core/common/features.h" |
Chris Lu | 6fd4eaf | 2023-08-08 18:29:30 | [diff] [blame] | 61 | #import "components/segmentation_platform/public/constants.h" |
Chris Lu | b0bad57 | 2023-08-07 18:13:29 | [diff] [blame] | 62 | #import "components/segmentation_platform/public/features.h" |
Victor Hugo Vianna Silva | 0399402f | 2021-09-07 21:41:25 | [diff] [blame] | 63 | #import "components/send_tab_to_self/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 64 | #import "components/shared_highlighting/core/common/shared_highlighting_features.h" |
| 65 | #import "components/signin/core/browser/account_reconcilor.h" |
| 66 | #import "components/signin/ios/browser/features.h" |
| 67 | #import "components/signin/public/base/signin_switches.h" |
| 68 | #import "components/strings/grit/components_strings.h" |
Nohemi Fernandez | 64acf98 | 2023-08-04 09:27:15 | [diff] [blame] | 69 | #import "components/supervised_user/core/common/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 70 | #import "components/sync/base/command_line_switches.h" |
| 71 | #import "components/sync/base/features.h" |
| 72 | #import "components/sync/base/pref_names.h" |
| 73 | #import "components/translate/core/browser/translate_prefs.h" |
| 74 | #import "components/translate/core/common/translate_util.h" |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 75 | #import "ios/chrome/app/background_mode_buildflags.h" |
Gauthier Ambard | 5b7f3c2 | 2023-09-13 12:03:30 | [diff] [blame] | 76 | #import "ios/chrome/browser/browsing_data/model/browsing_data_features.h" |
Aman Verma | b6f5557 | 2023-09-28 11:40:53 | [diff] [blame] | 77 | #import "ios/chrome/browser/crash_report/model/features.h" |
Sebsg | fcd5b0b | 2024-04-09 08:18:32 | [diff] [blame] | 78 | #import "ios/chrome/browser/credential_provider/model/features.h" |
Aman Verma | f8a157f6 | 2023-10-03 15:32:11 | [diff] [blame] | 79 | #import "ios/chrome/browser/default_browser/model/utils.h" |
mmrashad | bc0ca94 | 2023-10-06 13:12:14 | [diff] [blame] | 80 | #import "ios/chrome/browser/find_in_page/model/util.h" |
Gauthier Ambard | 9260513 | 2022-08-26 13:25:17 | [diff] [blame] | 81 | #import "ios/chrome/browser/flags/chrome_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 82 | #import "ios/chrome/browser/flags/ios_chrome_flag_descriptions.h" |
Vincent Boisselle | 8b321bb | 2023-11-28 13:58:31 | [diff] [blame] | 83 | #import "ios/chrome/browser/follow/model/follow_features.h" |
Ali Juma | d29dc187 | 2023-10-19 13:33:58 | [diff] [blame] | 84 | #import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h" |
mmrashad | d0c7f95 | 2023-12-14 13:36:38 | [diff] [blame] | 85 | #import "ios/chrome/browser/policy/model/policy_util.h" |
Cheick Cisse | 85457f2 | 2024-05-23 22:37:59 | [diff] [blame] | 86 | #import "ios/chrome/browser/price_insights/model/price_insights_feature.h" |
Stepan Khapugin | 5694d70 | 2024-01-31 13:23:08 | [diff] [blame] | 87 | #import "ios/chrome/browser/promos_manager/model/features.h" |
mmrashad | f158cad94 | 2023-10-03 09:15:48 | [diff] [blame] | 88 | #import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h" |
Sylvain Defresne | b8106500 | 2024-01-23 10:51:22 | [diff] [blame] | 89 | #import "ios/chrome/browser/sessions/features.h" |
Gauthier Ambard | 7aa0fb92 | 2023-03-09 15:10:46 | [diff] [blame] | 90 | #import "ios/chrome/browser/shared/public/features/features.h" |
Gauthier Ambard | 818938c | 2023-06-16 14:48:35 | [diff] [blame] | 91 | #import "ios/chrome/browser/shared/public/features/system_flags.h" |
Robbie Gibson | 596fe29 | 2023-10-27 01:00:36 | [diff] [blame] | 92 | #import "ios/chrome/browser/tabs/model/inactive_tabs/features.h" |
| 93 | #import "ios/chrome/browser/tabs/model/tab_pickup/features.h" |
Ewann Pelle | d2eaeba | 2023-09-19 09:15:28 | [diff] [blame] | 94 | #import "ios/chrome/browser/text_selection/model/text_selection_util.h" |
Ewann | 1a9d33d | 2021-06-14 11:12:24 | [diff] [blame] | 95 | #import "ios/chrome/browser/ui/download/features.h" |
Charles Yang | 0bba526 | 2024-05-14 17:46:47 | [diff] [blame] | 96 | #import "ios/chrome/browser/ui/lens/features.h" |
adamta | 27356847 | 2020-12-04 23:53:57 | [diff] [blame] | 97 | #import "ios/chrome/browser/ui/ntp/new_tab_page_feature.h" |
Christian Xu | b8c06cd | 2022-04-29 20:55:01 | [diff] [blame] | 98 | #import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h" |
Filipa Senra | 0bd0798 | 2023-12-19 10:56:25 | [diff] [blame] | 99 | #import "ios/chrome/browser/ui/page_info/features.h" |
Robbie Gibson | 686c5673 | 2021-10-04 17:11:45 | [diff] [blame] | 100 | #import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h" |
Filipa Senra | be00cbe | 2024-04-19 14:21:33 | [diff] [blame] | 101 | #import "ios/chrome/browser/ui/settings/clear_browsing_data/features.h" |
Rubin Deliallisi | 4170b1c | 2024-02-28 16:15:42 | [diff] [blame] | 102 | #import "ios/chrome/browser/ui/settings/google_services/features.h" |
Ernesto Izquierdo Clua | 5e589f5 | 2023-07-06 20:52:15 | [diff] [blame] | 103 | #import "ios/chrome/browser/ui/settings/password/password_manager_ui_features.h" |
Rubin Deliallisi | 072bc84 | 2023-10-19 12:00:41 | [diff] [blame] | 104 | #import "ios/chrome/browser/ui/settings/privacy/privacy_guide/features.h" |
gogerald | 0ff29e5 | 2021-02-03 18:56:19 | [diff] [blame] | 105 | #import "ios/chrome/browser/ui/start_surface/start_surface_features.h" |
Cheick Cisse | 5d2b6cb8 | 2023-06-05 17:27:58 | [diff] [blame] | 106 | #import "ios/chrome/browser/ui/whats_new/whats_new_util.h" |
Weizhong Xia | 8b908bda | 2023-12-05 16:00:22 | [diff] [blame] | 107 | #import "ios/chrome/browser/web/model/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 108 | #import "ios/chrome/grit/ios_strings.h" |
| 109 | #import "ios/components/security_interstitials/https_only_mode/feature.h" |
| 110 | #import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h" |
| 111 | #import "ios/web/common/features.h" |
| 112 | #import "ios/web/common/user_agent.h" |
| 113 | #import "ios/web/common/web_view_creation_util.h" |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 114 | |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 115 | #if BUILDFLAG(IOS_SCREEN_TIME_ENABLED) |
mmrashad | f158cad94 | 2023-10-03 09:15:48 | [diff] [blame] | 116 | #import "ios/chrome/browser/screen_time/model/features.h" |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 117 | #endif |
| 118 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 119 | #if !defined(OFFICIAL_BUILD) |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 120 | #import "components/variations/variations_switches.h" |
vitaliii | 489217aa | 2017-01-30 14:50:22 | [diff] [blame] | 121 | #endif |
stkhapugin | c1be179 | 2016-12-13 14:30:53 | [diff] [blame] | 122 | |
elawrence | 816f6790e | 2017-06-16 18:19:28 | [diff] [blame] | 123 | using flags_ui::FeatureEntry; |
| 124 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 125 | namespace { |
Emily Stark | bafa906 | 2017-12-27 15:22:46 | [diff] [blame] | 126 | |
Nohemi Fernandez | c00842a | 2021-07-26 11:47:34 | [diff] [blame] | 127 | const FeatureEntry::Choice |
| 128 | kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = { |
| 129 | {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 130 | {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"}, |
| 131 | {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"}, |
| 132 | {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"}, |
| 133 | }; |
| 134 | |
Filipa Senra | a2074a1 | 2024-06-10 14:49:20 | [diff] [blame] | 135 | const FeatureEntry::Choice kRevampPageInfoiOSChoices[] = { |
| 136 | {"Default", "", ""}, |
| 137 | {"Enabled", switches::kEnableFeatures, |
| 138 | "RevampPageInfoIos, PageInfoAboutThisSite"}, |
| 139 | {"Disabled", switches::kDisableFeatures, |
| 140 | "RevampPageInfoIos, PageInfoAboutThisSite"}, |
| 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 | |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 226 | // Uses int values from SigninPromoViewStyle enum. |
| 227 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoStandard[] = { |
| 228 | {kDiscoverFeedTopSyncPromoStyle, "0"}}; |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 229 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactHorizontal[] = |
Guillem Perez | c2d1394 | 2023-06-22 20:14:59 | [diff] [blame] | 230 | {{kDiscoverFeedTopSyncPromoStyle, "1"}}; |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 231 | const FeatureEntry::FeatureParam kDiscoverFeedTopSyncPromoCompactVertical[] = { |
Guillem Perez | c2d1394 | 2023-06-22 20:14:59 | [diff] [blame] | 232 | {kDiscoverFeedTopSyncPromoStyle, "2"}}; |
adamta | db0bfc6 | 2022-08-01 17:37:47 | [diff] [blame] | 233 | |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 234 | const FeatureEntry::FeatureVariation kDiscoverFeedTopSyncPromoVariations[] = { |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 235 | {"Standard", kDiscoverFeedTopSyncPromoStandard, |
| 236 | std::size(kDiscoverFeedTopSyncPromoStandard), nullptr}, |
adamta | 37c6b83 | 2023-03-10 20:04:09 | [diff] [blame] | 237 | {"Compact Horizontal", kDiscoverFeedTopSyncPromoCompactHorizontal, |
| 238 | std::size(kDiscoverFeedTopSyncPromoCompactHorizontal), nullptr}, |
| 239 | {"Compact Vertical", kDiscoverFeedTopSyncPromoCompactVertical, |
| 240 | std::size(kDiscoverFeedTopSyncPromoCompactVertical), nullptr}}; |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 241 | |
Guillem Perez | 40086ef | 2023-11-20 20:03:52 | [diff] [blame] | 242 | const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = { |
| 243 | {kContentPushNotificationsExperimentType, "1"}}; |
| 244 | const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] = |
| 245 | {{kContentPushNotificationsExperimentType, "2"}}; |
Guillem Perez | 222b5b2 | 2024-01-20 02:16:27 | [diff] [blame] | 246 | const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] = |
| 247 | {{kContentPushNotificationsExperimentType, "3"}}; |
Tina Wang | b7f5b3f | 2024-05-07 06:24:26 | [diff] [blame] | 248 | const FeatureEntry::FeatureParam |
| 249 | kContentPushNotificationsPromoRegistrationOnly[] = { |
| 250 | {kContentPushNotificationsExperimentType, "5"}}; |
| 251 | const FeatureEntry::FeatureParam |
| 252 | kContentPushNotificationsProvisionalRegistrationOnly[] = { |
| 253 | {kContentPushNotificationsExperimentType, "6"}}; |
| 254 | const FeatureEntry::FeatureParam |
| 255 | kContentPushNotificationsSetUpListRegistrationOnly[] = { |
| 256 | {kContentPushNotificationsExperimentType, "7"}}; |
Guillem Perez | 40086ef | 2023-11-20 20:03:52 | [diff] [blame] | 257 | |
| 258 | const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = { |
| 259 | {"Promo", kContentPushNotificationsEnabledPromo, |
| 260 | std::size(kContentPushNotificationsEnabledPromo), nullptr}, |
| 261 | {"Set up list", kContentPushNotificationsEnabledSetupLists, |
Guillem Perez | 222b5b2 | 2024-01-20 02:16:27 | [diff] [blame] | 262 | std::size(kContentPushNotificationsEnabledSetupLists), nullptr}, |
| 263 | {"Provisional Notification", kContentPushNotificationsEnabledProvisional, |
Guillem Perez | 749b3fc | 2024-02-13 19:29:49 | [diff] [blame] | 264 | std::size(kContentPushNotificationsEnabledProvisional), nullptr}, |
Tina Wang | b7f5b3f | 2024-05-07 06:24:26 | [diff] [blame] | 265 | {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly, |
| 266 | std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr}, |
| 267 | {"Provisional Notification Registeration Only", |
| 268 | kContentPushNotificationsProvisionalRegistrationOnly, |
| 269 | std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr}, |
| 270 | {"Set up list Registeration Only", |
| 271 | kContentPushNotificationsSetUpListRegistrationOnly, |
| 272 | std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}}; |
Guillem Perez | 40086ef | 2023-11-20 20:03:52 | [diff] [blame] | 273 | |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 274 | const FeatureEntry::FeatureParam kFeedHeaderSettingDisabledStickyHeader[] = { |
| 275 | {kDisableStickyHeaderForFollowingFeed, "true"}}; |
| 276 | const FeatureEntry::FeatureParam kFeedHeaderSettingReducedHeight[] = { |
adamta | bc04804 | 2023-03-15 22:42:18 | [diff] [blame] | 277 | {kOverrideFeedHeaderHeight, "30"}}; |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 278 | const FeatureEntry::FeatureParam kFeedHeaderSettingAllImprovements[] = { |
| 279 | {kDisableStickyHeaderForFollowingFeed, "true"}, |
adamta | bc04804 | 2023-03-15 22:42:18 | [diff] [blame] | 280 | {kOverrideFeedHeaderHeight, "30"}}; |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 281 | |
| 282 | const FeatureEntry::FeatureVariation kFeedHeaderSettingsVariations[] = { |
| 283 | {"Disable sticky header", kFeedHeaderSettingDisabledStickyHeader, |
| 284 | std::size(kFeedHeaderSettingDisabledStickyHeader), nullptr}, |
| 285 | {"Reduced header height", kFeedHeaderSettingReducedHeight, |
| 286 | std::size(kFeedHeaderSettingReducedHeight), nullptr}, |
| 287 | {"All improvements", kFeedHeaderSettingAllImprovements, |
| 288 | std::size(kFeedHeaderSettingAllImprovements), nullptr}}; |
| 289 | |
Chris Lu | dca9ce3 | 2023-09-20 16:53:50 | [diff] [blame] | 290 | const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = { |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 291 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
Chris Lu | dca9ce3 | 2023-09-20 16:53:50 | [diff] [blame] | 292 | const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = { |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 293 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 294 | |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 295 | const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = { |
Chris Lu | dca9ce3 | 2023-09-20 16:53:50 | [diff] [blame] | 296 | {"10s:Show Home Surface", kStartSurfaceTenSeconds, |
| 297 | std::size(kStartSurfaceTenSeconds), nullptr}, |
| 298 | {"1h:Show Home Surface", kStartSurfaceOneHour, |
| 299 | std::size(kStartSurfaceOneHour), nullptr}, |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 300 | }; |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 301 | |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 302 | const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = { |
| 303 | {kMagicStackMostVisitedModuleParam, "true"}, |
| 304 | {kReducedSpaceParam, "-80"}}; |
Chris Lu | 28c0ede | 2023-08-25 19:25:22 | [diff] [blame] | 305 | const FeatureEntry::FeatureParam |
| 306 | kMagicStackMostVisitedModuleHideIrrelevantModules[] = { |
| 307 | {kMagicStackMostVisitedModuleParam, "true"}, |
| 308 | {kReducedSpaceParam, "-80"}, |
| 309 | {kHideIrrelevantModulesParam, "true"}}; |
Chris Lu | 8cf8ef8 | 2024-03-18 18:30:54 | [diff] [blame] | 310 | const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = { |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 311 | {kMagicStackMostVisitedModuleParam, "false"}, |
Chris Lu | 8cf8ef8 | 2024-03-18 18:30:54 | [diff] [blame] | 312 | {kHideIrrelevantModulesParam, "true"}}; |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 313 | |
| 314 | const FeatureEntry::FeatureVariation kMagicStackVariations[]{ |
| 315 | {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule, |
| 316 | std::size(kMagicStackMostVisitedModule), nullptr}, |
Chris Lu | 28c0ede | 2023-08-25 19:25:22 | [diff] [blame] | 317 | {"Most Visited Tiles in Magic Stack and hide irrelevant modules", |
| 318 | kMagicStackMostVisitedModuleHideIrrelevantModules, |
| 319 | std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr}, |
Chris Lu | 8cf8ef8 | 2024-03-18 18:30:54 | [diff] [blame] | 320 | {"Hide irrelevant modules", kMagicStackHidIrrelevantModules, |
| 321 | std::size(kMagicStackHidIrrelevantModules), nullptr}, |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 322 | }; |
| 323 | |
Chris Lu | 6fd4eaf | 2023-08-08 18:29:30 | [diff] [blame] | 324 | const FeatureEntry::FeatureParam kEnableDefaultModel[] = { |
| 325 | {segmentation_platform::kDefaultModelEnabledParam, "true"}}; |
| 326 | |
| 327 | const FeatureEntry::FeatureVariation |
| 328 | kSegmentationPlatformIosModuleRankerVariations[]{ |
| 329 | {"Enabled With Default Model Parameter (Must Set this!)", |
| 330 | kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr}, |
| 331 | }; |
| 332 | |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 333 | const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = { |
| 334 | {kIOSTipsNotificationsTriggerTimeParam, "5s"}, |
| 335 | }; |
| 336 | const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = { |
| 337 | {kIOSTipsNotificationsTriggerTimeParam, "10s"}, |
| 338 | }; |
Scott Yoder | d2dbc87f | 2024-03-07 18:23:37 | [diff] [blame] | 339 | const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = { |
| 340 | {kIOSTipsNotificationsTriggerTimeParam, "30s"}, |
| 341 | }; |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 342 | const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = { |
| 343 | {"(5s trigger)", kIOSTipsNotifications5SecondTrigger, |
| 344 | std::size(kIOSTipsNotifications10SecondTrigger), nullptr}, |
| 345 | {"(10s trigger)", kIOSTipsNotifications10SecondTrigger, |
| 346 | std::size(kIOSTipsNotifications10SecondTrigger), nullptr}, |
Scott Yoder | d2dbc87f | 2024-03-07 18:23:37 | [diff] [blame] | 347 | {"(30s trigger)", kIOSTipsNotifications30SecondTrigger, |
| 348 | std::size(kIOSTipsNotifications10SecondTrigger), nullptr}, |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 349 | }; |
| 350 | |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 351 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 352 | // Feed Background Refresh Feature Params. |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 353 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 354 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 355 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 356 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 357 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 358 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 359 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 360 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 361 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 362 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 363 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 364 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 365 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 366 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 367 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 368 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 369 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 370 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 371 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 372 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 373 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 374 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 375 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 376 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 377 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 378 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 379 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 380 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 381 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 382 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 383 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = { |
| 384 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 385 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
| 386 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 387 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 388 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = { |
| 389 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 390 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
| 391 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 392 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 393 | |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 394 | // Feed Background Refresh Feature Variations. |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 395 | const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = { |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 396 | {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce, |
| 397 | std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr}, |
| 398 | {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce, |
| 399 | std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr}, |
| 400 | {"1hr Interval 1hr Max Age Recurring", |
| 401 | kOneHourIntervalOneHourMaxAgeRecurring, |
| 402 | std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr}, |
| 403 | {"4hr Interval 6hr Max Age Recurring", |
| 404 | kFourHourIntervalSixHourMaxAgeRecurring, |
| 405 | std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr}, |
| 406 | {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce, |
| 407 | std::size(kServerDrivenOneHourMaxAgeOnce), nullptr}, |
| 408 | {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring, |
| 409 | std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr}, |
| 410 | {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce, |
| 411 | std::size(kServerDrivenSixHourMaxAgeOnce), nullptr}, |
| 412 | {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring, |
| 413 | std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 414 | }; |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 415 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 416 | |
David Jean | f361ae9d | 2024-04-09 08:19:47 | [diff] [blame] | 417 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = { |
| 418 | {kTextClassifierAddressParameterName, "true"}}; |
| 419 | const FeatureEntry::FeatureVariation |
| 420 | kEnableExpKitTextClassifierAddressVariations[] = { |
| 421 | {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap, |
| 422 | std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}}; |
| 423 | |
| 424 | const FeatureEntry::FeatureParam |
| 425 | kEnableExpKitTextClassifierPhoneNumberOneTap[] = { |
| 426 | {kTextClassifierPhoneNumberParameterName, "true"}}; |
| 427 | const FeatureEntry::FeatureVariation |
| 428 | kEnableExpKitTextClassifierPhoneNumberVariations[] = { |
| 429 | {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap, |
| 430 | std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}}; |
| 431 | |
| 432 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = { |
| 433 | {kTextClassifierEmailParameterName, "true"}}; |
| 434 | const FeatureEntry::FeatureVariation |
| 435 | kEnableExpKitTextClassifierEmailVariations[] = { |
| 436 | {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap, |
| 437 | std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}}; |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 438 | |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 439 | const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = { |
| 440 | {kTabInactivityThresholdParameterName, |
| 441 | kTabInactivityThresholdOneWeekParam}}; |
| 442 | const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = { |
| 443 | {kTabInactivityThresholdParameterName, |
| 444 | kTabInactivityThresholdTwoWeeksParam}}; |
| 445 | const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = { |
| 446 | {kTabInactivityThresholdParameterName, |
| 447 | kTabInactivityThresholdThreeWeeksParam}}; |
Louis Romero | 56abd90 | 2023-03-15 16:21:58 | [diff] [blame] | 448 | const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = { |
| 449 | {kTabInactivityThresholdParameterName, |
| 450 | kTabInactivityThresholdOneMinuteDemoParam}}; |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 451 | |
| 452 | const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = { |
| 453 | {"One week", kTabInactivityThresholdOneWeek, |
| 454 | std::size(kTabInactivityThresholdOneWeek), nullptr}, |
| 455 | {"Two weeks", kTabInactivityThresholdTwoWeeks, |
| 456 | std::size(kTabInactivityThresholdTwoWeeks), nullptr}, |
| 457 | {"Three weeks", kTabInactivityThresholdThreeWeeks, |
| 458 | std::size(kTabInactivityThresholdThreeWeeks), nullptr}, |
Louis Romero | 56abd90 | 2023-03-15 16:21:58 | [diff] [blame] | 459 | {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo, |
| 460 | std::size(kTabInactivityThresholdOneMinuteDemo), nullptr}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 461 | }; |
| 462 | |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 463 | const FeatureEntry::FeatureParam kTabPickupThresholdTenMinutes[] = { |
| 464 | {kTabPickupThresholdParameterName, kTabPickupThresholdTenMinutesParam}}; |
| 465 | const FeatureEntry::FeatureParam kTabPickupThresholdOneHour[] = { |
| 466 | {kTabPickupThresholdParameterName, kTabPickupThresholdOneHourParam}}; |
| 467 | const FeatureEntry::FeatureParam kTabPickupThresholdTwoHours[] = { |
| 468 | {kTabPickupThresholdParameterName, kTabPickupThresholdTwoHoursParam}}; |
Ewann Pelle | 6bd0640 | 2023-11-10 11:17:55 | [diff] [blame] | 469 | const FeatureEntry::FeatureParam kTabPickupNoFavicon[] = { |
| 470 | {kTabPickupThresholdParameterName, kTabPickupNoFaviconParam}}; |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 471 | |
| 472 | const FeatureEntry::FeatureVariation kTabPickupThresholdVariations[] = { |
| 473 | {"Ten Minutes", kTabPickupThresholdTenMinutes, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 474 | std::size(kTabPickupThresholdTenMinutes), nullptr}, |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 475 | {"One Hour", kTabPickupThresholdOneHour, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 476 | std::size(kTabPickupThresholdOneHour), nullptr}, |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 477 | {"Two Hours", kTabPickupThresholdTwoHours, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 478 | std::size(kTabPickupThresholdTwoHours), nullptr}, |
Ewann Pelle | 6bd0640 | 2023-11-10 11:17:55 | [diff] [blame] | 479 | {"No favicon", kTabPickupNoFavicon, std::size(kTabPickupNoFavicon), |
| 480 | nullptr}, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 481 | }; |
| 482 | |
| 483 | const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = { |
| 484 | {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}}; |
| 485 | const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = { |
| 486 | {kTabResumptionParameterName, kTabResumptionAllTabsParam}}; |
Ewann Pelle | b08ee06 | 2023-10-16 10:04:48 | [diff] [blame] | 487 | const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = { |
| 488 | {kTabResumptionParameterName, kTabResumptionAllTabsOneDayThresholdParam}}; |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 489 | |
| 490 | const FeatureEntry::FeatureVariation kTabResumptionVariations[] = { |
| 491 | {"Most recent tab only", kTabResumptionMostRecentTabOnly, |
| 492 | std::size(kTabResumptionMostRecentTabOnly), nullptr}, |
Ewann Pelle | b08ee06 | 2023-10-16 10:04:48 | [diff] [blame] | 493 | {"Most recent tab and last synced tab (12 hours threshold)", |
| 494 | kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr}, |
| 495 | {"Most recent tab and last synced tab (24 hours threshold)", |
| 496 | kTabResumptionAllTabsOneDayThreshold, |
Olivier Robin | 08bc56d0 | 2024-06-05 14:05:18 | [diff] [blame] | 497 | std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}}; |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 498 | |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 499 | const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateNoIncognito[] = { |
| 500 | {kIOSEditMenuPartialTranslateNoIncognitoParam, "true"}}; |
Olivier Robin | fa8de550 | 2023-06-21 19:53:44 | [diff] [blame] | 501 | const FeatureEntry::FeatureParam kIOSEditMenuPartialTranslateWithIncognito[] = { |
| 502 | {kIOSEditMenuPartialTranslateNoIncognitoParam, "false"}}; |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 503 | const FeatureEntry::FeatureVariation kIOSEditMenuPartialTranslateVariations[] = |
| 504 | {{"Disable on incognito", kIOSEditMenuPartialTranslateNoIncognito, |
Olivier Robin | fa8de550 | 2023-06-21 19:53:44 | [diff] [blame] | 505 | std::size(kIOSEditMenuPartialTranslateNoIncognito), nullptr}, |
| 506 | {"Enable on incognito", kIOSEditMenuPartialTranslateWithIncognito, |
| 507 | std::size(kIOSEditMenuPartialTranslateWithIncognito), nullptr}}; |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 508 | |
Olivier ROBIN | 2613bcd0 | 2023-04-20 10:00:47 | [diff] [blame] | 509 | const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearchWith[] = { |
| 510 | {kIOSEditMenuSearchWithTitleParamTitle, |
| 511 | kIOSEditMenuSearchWithTitleSearchWithParam}}; |
| 512 | const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleSearch[] = { |
| 513 | {kIOSEditMenuSearchWithTitleParamTitle, |
| 514 | kIOSEditMenuSearchWithTitleSearchParam}}; |
| 515 | const FeatureEntry::FeatureParam kIOSEditMenuSearchWithTitleWebSearch[] = { |
| 516 | {kIOSEditMenuSearchWithTitleParamTitle, |
| 517 | kIOSEditMenuSearchWithTitleWebSearchParam}}; |
| 518 | const FeatureEntry::FeatureVariation kIOSEditMenuSearchWithVariations[] = { |
| 519 | {"Search with DSE", kIOSEditMenuSearchWithTitleSearchWith, |
| 520 | std::size(kIOSEditMenuSearchWithTitleSearchWith), nullptr}, |
| 521 | {"Search", kIOSEditMenuSearchWithTitleSearch, |
| 522 | std::size(kIOSEditMenuSearchWithTitleSearch), nullptr}, |
| 523 | {"Web Search", kIOSEditMenuSearchWithTitleWebSearch, |
| 524 | std::size(kIOSEditMenuSearchWithTitleWebSearch), nullptr}, |
| 525 | }; |
| 526 | |
Christian Xu | 07d60019 | 2023-07-24 12:29:52 | [diff] [blame] | 527 | const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = { |
| 528 | {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}}; |
| 529 | const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = { |
| 530 | {kBottomOmniboxDefaultSettingParam, |
| 531 | kBottomOmniboxDefaultSettingParamBottom}}; |
| 532 | const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] = |
| 533 | {{kBottomOmniboxDefaultSettingParam, |
| 534 | kBottomOmniboxDefaultSettingParamSafariSwitcher}}; |
| 535 | const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] = |
| 536 | { |
| 537 | {"Top", kBottomOmniboxDefaultSettingTop, |
| 538 | std::size(kBottomOmniboxDefaultSettingTop), nullptr}, |
| 539 | {"Bottom", kBottomOmniboxDefaultSettingBottom, |
| 540 | std::size(kBottomOmniboxDefaultSettingBottom), nullptr}, |
| 541 | {"Bottom for Safari Switcher", |
| 542 | kBottomOmniboxDefaultSettingSafariSwitcher, |
| 543 | std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr}, |
| 544 | }; |
| 545 | |
Christian Xu | e72882d | 2023-11-20 17:10:48 | [diff] [blame] | 546 | const FeatureEntry::FeatureParam kBottomOmniboxPromoForced[] = { |
| 547 | {kBottomOmniboxPromoParam, kBottomOmniboxPromoParamForced}}; |
| 548 | const FeatureEntry::FeatureVariation kBottomOmniboxPromoVariations[] = { |
| 549 | {"Forced", kBottomOmniboxPromoForced, std::size(kBottomOmniboxPromoForced), |
| 550 | nullptr}, |
| 551 | }; |
| 552 | |
Cheick Cisse | 85457f2 | 2024-05-23 22:37:59 | [diff] [blame] | 553 | constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] = |
| 554 | {{kLowPriceParam, kLowPriceParamPriceIsLow}}; |
| 555 | constexpr flags_ui::FeatureEntry::FeatureParam |
| 556 | kPriceInsightsGoodDealNowParam[] = { |
| 557 | {kLowPriceParam, kLowPriceParamGoodDealNow}}; |
| 558 | constexpr flags_ui::FeatureEntry::FeatureParam |
| 559 | kPriceInsightsSeePriceHistoryParam[] = { |
| 560 | {kLowPriceParam, kLowPriceParamSeePriceHistory}}; |
| 561 | constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] = |
| 562 | {{"Price is low", kPriceInsightsPriceIsLowParam, |
| 563 | std::size(kPriceInsightsPriceIsLowParam), nullptr}, |
| 564 | {"Good deal now", kPriceInsightsGoodDealNowParam, |
| 565 | std::size(kPriceInsightsGoodDealNowParam), nullptr}, |
| 566 | {"See price history", kPriceInsightsSeePriceHistoryParam, |
| 567 | std::size(kPriceInsightsSeePriceHistoryParam), nullptr}}; |
| 568 | |
Christian Xu | a366735 | 2023-11-21 16:54:09 | [diff] [blame] | 569 | const FeatureEntry::FeatureParam kBottomOmniboxPromoDefaultPositionTop[] = { |
| 570 | {kBottomOmniboxPromoDefaultPositionParam, |
| 571 | kBottomOmniboxPromoDefaultPositionParamTop}}; |
| 572 | const FeatureEntry::FeatureParam kBottomOmniboxPromoDefaultPositionBottom[] = { |
| 573 | {kBottomOmniboxPromoDefaultPositionParam, |
| 574 | kBottomOmniboxPromoDefaultPositionParamBottom}}; |
| 575 | const FeatureEntry::FeatureVariation |
| 576 | kBottomOmniboxPromoDefaultPositionVariations[] = { |
| 577 | {"Top", kBottomOmniboxPromoDefaultPositionTop, |
| 578 | std::size(kBottomOmniboxPromoDefaultPositionTop), nullptr}, |
| 579 | {"Bottom", kBottomOmniboxPromoDefaultPositionBottom, |
| 580 | std::size(kBottomOmniboxPromoDefaultPositionBottom), nullptr}, |
| 581 | }; |
| 582 | |
Christian Xu | 10b84d7 | 2024-04-09 17:12:33 | [diff] [blame] | 583 | const FeatureEntry::FeatureParam kRichAutocompletionImplementationLabel[] = { |
| 584 | {kRichAutocompletionParam, kRichAutocompletionParamLabel}}; |
Christian Xu | a17f9b7 | 2024-04-22 10:22:31 | [diff] [blame] | 585 | const FeatureEntry::FeatureParam |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 586 | kRichAutocompletionImplementationTextField3Chars[] = { |
| 587 | {kRichAutocompletionParam, kRichAutocompletionParamTextField}, |
Christian Xu | 7bb33bc | 2024-05-29 15:10:52 | [diff] [blame] | 588 | {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"}, |
| 589 | {"RichAutocompletionAutocompleteTitlesMinChar", "3"}}; |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 590 | const FeatureEntry::FeatureParam |
| 591 | kRichAutocompletionImplementationTextField4Chars[] = { |
| 592 | {kRichAutocompletionParam, kRichAutocompletionParamTextField}, |
Christian Xu | 7bb33bc | 2024-05-29 15:10:52 | [diff] [blame] | 593 | {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"}, |
| 594 | {"RichAutocompletionAutocompleteTitlesMinChar", "4"}}; |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 595 | const FeatureEntry::FeatureParam |
| 596 | kRichAutocompletionImplementationNoAdditionalText3Chars[] = { |
| 597 | {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText}, |
Christian Xu | 7bb33bc | 2024-05-29 15:10:52 | [diff] [blame] | 598 | {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"}, |
| 599 | {"RichAutocompletionAutocompleteTitlesMinChar", "3"}}; |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 600 | const FeatureEntry::FeatureParam |
| 601 | kRichAutocompletionImplementationNoAdditionalText4Chars[] = { |
| 602 | {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText}, |
Christian Xu | 7bb33bc | 2024-05-29 15:10:52 | [diff] [blame] | 603 | {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"}, |
| 604 | {"RichAutocompletionAutocompleteTitlesMinChar", "4"}}; |
Christian Xu | 10b84d7 | 2024-04-09 17:12:33 | [diff] [blame] | 605 | const FeatureEntry::FeatureVariation |
| 606 | kRichAutocompletionImplementationVariations[] = { |
| 607 | {"In Label", kRichAutocompletionImplementationLabel, |
| 608 | std::size(kRichAutocompletionImplementationLabel), nullptr}, |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 609 | {"In TextField, 3 Min Chars", |
| 610 | kRichAutocompletionImplementationTextField3Chars, |
| 611 | std::size(kRichAutocompletionImplementationTextField3Chars), nullptr}, |
| 612 | {"In TextField, 4 Min Chars", |
| 613 | kRichAutocompletionImplementationTextField4Chars, |
| 614 | std::size(kRichAutocompletionImplementationTextField4Chars), nullptr}, |
| 615 | {"No Additional Text, 3 Min Chars", |
| 616 | kRichAutocompletionImplementationNoAdditionalText3Chars, |
| 617 | std::size(kRichAutocompletionImplementationNoAdditionalText3Chars), |
| 618 | nullptr}, |
| 619 | {"No Additional Text, 4 Min Chars", |
| 620 | kRichAutocompletionImplementationNoAdditionalText4Chars, |
| 621 | std::size(kRichAutocompletionImplementationNoAdditionalText4Chars), |
| 622 | nullptr}, |
Christian Xu | 10b84d7 | 2024-04-09 17:12:33 | [diff] [blame] | 623 | }; |
| 624 | |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 625 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = { |
| 626 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 627 | web::features::kOneTapForMapsConsentModeDefaultParam}}; |
| 628 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = { |
| 629 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 630 | web::features::kOneTapForMapsConsentModeForcedParam}}; |
| 631 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = { |
| 632 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 633 | web::features::kOneTapForMapsConsentModeDisabledParam}}; |
Olivier ROBIN | 333f0b54 | 2023-09-01 14:53:31 | [diff] [blame] | 634 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = { |
| 635 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 636 | web::features::kOneTapForMapsConsentModeIPHParam}}; |
| 637 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = { |
| 638 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 639 | web::features::kOneTapForMapsConsentModeIPHForcedParam}}; |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 640 | const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = { |
| 641 | {"Consent Default", kOneTapForMapsConsentModeDefault, |
| 642 | std::size(kOneTapForMapsConsentModeDefault), nullptr}, |
| 643 | {"Consent Forced", kOneTapForMapsConsentModeForced, |
| 644 | std::size(kOneTapForMapsConsentModeForced), nullptr}, |
Olivier ROBIN | 333f0b54 | 2023-09-01 14:53:31 | [diff] [blame] | 645 | {"Consent IPH", kOneTapForMapsConsentModeIPH, |
| 646 | std::size(kOneTapForMapsConsentModeIPH), nullptr}, |
| 647 | {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced, |
| 648 | std::size(kOneTapForMapsConsentModeIPHForced), nullptr}, |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 649 | {"Consent Disabled", kOneTapForMapsConsentModeDisabled, |
| 650 | std::size(kOneTapForMapsConsentModeDisabled), nullptr}, |
| 651 | }; |
| 652 | |
Matt Jones | 7953439 | 2023-10-27 14:35:02 | [diff] [blame] | 653 | const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataDelivered[] = |
| 654 | {{commerce::kParcelTrackingTestDataParam, |
| 655 | commerce::kParcelTrackingTestDataParamDelivered}}; |
| 656 | const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataInProgress[] = |
| 657 | {{commerce::kParcelTrackingTestDataParam, |
| 658 | commerce::kParcelTrackingTestDataParamInProgress}}; |
| 659 | const flags_ui::FeatureEntry::FeatureParam |
| 660 | kParcelTrackingTestDataOutForDelivery[] = { |
| 661 | {commerce::kParcelTrackingTestDataParam, |
| 662 | commerce::kParcelTrackingTestDataParamOutForDelivery}}; |
| 663 | const flags_ui::FeatureEntry::FeatureVariation |
| 664 | kParcelTrackingTestDataVariations[] = { |
| 665 | {"Delivered", kParcelTrackingTestDataDelivered, |
| 666 | std::size(kParcelTrackingTestDataDelivered), nullptr}, |
| 667 | {"In progress", kParcelTrackingTestDataInProgress, |
| 668 | std::size(kParcelTrackingTestDataInProgress), nullptr}, |
| 669 | {"Out for delivery", kParcelTrackingTestDataOutForDelivery, |
| 670 | std::size(kParcelTrackingTestDataOutForDelivery), nullptr}, |
| 671 | }; |
| 672 | |
Benjamin Williams | 1dc8f234 | 2024-01-04 21:25:55 | [diff] [blame] | 673 | const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = { |
| 674 | {kIOSDockingPromoExperimentType, "0"}}; |
| 675 | const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = { |
| 676 | {kIOSDockingPromoExperimentType, "1"}}; |
| 677 | const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = { |
| 678 | {kIOSDockingPromoExperimentType, "2"}}; |
| 679 | |
| 680 | const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = { |
| 681 | {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE, |
| 682 | std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr}, |
| 683 | {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch, |
| 684 | std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr}, |
| 685 | {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE, |
| 686 | std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}}; |
| 687 | |
Ewann Pelle | c8634ab | 2024-02-23 16:50:35 | [diff] [blame] | 688 | const FeatureEntry::FeatureParam kModernTabStripNTBDynamic[] = { |
| 689 | {kModernTabStripParameterName, kModernTabStripNTBDynamicParam}}; |
| 690 | const FeatureEntry::FeatureParam kModernTabStripNTBStatic[] = { |
| 691 | {kModernTabStripParameterName, kModernTabStripNTBStaticParam}}; |
| 692 | |
| 693 | const FeatureEntry::FeatureVariation kModernTabStripVariations[] = { |
| 694 | {"New tab button dynamic", kModernTabStripNTBDynamic, |
| 695 | std::size(kModernTabStripNTBDynamic), nullptr}, |
| 696 | {"New tab button static", kModernTabStripNTBStatic, |
| 697 | std::size(kModernTabStripNTBStatic), nullptr}, |
| 698 | }; |
| 699 | |
Olivier ROBIN | cb76f4fe | 2024-06-05 16:11:42 | [diff] [blame] | 700 | const FeatureEntry::FeatureVariation |
| 701 | kImageServiceOptimizationGuideSalientImagesVariations[] = { |
| 702 | {"High Performance Canonicalization", nullptr, 0, "3362133"}, |
| 703 | }; |
| 704 | |
Olivier Robin | f8374f1 | 2024-06-05 19:00:04 | [diff] [blame] | 705 | const FeatureEntry::FeatureParam kTabResumption15DisableSalientImages[] = { |
| 706 | {kTR15SalientImageParam, "false"}}; |
| 707 | const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] = |
| 708 | {{kTR15SeeMoreButtonParam, "false"}}; |
| 709 | const FeatureEntry::FeatureParam kTabResumption15UIChangeOnlyImages[] = { |
| 710 | {kTR15SeeMoreButtonParam, "false"}, |
| 711 | {kTR15SalientImageParam, "false"}}; |
| 712 | |
| 713 | const FeatureEntry::FeatureVariation kTabResumption15Variations[] = { |
| 714 | {"No Salient Image", kTabResumption15DisableSalientImages, |
| 715 | std::size(kTabResumption15DisableSalientImages), nullptr}, |
| 716 | {"No See More Button", kTabResumption15DisableSeeMoreButtonImages, |
| 717 | std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr}, |
| 718 | {"UI changes only", kTabResumption15UIChangeOnlyImages, |
| 719 | std::size(kTabResumption15UIChangeOnlyImages), nullptr}, |
| 720 | }; |
Charles Yang | f8e7adf | 2024-06-11 00:17:00 | [diff] [blame] | 721 | // Uses int values from Lens filters ablation mode enum. |
| 722 | const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = { |
| 723 | {kLensFiltersAblationMode, "0"}}; |
| 724 | const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = { |
| 725 | {kLensFiltersAblationMode, "1"}}; |
| 726 | const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = { |
| 727 | {kLensFiltersAblationMode, "2"}}; |
| 728 | const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = { |
| 729 | {kLensFiltersAblationMode, "3"}}; |
| 730 | |
| 731 | const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = { |
| 732 | {"(Disabled)", kLensFiltersAblationModeDisabled, |
| 733 | std::size(kLensFiltersAblationModeDisabled), nullptr}, |
| 734 | {"(Post Capture)", kLensFiltersAblationModePostCapture, |
| 735 | std::size(kLensFiltersAblationModePostCapture), nullptr}, |
| 736 | {"(LVF)", kLensFiltersAblationModeLVF, |
| 737 | std::size(kLensFiltersAblationModeLVF), nullptr}, |
| 738 | {"(Always)", kLensFiltersAblationModeAlways, |
| 739 | std::size(kLensFiltersAblationModeAlways), nullptr}}; |
| 740 | |
| 741 | // Uses int values from Lens translate toggle mode enum. |
| 742 | const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = { |
| 743 | {kLensTranslateToggleMode, "0"}}; |
| 744 | const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = { |
| 745 | {kLensTranslateToggleMode, "1"}}; |
| 746 | const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = { |
| 747 | {kLensTranslateToggleMode, "2"}}; |
| 748 | const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = { |
| 749 | {kLensTranslateToggleMode, "3"}}; |
| 750 | |
| 751 | const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = { |
| 752 | {"(Disabled)", kLensTranslateToggleModeDisabled, |
| 753 | std::size(kLensTranslateToggleModeDisabled), nullptr}, |
| 754 | {"(Post Capture)", kLensTranslateToggleModePostCapture, |
| 755 | std::size(kLensTranslateToggleModePostCapture), nullptr}, |
| 756 | {"(LVF)", kLensTranslateToggleModeLVF, |
| 757 | std::size(kLensTranslateToggleModeLVF), nullptr}, |
| 758 | {"(Always)", kLensTranslateToggleModeAlways, |
| 759 | std::size(kLensTranslateToggleModeAlways), nullptr}}; |
Olivier Robin | f8374f1 | 2024-06-05 19:00:04 | [diff] [blame] | 760 | |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 761 | // To add a new entry, add to the end of kFeatureEntries. There are four |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 762 | // distinct types of entries: |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 763 | // . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the |
| 764 | // default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 765 | // macro for this type supplying the command line to the macro. |
| 766 | // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
| 767 | // deactivated state for this lab (i.e. no command line option). To specify |
| 768 | // this type of entry use the macro MULTI_VALUE_TYPE supplying it the |
| 769 | // array of choices. |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 770 | // . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is |
| 771 | // either enabled, disabled, or uses the default value of the associated |
| 772 | // base::Feature instance. To specify this type of entry use the macro |
| 773 | // FEATURE_VALUE_TYPE supplying it the base::Feature instance. |
| 774 | // . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a |
| 775 | // base::Feature instance. Choices corresponding to the default state, a |
| 776 | // universally enabled state, and a universally disabled state are |
| 777 | // automatically included. To specify this type of entry use the macro |
| 778 | // FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and |
| 779 | // the array of choices. |
| 780 | // |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 781 | // See the documentation of FeatureEntry for details on the fields. |
| 782 | // |
| 783 | // When adding a new choice, add it to the end of the list. |
| 784 | const flags_ui::FeatureEntry kFeatureEntries[] = { |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 785 | {"in-product-help-demo-mode-choice", |
| 786 | flag_descriptions::kInProductHelpDemoModeName, |
| 787 | flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos, |
| 788 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
Tommy Nyquist | c1d6dea1 | 2017-07-26 20:37:23 | [diff] [blame] | 789 | feature_engagement::kIPHDemoMode, |
| 790 | feature_engagement::kIPHDemoModeChoiceVariations, |
Marc Treib | 2752e8b | 2017-08-04 14:12:09 | [diff] [blame] | 791 | "IPH_DemoMode")}, |
Moe Ahmadi | c3fd7cd | 2018-05-11 21:40:22 | [diff] [blame] | 792 | {"enable-autofill-credit-card-upload", |
| 793 | flag_descriptions::kAutofillCreditCardUploadName, |
| 794 | flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos, |
Anne Lim | 579b573 | 2018-08-30 18:24:24 | [diff] [blame] | 795 | FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)}, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 796 | {"use-sync-sandbox", flag_descriptions::kSyncSandboxName, |
| 797 | flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos, |
| 798 | SINGLE_VALUE_TYPE_AND_VALUE( |
Victor Hugo Vianna Silva | 3cd7ae9 | 2022-02-09 20:49:51 | [diff] [blame] | 799 | syncer::kSyncServiceURL, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 800 | "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")}, |
| 801 | {"wallet-service-use-sandbox", |
| 802 | flag_descriptions::kWalletServiceUseSandboxName, |
| 803 | flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos, |
| 804 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
| 805 | autofill::switches::kWalletServiceUseSandbox, |
| 806 | "1", |
| 807 | autofill::switches::kWalletServiceUseSandbox, |
| 808 | "0")}, |
Mohamad Ahmadi | c4df81f | 2017-12-20 04:41:59 | [diff] [blame] | 809 | {"show-autofill-type-predictions", |
| 810 | flag_descriptions::kShowAutofillTypePredictionsName, |
| 811 | flag_descriptions::kShowAutofillTypePredictionsDescription, |
| 812 | flags_ui::kOsIos, |
Florian Leimgruber | f53ca39 | 2023-02-21 15:56:50 | [diff] [blame] | 813 | FEATURE_VALUE_TYPE( |
| 814 | autofill::features::test::kAutofillShowTypePredictions)}, |
Benjamin Williams | df18e7e | 2022-10-03 18:46:05 | [diff] [blame] | 815 | {"fullscreen-promos-manager-skip-internal-limits", |
| 816 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName, |
| 817 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription, |
| 818 | flags_ui::kOsIos, |
| 819 | FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)}, |
Kurt Horimoto | dc33af3 | 2018-05-01 01:39:14 | [diff] [blame] | 820 | {"fullscreen-viewport-adjustment-experiment", |
Chris Lu | 481a932 | 2019-09-25 22:16:53 | [diff] [blame] | 821 | flag_descriptions::kFullscreenSmoothScrollingName, |
| 822 | flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos, |
Aliona DANGLA | 4e3b473 | 2023-03-22 09:35:19 | [diff] [blame] | 823 | FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)}, |
Robbie Gibson | 1f37a5e | 2020-08-06 17:03:06 | [diff] [blame] | 824 | {"webpage-default-zoom-from-dynamic-type", |
| 825 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName, |
| 826 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription, |
| 827 | flags_ui::kOsIos, |
| 828 | FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)}, |
Robbie Gibson | 88f2396 | 2020-09-28 14:35:56 | [diff] [blame] | 829 | {"webpage-alternative-text-zoom", |
| 830 | flag_descriptions::kWebPageAlternativeTextZoomName, |
| 831 | flag_descriptions::kWebPageAlternativeTextZoomDescription, |
| 832 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)}, |
Robbie Gibson | 1095b72c | 2022-06-06 17:03:34 | [diff] [blame] | 833 | {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName, |
| 834 | flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos, |
| 835 | FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 836 | {"omnibox-ui-max-autocomplete-matches", |
| 837 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName, |
| 838 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription, |
| 839 | flags_ui::kOsIos, |
| 840 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 841 | omnibox::kUIExperimentMaxAutocompleteMatches, |
| 842 | kOmniboxUIMaxAutocompleteMatchesVariations, |
| 843 | "OmniboxUIMaxAutocompleteVariations")}, |
Moe Ahmadi | 01028f2 | 2022-08-06 17:57:35 | [diff] [blame] | 844 | {"omnibox-local-history-zero-suggest-beyond-ntp", |
| 845 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName, |
| 846 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription, |
| 847 | flags_ui::kOsIos, |
| 848 | FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)}, |
Stepan Khapugin | bac467e | 2022-05-06 21:11:54 | [diff] [blame] | 849 | {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName, |
| 850 | flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos, |
| 851 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches, |
| 852 | kOmniboxMaxZPSMatchesVariations, |
| 853 | "OmniboxMaxZPSVariations")}, |
Jérôme Lebel | c374fdd | 2019-09-27 10:36:48 | [diff] [blame] | 854 | {"force-startup-signin-promo", |
| 855 | flag_descriptions::kForceStartupSigninPromoName, |
| 856 | flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos, |
Alice Wang | 345e0944 | 2021-07-05 09:03:29 | [diff] [blame] | 857 | FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)}, |
Tommy Martino | 6b4eb7e | 2020-06-25 18:25:41 | [diff] [blame] | 858 | {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName, |
| 859 | flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos, |
| 860 | FEATURE_VALUE_TYPE(kSharedHighlightingIOS)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 861 | #if BUILDFLAG(IOS_SCREEN_TIME_ENABLED) |
edchin | 81467b8 | 2020-09-03 19:31:45 | [diff] [blame] | 862 | {"screen-time-integration-ios", |
| 863 | flag_descriptions::kScreenTimeIntegrationName, |
| 864 | flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos, |
| 865 | FEATURE_VALUE_TYPE(kScreenTimeIntegration)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 866 | #endif |
Nazerke | 3e993f7 | 2020-09-21 13:00:06 | [diff] [blame] | 867 | {"modern-tab-strip", flag_descriptions::kModernTabStripName, |
| 868 | flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos, |
Ewann Pelle | c8634ab | 2024-02-23 16:50:35 | [diff] [blame] | 869 | FEATURE_WITH_PARAMS_VALUE_TYPE(kModernTabStrip, |
| 870 | kModernTabStripVariations, |
| 871 | "ModernTabStrip")}, |
Cheick Cisse | 76ade3d | 2020-12-16 00:15:11 | [diff] [blame] | 872 | {"ios-shared-highlighting-color-change", |
| 873 | flag_descriptions::kIOSSharedHighlightingColorChangeName, |
| 874 | flag_descriptions::kIOSSharedHighlightingColorChangeDescription, |
Cheick Cisse | d0b5bfe | 2021-02-11 14:23:07 | [diff] [blame] | 875 | flags_ui::kOsIos, |
| 876 | FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)}, |
Cheick Cisse | fe99486 | 2021-12-15 16:01:34 | [diff] [blame] | 877 | {"ios-shared-highlighting-v2", |
| 878 | flag_descriptions::kIOSSharedHighlightingV2Name, |
| 879 | flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos, |
| 880 | FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)}, |
Scott Yoder | c0cd99d | 2024-01-10 19:54:51 | [diff] [blame] | 881 | {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName, |
| 882 | flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos, |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 883 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications, |
| 884 | kIOSTipsNotificationsVariations, |
| 885 | "IOSTipsNotifications")}, |
gogerald | 0ff29e5 | 2021-02-03 18:56:19 | [diff] [blame] | 886 | {"start-surface", flag_descriptions::kStartSurfaceName, |
| 887 | flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos, |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 888 | FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface, |
| 889 | kStartSurfaceVariations, |
| 890 | "StartSurface")}, |
Nohemi Fernandez | c00842a | 2021-07-26 11:47:34 | [diff] [blame] | 891 | {"wait-threshold-seconds-for-capabilities-api", |
| 892 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName, |
| 893 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription, |
| 894 | flags_ui::kOsIos, |
| 895 | MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)}, |
Tina Wang | 686fa00 | 2024-05-18 10:10:06 | [diff] [blame] | 896 | {"content-notification-experiment", |
| 897 | flag_descriptions::kContentNotificationExperimentName, |
| 898 | flag_descriptions::kContentNotificationExperimentDescription, |
| 899 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)}, |
Tina Wang | 1cc9f47 | 2024-05-30 20:51:25 | [diff] [blame] | 900 | {"content-notification-provisional-ignore-conditions", |
| 901 | flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName, |
| 902 | flag_descriptions:: |
| 903 | kContentNotificationProvisionalIgnoreConditionsDescription, |
| 904 | flags_ui::kOsIos, |
| 905 | FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)}, |
Guillem Perez | 49e1df4 | 2023-08-23 22:15:24 | [diff] [blame] | 906 | {"content-push-notifications", |
| 907 | flag_descriptions::kContentPushNotificationsName, |
| 908 | flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos, |
Guillem Perez | 40086ef | 2023-11-20 20:03:52 | [diff] [blame] | 909 | FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications, |
| 910 | kContentPushNotificationsVariations, |
| 911 | "ContentPushNotifications")}, |
Robbie Gibson | ed7f6ffb | 2023-05-15 16:03:57 | [diff] [blame] | 912 | {"overflow-menu-customization", |
| 913 | flag_descriptions::kOverflowMenuCustomizationName, |
| 914 | flag_descriptions::kOverflowMenuCustomizationDescription, flags_ui::kOsIos, |
| 915 | FEATURE_VALUE_TYPE(kOverflowMenuCustomization)}, |
Jason Hu | 67cfb0f | 2022-11-14 20:21:44 | [diff] [blame] | 916 | {"enable-lens-in-omnibox-copied-image", |
| 917 | flag_descriptions::kEnableLensInOmniboxCopiedImageName, |
| 918 | flag_descriptions::kEnableLensInOmniboxCopiedImageDescription, |
| 919 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)}, |
Stepan Khapugin | a6011f8 | 2024-06-07 10:35:55 | [diff] [blame] | 920 | {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName, |
| 921 | flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos, |
| 922 | FEATURE_VALUE_TYPE(kEnableLensOverlay)}, |
Sergio Collazos | 9fcc6ed | 2021-10-06 00:58:03 | [diff] [blame] | 923 | {"enable-disco-feed-endpoint", |
| 924 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName, |
| 925 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription, |
| 926 | flags_ui::kOsIos, |
Aliona DANGLA | 8fae66f0 | 2021-10-06 15:47:11 | [diff] [blame] | 927 | FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)}, |
Mohammad Refaat | ab6bee6 | 2022-05-16 16:31:15 | [diff] [blame] | 928 | {"enable-discover-feed-top-sync-promo", |
| 929 | flag_descriptions::kEnableDiscoverFeedTopSyncPromoName, |
| 930 | flag_descriptions::kEnableDiscoverFeedTopSyncPromoDescription, |
| 931 | flags_ui::kOsIos, |
| 932 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableDiscoverFeedTopSyncPromo, |
| 933 | kDiscoverFeedTopSyncPromoVariations, |
| 934 | "EnableDiscoverFeedTopSyncPromo")}, |
adamta | 4a6f2fd2 | 2023-02-13 17:37:14 | [diff] [blame] | 935 | {"feed-header-settings", flag_descriptions::kEnableFeedHeaderSettingsName, |
| 936 | flag_descriptions::kEnableFeedHeaderSettingsDescription, flags_ui::kOsIos, |
| 937 | FEATURE_WITH_PARAMS_VALUE_TYPE(kFeedHeaderSettings, |
| 938 | kFeedHeaderSettingsVariations, |
| 939 | "FeedHeaderSettings")}, |
Tommy Martino | 7393d76 | 2021-10-12 17:59:28 | [diff] [blame] | 940 | {"shared-highlighting-amp", |
| 941 | flag_descriptions::kIOSSharedHighlightingAmpName, |
| 942 | flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos, |
| 943 | FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)}, |
David Maunder | f4a5e1e | 2021-10-18 17:24:28 | [diff] [blame] | 944 | {"enable-commerce-price-tracking", |
Matt Jones | 125dfb4 | 2022-02-11 17:23:42 | [diff] [blame] | 945 | commerce::flag_descriptions::kCommercePriceTrackingName, |
| 946 | commerce::flag_descriptions::kCommercePriceTrackingDescription, |
| 947 | flags_ui::kOsIos, |
| 948 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking, |
| 949 | commerce::kCommercePriceTrackingVariations, |
adamta | 67b6c581 | 2021-10-19 17:02:15 | [diff] [blame] | 950 | "CommercePriceTracking")}, |
Matt Jones | 2e47b969 | 2024-02-23 21:56:43 | [diff] [blame] | 951 | {"track-by-default-mobile", |
| 952 | commerce::flag_descriptions::kTrackByDefaultOnMobileName, |
| 953 | commerce::flag_descriptions::kTrackByDefaultOnMobileDescription, |
| 954 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)}, |
adamta | 250f4ad | 2023-08-02 15:26:06 | [diff] [blame] | 955 | {"web-feed-ios", flag_descriptions::kEnableWebChannelsName, |
| 956 | flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos, |
| 957 | FEATURE_VALUE_TYPE(kEnableWebChannels)}, |
adamta | 3933159 | 2021-11-01 20:18:54 | [diff] [blame] | 958 | {"ntp-view-hierarchy-repair", |
| 959 | flag_descriptions::kNTPViewHierarchyRepairName, |
| 960 | flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos, |
adamta | 8da8dce | 2022-11-17 18:03:20 | [diff] [blame] | 961 | FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)}, |
Mikel Astiz | 2679535 | 2024-03-15 08:51:10 | [diff] [blame] | 962 | {"unified-bookmark-model", flag_descriptions::kUnifiedBookmarkModelName, |
| 963 | flag_descriptions::kUnifiedBookmarkModelDescription, flags_ui::kOsIos, |
| 964 | FEATURE_VALUE_TYPE(syncer::kEnableBookmarkFoldersForAccountStorage)}, |
Cheick Cisse | 39b6a18 | 2024-05-29 15:13:44 | [diff] [blame] | 965 | {"price-insights", commerce::flag_descriptions::kPriceInsightsName, |
| 966 | commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos, |
| 967 | FEATURE_VALUE_TYPE(commerce::kPriceInsights)}, |
Cheick Cisse | 7c03928d | 2024-03-11 23:27:38 | [diff] [blame] | 968 | {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName, |
| 969 | commerce::flag_descriptions::kPriceInsightsIosDescription, |
Cheick Cisse | 85457f2 | 2024-05-23 22:37:59 | [diff] [blame] | 970 | flags_ui::kOsIos, |
| 971 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos, |
| 972 | kPriceInsightsVariations, |
| 973 | "PriceInsightsIos")}, |
| 974 | {"price-insights-high-price-ios", |
| 975 | commerce::flag_descriptions::kPriceInsightsHighPriceIosName, |
| 976 | commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription, |
| 977 | flags_ui::kOsIos, |
| 978 | FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)}, |
Vishwas Uppoor | 89303a9 | 2022-08-03 00:56:26 | [diff] [blame] | 979 | {"autofill-enable-card-product-name", |
| 980 | flag_descriptions::kAutofillEnableCardProductNameName, |
| 981 | flag_descriptions::kAutofillEnableCardProductNameDescription, |
| 982 | flags_ui::kOsIos, |
| 983 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)}, |
Raj T | b95d81354 | 2022-11-16 21:27:52 | [diff] [blame] | 984 | {"enable-download-service-foreground-session", |
| 985 | flag_descriptions::kDownloadServiceForegroundSessionName, |
| 986 | flag_descriptions::kDownloadServiceForegroundSessionDescription, |
| 987 | flags_ui::kOsIos, |
| 988 | FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)}, |
Olivier Robin | ffe767c | 2022-04-21 13:13:23 | [diff] [blame] | 989 | {"enable-tflite-language-detection", |
| 990 | flag_descriptions::kTFLiteLanguageDetectionName, |
| 991 | flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos, |
| 992 | FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)}, |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 993 | {"optimization-guide-debug-logs", |
| 994 | flag_descriptions::kOptimizationGuideDebugLogsName, |
| 995 | flag_descriptions::kOptimizationGuideDebugLogsDescription, |
| 996 | flags_ui::kOsIos, |
| 997 | SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)}, |
Daniel White | d02b696 | 2023-02-14 14:19:55 | [diff] [blame] | 998 | {"optimization-guide-push-notifications", |
| 999 | flag_descriptions::kOptimizationGuidePushNotificationClientName, |
| 1000 | flag_descriptions::kOptimizationGuidePushNotificationClientDescription, |
| 1001 | flags_ui::kOsIos, |
| 1002 | FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)}, |
Benjamin Williams | 11f3991 | 2023-04-13 19:00:25 | [diff] [blame] | 1003 | {"sync-segments-data", flag_descriptions::kSyncSegmentsDataName, |
| 1004 | flag_descriptions::kSyncSegmentsDataDescription, flags_ui::kOsIos, |
| 1005 | FEATURE_VALUE_TYPE(history::kSyncSegmentsData)}, |
Christian Xu | b8c06cd | 2022-04-29 20:55:01 | [diff] [blame] | 1006 | {"suggestions-scrolling-ipad", |
| 1007 | flag_descriptions::kEnableSuggestionsScrollingOnIPadName, |
| 1008 | flag_descriptions::kEnableSuggestionsScrollingOnIPadDescription, |
| 1009 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSuggestionsScrollingOnIPad)}, |
Stepan Khapugin | fee136c6 | 2022-11-28 13:24:00 | [diff] [blame] | 1010 | {"popout-omnibox-ipad", flag_descriptions::kEnablePopoutOmniboxIpadName, |
| 1011 | flag_descriptions::kEnablePopoutOmniboxIpadDescription, flags_ui::kOsIos, |
| 1012 | FEATURE_VALUE_TYPE(kEnablePopoutOmniboxIpad)}, |
David Jean | ad303a9 | 2023-07-31 16:58:11 | [diff] [blame] | 1013 | {"intents-on-measurements", flag_descriptions::kMeasurementsName, |
| 1014 | flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos, |
| 1015 | FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)}, |
David Jean | ea886ba | 2024-01-17 11:50:22 | [diff] [blame] | 1016 | {"intents-on-viewport", flag_descriptions::kEnableViewportIntentsName, |
| 1017 | flag_descriptions::kEnableViewportIntentsDescription, flags_ui::kOsIos, |
| 1018 | FEATURE_VALUE_TYPE(web::features::kEnableViewportIntents)}, |
David Jean | dcc3e20 | 2024-05-22 08:36:33 | [diff] [blame] | 1019 | {"improve-parcel-detection", |
| 1020 | flag_descriptions::kEnableNewParcelTrackingNumberDetectionName, |
| 1021 | flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription, |
| 1022 | flags_ui::kOsIos, |
| 1023 | FEATURE_VALUE_TYPE( |
| 1024 | web::features::kEnableNewParcelTrackingNumberDetection)}, |
David Jean | f361ae9d | 2024-04-09 08:19:47 | [diff] [blame] | 1025 | {"enable-expkit-text-classifier-date", |
| 1026 | flag_descriptions::kEnableExpKitTextClassifierDateName, |
| 1027 | flag_descriptions::kEnableExpKitTextClassifierDateDescription, |
| 1028 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)}, |
| 1029 | {"enable-expkit-text-classifier-address", |
| 1030 | flag_descriptions::kEnableExpKitTextClassifierAddressName, |
| 1031 | flag_descriptions::kEnableExpKitTextClassifierAddressDescription, |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 1032 | flags_ui::kOsIos, |
David Jean | f361ae9d | 2024-04-09 08:19:47 | [diff] [blame] | 1033 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1034 | kEnableExpKitTextClassifierAddress, |
| 1035 | kEnableExpKitTextClassifierAddressVariations, |
| 1036 | "ExpKitTextClassifierAddress")}, |
| 1037 | {"enable-expkit-text-classifier-phonenumber", |
| 1038 | flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName, |
| 1039 | flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription, |
| 1040 | flags_ui::kOsIos, |
| 1041 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1042 | kEnableExpKitTextClassifierPhoneNumber, |
| 1043 | kEnableExpKitTextClassifierPhoneNumberVariations, |
| 1044 | "ExpKitTextClassifierPhoneNumber")}, |
| 1045 | {"enable-expkit-text-classifier-email", |
| 1046 | flag_descriptions::kEnableExpKitTextClassifierEmailName, |
| 1047 | flag_descriptions::kEnableExpKitTextClassifierEmailDescription, |
| 1048 | flags_ui::kOsIos, |
| 1049 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail, |
| 1050 | kEnableExpKitTextClassifierEmailVariations, |
| 1051 | "ExpKitTextClassifierEmail")}, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 1052 | {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName, |
| 1053 | flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos, |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 1054 | FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps, |
| 1055 | kOneTapForMapsWithVariations, |
| 1056 | "OneTapForMaps")}, |
Mustafa Emre Acer | b8bb01f | 2022-07-20 19:43:25 | [diff] [blame] | 1057 | {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName, |
| 1058 | flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos, |
| 1059 | FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)}, |
Alexander Tekle | b464381 | 2023-01-06 23:12:30 | [diff] [blame] | 1060 | {"autofill-enable-ranking-formula-address-profiles", |
| 1061 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName, |
| 1062 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription, |
| 1063 | flags_ui::kOsIos, |
| 1064 | FEATURE_VALUE_TYPE( |
| 1065 | autofill::features::kAutofillEnableRankingFormulaAddressProfiles)}, |
Alexander Tekle | 35dfbbd | 2023-01-31 08:32:39 | [diff] [blame] | 1066 | {"autofill-enable-ranking-formula-credit-cards", |
| 1067 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName, |
| 1068 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription, |
| 1069 | flags_ui::kOsIos, |
| 1070 | FEATURE_VALUE_TYPE( |
| 1071 | autofill::features::kAutofillEnableRankingFormulaCreditCards)}, |
Sergio Collazos | 5855871 | 2022-05-18 17:24:02 | [diff] [blame] | 1072 | {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName, |
| 1073 | flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos, |
| 1074 | FEATURE_VALUE_TYPE(kEnableFeedAblation)}, |
Chris Lu | c36e396 | 2023-04-11 21:50:52 | [diff] [blame] | 1075 | {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName, |
| 1076 | flag_descriptions::kMagicStackDescription, flags_ui::kOsIos, |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 1077 | FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack, |
| 1078 | kMagicStackVariations, |
| 1079 | flag_descriptions::kMagicStackName)}, |
Alexis Hetu | ec9d70c | 2023-11-13 16:27:31 | [diff] [blame] | 1080 | {"ios-keyboard-accessory-upgrade", |
| 1081 | flag_descriptions::kIOSKeyboardAccessoryUpgradeName, |
| 1082 | flag_descriptions::kIOSKeyboardAccessoryUpgradeDescription, |
| 1083 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgrade)}, |
Scott Yoder | 7b9e51f | 2023-09-13 23:47:26 | [diff] [blame] | 1084 | {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName, |
| 1085 | flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos, |
| 1086 | FEATURE_VALUE_TYPE(kIOSLargeFakebox)}, |
Chris Lu | b0bad57 | 2023-08-07 18:13:29 | [diff] [blame] | 1087 | {"ios-magic-stack-segmentation-ranking", |
| 1088 | flag_descriptions::kSegmentationPlatformIosModuleRankerName, |
| 1089 | flag_descriptions::kSegmentationPlatformIosModuleRankerDescription, |
| 1090 | flags_ui::kOsIos, |
Chris Lu | 6fd4eaf | 2023-08-08 18:29:30 | [diff] [blame] | 1091 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1092 | segmentation_platform::features::kSegmentationPlatformIosModuleRanker, |
| 1093 | kSegmentationPlatformIosModuleRankerVariations, |
| 1094 | flag_descriptions::kSegmentationPlatformIosModuleRankerName)}, |
Chris Lu | 63aa394 | 2024-05-10 22:15:32 | [diff] [blame] | 1095 | {"ios-magic-stack-segmentation-ranking-caching", |
| 1096 | flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName, |
| 1097 | flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription, |
| 1098 | flags_ui::kOsIos, |
| 1099 | FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)}, |
Chris Lu | 9e4f17b | 2024-05-09 00:54:11 | [diff] [blame] | 1100 | {"ios-magic-stack-segmentation-ranking-split-by-surface", |
| 1101 | flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName, |
| 1102 | flag_descriptions:: |
| 1103 | kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription, |
| 1104 | flags_ui::kOsIos, |
| 1105 | FEATURE_VALUE_TYPE( |
| 1106 | segmentation_platform::features:: |
| 1107 | kSegmentationPlatformIosModuleRankerSplitBySurface)}, |
Olivier Robin | 058c1fad | 2022-05-31 18:24:06 | [diff] [blame] | 1108 | {"default-browser-intents-show-settings", |
| 1109 | flag_descriptions::kDefaultBrowserIntentsShowSettingsName, |
| 1110 | flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription, |
| 1111 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)}, |
Veronique Nguyen | c3d7db5 | 2023-03-08 22:52:32 | [diff] [blame] | 1112 | {"ios-password-bottom-sheet", |
| 1113 | flag_descriptions::kIOSPasswordBottomSheetName, |
| 1114 | flag_descriptions::kIOSPasswordBottomSheetDescription, flags_ui::kOsIos, |
| 1115 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordBottomSheet)}, |
Alexis Hetu | 5e72660 | 2023-12-15 15:18:28 | [diff] [blame] | 1116 | {"ios-password-bottom-sheet-autofocus", |
| 1117 | flag_descriptions::kIOSPasswordBottomSheetAutofocusName, |
| 1118 | flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription, |
| 1119 | flags_ui::kOsIos, |
| 1120 | FEATURE_VALUE_TYPE( |
| 1121 | password_manager::features::kIOSPasswordBottomSheetAutofocus)}, |
Alexis Hetu | 0677e18 | 2024-04-10 16:07:37 | [diff] [blame] | 1122 | {"sync-webauthn-credentials", |
| 1123 | flag_descriptions::kSyncWebauthnCredentialsName, |
| 1124 | flag_descriptions::kSyncWebauthnCredentialsDescription, flags_ui::kOsIos, |
| 1125 | FEATURE_VALUE_TYPE(syncer::kSyncWebauthnCredentials)}, |
Moe Ahmadi | 098519d8 | 2022-07-27 18:34:24 | [diff] [blame] | 1126 | {"omnibox-zero-suggest-prefetching", |
| 1127 | flag_descriptions::kOmniboxZeroSuggestPrefetchingName, |
| 1128 | flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription, |
| 1129 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)}, |
Khalid Peer | 79df565 | 2022-10-26 21:59:45 | [diff] [blame] | 1130 | {"omnibox-zero-suggest-prefetching-on-srp", |
| 1131 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName, |
| 1132 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription, |
| 1133 | flags_ui::kOsIos, |
| 1134 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)}, |
| 1135 | {"omnibox-zero-suggest-prefetching-on-web", |
| 1136 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName, |
| 1137 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription, |
| 1138 | flags_ui::kOsIos, |
| 1139 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)}, |
Khalid Peer | 11b4b2c | 2022-10-12 20:53:47 | [diff] [blame] | 1140 | {"omnibox-zero-suggest-in-memory-caching", |
| 1141 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName, |
| 1142 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription, |
| 1143 | flags_ui::kOsIos, |
| 1144 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)}, |
Ce Chen | bdfaed2 | 2022-10-20 16:08:35 | [diff] [blame] | 1145 | {"omnibox-on-device-tail-suggestions", |
| 1146 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsName, |
| 1147 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription, |
| 1148 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)}, |
Christian Xu | cf26d56 | 2022-07-06 09:28:36 | [diff] [blame] | 1149 | {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName, |
| 1150 | flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos, |
| 1151 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches, |
| 1152 | kOmniboxMaxURLMatchesVariations, |
| 1153 | "OmniboxMaxURLMatches")}, |
Stepan Khapugin | 1f83c5ae | 2024-01-31 15:55:20 | [diff] [blame] | 1154 | {"omnibox-most-visited-tiles-horizontal-render-group", |
| 1155 | flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName, |
| 1156 | flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription, |
| 1157 | flags_ui::kOsIos, |
| 1158 | FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)}, |
Olivier Robin | 60d3a06 | 2022-07-06 17:34:06 | [diff] [blame] | 1159 | {"metrickit-non-crash-reports", |
| 1160 | flag_descriptions::kMetrickitNonCrashReportName, |
| 1161 | flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos, |
| 1162 | FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)}, |
Siyu An | 3194bda | 2022-07-13 19:30:37 | [diff] [blame] | 1163 | {"autofill-enable-remade-downstream-metrics", |
| 1164 | flag_descriptions::kAutofillEnableRemadeDownstreamMetricsName, |
| 1165 | flag_descriptions::kAutofillEnableRemadeDownstreamMetricsDescription, |
| 1166 | flags_ui::kOsIos, |
| 1167 | FEATURE_VALUE_TYPE( |
| 1168 | autofill::features::kAutofillEnableRemadeDownstreamMetrics)}, |
Nakul Vaidya | 13ca204 | 2022-07-27 01:59:55 | [diff] [blame] | 1169 | {"autofill-parse-vcn-card-on-file-standalone-cvc-fields", |
| 1170 | flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName, |
| 1171 | flag_descriptions:: |
| 1172 | kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription, |
| 1173 | flags_ui::kOsIos, |
| 1174 | FEATURE_VALUE_TYPE( |
| 1175 | autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)}, |
Gayane Petrosyan | 5960a17 | 2023-06-19 15:40:17 | [diff] [blame] | 1176 | {"default-browser-promo-trigger-criteria-experiment", |
| 1177 | flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName, |
| 1178 | flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription, |
| 1179 | flags_ui::kOsIos, |
Gayane Petrosyan | 01f71178 | 2024-02-21 23:00:21 | [diff] [blame] | 1180 | FEATURE_VALUE_TYPE( |
| 1181 | feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)}, |
Gayane Petrosyan | 6fb7975 | 2023-09-26 15:39:44 | [diff] [blame] | 1182 | {"default-browser-video-in-settings", |
Gayane Petrosyan | 01c8495 | 2023-10-02 18:28:21 | [diff] [blame] | 1183 | flag_descriptions::kDefaultBrowserVideoInSettingsName, |
| 1184 | flag_descriptions::kDefaultBrowserVideoInSettingsDescription, |
| 1185 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserVideoInSettings)}, |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 1186 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
| 1187 | {"feed-background-refresh-ios", |
| 1188 | flag_descriptions::kFeedBackgroundRefreshName, |
| 1189 | flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos, |
| 1190 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh, |
| 1191 | kFeedBackgroundRefreshVariations, |
| 1192 | "FeedBackgroundRefresh")}, |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 1193 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Olivier ROBIN | f0551878 | 2022-09-14 23:55:50 | [diff] [blame] | 1194 | {"enable-tflite-language-detection-ignore", |
| 1195 | flag_descriptions::kTFLiteLanguageDetectionIgnoreName, |
| 1196 | flag_descriptions::kTFLiteLanguageDetectionIgnoreDescription, |
| 1197 | flags_ui::kOsIos, |
| 1198 | FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionIgnoreEnabled)}, |
Petro Akzhygitov | 2e2322e | 2023-04-25 16:26:57 | [diff] [blame] | 1199 | {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName, |
| 1200 | flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos, |
| 1201 | FEATURE_VALUE_TYPE(kTabGridNewTransitions)}, |
Daniel White | ae1cb67 | 2022-12-14 18:25:25 | [diff] [blame] | 1202 | {"iph-price-notifications-while-browsing", |
| 1203 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingName, |
| 1204 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription, |
| 1205 | flags_ui::kOsIos, |
| 1206 | FEATURE_VALUE_TYPE( |
| 1207 | feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)}, |
Ewann Pelle | dec2d04 | 2023-01-25 15:28:39 | [diff] [blame] | 1208 | {"shopping-list", commerce::flag_descriptions::kShoppingListName, |
| 1209 | commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos, |
| 1210 | FEATURE_VALUE_TYPE(commerce::kShoppingList)}, |
Matt Jones | 1795eda | 2023-05-09 20:24:48 | [diff] [blame] | 1211 | {"local-pdp-detection", |
| 1212 | commerce::flag_descriptions::kCommerceLocalPDPDetectionName, |
| 1213 | commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription, |
| 1214 | flags_ui::kOsIos, |
| 1215 | FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 1216 | {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName, |
| 1217 | flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos, |
| 1218 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold, |
| 1219 | kTabInactivityThresholdVariations, |
| 1220 | "TabInactivityThreshold")}, |
Joemer Ramos | 0fccdf6 | 2023-07-28 17:17:18 | [diff] [blame] | 1221 | {"enable-friendlier-safe-browsing-settings-enhanced-protection", |
| 1222 | flag_descriptions:: |
| 1223 | kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionName, |
| 1224 | flag_descriptions:: |
| 1225 | kEnableFriendlierSafeBrowsingSettingsEnhancedProtectionDescription, |
| 1226 | flags_ui::kOsIos, |
| 1227 | FEATURE_VALUE_TYPE( |
| 1228 | safe_browsing::kFriendlierSafeBrowsingSettingsEnhancedProtection)}, |
Awad Osman | f1a8912 | 2023-07-27 19:59:36 | [diff] [blame] | 1229 | {"enable-friendlier-safe-browsing-settings-standard-protection", |
| 1230 | flag_descriptions:: |
| 1231 | kEnableFriendlierSafeBrowsingSettingsStandardProtectionName, |
| 1232 | flag_descriptions:: |
| 1233 | kEnableFriendlierSafeBrowsingSettingsStandardProtectionDescription, |
Joemer Ramos | 961389e5 | 2023-07-20 20:22:52 | [diff] [blame] | 1234 | flags_ui::kOsIos, |
Awad Osman | f1a8912 | 2023-07-27 19:59:36 | [diff] [blame] | 1235 | FEATURE_VALUE_TYPE( |
| 1236 | safe_browsing::kFriendlierSafeBrowsingSettingsStandardProtection)}, |
Olivier ROBIN | 52eddbf3 | 2023-02-15 10:33:42 | [diff] [blame] | 1237 | {"ios-edit-menu-partial-translate", |
| 1238 | flag_descriptions::kIOSEditMenuPartialTranslateName, |
| 1239 | flag_descriptions::kIOSEditMenuPartialTranslateDescription, |
Olivier ROBIN | fd3887b7 | 2023-02-23 14:45:42 | [diff] [blame] | 1240 | flags_ui::kOsIos, |
| 1241 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuPartialTranslate, |
| 1242 | kIOSEditMenuPartialTranslateVariations, |
| 1243 | "IOSEditMenuPartialTranslate")}, |
Ali Juma | 57849c4 | 2023-02-21 22:53:43 | [diff] [blame] | 1244 | {"notification-settings-menu-item", |
| 1245 | flag_descriptions::kNotificationSettingsMenuItemName, |
| 1246 | flag_descriptions::kNotificationSettingsMenuItemDescription, |
| 1247 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)}, |
Stepan Khapugin | 551917f8 | 2023-02-21 18:00:06 | [diff] [blame] | 1248 | {"spotlight-reading-list-source", |
| 1249 | flag_descriptions::kSpotlightReadingListSourceName, |
| 1250 | flag_descriptions::kSpotlightReadingListSourceDescription, |
| 1251 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSpotlightReadingListSource)}, |
Yann Dago | b206dca4 | 2023-10-30 17:24:48 | [diff] [blame] | 1252 | {"enable-policy-test-page-ios", |
| 1253 | flag_descriptions::kEnablePolicyTestPageName, |
| 1254 | flag_descriptions::kEnablePolicyTestPageDescription, flags_ui::kOsIos, |
| 1255 | FEATURE_VALUE_TYPE(policy::features::kEnablePolicyTestPage)}, |
kalettuce | fb09e40 | 2023-02-27 18:35:53 | [diff] [blame] | 1256 | {"web-feed-feedback-reroute", |
| 1257 | flag_descriptions::kWebFeedFeedbackRerouteName, |
| 1258 | flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos, |
| 1259 | FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)}, |
Jason Hu | ac58fea | 2023-02-28 20:25:55 | [diff] [blame] | 1260 | {"new-ntp-omnibox-layout", flag_descriptions::kNewNTPOmniboxLayoutName, |
| 1261 | flag_descriptions::kNewNTPOmniboxLayoutDescription, flags_ui::kOsIos, |
| 1262 | FEATURE_VALUE_TYPE(kNewNTPOmniboxLayout)}, |
Tina Wang | d3f6f19 | 2023-04-05 05:22:43 | [diff] [blame] | 1263 | {"enable-follow-IPH-exp-params", |
| 1264 | flag_descriptions::kEnableFollowIPHExpParamsName, |
| 1265 | flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos, |
| 1266 | FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)}, |
Guillem Perez | 3c139a82 | 2023-05-24 19:34:25 | [diff] [blame] | 1267 | {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName, |
| 1268 | flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos, |
| 1269 | FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)}, |
Marc Treib | e9f79ea7 | 2023-03-14 10:25:42 | [diff] [blame] | 1270 | {"enable-preferences-account-storage", |
| 1271 | flag_descriptions::kEnablePreferencesAccountStorageName, |
| 1272 | flag_descriptions::kEnablePreferencesAccountStorageDescription, |
| 1273 | flags_ui::kOsIos, |
| 1274 | FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)}, |
Olivier ROBIN | a229d213 | 2023-03-21 12:44:20 | [diff] [blame] | 1275 | {"ios-browser-edit-menu-metrics", |
| 1276 | flag_descriptions::kIOSBrowserEditMenuMetricsName, |
| 1277 | flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos, |
| 1278 | FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)}, |
Benjamin Williams | 1dc8f234 | 2024-01-04 21:25:55 | [diff] [blame] | 1279 | {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName, |
| 1280 | flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos, |
| 1281 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo, |
| 1282 | kIOSDockingPromoVariations, |
| 1283 | "IOSDockingPromo")}, |
Stepan Khapugin | b2f4952 | 2023-04-03 18:25:24 | [diff] [blame] | 1284 | {"omnibox-grouping-framework-non-zps", |
| 1285 | flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName, |
| 1286 | flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription, |
| 1287 | flags_ui::kOsIos, |
| 1288 | FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)}, |
Sylvain Defresne | 935e6f7 | 2023-04-04 09:54:47 | [diff] [blame] | 1289 | {"enable-session-serialization-optimizations", |
| 1290 | flag_descriptions::kEnableSessionSerializationOptimizationsName, |
| 1291 | flag_descriptions::kEnableSessionSerializationOptimizationsDescription, |
| 1292 | flags_ui::kOsIos, |
| 1293 | FEATURE_VALUE_TYPE( |
Sylvain Defresne | b8106500 | 2024-01-23 10:51:22 | [diff] [blame] | 1294 | session::features::kEnableSessionSerializationOptimizations)}, |
Robbie Gibson | 0ea28060 | 2023-04-12 01:02:39 | [diff] [blame] | 1295 | {"only-access-clipboard-async", |
| 1296 | flag_descriptions::kOnlyAccessClipboardAsyncName, |
| 1297 | flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos, |
| 1298 | FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)}, |
Stepan Khapugin | 5f0a4ae | 2023-07-05 12:51:19 | [diff] [blame] | 1299 | {"omnibox-improved-rtl-suggestions", |
| 1300 | flag_descriptions::kOmniboxSuggestionsRTLImprovementsName, |
| 1301 | flag_descriptions::kOmniboxSuggestionsRTLImprovementsDescription, |
| 1302 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kOmniboxSuggestionsRTLImprovements)}, |
Olivier ROBIN | 2613bcd0 | 2023-04-20 10:00:47 | [diff] [blame] | 1303 | {"ios-edit-menu-search-with", flag_descriptions::kIOSEditMenuSearchWithName, |
| 1304 | flag_descriptions::kIOSEditMenuSearchWithDescription, flags_ui::kOsIos, |
| 1305 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSEditMenuSearchWith, |
| 1306 | kIOSEditMenuSearchWithVariations, |
| 1307 | "IOSEditMenuSearchWith")}, |
| 1308 | {"ios-edit-menu-hide-search-web", |
| 1309 | flag_descriptions::kIOSEditMenuHideSearchWebName, |
| 1310 | flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos, |
| 1311 | FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)}, |
Stephen McGruer | 9afca1a | 2023-05-18 20:55:17 | [diff] [blame] | 1312 | {"autofill-enable-card-art-image", |
| 1313 | flag_descriptions::kAutofillEnableCardArtImageName, |
| 1314 | flag_descriptions::kAutofillEnableCardArtImageDescription, |
| 1315 | flags_ui::kOsIos, |
| 1316 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)}, |
Tina Wang | cda2c90 | 2023-05-25 17:39:45 | [diff] [blame] | 1317 | {"enable-signed-out-view-demotion", |
| 1318 | flag_descriptions::kEnableSignedOutViewDemotionName, |
| 1319 | flag_descriptions::kEnableSignedOutViewDemotionDescription, |
| 1320 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)}, |
Joemer Ramos | 7110ca9 | 2024-01-18 19:11:40 | [diff] [blame] | 1321 | {"enable-startup-latency-improvements", |
| 1322 | flag_descriptions::kEnableStartupImprovementsName, |
| 1323 | flag_descriptions::kEnableStartupImprovementsDescription, flags_ui::kOsIos, |
| 1324 | FEATURE_VALUE_TYPE(kEnableStartupImprovements)}, |
Stephen McGruer | b4c8f7f | 2023-06-01 21:28:25 | [diff] [blame] | 1325 | {"autofill-use-two-dots-for-last-four-digits", |
| 1326 | flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsName, |
| 1327 | flag_descriptions::kAutofillUseTwoDotsForLastFourDigitsDescription, |
| 1328 | flags_ui::kOsIos, |
| 1329 | FEATURE_VALUE_TYPE( |
| 1330 | autofill::features::kAutofillUseTwoDotsForLastFourDigits)}, |
sebsg | 977f9aa | 2023-06-08 18:48:24 | [diff] [blame] | 1331 | {"autofill-disable-profile-updates", |
| 1332 | flag_descriptions::kAutofillDisableProfileUpdatesName, |
| 1333 | flag_descriptions::kAutofillDisableProfileUpdatesDescription, |
| 1334 | flags_ui::kOsIos, |
| 1335 | FEATURE_VALUE_TYPE( |
| 1336 | autofill::features::test::kAutofillDisableProfileUpdates)}, |
| 1337 | {"autofill-disable-silent-profile-updates", |
| 1338 | flag_descriptions::kAutofillDisableSilentProfileUpdatesName, |
| 1339 | flag_descriptions::kAutofillDisableSilentProfileUpdatesDescription, |
| 1340 | flags_ui::kOsIos, |
| 1341 | FEATURE_VALUE_TYPE( |
| 1342 | autofill::features::test::kAutofillDisableSilentProfileUpdates)}, |
| 1343 | {"autofill-enable-admin-level-2", |
| 1344 | flag_descriptions::kAutofillEnableSupportForAdminLevel2Name, |
| 1345 | flag_descriptions::kAutofillEnableSupportForAdminLevel2Description, |
| 1346 | flags_ui::kOsIos, |
| 1347 | FEATURE_VALUE_TYPE( |
| 1348 | autofill::features::kAutofillEnableSupportForAdminLevel2)}, |
| 1349 | {"autofill-enable-between-streets", |
| 1350 | flag_descriptions::kAutofillEnableSupportForBetweenStreetsName, |
| 1351 | flag_descriptions::kAutofillEnableSupportForBetweenStreetsDescription, |
| 1352 | flags_ui::kOsIos, |
| 1353 | FEATURE_VALUE_TYPE( |
| 1354 | autofill::features::kAutofillEnableSupportForBetweenStreets)}, |
| 1355 | {"autofill-enable-landmark", |
| 1356 | flag_descriptions::kAutofillEnableSupportForLandmarkName, |
| 1357 | flag_descriptions::kAutofillEnableSupportForLandmarkDescription, |
| 1358 | flags_ui::kOsIos, |
| 1359 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableSupportForLandmark)}, |
Ameur Hosni | b40858a | 2023-06-12 17:27:31 | [diff] [blame] | 1360 | {"spotlight-open-tabs-source", |
| 1361 | flag_descriptions::kSpotlightOpenTabsSourceName, |
| 1362 | flag_descriptions::kSpotlightOpenTabsSourceDescription, flags_ui::kOsIos, |
| 1363 | FEATURE_VALUE_TYPE(kSpotlightOpenTabsSource)}, |
Stepan Khapugin | c302b941 | 2023-09-12 10:19:45 | [diff] [blame] | 1364 | {"spotlight-donate-new-intents", |
| 1365 | flag_descriptions::kSpotlightDonateNewIntentsName, |
| 1366 | flag_descriptions::kSpotlightDonateNewIntentsDescription, flags_ui::kOsIos, |
| 1367 | FEATURE_VALUE_TYPE(kSpotlightDonateNewIntents)}, |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 1368 | {"tab-pickup-threshold", flag_descriptions::kTabPickupThresholdName, |
| 1369 | flag_descriptions::kTabPickupThresholdDescription, flags_ui::kOsIos, |
| 1370 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabPickupThreshold, |
| 1371 | kTabPickupThresholdVariations, |
| 1372 | "TabPickupThreshold")}, |
Huiting Yu | bc1bf4d | 2023-06-26 18:15:32 | [diff] [blame] | 1373 | {"ios-iph-for-safari-switcher", |
| 1374 | flag_descriptions::kIPHForSafariSwitcherName, |
| 1375 | flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos, |
| 1376 | FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)}, |
Benjamin Williams | 9773edd4 | 2023-06-26 20:22:07 | [diff] [blame] | 1377 | {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName, |
| 1378 | flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos, |
| 1379 | FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)}, |
Ewann Pelle | 9cd85b2 | 2023-07-12 14:42:01 | [diff] [blame] | 1380 | {"tab-resumption", flag_descriptions::kTabResumptionName, |
| 1381 | flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 1382 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption, |
| 1383 | kTabResumptionVariations, |
| 1384 | "TabResumption")}, |
Christian Xu | 07d60019 | 2023-07-24 12:29:52 | [diff] [blame] | 1385 | {"bottom-omnibox-default-setting", |
| 1386 | flag_descriptions::kBottomOmniboxDefaultSettingName, |
| 1387 | flag_descriptions::kBottomOmniboxDefaultSettingDescription, |
| 1388 | flags_ui::kOsIos, |
| 1389 | FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting, |
| 1390 | kBottomOmniboxDefaultSettingVariations, |
| 1391 | "BottomOmniboxDefaultSetting")}, |
Ewann Pelle | 422c094 | 2023-08-01 12:28:13 | [diff] [blame] | 1392 | {"tab-pickup-minimum-delay", flag_descriptions::kTabPickupMinimumDelayName, |
| 1393 | flag_descriptions::kTabPickupMinimumDelayDescription, flags_ui::kOsIos, |
| 1394 | FEATURE_VALUE_TYPE(kTabPickupMinimumDelay)}, |
adamta | 7be73b18 | 2023-08-08 22:30:35 | [diff] [blame] | 1395 | {"discover-feed-sport-card", flag_descriptions::kDiscoverFeedSportCardName, |
| 1396 | flag_descriptions::kDiscoverFeedSportCardDescription, flags_ui::kOsIos, |
| 1397 | FEATURE_VALUE_TYPE(kDiscoverFeedSportCard)}, |
Ernesto Izquierdo Clua | 6a00cb9d | 2023-08-11 15:12:50 | [diff] [blame] | 1398 | {"ios-password-auth-on-entry-v2", |
| 1399 | flag_descriptions::kIOSPasswordAuthOnEntryV2Name, |
| 1400 | flag_descriptions::kIOSPasswordAuthOnEntryV2Description, flags_ui::kOsIos, |
| 1401 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordAuthOnEntryV2)}, |
Quentin Pubert | 476786e8 | 2023-08-16 12:45:28 | [diff] [blame] | 1402 | {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName, |
| 1403 | flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos, |
| 1404 | FEATURE_VALUE_TYPE(kIOSSaveToPhotos)}, |
Matt Jones | 7953439 | 2023-10-27 14:35:02 | [diff] [blame] | 1405 | {"parcel-tracking-test-data", |
| 1406 | commerce::flag_descriptions::kParcelTrackingTestDataName, |
| 1407 | commerce::flag_descriptions::kParcelTrackingTestDataDescription, |
| 1408 | flags_ui::kOsIos, |
| 1409 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kParcelTrackingTestData, |
| 1410 | kParcelTrackingTestDataVariations, |
| 1411 | "ParcelTrackingTestData")}, |
Justin Wells | 37e32c4d | 2023-09-06 22:11:11 | [diff] [blame] | 1412 | {"autofill-enable-merchant-domain-in-unmask-card-request", |
| 1413 | flag_descriptions::kAutofillEnableMerchantDomainInUnmaskCardRequestName, |
| 1414 | flag_descriptions:: |
| 1415 | kAutofillEnableMerchantDomainInUnmaskCardRequestDescription, |
| 1416 | flags_ui::kOsIos, |
| 1417 | FEATURE_VALUE_TYPE( |
| 1418 | autofill::features::kAutofillEnableMerchantDomainInUnmaskCardRequest)}, |
Christian Xu | 90e952f | 2023-09-13 09:05:28 | [diff] [blame] | 1419 | {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName, |
| 1420 | flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos, |
| 1421 | FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)}, |
Siyu | 263cf56 | 2023-09-25 20:59:57 | [diff] [blame] | 1422 | {"autofill-enable-virtual-cards", |
| 1423 | flag_descriptions::kAutofillEnableVirtualCardsName, |
| 1424 | flag_descriptions::kAutofillEnableVirtualCardsDescription, |
| 1425 | flags_ui::kOsIos, |
| 1426 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVirtualCards)}, |
adamta | 80ec373 | 2023-10-11 16:04:02 | [diff] [blame] | 1427 | {"enable-feed-containment", flag_descriptions::kEnableFeedContainmentName, |
| 1428 | flag_descriptions::kEnableFeedContainmentDescription, flags_ui::kOsIos, |
| 1429 | FEATURE_VALUE_TYPE(kEnableFeedContainment)}, |
Rubin Deliallisi | 072bc84 | 2023-10-19 12:00:41 | [diff] [blame] | 1430 | {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName, |
| 1431 | flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos, |
| 1432 | FEATURE_VALUE_TYPE(kPrivacyGuideIos)}, |
Ewann Pelle | 54e51bd6 | 2023-10-24 17:28:12 | [diff] [blame] | 1433 | {"sync-session-on-visibility-changed", |
| 1434 | flag_descriptions::kSyncSessionOnVisibilityChangedName, |
| 1435 | flag_descriptions::kSyncSessionOnVisibilityChangedDescription, |
| 1436 | flags_ui::kOsIos, |
| 1437 | FEATURE_VALUE_TYPE(syncer::kSyncSessionOnVisibilityChanged)}, |
Quentin Pubert | f2d75c3 | 2023-10-25 12:17:45 | [diff] [blame] | 1438 | {"enable-save-to-drive", flag_descriptions::kIOSSaveToDriveName, |
| 1439 | flag_descriptions::kIOSSaveToDriveDescription, flags_ui::kOsIos, |
| 1440 | FEATURE_VALUE_TYPE(kIOSSaveToDrive)}, |
Rafał Godlewski | e75d1240 | 2023-10-25 15:31:53 | [diff] [blame] | 1441 | {"password-sharing", flag_descriptions::kPasswordSharingName, |
| 1442 | flag_descriptions::kPasswordSharingDescription, flags_ui::kOsIos, |
Mohamed Amir Yosef | 24542f5 | 2024-05-06 12:18:22 | [diff] [blame] | 1443 | FEATURE_VALUE_TYPE(password_manager::features::kSendPasswords)}, |
Jennifer Serrano | f384360c | 2023-10-27 00:25:51 | [diff] [blame] | 1444 | {"omnibox-company-entity-icon-adjustment", |
| 1445 | flag_descriptions::kOmniboxCompanyEntityIconAdjustmentName, |
| 1446 | flag_descriptions::kOmniboxCompanyEntityIconAdjustmentDescription, |
| 1447 | flags_ui::kOsIos, |
| 1448 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kCompanyEntityIconAdjustment, |
| 1449 | kOmniboxCompanyEntityAdjustmentVariations, |
| 1450 | "OmniboxCompanyEntityAdjustment")}, |
Aliona DANGLA | 5971a8b | 2023-11-10 11:55:35 | [diff] [blame] | 1451 | {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName, |
| 1452 | flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos, |
| 1453 | FEATURE_VALUE_TYPE(kFullscreenImprovement)}, |
Aliona DANGLA | de4e2d7 | 2023-11-13 17:59:47 | [diff] [blame] | 1454 | {"tab-groups-in-grid", flag_descriptions::kTabGroupsInGridName, |
| 1455 | flag_descriptions::kTabGroupsInGridDescription, flags_ui::kOsIos, |
| 1456 | FEATURE_VALUE_TYPE(kTabGroupsInGrid)}, |
Gauthier Ambard | 8cca29a | 2024-04-10 08:27:36 | [diff] [blame] | 1457 | {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName, |
| 1458 | flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos, |
| 1459 | FEATURE_VALUE_TYPE(kTabGroupsIPad)}, |
Vidhan Jain | 1199e20 | 2024-03-15 14:42:59 | [diff] [blame] | 1460 | {"autofill-enable-dynamically-loading-fields-on-input", |
| 1461 | flag_descriptions:: |
| 1462 | kAutofillEnableDynamicallyLoadingFieldsForAddressInputName, |
| 1463 | flag_descriptions:: |
| 1464 | kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription, |
| 1465 | flags_ui::kOsIos, |
| 1466 | FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)}, |
Vincent Boisselle | 5af638da | 2023-11-16 17:38:20 | [diff] [blame] | 1467 | {"password-manager-signin-uff", |
| 1468 | flag_descriptions::kIOSPasswordSignInUffName, |
| 1469 | flag_descriptions::kIOSPasswordSignInUffDescription, flags_ui::kOsIos, |
| 1470 | FEATURE_VALUE_TYPE(password_manager::features::kIOSPasswordSignInUff)}, |
Christian Xu | e72882d | 2023-11-20 17:10:48 | [diff] [blame] | 1471 | {"bottom-omnibox-promo-fre", flag_descriptions::kBottomOmniboxPromoFREName, |
| 1472 | flag_descriptions::kBottomOmniboxPromoFREDescription, flags_ui::kOsIos, |
| 1473 | FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxPromoFRE, |
| 1474 | kBottomOmniboxPromoVariations, |
| 1475 | "BottomOmniboxPromoFRE")}, |
| 1476 | {"bottom-omnibox-promo-app-launch", |
| 1477 | flag_descriptions::kBottomOmniboxPromoAppLaunchName, |
| 1478 | flag_descriptions::kBottomOmniboxPromoAppLaunchDescription, |
| 1479 | flags_ui::kOsIos, |
| 1480 | FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxPromoAppLaunch, |
| 1481 | kBottomOmniboxPromoVariations, |
| 1482 | "BottomOmniboxPromoAppLaunch")}, |
Christian Xu | a366735 | 2023-11-21 16:54:09 | [diff] [blame] | 1483 | {"bottom-omnibox-promo-default-position", |
| 1484 | flag_descriptions::kBottomOmniboxPromoDefaultPositionName, |
| 1485 | flag_descriptions::kBottomOmniboxPromoDefaultPositionDescription, |
| 1486 | flags_ui::kOsIos, |
| 1487 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1488 | kBottomOmniboxPromoDefaultPosition, |
| 1489 | kBottomOmniboxPromoDefaultPositionVariations, |
| 1490 | "BottomOmniboxPromoDefaultPosition")}, |
Filipa Senra | 0bd0798 | 2023-12-19 10:56:25 | [diff] [blame] | 1491 | {"revamp-page-info-ios", flag_descriptions::kRevampPageInfoIosName, |
| 1492 | flag_descriptions::kRevampPageInfoIosDescription, flags_ui::kOsIos, |
Filipa Senra | a2074a1 | 2024-06-10 14:49:20 | [diff] [blame] | 1493 | MULTI_VALUE_TYPE(kRevampPageInfoiOSChoices)}, |
Mike Dougherty | 330188d5 | 2023-12-20 16:33:24 | [diff] [blame] | 1494 | {"remove-old-web-state-restore", |
| 1495 | flag_descriptions::kRemoveOldWebStateRestoreName, |
| 1496 | flag_descriptions::kRemoveOldWebStateRestoreDescription, flags_ui::kOsIos, |
| 1497 | FEATURE_VALUE_TYPE(web::features::kRemoveOldWebStateRestoration)}, |
aliaaborhamy | 00f89df | 2023-12-21 14:55:03 | [diff] [blame] | 1498 | {"share-in-web-context-menu-ios", |
| 1499 | flag_descriptions::kShareInWebContextMenuIOSName, |
| 1500 | flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos, |
| 1501 | FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)}, |
Marc Treib | 1f6c5db99 | 2024-01-04 20:25:14 | [diff] [blame] | 1502 | {"migrate-syncing-user-to-signed-in", |
| 1503 | flag_descriptions::kMigrateSyncingUserToSignedInName, |
| 1504 | flag_descriptions::kMigrateSyncingUserToSignedInDescription, |
| 1505 | flags_ui::kOsIos, |
| 1506 | FEATURE_VALUE_TYPE(switches::kMigrateSyncingUserToSignedIn)}, |
| 1507 | {"undo-migration-of-syncing-user-to-signed-in", |
| 1508 | flag_descriptions::kUndoMigrationOfSyncingUserToSignedInName, |
| 1509 | flag_descriptions::kUndoMigrationOfSyncingUserToSignedInDescription, |
| 1510 | flags_ui::kOsIos, |
| 1511 | FEATURE_VALUE_TYPE(switches::kUndoMigrationOfSyncingUserToSignedIn)}, |
Mustafa Emre Acer | 05412ee | 2024-01-11 01:03:55 | [diff] [blame] | 1512 | {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName, |
| 1513 | flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos, |
| 1514 | FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)}, |
Robbie Gibson | a04957be | 2024-01-15 19:52:46 | [diff] [blame] | 1515 | {"contextual-panel", flag_descriptions::kContextualPanelName, |
| 1516 | flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos, |
| 1517 | FEATURE_VALUE_TYPE(kContextualPanel)}, |
Christian Xu | f29107ba | 2024-01-16 21:54:59 | [diff] [blame] | 1518 | {"omnibox-popup-row-content-configuration", |
| 1519 | flag_descriptions::kOmniboxPopupRowContentConfigurationName, |
| 1520 | flag_descriptions::kOmniboxPopupRowContentConfigurationDescription, |
| 1521 | flags_ui::kOsIos, |
| 1522 | FEATURE_VALUE_TYPE(kOmniboxPopupRowContentConfiguration)}, |
Nicolas MacBeth | 47d6b62 | 2024-01-16 17:05:39 | [diff] [blame] | 1523 | {"contextual-panel-force-show-entrypoint", |
| 1524 | flag_descriptions::kContextualPanelForceShowEntrypointName, |
| 1525 | flag_descriptions::kContextualPanelForceShowEntrypointDescription, |
| 1526 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContextualPanelForceShowEntrypoint)}, |
Christian Xu | c3c249b | 2024-01-18 18:18:32 | [diff] [blame] | 1527 | {"bottom-omnibox-promo-region-filter", |
| 1528 | flag_descriptions::kBottomOmniboxPromoRegionFilterName, |
| 1529 | flag_descriptions::kBottomOmniboxPromoRegionFilterDescription, |
| 1530 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kBottomOmniboxPromoRegionFilter)}, |
adamta | d0e8cfc | 2024-01-16 18:43:47 | [diff] [blame] | 1531 | {"enable-ipad-feed-ghost-cards", |
| 1532 | flag_descriptions::kEnableiPadFeedGhostCardsName, |
| 1533 | flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos, |
| 1534 | FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)}, |
Louis Romero | f314482 | 2024-01-30 10:24:16 | [diff] [blame] | 1535 | {"tab-grid-always-bounce", flag_descriptions::kTabGridAlwaysBounceName, |
| 1536 | flag_descriptions::kTabGridAlwaysBounceDescription, flags_ui::kOsIos, |
| 1537 | FEATURE_VALUE_TYPE(kTabGridAlwaysBounce)}, |
Christian Xu | 11df0ae | 2024-02-08 16:07:51 | [diff] [blame] | 1538 | {"omnibox-rich-autocompletion", |
| 1539 | flag_descriptions::kOmniboxRichAutocompletionName, |
| 1540 | flag_descriptions::kOmniboxRichAutocompletionDescription, flags_ui::kOsIos, |
Christian Xu | 10b84d7 | 2024-04-09 17:12:33 | [diff] [blame] | 1541 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1542 | omnibox::kRichAutocompletion, |
| 1543 | kRichAutocompletionImplementationVariations, |
| 1544 | "RichAutocompletionImplementationVariations")}, |
Jason Hu | d445445f | 2024-02-02 18:28:12 | [diff] [blame] | 1545 | {"disable-lens-camera", flag_descriptions::kDisableLensCameraName, |
| 1546 | flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos, |
| 1547 | FEATURE_VALUE_TYPE(kDisableLensCamera)}, |
Charles Yang | 30c90b9 | 2024-03-08 18:00:59 | [diff] [blame] | 1548 | {"omnibox-color-icons", flag_descriptions::kOmniboxColorIconsName, |
| 1549 | flag_descriptions::kOmniboxColorIconsDescription, flags_ui::kOsIos, |
| 1550 | FEATURE_VALUE_TYPE(kOmniboxColorIcons)}, |
Charles Yang | 682634b | 2024-03-19 01:46:09 | [diff] [blame] | 1551 | {"enable-color-lens-and-voice-icons-in-home-screen-widget", |
| 1552 | flag_descriptions::kEnableColorLensAndVoiceIconsInHomeScreenWidgetName, |
| 1553 | flag_descriptions:: |
| 1554 | kEnableColorLensAndVoiceIconsInHomeScreenWidgetDescription, |
| 1555 | flags_ui::kOsIos, |
| 1556 | FEATURE_VALUE_TYPE(kEnableColorLensAndVoiceIconsInHomeScreenWidget)}, |
Tomasz Jurkiewicz | e8ce029 | 2024-02-13 13:06:25 | [diff] [blame] | 1557 | {"minor-mode-restrictions-for-history-sync-opt-in", |
| 1558 | flag_descriptions::kMinorModeRestrictionsForHistorySyncOptInName, |
| 1559 | flag_descriptions::kMinorModeRestrictionsForHistorySyncOptInDescription, |
| 1560 | flags_ui::kOsIos, |
| 1561 | FEATURE_VALUE_TYPE(::switches::kMinorModeRestrictionsForHistorySyncOptIn)}, |
ginnnnnnny | dbaba6e4 | 2024-02-13 23:17:25 | [diff] [blame] | 1562 | {"ios-iph-pull-to-refresh", |
| 1563 | flag_descriptions::kIPHiOSPullToRefreshFeatureName, |
| 1564 | flag_descriptions::kIPHiOSPullToRefreshFeatureDescription, |
| 1565 | flags_ui::kOsIos, |
| 1566 | FEATURE_VALUE_TYPE(feature_engagement::kIPHiOSPullToRefreshFeature)}, |
| 1567 | {"ios-iph-swipe-back-forward", |
| 1568 | flag_descriptions::kIPHiOSSwipeBackForwardFeatureName, |
| 1569 | flag_descriptions::kIPHiOSSwipeBackForwardFeatureDescription, |
| 1570 | flags_ui::kOsIos, |
| 1571 | FEATURE_VALUE_TYPE(feature_engagement::kIPHiOSSwipeBackForwardFeature)}, |
ginnnnnnny | 92d9074 | 2024-02-16 17:04:24 | [diff] [blame] | 1572 | {"ios-iph-swipe-toolbar-to-change-tab", |
| 1573 | flag_descriptions::kIPHiOSSwipeToolbarToChangeTabFeatureName, |
| 1574 | flag_descriptions::kIPHiOSSwipeToolbarToChangeTabFeatureDescription, |
| 1575 | flags_ui::kOsIos, |
| 1576 | FEATURE_VALUE_TYPE( |
| 1577 | feature_engagement::kIPHiOSSwipeToolbarToChangeTabFeature)}, |
Chris Lu | 93a507b | 2024-02-14 18:41:58 | [diff] [blame] | 1578 | {"ios-magic-stack-collection-view", |
| 1579 | flag_descriptions::kIOSMagicStackCollectionViewName, |
| 1580 | flag_descriptions::kIOSMagicStackCollectionViewDescription, |
| 1581 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSMagicStackCollectionView)}, |
Alexander Tekle | eebe42b9 | 2024-02-23 21:27:15 | [diff] [blame] | 1582 | {"autofill-enable-card-benefits-for-american-express", |
| 1583 | flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName, |
| 1584 | flag_descriptions:: |
| 1585 | kAutofillEnableCardBenefitsForAmericanExpressDescription, |
| 1586 | flags_ui::kOsIos, |
| 1587 | FEATURE_VALUE_TYPE( |
| 1588 | autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)}, |
| 1589 | {"autofill-enable-card-benefits-for-capital-one", |
| 1590 | flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneName, |
| 1591 | flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneDescription, |
| 1592 | flags_ui::kOsIos, |
| 1593 | FEATURE_VALUE_TYPE( |
| 1594 | autofill::features::kAutofillEnableCardBenefitsForCapitalOne)}, |
Yishui Liu | b88a38c | 2024-02-28 08:46:55 | [diff] [blame] | 1595 | {"autofill-enable-card-benefits-sync", |
| 1596 | flag_descriptions::kAutofillEnableCardBenefitsSyncName, |
| 1597 | flag_descriptions::kAutofillEnableCardBenefitsSyncDescription, |
| 1598 | flags_ui::kOsIos, |
| 1599 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)}, |
Rubin Deliallisi | 4170b1c | 2024-02-28 16:15:42 | [diff] [blame] | 1600 | {"linked-services-setting-ios", |
| 1601 | flag_descriptions::kLinkedServicesSettingIosName, |
| 1602 | flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos, |
| 1603 | FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)}, |
Aliona DANGLA | 52e69ff | 2024-02-29 12:22:28 | [diff] [blame] | 1604 | {"disable-fullscreen-scrolling", |
| 1605 | flag_descriptions::kDisableFullscreenScrollingName, |
| 1606 | flag_descriptions::kDisableFullscreenScrollingDescription, |
| 1607 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDisableFullscreenScrolling)}, |
Ernesto Izquierdo Clua | 7a451b8e | 2024-03-11 15:01:01 | [diff] [blame] | 1608 | {"autofill-enable-xhr-submission-detection-ios", |
| 1609 | flag_descriptions::kAutofillEnableXHRSubmissionDetectionIOSName, |
| 1610 | flag_descriptions::kAutofillEnableXHRSubmissionDetectionIOSDescription, |
| 1611 | flags_ui::kOsIos, |
| 1612 | FEATURE_VALUE_TYPE( |
| 1613 | autofill::features::kAutofillEnableXHRSubmissionDetectionIOS)}, |
hvs | 7c6cb40 | 2024-03-27 02:39:00 | [diff] [blame] | 1614 | {"autofill-enable-prefetching-risk-data-for-retrieval", |
| 1615 | flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName, |
Vincent Boisselle | 2e95b88 | 2024-03-29 21:03:56 | [diff] [blame] | 1616 | flag_descriptions:: |
| 1617 | kAutofillEnablePrefetchingRiskDataForRetrievalDescription, |
hvs | 7c6cb40 | 2024-03-27 02:39:00 | [diff] [blame] | 1618 | flags_ui::kOsIos, |
Vincent Boisselle | 2e95b88 | 2024-03-29 21:03:56 | [diff] [blame] | 1619 | FEATURE_VALUE_TYPE( |
| 1620 | autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)}, |
| 1621 | {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName, |
| 1622 | flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos, |
| 1623 | FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)}, |
Raj T | c66dd12 | 2024-04-01 18:48:39 | [diff] [blame] | 1624 | {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName, |
| 1625 | flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos, |
| 1626 | FEATURE_VALUE_TYPE( |
| 1627 | page_content_annotations::features::kPageContentAnnotations)}, |
| 1628 | {"page-content-annotations-persist-salient-image-metadata", |
| 1629 | flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName, |
| 1630 | flag_descriptions:: |
| 1631 | kPageContentAnnotationsPersistSalientImageMetadataDescription, |
| 1632 | flags_ui::kOsIos, |
| 1633 | FEATURE_VALUE_TYPE( |
| 1634 | page_content_annotations::features:: |
| 1635 | kPageContentAnnotationsPersistSalientImageMetadata)}, |
| 1636 | {"page-content-annotations-remote-page-metadata", |
| 1637 | flag_descriptions::kPageContentAnnotationsRemotePageMetadataName, |
| 1638 | flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription, |
| 1639 | flags_ui::kOsIos, |
| 1640 | FEATURE_VALUE_TYPE( |
| 1641 | page_content_annotations::features::kRemotePageMetadata)}, |
| 1642 | {"page-visibility-page-content-annotations", |
| 1643 | flag_descriptions::kPageVisibilityPageContentAnnotationsName, |
| 1644 | flag_descriptions::kPageVisibilityPageContentAnnotationsDescription, |
| 1645 | flags_ui::kOsIos, |
| 1646 | FEATURE_VALUE_TYPE(page_content_annotations::features:: |
| 1647 | kPageVisibilityPageContentAnnotations)}, |
Daniel White | 7867261f | 2024-04-02 19:08:12 | [diff] [blame] | 1648 | {"enhanced-safe-browsing-promo", |
| 1649 | flag_descriptions::kEnhancedSafeBrowsingPromoName, |
| 1650 | flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos, |
Daniel White | b628508 | 2024-05-03 18:00:02 | [diff] [blame] | 1651 | FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)}, |
Sebsg | fcd5b0b | 2024-04-09 08:18:32 | [diff] [blame] | 1652 | {"cpe-performance-improvements", |
| 1653 | flag_descriptions::kCredentialProviderPerformanceImprovementsName, |
| 1654 | flag_descriptions::kCredentialProviderPerformanceImprovementsDescription, |
| 1655 | flags_ui::kOsIos, |
| 1656 | FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)}, |
Vincent Boisselle | a1f27f32 | 2024-04-17 14:53:19 | [diff] [blame] | 1657 | {"password-manager-detect-username-in-uff", |
| 1658 | flag_descriptions::kIOSDetectUsernameInUffName, |
| 1659 | flag_descriptions::kIOSPasswordSignInUffDescription, flags_ui::kOsIos, |
| 1660 | FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)}, |
Marc Treib | 5da778d | 2024-04-17 17:03:48 | [diff] [blame] | 1661 | {"identity-disc-account-switch", |
| 1662 | flag_descriptions::kIdentityDiscAccountSwitchName, |
| 1663 | flag_descriptions::kIdentityDiscAccountSwitchDescription, flags_ui::kOsIos, |
| 1664 | FEATURE_VALUE_TYPE(kIdentityDiscAccountSwitch)}, |
Filipa Senra | be00cbe | 2024-04-19 14:21:33 | [diff] [blame] | 1665 | {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName, |
| 1666 | flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos, |
| 1667 | FEATURE_VALUE_TYPE(kIOSQuickDelete)}, |
Vipul Vinod Koul | 1629a19 | 2024-04-24 00:04:00 | [diff] [blame] | 1668 | {"autofill-enable-verve-card-support", |
| 1669 | flag_descriptions::kAutofillEnableVerveCardSupportName, |
| 1670 | flag_descriptions::kAutofillEnableVerveCardSupportDescription, |
| 1671 | flags_ui::kOsIos, |
| 1672 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)}, |
Ameur Hosni | 20b75fe5 | 2024-04-24 16:36:02 | [diff] [blame] | 1673 | {"omnibox-actions-in-suggest", |
| 1674 | flag_descriptions::kOmniboxActionsInSuggestName, |
| 1675 | flag_descriptions::kOmniboxActionsInSuggestDescription, flags_ui::kOsIos, |
| 1676 | FEATURE_VALUE_TYPE(kOmniboxActionsInSuggest)}, |
Louis Romero | 5a84afc | 2024-04-25 10:29:20 | [diff] [blame] | 1677 | {"tab-group-sync", flag_descriptions::kTabGroupSync, |
| 1678 | flag_descriptions::kTabGroupSync, flags_ui::kOsIos, |
| 1679 | FEATURE_VALUE_TYPE(kTabGroupSync)}, |
Kavita Soni | c8eaa98 | 2024-05-16 17:09:11 | [diff] [blame] | 1680 | {"autofill-enable-save-card-loading-and-confirmation", |
| 1681 | flag_descriptions::kAutofillEnableSaveCardLoadingAndConfirmationName, |
| 1682 | flag_descriptions:: |
| 1683 | kAutofillEnableSaveCardLoadingAndConfirmationDescription, |
| 1684 | flags_ui::kOsIos, |
| 1685 | FEATURE_VALUE_TYPE( |
| 1686 | autofill::features::kAutofillEnableSaveCardLoadingAndConfirmation)}, |
| 1687 | {"autofill-enable-save-card-local-save-fallback", |
| 1688 | flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackName, |
| 1689 | flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackDescription, |
| 1690 | flags_ui::kOsIos, |
| 1691 | FEATURE_VALUE_TYPE( |
| 1692 | autofill::features::kAutofillEnableSaveCardLocalSaveFallback)}, |
| 1693 | {"autofill-enable-vcn-enroll-loading-and-confirmation", |
| 1694 | flag_descriptions::kAutofillEnableVcnEnrollLoadingAndConfirmationName, |
| 1695 | flag_descriptions:: |
| 1696 | kAutofillEnableVcnEnrollLoadingAndConfirmationDescription, |
| 1697 | flags_ui::kOsIos, |
| 1698 | FEATURE_VALUE_TYPE( |
| 1699 | autofill::features::kAutofillEnableVcnEnrollLoadingAndConfirmation)}, |
Charles Yang | 8da39e6f | 2024-05-24 12:19:12 | [diff] [blame] | 1700 | {"lens-web-page-early-transition-enabled", |
| 1701 | flag_descriptions::kLensWebPageEarlyTransitionEnabledName, |
| 1702 | flag_descriptions::kLensWebPageEarlyTransitionEnabledDescription, |
| 1703 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageEarlyTransitionEnabled)}, |
Ameur Hosni | 3d764c9 | 2024-05-28 14:11:12 | [diff] [blame] | 1704 | {"omnibox-suggestion-answer-migration", |
| 1705 | flag_descriptions::kOmniboxSuggestionAnswerMigrationName, |
| 1706 | flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription, |
| 1707 | flags_ui::kOsIos, |
| 1708 | FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration:: |
Olivier Robin | 51ffd17 | 2024-05-29 08:56:30 | [diff] [blame] | 1709 | kOmniboxSuggestionAnswerMigration)}, |
| 1710 | {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name, |
| 1711 | flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos, |
Olivier Robin | f8374f1 | 2024-06-05 19:00:04 | [diff] [blame] | 1712 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5, |
| 1713 | kTabResumption15Variations, |
| 1714 | "TabResumption1_5")}, |
Hira Mahmood | 6e2a894e | 2024-05-31 15:18:19 | [diff] [blame] | 1715 | {"send-tab-ios-push-notifications", |
| 1716 | flag_descriptions::kSendTabToSelfIOSPushNotificationsName, |
| 1717 | flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription, |
| 1718 | flags_ui::kOsIos, |
| 1719 | FEATURE_VALUE_TYPE(send_tab_to_self::kSendTabToSelfIOSPushNotifications)}, |
Olivier Robin | 08bc56d0 | 2024-06-05 14:05:18 | [diff] [blame] | 1720 | {"tab-resumption-2", flag_descriptions::kTabResumption2Name, |
| 1721 | flag_descriptions::kTabResumption2Description, flags_ui::kOsIos, |
| 1722 | FEATURE_VALUE_TYPE(kTabResumption2)}, |
Olivier ROBIN | cb76f4fe | 2024-06-05 16:11:42 | [diff] [blame] | 1723 | {"page-image-service-optimization-guide-salient-images", |
| 1724 | flag_descriptions::kPageImageServiceSalientImageName, |
| 1725 | flag_descriptions::kPageImageServiceSalientImageDescription, |
| 1726 | flags_ui::kOsIos, |
| 1727 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1728 | page_image_service::kImageServiceOptimizationGuideSalientImages, |
| 1729 | kImageServiceOptimizationGuideSalientImagesVariations, |
| 1730 | "PageImageService")}, |
Elmehdi Rahmaoui | fafd5b7 | 2024-06-06 08:34:22 | [diff] [blame] | 1731 | {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName, |
| 1732 | flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos, |
| 1733 | FEATURE_VALUE_TYPE(kDownloadedPDFOpening)}, |
Salma Elmahallawy | c238380 | 2024-06-06 23:36:03 | [diff] [blame] | 1734 | {"clear-device-data-on-signout-for-managed-users", |
| 1735 | flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersName, |
| 1736 | flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersDescription, |
| 1737 | flags_ui::kOsIos, |
| 1738 | FEATURE_VALUE_TYPE(kClearDeviceDataOnSignOutForManagedUsers)}, |
Charles Yang | f8e7adf | 2024-06-11 00:17:00 | [diff] [blame] | 1739 | {"lens-filters-ablation-mode-enabled", |
| 1740 | flag_descriptions::kLensFiltersAblationModeEnabledName, |
| 1741 | flag_descriptions::kLensFiltersAblationModeEnabledDescription, |
| 1742 | flags_ui::kOsIos, |
| 1743 | FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled, |
| 1744 | kLensFiltersAblationModeVariations, |
| 1745 | "LensFiltersAblationMode")}, |
| 1746 | {"lens-translate-toogle-mode-enabled", |
| 1747 | flag_descriptions::kLensTranslateToggleModeEnabledName, |
| 1748 | flag_descriptions::kLensTranslateToggleModeEnabledDescription, |
| 1749 | flags_ui::kOsIos, |
| 1750 | FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled, |
| 1751 | kLensTranslateToggleModeVariations, |
| 1752 | "LensTranslateToggleMode")}, |
Quentin Pubert | b0984c7 | 2024-06-12 15:41:59 | [diff] [blame^] | 1753 | {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName, |
| 1754 | flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos, |
| 1755 | FEATURE_VALUE_TYPE(kIOSChooseFromDrive)}, |
Olivier Robin | 51ffd17 | 2024-05-29 08:56:30 | [diff] [blame] | 1756 | }; |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1757 | |
Rohit Rao | bed794c | 2020-04-27 15:27:45 | [diff] [blame] | 1758 | bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) { |
| 1759 | return false; |
| 1760 | } |
| 1761 | |
| 1762 | flags_ui::FlagsState& GetGlobalFlagsState() { |
| 1763 | static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries, |
| 1764 | nullptr); |
| 1765 | return *flags_state; |
| 1766 | } |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1767 | // Creates the experimental test policies map, used by AsyncPolicyLoader and |
| 1768 | // PolicyLoaderIOS to locally enable policies. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 1769 | NSMutableDictionary* CreateExperimentalTestingPolicies() { |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1770 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 1771 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1772 | // Shared variables for all enterprise experimental flags. |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1773 | NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init]; |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1774 | NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init]; |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1775 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1776 | // Set some sample policy values for testing if EnableSamplePolicies is set to |
| 1777 | // true. |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1778 | if ([defaults boolForKey:@"EnableSamplePolicies"]) { |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1779 | [testing_policies addEntriesFromDictionary:@{ |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1780 | base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO, |
| 1781 | |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1782 | base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO, |
| 1783 | |
| 1784 | // 2 = Disable all variations |
| 1785 | base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2, |
| 1786 | |
| 1787 | // 2 = Do not allow any site to show popups |
| 1788 | base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2, |
| 1789 | |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1790 | // Set default search engine. |
| 1791 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) : |
| 1792 | @YES, |
| 1793 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) : |
| 1794 | @"http://www.google.com/search?q={searchTerms}", |
| 1795 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) : |
Tina Wang | 7cd0a06 | 2020-09-15 21:31:02 | [diff] [blame] | 1796 | @"TestEngine", |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1797 | |
Tina Wang | 89068c8 | 2020-10-29 15:51:50 | [diff] [blame] | 1798 | base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO, |
| 1799 | |
Gauthier Ambard | 21b2370 | 2021-04-16 16:11:27 | [diff] [blame] | 1800 | base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO, |
| 1801 | |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1802 | base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO, |
Tina Wang | 54dddfc2 | 2020-08-20 22:34:53 | [diff] [blame] | 1803 | |
| 1804 | // 2 = Enhanced safe browsing protection |
| 1805 | base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2, |
| 1806 | |
| 1807 | base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES, |
Hira Mahmood | a53b8d63 | 2023-01-03 10:03:29 | [diff] [blame] | 1808 | |
| 1809 | base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO, |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1810 | }]; |
| 1811 | } |
| 1812 | |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1813 | if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) { |
Guillaume Jenkins | fe46d3a | 2021-04-26 19:51:04 | [diff] [blame] | 1814 | NSString* sync_policy_key = |
| 1815 | base::SysUTF8ToNSString(policy::key::kSyncDisabled); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1816 | [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}]; |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1817 | } |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1818 | |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 1819 | // SyncTypesListDisabled policy. |
| 1820 | NSString* Sync_types_list_disabled_key = |
| 1821 | base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled); |
| 1822 | NSMutableArray* Sync_types_list_disabled_values = |
| 1823 | [[NSMutableArray alloc] init]; |
| 1824 | if ([defaults boolForKey:@"SyncTypesListBookmarks"]) { |
| 1825 | [Sync_types_list_disabled_values addObject:@"bookmarks"]; |
| 1826 | } |
| 1827 | if ([defaults boolForKey:@"SyncTypesListReadingList"]) { |
| 1828 | [Sync_types_list_disabled_values addObject:@"readingList"]; |
| 1829 | } |
| 1830 | if ([defaults boolForKey:@"SyncTypesListPreferences"]) { |
| 1831 | [Sync_types_list_disabled_values addObject:@"preferences"]; |
| 1832 | } |
| 1833 | if ([defaults boolForKey:@"SyncTypesListPasswords"]) { |
| 1834 | [Sync_types_list_disabled_values addObject:@"passwords"]; |
| 1835 | } |
| 1836 | if ([defaults boolForKey:@"SyncTypesListAutofill"]) { |
| 1837 | [Sync_types_list_disabled_values addObject:@"autofill"]; |
| 1838 | } |
| 1839 | if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) { |
| 1840 | [Sync_types_list_disabled_values addObject:@"typedUrls"]; |
| 1841 | } |
| 1842 | if ([defaults boolForKey:@"SyncTypesListTabs"]) { |
| 1843 | [Sync_types_list_disabled_values addObject:@"tabs"]; |
| 1844 | } |
| 1845 | if ([Sync_types_list_disabled_values count]) { |
| 1846 | [testing_policies addEntriesFromDictionary:@{ |
| 1847 | Sync_types_list_disabled_key : Sync_types_list_disabled_values |
| 1848 | }]; |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 1849 | } |
| 1850 | |
Gauthier Ambard | 073eaa9 | 2021-11-22 15:24:13 | [diff] [blame] | 1851 | // If an incognito mode availability is set, set the value. |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 1852 | NSString* incognito_policy_key = |
| 1853 | base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability); |
| 1854 | NSInteger incognito_mode_availability = |
| 1855 | [defaults integerForKey:incognito_policy_key]; |
| 1856 | if (incognito_mode_availability) { |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 1857 | [testing_policies addEntriesFromDictionary:@{ |
| 1858 | incognito_policy_key : @(incognito_mode_availability), |
| 1859 | }]; |
| 1860 | } |
| 1861 | |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1862 | NSString* restriction_pattern = |
| 1863 | [defaults stringForKey:@"RestrictAccountsToPatterns"]; |
| 1864 | if ([restriction_pattern length] > 0) { |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 1865 | NSString* restrict_key = |
| 1866 | base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns); |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1867 | [testing_policies addEntriesFromDictionary:@{ |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 1868 | restrict_key : @[ restriction_pattern ] |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 1869 | }]; |
| 1870 | } |
| 1871 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 1872 | // If the sign-in policy is set (not "None"), add the policy key to the list |
| 1873 | // of enabled experimental policies, and set the value. |
| 1874 | NSString* const kSigninPolicyKey = @"BrowserSignin"; |
| 1875 | NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey]; |
| 1876 | if (signin_policy_mode) { |
| 1877 | // Remove the mode offset that was used to represent the unset policy. |
| 1878 | --signin_policy_mode; |
| 1879 | DCHECK(signin_policy_mode >= 0); |
| 1880 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 1881 | [testing_policies addEntriesFromDictionary:@{ |
| 1882 | kSigninPolicyKey : @(signin_policy_mode), |
| 1883 | }]; |
| 1884 | } |
| 1885 | |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 1886 | // If the New Tab Page URL is set (not empty) add the value to the list of |
| 1887 | // test policies. |
| 1888 | NSString* ntp_location = [defaults stringForKey:@"NTPLocation"]; |
| 1889 | if ([ntp_location length] > 0) { |
| 1890 | NSString* ntp_location_key = |
| 1891 | base::SysUTF8ToNSString(policy::key::kNewTabPageLocation); |
| 1892 | [testing_policies |
| 1893 | addEntriesFromDictionary:@{ntp_location_key : ntp_location}]; |
Veronique Nguyen | 302d870 | 2022-01-12 21:18:57 | [diff] [blame] | 1894 | [allowed_experimental_policies addObject:ntp_location_key]; |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 1895 | } |
| 1896 | |
Ali Juma | 9ec36d2b | 2022-03-28 14:53:12 | [diff] [blame] | 1897 | if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) { |
| 1898 | NSString* allow_backups_key = |
| 1899 | base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups); |
| 1900 | [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}]; |
| 1901 | [allowed_experimental_policies addObject:allow_backups_key]; |
| 1902 | } |
| 1903 | |
Victor Hugo Vianna Silva | 9e1a730 | 2023-02-21 08:56:24 | [diff] [blame] | 1904 | if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) { |
| 1905 | NSString* password_manager_key = |
| 1906 | base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled); |
| 1907 | [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}]; |
| 1908 | [allowed_experimental_policies addObject:password_manager_key]; |
| 1909 | } |
Vincent Boisselle | 003569a7 | 2023-09-11 16:03:12 | [diff] [blame] | 1910 | |
| 1911 | if ([defaults boolForKey:@"EnableUserPolicyMerge"]) { |
| 1912 | NSString* user_policy_merge_key = |
| 1913 | base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge); |
| 1914 | [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}]; |
| 1915 | [allowed_experimental_policies addObject:user_policy_merge_key]; |
| 1916 | } |
| 1917 | |
Arthur Milchior | bb44f5c8 | 2023-03-14 16:14:46 | [diff] [blame] | 1918 | if ([defaults boolForKey:@"AddManagedBookmarks"]) { |
| 1919 | NSString* managed_bookmarks_key = |
| 1920 | base::SysUTF8ToNSString(policy::key::kManagedBookmarks); |
| 1921 | NSString* managed_bookmarks_value = |
Avi Drissman | aa24581 | 2023-04-27 20:20:57 | [diff] [blame] | 1922 | @"[" |
| 1923 | // The following gets filtered out from |
| 1924 | // the JSON string when parsed. |
| 1925 | " {" |
| 1926 | " \"toplevel_name\": \"Managed Bookmarks\"" |
| 1927 | " }," |
| 1928 | " {" |
| 1929 | " \"name\": \"Google\"," |
| 1930 | " \"url\": \"google.com\"" |
| 1931 | " }," |
| 1932 | " {" |
| 1933 | " \"name\": \"Empty Folder\"," |
| 1934 | " \"children\": []" |
| 1935 | " }," |
| 1936 | " {" |
| 1937 | " \"name\": \"Big Folder\"," |
| 1938 | " \"children\": [" |
| 1939 | " {" |
| 1940 | " \"name\": \"Youtube\"," |
| 1941 | " \"url\": \"youtube.com\"" |
| 1942 | " }," |
| 1943 | " {" |
| 1944 | " \"name\": \"Chromium\"," |
| 1945 | " \"url\": \"chromium.org\"" |
| 1946 | " }," |
| 1947 | " {" |
| 1948 | " \"name\": \"More Stuff\"," |
| 1949 | " \"children\": [" |
| 1950 | " {" |
| 1951 | " \"name\": \"Bugs\"," |
| 1952 | " \"url\": \"crbug.com\"" |
| 1953 | " }" |
| 1954 | " ]" |
| 1955 | " }" |
| 1956 | " ]" |
| 1957 | " }" |
| 1958 | "]"; |
Arthur Milchior | bb44f5c8 | 2023-03-14 16:14:46 | [diff] [blame] | 1959 | [testing_policies addEntriesFromDictionary:@{ |
| 1960 | managed_bookmarks_key : managed_bookmarks_value |
| 1961 | }]; |
| 1962 | [allowed_experimental_policies addObject:managed_bookmarks_key]; |
| 1963 | } |
Victor Hugo Vianna Silva | 9e1a730 | 2023-02-21 08:56:24 | [diff] [blame] | 1964 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1965 | // If any experimental policy was allowed, set the EnableExperimentalPolicies |
| 1966 | // policy. |
| 1967 | if ([allowed_experimental_policies count] > 0) { |
| 1968 | [testing_policies setValue:allowed_experimental_policies |
| 1969 | forKey:base::SysUTF8ToNSString( |
| 1970 | policy::key::kEnableExperimentalPolicies)]; |
| 1971 | } |
| 1972 | |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1973 | NSString* metrics_reporting_key = @"MetricsReportingEnabled"; |
| 1974 | switch ([defaults integerForKey:metrics_reporting_key]) { |
| 1975 | case 1: |
| 1976 | // Metrics reporting forced. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 1977 | [testing_policies setValue:@YES forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1978 | break; |
| 1979 | case 2: |
| 1980 | // Metrics reporting disabled. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 1981 | [testing_policies setValue:@NO forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 1982 | break; |
| 1983 | default: |
| 1984 | // Metrics reporting not managed. |
| 1985 | break; |
| 1986 | } |
| 1987 | |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 1988 | // Warning: Add new flags to TestingPoliciesHash() below. |
| 1989 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1990 | return testing_policies; |
| 1991 | } |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 1992 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1993 | } // namespace |
| 1994 | |
Gauthier Ambard | 02dbf02 | 2022-08-23 08:28:47 | [diff] [blame] | 1995 | // Add all switches from experimental flags to `command_line`. |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1996 | void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) { |
| 1997 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 1998 | |
| 1999 | // Set the UA flag if UseMobileSafariUA is enabled. |
| 2000 | if ([defaults boolForKey:@"UseMobileSafariUA"]) { |
| 2001 | // Safari uses "Vesion/", followed by the OS version excluding bugfix, where |
| 2002 | // Chrome puts its product token. |
| 2003 | int32_t major = 0; |
| 2004 | int32_t minor = 0; |
| 2005 | int32_t bugfix = 0; |
| 2006 | base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix); |
| 2007 | std::string product = base::StringPrintf("Version/%d.%d", major, minor); |
| 2008 | |
| 2009 | command_line->AppendSwitchASCII(switches::kUserAgent, |
| 2010 | web::BuildMobileUserAgent(product)); |
| 2011 | } |
| 2012 | |
| 2013 | // Shared variables for all enterprise experimental flags. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 2014 | NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies(); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 2015 | |
| 2016 | // If a CBCM enrollment token is provided, force Chrome Browser Cloud |
| 2017 | // Management to enabled and add the token to the list of policies. |
| 2018 | NSString* token_key = |
| 2019 | base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken); |
| 2020 | NSString* token = [defaults stringForKey:token_key]; |
| 2021 | |
| 2022 | if ([token length] > 0) { |
| 2023 | command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement); |
| 2024 | [testing_policies setValue:token forKey:token_key]; |
| 2025 | } |
| 2026 | |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 2027 | // If some policies were set, commit them to the app's registration defaults. |
| 2028 | if ([testing_policies count] > 0) { |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 2029 | NSDictionary* registration_defaults = |
| 2030 | @{kPolicyLoaderIOSConfigurationKey : testing_policies}; |
| 2031 | [defaults registerDefaults:registration_defaults]; |
| 2032 | } |
| 2033 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2034 | // Freeform commandline flags. These are added last, so that any flags added |
| 2035 | // earlier in this function take precedence. |
| 2036 | if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) { |
| 2037 | base::CommandLine::StringVector flags; |
| 2038 | // Append an empty "program" argument. |
| 2039 | flags.push_back(""); |
| 2040 | |
| 2041 | // The number of flags corresponds to the number of text fields in |
| 2042 | // Experimental.plist. |
| 2043 | const int kNumFreeformFlags = 5; |
| 2044 | for (int i = 1; i <= kNumFreeformFlags; ++i) { |
| 2045 | NSString* key = |
| 2046 | [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i]; |
| 2047 | NSString* flag = [defaults stringForKey:key]; |
| 2048 | if ([flag length]) { |
Robbie Gibson | c91ce62 | 2019-05-20 14:44:33 | [diff] [blame] | 2049 | // iOS keyboard replaces -- with —, so undo that. |
| 2050 | flag = [flag stringByReplacingOccurrencesOfString:@"—" |
| 2051 | withString:@"--" |
| 2052 | options:0 |
| 2053 | range:NSMakeRange(0, 1)]; |
| 2054 | // To make things easier, allow flags with no dashes by prepending them |
| 2055 | // here. This also allows for flags that just have one dash if they |
| 2056 | // exist. |
| 2057 | if (![flag hasPrefix:@"-"]) { |
| 2058 | flag = [@"--" stringByAppendingString:flag]; |
| 2059 | } |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2060 | flags.push_back(base::SysNSStringToUTF8(flag)); |
| 2061 | } |
| 2062 | } |
| 2063 | |
| 2064 | base::CommandLine temp_command_line(flags); |
| 2065 | command_line->AppendArguments(temp_command_line, false); |
| 2066 | } |
msarda | fc76f66 | 2017-02-24 12:46:28 | [diff] [blame] | 2067 | |
justincohen | dacc85d | 2017-06-28 23:34:10 | [diff] [blame] | 2068 | // Populate command line flag for 3rd party keyboard omnibox workaround. |
| 2069 | NSString* enableThirdPartyKeyboardWorkaround = |
| 2070 | [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"]; |
| 2071 | if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) { |
| 2072 | command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround); |
| 2073 | } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) { |
| 2074 | command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround); |
| 2075 | } |
| 2076 | |
Sylvain Defresne | d3cd8d9 | 2022-01-18 13:35:08 | [diff] [blame] | 2077 | ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2078 | } |
| 2079 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2080 | void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage, |
| 2081 | base::CommandLine* command_line) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2082 | GetGlobalFlagsState().ConvertFlagsToSwitches( |
sdefresne | c976390 | 2015-12-02 10:30:11 | [diff] [blame] | 2083 | flags_storage, command_line, flags_ui::kAddSentinels, |
Gregory Chatzinoff | f652372 | 2017-11-21 01:33:53 | [diff] [blame] | 2084 | switches::kEnableFeatures, switches::kDisableFeatures); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2085 | } |
| 2086 | |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 2087 | std::vector<std::string> RegisterAllFeatureVariationParameters( |
| 2088 | flags_ui::FlagsStorage* flags_storage, |
| 2089 | base::FeatureList* feature_list) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2090 | return GetGlobalFlagsState().RegisterAllFeatureVariationParameters( |
| 2091 | flags_storage, feature_list); |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 2092 | } |
| 2093 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2094 | void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage, |
| 2095 | flags_ui::FlagAccess access, |
Matt Menke | 4d77757 | 2022-06-15 15:55:50 | [diff] [blame] | 2096 | base::Value::List& supported_entries, |
| 2097 | base::Value::List& unsupported_entries) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2098 | GetGlobalFlagsState().GetFlagFeatureEntries( |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2099 | flags_storage, access, supported_entries, unsupported_entries, |
Renjie Tang | 208c819 | 2020-11-03 00:46:51 | [diff] [blame] | 2100 | base::BindRepeating(&SkipConditionalFeatureEntry)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2101 | } |
| 2102 | |
| 2103 | void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage, |
| 2104 | const std::string& internal_name, |
| 2105 | bool enable) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2106 | GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name, |
| 2107 | enable); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2108 | } |
| 2109 | |
| 2110 | void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2111 | GetGlobalFlagsState().ResetAllFlags(flags_storage); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2112 | } |
| 2113 | |
Nicolas MacBeth | 972e259 | 2023-02-23 15:22:09 | [diff] [blame] | 2114 | bool IsRestartNeededToCommitChanges() { |
| 2115 | return GetGlobalFlagsState().IsRestartNeededToCommitChanges(); |
| 2116 | } |
| 2117 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2118 | namespace testing { |
| 2119 | |
Elly Fong-Jones | 323ab109 | 2021-08-23 22:36:31 | [diff] [blame] | 2120 | base::span<const flags_ui::FeatureEntry> GetFeatureEntries() { |
| 2121 | return base::span<const flags_ui::FeatureEntry>(kFeatureEntries, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 2122 | std::size(kFeatureEntries)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2123 | } |
| 2124 | |
| 2125 | } // namespace testing |