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