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" |
Asami Doi | 93db79e | 2024-09-06 18:16:55 | [diff] [blame] | 33 | #import "components/data_sharing/public/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 34 | #import "components/dom_distiller/core/dom_distiller_switches.h" |
Raj T | b95d81354 | 2022-11-16 21:27:52 | [diff] [blame] | 35 | #import "components/download/public/background_service/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 36 | #import "components/enterprise/browser/enterprise_switches.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 37 | #import "components/feature_engagement/public/feature_constants.h" |
| 38 | #import "components/feature_engagement/public/feature_list.h" |
| 39 | #import "components/feed/feed_feature_list.h" |
| 40 | #import "components/flags_ui/feature_entry.h" |
| 41 | #import "components/flags_ui/feature_entry_macros.h" |
| 42 | #import "components/flags_ui/flags_storage.h" |
| 43 | #import "components/flags_ui/flags_ui_switches.h" |
Benjamin Williams | 11f3991 | 2023-04-13 19:00:25 | [diff] [blame] | 44 | #import "components/history/core/browser/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 45 | #import "components/invalidation/impl/invalidation_switches.h" |
Benjamin Williams | aa8da814 | 2022-11-14 19:51:03 | [diff] [blame] | 46 | #import "components/ntp_tiles/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 47 | #import "components/ntp_tiles/switches.h" |
Ameur Hosni | 3d764c9 | 2024-05-28 14:11:12 | [diff] [blame] | 48 | #import "components/omnibox/browser/omnibox_feature_configs.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 49 | #import "components/omnibox/browser/omnibox_field_trial.h" |
| 50 | #import "components/omnibox/common/omnibox_features.h" |
| 51 | #import "components/optimization_guide/core/optimization_guide_features.h" |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 52 | #import "components/optimization_guide/core/optimization_guide_switches.h" |
Raj T | c66dd12 | 2024-04-01 18:48:39 | [diff] [blame] | 53 | #import "components/page_content_annotations/core/page_content_annotations_features.h" |
Olivier ROBIN | cb76f4fe | 2024-06-05 16:11:42 | [diff] [blame] | 54 | #import "components/page_image_service/features.h" |
Vasilii Sukhanov | 32b1445 | 2023-10-12 17:31:27 | [diff] [blame] | 55 | #import "components/password_manager/core/browser/features/password_features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 56 | #import "components/password_manager/core/common/password_manager_features.h" |
| 57 | #import "components/payments/core/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" |
Rubin Deliallisi | b66a77a | 2024-10-02 18:09:48 | [diff] [blame] | 85 | #import "ios/chrome/browser/incognito_reauth/ui_bundled/features.h" |
Ali Juma | d29dc187 | 2023-10-19 13:33:58 | [diff] [blame] | 86 | #import "ios/chrome/browser/iph_for_new_chrome_user/model/features.h" |
Chris Lu | 09019af | 2024-08-28 08:38:44 | [diff] [blame] | 87 | #import "ios/chrome/browser/ntp/ui_bundled/new_tab_page_feature.h" |
mmrashad | d0c7f95 | 2023-12-14 13:36:38 | [diff] [blame] | 88 | #import "ios/chrome/browser/policy/model/policy_util.h" |
Cheick Cisse | 85457f2 | 2024-05-23 22:37:59 | [diff] [blame] | 89 | #import "ios/chrome/browser/price_insights/model/price_insights_feature.h" |
Stepan Khapugin | 5694d70 | 2024-01-31 13:23:08 | [diff] [blame] | 90 | #import "ios/chrome/browser/promos_manager/model/features.h" |
mmrashad | f158cad94 | 2023-10-03 09:15:48 | [diff] [blame] | 91 | #import "ios/chrome/browser/screen_time/model/screen_time_buildflags.h" |
Gauthier Ambard | 7aa0fb92 | 2023-03-09 15:10:46 | [diff] [blame] | 92 | #import "ios/chrome/browser/shared/public/features/features.h" |
Gauthier Ambard | 818938c | 2023-06-16 14:48:35 | [diff] [blame] | 93 | #import "ios/chrome/browser/shared/public/features/system_flags.h" |
Tina Wang | 75f21e8 | 2024-07-01 18:00:35 | [diff] [blame] | 94 | #import "ios/chrome/browser/start_surface/ui_bundled/start_surface_features.h" |
Robbie Gibson | 596fe29 | 2023-10-27 01:00:36 | [diff] [blame] | 95 | #import "ios/chrome/browser/tabs/model/inactive_tabs/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" |
Christian Xu | b8c06cd | 2022-04-29 20:55:01 | [diff] [blame] | 98 | #import "ios/chrome/browser/ui/omnibox/omnibox_ui_features.h" |
Filipa Senra | 0bd0798 | 2023-12-19 10:56:25 | [diff] [blame] | 99 | #import "ios/chrome/browser/ui/page_info/features.h" |
Robbie Gibson | 686c5673 | 2021-10-04 17:11:45 | [diff] [blame] | 100 | #import "ios/chrome/browser/ui/popup_menu/overflow_menu/feature_flags.h" |
Filipa Senra | be00cbe | 2024-04-19 14:21:33 | [diff] [blame] | 101 | #import "ios/chrome/browser/ui/settings/clear_browsing_data/features.h" |
Rubin Deliallisi | 4170b1c | 2024-02-28 16:15:42 | [diff] [blame] | 102 | #import "ios/chrome/browser/ui/settings/google_services/features.h" |
Rubin Deliallisi | 072bc84 | 2023-10-19 12:00:41 | [diff] [blame] | 103 | #import "ios/chrome/browser/ui/settings/privacy/privacy_guide/features.h" |
Cheick Cisse | 5d2b6cb8 | 2023-06-05 17:27:58 | [diff] [blame] | 104 | #import "ios/chrome/browser/ui/whats_new/whats_new_util.h" |
Weizhong Xia | 8b908bda | 2023-12-05 16:00:22 | [diff] [blame] | 105 | #import "ios/chrome/browser/web/model/features.h" |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 106 | #import "ios/chrome/grit/ios_strings.h" |
| 107 | #import "ios/components/security_interstitials/https_only_mode/feature.h" |
| 108 | #import "ios/public/provider/chrome/browser/app_utils/app_utils_api.h" |
| 109 | #import "ios/web/common/features.h" |
| 110 | #import "ios/web/common/user_agent.h" |
| 111 | #import "ios/web/common/web_view_creation_util.h" |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 112 | |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 113 | #if BUILDFLAG(IOS_SCREEN_TIME_ENABLED) |
mmrashad | f158cad94 | 2023-10-03 09:15:48 | [diff] [blame] | 114 | #import "ios/chrome/browser/screen_time/model/features.h" |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 115 | #endif |
| 116 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 117 | #if !defined(OFFICIAL_BUILD) |
Gauthier Ambard | 999088c | 2022-09-13 08:36:57 | [diff] [blame] | 118 | #import "components/variations/variations_switches.h" |
vitaliii | 489217aa | 2017-01-30 14:50:22 | [diff] [blame] | 119 | #endif |
stkhapugin | c1be179 | 2016-12-13 14:30:53 | [diff] [blame] | 120 | |
elawrence | 816f6790e | 2017-06-16 18:19:28 | [diff] [blame] | 121 | using flags_ui::FeatureEntry; |
| 122 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 123 | namespace { |
Emily Stark | bafa906 | 2017-12-27 15:22:46 | [diff] [blame] | 124 | |
Nohemi Fernandez | c00842a | 2021-07-26 11:47:34 | [diff] [blame] | 125 | const FeatureEntry::Choice |
| 126 | kWaitThresholdMillisecondsForCapabilitiesApiChoices[] = { |
| 127 | {flags_ui::kGenericExperimentChoiceDefault, "", ""}, |
| 128 | {"200", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "200"}, |
| 129 | {"500", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "500"}, |
| 130 | {"5000", signin::kWaitThresholdMillisecondsForCapabilitiesApi, "5000"}, |
| 131 | }; |
| 132 | |
Filipa Senra | a2074a1 | 2024-06-10 14:49:20 | [diff] [blame] | 133 | const FeatureEntry::Choice kRevampPageInfoiOSChoices[] = { |
| 134 | {"Default", "", ""}, |
| 135 | {"Enabled", switches::kEnableFeatures, |
| 136 | "RevampPageInfoIos, PageInfoAboutThisSite"}, |
| 137 | {"Disabled", switches::kDisableFeatures, |
| 138 | "RevampPageInfoIos, PageInfoAboutThisSite"}, |
| 139 | }; |
| 140 | |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 141 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = { |
| 142 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}}; |
| 143 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = { |
| 144 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}}; |
| 145 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = { |
| 146 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}}; |
| 147 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = { |
| 148 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}}; |
| 149 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = { |
| 150 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}}; |
| 151 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = { |
| 152 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}}; |
| 153 | const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = { |
| 154 | {OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}}; |
| 155 | |
| 156 | const FeatureEntry::FeatureVariation |
| 157 | kOmniboxUIMaxAutocompleteMatchesVariations[] = { |
| 158 | {"3 matches", kOmniboxUIMaxAutocompleteMatches3, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 159 | std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 160 | {"4 matches", kOmniboxUIMaxAutocompleteMatches4, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 161 | std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 162 | {"5 matches", kOmniboxUIMaxAutocompleteMatches5, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 163 | std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 164 | {"6 matches", kOmniboxUIMaxAutocompleteMatches6, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 165 | std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 166 | {"8 matches", kOmniboxUIMaxAutocompleteMatches8, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 167 | std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 168 | {"10 matches", kOmniboxUIMaxAutocompleteMatches10, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 169 | std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 170 | {"12 matches", kOmniboxUIMaxAutocompleteMatches12, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 171 | std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}}; |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 172 | |
Stepan Khapugin | bac467e | 2022-05-06 21:11:54 | [diff] [blame] | 173 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches6[] = { |
| 174 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "6"}}; |
| 175 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches15[] = { |
| 176 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "15"}}; |
| 177 | const FeatureEntry::FeatureParam kOmniboxMaxZPSMatches20[] = { |
| 178 | {OmniboxFieldTrial::kMaxZeroSuggestMatchesParam, "20"}}; |
| 179 | |
| 180 | const FeatureEntry::FeatureVariation kOmniboxMaxZPSMatchesVariations[] = { |
| 181 | {"6 matches", kOmniboxMaxZPSMatches6, std::size(kOmniboxMaxZPSMatches6), |
| 182 | nullptr}, |
| 183 | {"15 matches", kOmniboxMaxZPSMatches15, std::size(kOmniboxMaxZPSMatches15), |
| 184 | nullptr}, |
| 185 | {"20 matches", kOmniboxMaxZPSMatches20, std::size(kOmniboxMaxZPSMatches20), |
| 186 | nullptr}, |
| 187 | }; |
| 188 | |
Christian Xu | cf26d56 | 2022-07-06 09:28:36 | [diff] [blame] | 189 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = { |
| 190 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}}; |
| 191 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = { |
| 192 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}}; |
| 193 | const FeatureEntry::FeatureParam kOmniboxMaxURLMatches7[] = { |
| 194 | {OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "7"}}; |
| 195 | |
| 196 | const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = { |
| 197 | {"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5), |
| 198 | nullptr}, |
| 199 | {"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6), |
| 200 | nullptr}, |
| 201 | {"7 matches", kOmniboxMaxURLMatches7, std::size(kOmniboxMaxURLMatches7), |
| 202 | nullptr}, |
| 203 | }; |
| 204 | |
Guillem Perez | 40086ef | 2023-11-20 20:03:52 | [diff] [blame] | 205 | const FeatureEntry::FeatureParam kContentPushNotificationsEnabledPromo[] = { |
| 206 | {kContentPushNotificationsExperimentType, "1"}}; |
| 207 | const FeatureEntry::FeatureParam kContentPushNotificationsEnabledSetupLists[] = |
| 208 | {{kContentPushNotificationsExperimentType, "2"}}; |
Guillem Perez | 222b5b2 | 2024-01-20 02:16:27 | [diff] [blame] | 209 | const FeatureEntry::FeatureParam kContentPushNotificationsEnabledProvisional[] = |
| 210 | {{kContentPushNotificationsExperimentType, "3"}}; |
Tina Wang | b7f5b3f | 2024-05-07 06:24:26 | [diff] [blame] | 211 | const FeatureEntry::FeatureParam |
| 212 | kContentPushNotificationsPromoRegistrationOnly[] = { |
| 213 | {kContentPushNotificationsExperimentType, "5"}}; |
| 214 | const FeatureEntry::FeatureParam |
| 215 | kContentPushNotificationsProvisionalRegistrationOnly[] = { |
| 216 | {kContentPushNotificationsExperimentType, "6"}}; |
| 217 | const FeatureEntry::FeatureParam |
| 218 | kContentPushNotificationsSetUpListRegistrationOnly[] = { |
| 219 | {kContentPushNotificationsExperimentType, "7"}}; |
Guillem Perez | 40086ef | 2023-11-20 20:03:52 | [diff] [blame] | 220 | |
| 221 | const FeatureEntry::FeatureVariation kContentPushNotificationsVariations[] = { |
| 222 | {"Promo", kContentPushNotificationsEnabledPromo, |
| 223 | std::size(kContentPushNotificationsEnabledPromo), nullptr}, |
| 224 | {"Set up list", kContentPushNotificationsEnabledSetupLists, |
Guillem Perez | 222b5b2 | 2024-01-20 02:16:27 | [diff] [blame] | 225 | std::size(kContentPushNotificationsEnabledSetupLists), nullptr}, |
| 226 | {"Provisional Notification", kContentPushNotificationsEnabledProvisional, |
Guillem Perez | 749b3fc | 2024-02-13 19:29:49 | [diff] [blame] | 227 | std::size(kContentPushNotificationsEnabledProvisional), nullptr}, |
Tina Wang | b7f5b3f | 2024-05-07 06:24:26 | [diff] [blame] | 228 | {"Promo Registeration Only", kContentPushNotificationsPromoRegistrationOnly, |
| 229 | std::size(kContentPushNotificationsPromoRegistrationOnly), nullptr}, |
| 230 | {"Provisional Notification Registeration Only", |
| 231 | kContentPushNotificationsProvisionalRegistrationOnly, |
| 232 | std::size(kContentPushNotificationsProvisionalRegistrationOnly), nullptr}, |
| 233 | {"Set up list Registeration Only", |
| 234 | kContentPushNotificationsSetUpListRegistrationOnly, |
| 235 | std::size(kContentPushNotificationsSetUpListRegistrationOnly), nullptr}}; |
Guillem Perez | 40086ef | 2023-11-20 20:03:52 | [diff] [blame] | 236 | |
Chris Lu | dca9ce3 | 2023-09-20 16:53:50 | [diff] [blame] | 237 | const FeatureEntry::FeatureParam kStartSurfaceTenSeconds[] = { |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 238 | {kReturnToStartSurfaceInactiveDurationInSeconds, "10"}}; |
Chris Lu | dca9ce3 | 2023-09-20 16:53:50 | [diff] [blame] | 239 | const FeatureEntry::FeatureParam kStartSurfaceOneHour[] = { |
gogerald | 53c6e7a | 2021-04-15 22:07:35 | [diff] [blame] | 240 | {kReturnToStartSurfaceInactiveDurationInSeconds, "3600"}}; |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 241 | |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 242 | const FeatureEntry::FeatureVariation kStartSurfaceVariations[] = { |
Chris Lu | dca9ce3 | 2023-09-20 16:53:50 | [diff] [blame] | 243 | {"10s:Show Home Surface", kStartSurfaceTenSeconds, |
| 244 | std::size(kStartSurfaceTenSeconds), nullptr}, |
| 245 | {"1h:Show Home Surface", kStartSurfaceOneHour, |
| 246 | std::size(kStartSurfaceOneHour), nullptr}, |
Chris Lu | 5470417c | 2021-03-03 18:43:08 | [diff] [blame] | 247 | }; |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 248 | |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 249 | const FeatureEntry::FeatureParam kMagicStackMostVisitedModule[] = { |
| 250 | {kMagicStackMostVisitedModuleParam, "true"}, |
| 251 | {kReducedSpaceParam, "-80"}}; |
Chris Lu | 28c0ede | 2023-08-25 19:25:22 | [diff] [blame] | 252 | const FeatureEntry::FeatureParam |
| 253 | kMagicStackMostVisitedModuleHideIrrelevantModules[] = { |
| 254 | {kMagicStackMostVisitedModuleParam, "true"}, |
| 255 | {kReducedSpaceParam, "-80"}, |
| 256 | {kHideIrrelevantModulesParam, "true"}}; |
Chris Lu | 8cf8ef8 | 2024-03-18 18:30:54 | [diff] [blame] | 257 | const FeatureEntry::FeatureParam kMagicStackHidIrrelevantModules[] = { |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 258 | {kMagicStackMostVisitedModuleParam, "false"}, |
Chris Lu | 8cf8ef8 | 2024-03-18 18:30:54 | [diff] [blame] | 259 | {kHideIrrelevantModulesParam, "true"}}; |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 260 | |
| 261 | const FeatureEntry::FeatureVariation kMagicStackVariations[]{ |
| 262 | {"Most Visited Tiles in Magic Stack", kMagicStackMostVisitedModule, |
| 263 | std::size(kMagicStackMostVisitedModule), nullptr}, |
Chris Lu | 28c0ede | 2023-08-25 19:25:22 | [diff] [blame] | 264 | {"Most Visited Tiles in Magic Stack and hide irrelevant modules", |
| 265 | kMagicStackMostVisitedModuleHideIrrelevantModules, |
| 266 | std::size(kMagicStackMostVisitedModuleHideIrrelevantModules), nullptr}, |
Chris Lu | 8cf8ef8 | 2024-03-18 18:30:54 | [diff] [blame] | 267 | {"Hide irrelevant modules", kMagicStackHidIrrelevantModules, |
| 268 | std::size(kMagicStackHidIrrelevantModules), nullptr}, |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 269 | }; |
| 270 | |
Chris Lu | 6fd4eaf | 2023-08-08 18:29:30 | [diff] [blame] | 271 | const FeatureEntry::FeatureParam kEnableDefaultModel[] = { |
| 272 | {segmentation_platform::kDefaultModelEnabledParam, "true"}}; |
| 273 | |
| 274 | const FeatureEntry::FeatureVariation |
| 275 | kSegmentationPlatformIosModuleRankerVariations[]{ |
| 276 | {"Enabled With Default Model Parameter (Must Set this!)", |
| 277 | kEnableDefaultModel, std::size(kEnableDefaultModel), nullptr}, |
| 278 | }; |
| 279 | |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 280 | const FeatureEntry::FeatureParam kIOSTipsNotifications5SecondTrigger[] = { |
Scott Yoder | 3c99d73 | 2024-08-15 19:48:31 | [diff] [blame] | 281 | {kIOSTipsNotificationsUnknownTriggerTimeParam, "5s"}, |
| 282 | {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "5s"}, |
| 283 | {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "5s"}, |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 284 | }; |
| 285 | const FeatureEntry::FeatureParam kIOSTipsNotifications10SecondTrigger[] = { |
Scott Yoder | 3c99d73 | 2024-08-15 19:48:31 | [diff] [blame] | 286 | {kIOSTipsNotificationsUnknownTriggerTimeParam, "10s"}, |
| 287 | {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "10s"}, |
| 288 | {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "10s"}, |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 289 | }; |
Scott Yoder | d2dbc87f | 2024-03-07 18:23:37 | [diff] [blame] | 290 | const FeatureEntry::FeatureParam kIOSTipsNotifications30SecondTrigger[] = { |
Scott Yoder | 3c99d73 | 2024-08-15 19:48:31 | [diff] [blame] | 291 | {kIOSTipsNotificationsUnknownTriggerTimeParam, "30s"}, |
| 292 | {kIOSTipsNotificationsActiveSeekerTriggerTimeParam, "30s"}, |
| 293 | {kIOSTipsNotificationsLessEngagedTriggerTimeParam, "30s"}, |
Scott Yoder | d2dbc87f | 2024-03-07 18:23:37 | [diff] [blame] | 294 | }; |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 295 | const FeatureEntry::FeatureVariation kIOSTipsNotificationsVariations[] = { |
| 296 | {"(5s trigger)", kIOSTipsNotifications5SecondTrigger, |
| 297 | std::size(kIOSTipsNotifications10SecondTrigger), nullptr}, |
| 298 | {"(10s trigger)", kIOSTipsNotifications10SecondTrigger, |
| 299 | std::size(kIOSTipsNotifications10SecondTrigger), nullptr}, |
Scott Yoder | d2dbc87f | 2024-03-07 18:23:37 | [diff] [blame] | 300 | {"(30s trigger)", kIOSTipsNotifications30SecondTrigger, |
| 301 | std::size(kIOSTipsNotifications10SecondTrigger), nullptr}, |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 302 | }; |
| 303 | |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 304 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 305 | // Feed Background Refresh Feature Params. |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 306 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 307 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 308 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 309 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 310 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 311 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 312 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 313 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 314 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 315 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 316 | const FeatureEntry::FeatureParam kOneHourIntervalOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 317 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 318 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 319 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 320 | {kBackgroundRefreshIntervalInSeconds, /* 60*60= */ "3600"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 321 | const FeatureEntry::FeatureParam kFourHourIntervalSixHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 322 | {kEnableServerDrivenBackgroundRefreshSchedule, "false"}, |
| 323 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 324 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 325 | {kBackgroundRefreshIntervalInSeconds, /* 4*60*60= */ "14400"}}; |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 326 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeOnce[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 327 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 328 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 329 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 330 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 331 | const FeatureEntry::FeatureParam kServerDrivenOneHourMaxAgeRecurring[] = { |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 332 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 333 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 334 | {kMaxCacheAgeInSeconds, /*60*60*/ "3600"}, |
| 335 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 336 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeOnce[] = { |
| 337 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 338 | {kEnableRecurringBackgroundRefreshSchedule, "false"}, |
| 339 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 340 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
| 341 | const FeatureEntry::FeatureParam kServerDrivenSixHourMaxAgeRecurring[] = { |
| 342 | {kEnableServerDrivenBackgroundRefreshSchedule, "true"}, |
| 343 | {kEnableRecurringBackgroundRefreshSchedule, "true"}, |
| 344 | {kMaxCacheAgeInSeconds, /*6*60*60*/ "21600"}, |
| 345 | {kBackgroundRefreshIntervalInSeconds, "0"}}; |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 346 | |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 347 | // Feed Background Refresh Feature Variations. |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 348 | const FeatureEntry::FeatureVariation kFeedBackgroundRefreshVariations[] = { |
Ed Chin | 321b8fe | 2022-08-16 07:02:01 | [diff] [blame] | 349 | {"1hr Interval 1hr Max Age Once", kOneHourIntervalOneHourMaxAgeOnce, |
| 350 | std::size(kOneHourIntervalOneHourMaxAgeOnce), nullptr}, |
| 351 | {"4hr Interval 6hr Max Age Once", kFourHourIntervalSixHourMaxAgeOnce, |
| 352 | std::size(kFourHourIntervalSixHourMaxAgeOnce), nullptr}, |
| 353 | {"1hr Interval 1hr Max Age Recurring", |
| 354 | kOneHourIntervalOneHourMaxAgeRecurring, |
| 355 | std::size(kOneHourIntervalOneHourMaxAgeRecurring), nullptr}, |
| 356 | {"4hr Interval 6hr Max Age Recurring", |
| 357 | kFourHourIntervalSixHourMaxAgeRecurring, |
| 358 | std::size(kFourHourIntervalSixHourMaxAgeRecurring), nullptr}, |
| 359 | {"Server Driven 1hr Max Age Once", kServerDrivenOneHourMaxAgeOnce, |
| 360 | std::size(kServerDrivenOneHourMaxAgeOnce), nullptr}, |
| 361 | {"Server Driven 1hr Max Age Recurring", kServerDrivenOneHourMaxAgeRecurring, |
| 362 | std::size(kServerDrivenOneHourMaxAgeRecurring), nullptr}, |
| 363 | {"Server Driven 6hr Max Age Once", kServerDrivenSixHourMaxAgeOnce, |
| 364 | std::size(kServerDrivenSixHourMaxAgeOnce), nullptr}, |
| 365 | {"Server Driven 6hr Max Age Recurring", kServerDrivenSixHourMaxAgeRecurring, |
| 366 | std::size(kServerDrivenSixHourMaxAgeRecurring), nullptr}, |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 367 | }; |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 368 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Ed Chin | 59f617b | 2022-07-19 22:12:04 | [diff] [blame] | 369 | |
David Jean | f361ae9d | 2024-04-09 08:19:47 | [diff] [blame] | 370 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierAddressOneTap[] = { |
| 371 | {kTextClassifierAddressParameterName, "true"}}; |
| 372 | const FeatureEntry::FeatureVariation |
| 373 | kEnableExpKitTextClassifierAddressVariations[] = { |
| 374 | {"Long-Press and One-Tap", kEnableExpKitTextClassifierAddressOneTap, |
| 375 | std::size(kEnableExpKitTextClassifierAddressOneTap), nullptr}}; |
| 376 | |
| 377 | const FeatureEntry::FeatureParam |
| 378 | kEnableExpKitTextClassifierPhoneNumberOneTap[] = { |
| 379 | {kTextClassifierPhoneNumberParameterName, "true"}}; |
| 380 | const FeatureEntry::FeatureVariation |
| 381 | kEnableExpKitTextClassifierPhoneNumberVariations[] = { |
| 382 | {"Long-Press and One-Tap", kEnableExpKitTextClassifierPhoneNumberOneTap, |
| 383 | std::size(kEnableExpKitTextClassifierPhoneNumberOneTap), nullptr}}; |
| 384 | |
| 385 | const FeatureEntry::FeatureParam kEnableExpKitTextClassifierEmailOneTap[] = { |
| 386 | {kTextClassifierEmailParameterName, "true"}}; |
| 387 | const FeatureEntry::FeatureVariation |
| 388 | kEnableExpKitTextClassifierEmailVariations[] = { |
| 389 | {"Long-Press and One-Tap", kEnableExpKitTextClassifierEmailOneTap, |
| 390 | std::size(kEnableExpKitTextClassifierEmailOneTap), nullptr}}; |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 391 | |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 392 | const FeatureEntry::FeatureParam kTabInactivityThresholdOneWeek[] = { |
| 393 | {kTabInactivityThresholdParameterName, |
| 394 | kTabInactivityThresholdOneWeekParam}}; |
| 395 | const FeatureEntry::FeatureParam kTabInactivityThresholdTwoWeeks[] = { |
| 396 | {kTabInactivityThresholdParameterName, |
| 397 | kTabInactivityThresholdTwoWeeksParam}}; |
| 398 | const FeatureEntry::FeatureParam kTabInactivityThresholdThreeWeeks[] = { |
| 399 | {kTabInactivityThresholdParameterName, |
| 400 | kTabInactivityThresholdThreeWeeksParam}}; |
Louis Romero | 56abd90 | 2023-03-15 16:21:58 | [diff] [blame] | 401 | const FeatureEntry::FeatureParam kTabInactivityThresholdOneMinuteDemo[] = { |
| 402 | {kTabInactivityThresholdParameterName, |
| 403 | kTabInactivityThresholdOneMinuteDemoParam}}; |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 404 | |
| 405 | const FeatureEntry::FeatureVariation kTabInactivityThresholdVariations[] = { |
| 406 | {"One week", kTabInactivityThresholdOneWeek, |
| 407 | std::size(kTabInactivityThresholdOneWeek), nullptr}, |
| 408 | {"Two weeks", kTabInactivityThresholdTwoWeeks, |
| 409 | std::size(kTabInactivityThresholdTwoWeeks), nullptr}, |
| 410 | {"Three weeks", kTabInactivityThresholdThreeWeeks, |
| 411 | std::size(kTabInactivityThresholdThreeWeeks), nullptr}, |
Louis Romero | 56abd90 | 2023-03-15 16:21:58 | [diff] [blame] | 412 | {"One minute [Demo]", kTabInactivityThresholdOneMinuteDemo, |
| 413 | std::size(kTabInactivityThresholdOneMinuteDemo), nullptr}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 414 | }; |
| 415 | |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 416 | const FeatureEntry::FeatureParam kTabResumptionMostRecentTabOnly[] = { |
| 417 | {kTabResumptionParameterName, kTabResumptionMostRecentTabOnlyParam}}; |
| 418 | const FeatureEntry::FeatureParam kTabResumptionAllTabs[] = { |
| 419 | {kTabResumptionParameterName, kTabResumptionAllTabsParam}}; |
Ewann Pelle | b08ee06 | 2023-10-16 10:04:48 | [diff] [blame] | 420 | const FeatureEntry::FeatureParam kTabResumptionAllTabsOneDayThreshold[] = { |
Olivier Robin | bb46d05d | 2024-06-25 17:56:35 | [diff] [blame] | 421 | {kTabResumptionParameterName, kTabResumptionAllTabsParam}, |
| 422 | {kTabResumptionThresholdParameterName, /* 24 hours */ "86400"}}; |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 423 | |
| 424 | const FeatureEntry::FeatureVariation kTabResumptionVariations[] = { |
| 425 | {"Most recent tab only", kTabResumptionMostRecentTabOnly, |
| 426 | std::size(kTabResumptionMostRecentTabOnly), nullptr}, |
Ewann Pelle | b08ee06 | 2023-10-16 10:04:48 | [diff] [blame] | 427 | {"Most recent tab and last synced tab (12 hours threshold)", |
| 428 | kTabResumptionAllTabs, std::size(kTabResumptionAllTabs), nullptr}, |
| 429 | {"Most recent tab and last synced tab (24 hours threshold)", |
| 430 | kTabResumptionAllTabsOneDayThreshold, |
Olivier Robin | 08bc56d0 | 2024-06-05 14:05:18 | [diff] [blame] | 431 | std::size(kTabResumptionAllTabsOneDayThreshold), nullptr}}; |
Ewann Pelle | 6eecb8f | 2023-06-23 14:31:37 | [diff] [blame] | 432 | |
Olivier ROBIN | 2613bcd0 | 2023-04-20 10:00:47 | [diff] [blame] | 433 | |
Christian Xu | 07d60019 | 2023-07-24 12:29:52 | [diff] [blame] | 434 | const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingTop[] = { |
| 435 | {kBottomOmniboxDefaultSettingParam, kBottomOmniboxDefaultSettingParamTop}}; |
| 436 | const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingBottom[] = { |
| 437 | {kBottomOmniboxDefaultSettingParam, |
| 438 | kBottomOmniboxDefaultSettingParamBottom}}; |
| 439 | const FeatureEntry::FeatureParam kBottomOmniboxDefaultSettingSafariSwitcher[] = |
| 440 | {{kBottomOmniboxDefaultSettingParam, |
| 441 | kBottomOmniboxDefaultSettingParamSafariSwitcher}}; |
| 442 | const FeatureEntry::FeatureVariation kBottomOmniboxDefaultSettingVariations[] = |
| 443 | { |
| 444 | {"Top", kBottomOmniboxDefaultSettingTop, |
| 445 | std::size(kBottomOmniboxDefaultSettingTop), nullptr}, |
| 446 | {"Bottom", kBottomOmniboxDefaultSettingBottom, |
| 447 | std::size(kBottomOmniboxDefaultSettingBottom), nullptr}, |
| 448 | {"Bottom for Safari Switcher", |
| 449 | kBottomOmniboxDefaultSettingSafariSwitcher, |
| 450 | std::size(kBottomOmniboxDefaultSettingSafariSwitcher), nullptr}, |
| 451 | }; |
| 452 | |
Cheick Cisse | 85457f2 | 2024-05-23 22:37:59 | [diff] [blame] | 453 | constexpr flags_ui::FeatureEntry::FeatureParam kPriceInsightsPriceIsLowParam[] = |
| 454 | {{kLowPriceParam, kLowPriceParamPriceIsLow}}; |
| 455 | constexpr flags_ui::FeatureEntry::FeatureParam |
| 456 | kPriceInsightsGoodDealNowParam[] = { |
| 457 | {kLowPriceParam, kLowPriceParamGoodDealNow}}; |
| 458 | constexpr flags_ui::FeatureEntry::FeatureParam |
| 459 | kPriceInsightsSeePriceHistoryParam[] = { |
| 460 | {kLowPriceParam, kLowPriceParamSeePriceHistory}}; |
| 461 | constexpr flags_ui::FeatureEntry::FeatureVariation kPriceInsightsVariations[] = |
| 462 | {{"Price is low", kPriceInsightsPriceIsLowParam, |
| 463 | std::size(kPriceInsightsPriceIsLowParam), nullptr}, |
| 464 | {"Good deal now", kPriceInsightsGoodDealNowParam, |
| 465 | std::size(kPriceInsightsGoodDealNowParam), nullptr}, |
| 466 | {"See price history", kPriceInsightsSeePriceHistoryParam, |
| 467 | std::size(kPriceInsightsSeePriceHistoryParam), nullptr}}; |
| 468 | |
Christian Xu | 10b84d7 | 2024-04-09 17:12:33 | [diff] [blame] | 469 | const FeatureEntry::FeatureParam kRichAutocompletionImplementationLabel[] = { |
| 470 | {kRichAutocompletionParam, kRichAutocompletionParamLabel}}; |
Christian Xu | a17f9b7 | 2024-04-22 10:22:31 | [diff] [blame] | 471 | const FeatureEntry::FeatureParam |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 472 | kRichAutocompletionImplementationTextField3Chars[] = { |
| 473 | {kRichAutocompletionParam, kRichAutocompletionParamTextField}, |
Christian Xu | 7bb33bc | 2024-05-29 15:10:52 | [diff] [blame] | 474 | {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"}, |
| 475 | {"RichAutocompletionAutocompleteTitlesMinChar", "3"}}; |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 476 | const FeatureEntry::FeatureParam |
| 477 | kRichAutocompletionImplementationTextField4Chars[] = { |
| 478 | {kRichAutocompletionParam, kRichAutocompletionParamTextField}, |
Christian Xu | 7bb33bc | 2024-05-29 15:10:52 | [diff] [blame] | 479 | {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"}, |
| 480 | {"RichAutocompletionAutocompleteTitlesMinChar", "4"}}; |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 481 | const FeatureEntry::FeatureParam |
| 482 | kRichAutocompletionImplementationNoAdditionalText3Chars[] = { |
| 483 | {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText}, |
Christian Xu | 7bb33bc | 2024-05-29 15:10:52 | [diff] [blame] | 484 | {"RichAutocompletionAutocompleteShortcutTextMinChar", "3"}, |
| 485 | {"RichAutocompletionAutocompleteTitlesMinChar", "3"}}; |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 486 | const FeatureEntry::FeatureParam |
| 487 | kRichAutocompletionImplementationNoAdditionalText4Chars[] = { |
| 488 | {kRichAutocompletionParam, kRichAutocompletionParamNoAdditionalText}, |
Christian Xu | 7bb33bc | 2024-05-29 15:10:52 | [diff] [blame] | 489 | {"RichAutocompletionAutocompleteShortcutTextMinChar", "4"}, |
| 490 | {"RichAutocompletionAutocompleteTitlesMinChar", "4"}}; |
Christian Xu | 10b84d7 | 2024-04-09 17:12:33 | [diff] [blame] | 491 | const FeatureEntry::FeatureVariation |
| 492 | kRichAutocompletionImplementationVariations[] = { |
| 493 | {"In Label", kRichAutocompletionImplementationLabel, |
| 494 | std::size(kRichAutocompletionImplementationLabel), nullptr}, |
Christian Xu | 2cf421f | 2024-05-17 19:23:52 | [diff] [blame] | 495 | {"In TextField, 3 Min Chars", |
| 496 | kRichAutocompletionImplementationTextField3Chars, |
| 497 | std::size(kRichAutocompletionImplementationTextField3Chars), nullptr}, |
| 498 | {"In TextField, 4 Min Chars", |
| 499 | kRichAutocompletionImplementationTextField4Chars, |
| 500 | std::size(kRichAutocompletionImplementationTextField4Chars), nullptr}, |
| 501 | {"No Additional Text, 3 Min Chars", |
| 502 | kRichAutocompletionImplementationNoAdditionalText3Chars, |
| 503 | std::size(kRichAutocompletionImplementationNoAdditionalText3Chars), |
| 504 | nullptr}, |
| 505 | {"No Additional Text, 4 Min Chars", |
| 506 | kRichAutocompletionImplementationNoAdditionalText4Chars, |
| 507 | std::size(kRichAutocompletionImplementationNoAdditionalText4Chars), |
| 508 | nullptr}, |
Christian Xu | 10b84d7 | 2024-04-09 17:12:33 | [diff] [blame] | 509 | }; |
| 510 | |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 511 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDefault[] = { |
| 512 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 513 | web::features::kOneTapForMapsConsentModeDefaultParam}}; |
| 514 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeForced[] = { |
| 515 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 516 | web::features::kOneTapForMapsConsentModeForcedParam}}; |
| 517 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeDisabled[] = { |
| 518 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 519 | web::features::kOneTapForMapsConsentModeDisabledParam}}; |
Olivier ROBIN | 333f0b54 | 2023-09-01 14:53:31 | [diff] [blame] | 520 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPH[] = { |
| 521 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 522 | web::features::kOneTapForMapsConsentModeIPHParam}}; |
| 523 | const FeatureEntry::FeatureParam kOneTapForMapsConsentModeIPHForced[] = { |
| 524 | {web::features::kOneTapForMapsConsentModeParamTitle, |
| 525 | web::features::kOneTapForMapsConsentModeIPHForcedParam}}; |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 526 | const FeatureEntry::FeatureVariation kOneTapForMapsWithVariations[] = { |
| 527 | {"Consent Default", kOneTapForMapsConsentModeDefault, |
| 528 | std::size(kOneTapForMapsConsentModeDefault), nullptr}, |
| 529 | {"Consent Forced", kOneTapForMapsConsentModeForced, |
| 530 | std::size(kOneTapForMapsConsentModeForced), nullptr}, |
Olivier ROBIN | 333f0b54 | 2023-09-01 14:53:31 | [diff] [blame] | 531 | {"Consent IPH", kOneTapForMapsConsentModeIPH, |
| 532 | std::size(kOneTapForMapsConsentModeIPH), nullptr}, |
| 533 | {"Consent IPH forced", kOneTapForMapsConsentModeIPHForced, |
| 534 | std::size(kOneTapForMapsConsentModeIPHForced), nullptr}, |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 535 | {"Consent Disabled", kOneTapForMapsConsentModeDisabled, |
| 536 | std::size(kOneTapForMapsConsentModeDisabled), nullptr}, |
| 537 | }; |
| 538 | |
Matt Jones | 7953439 | 2023-10-27 14:35:02 | [diff] [blame] | 539 | const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataDelivered[] = |
| 540 | {{commerce::kParcelTrackingTestDataParam, |
| 541 | commerce::kParcelTrackingTestDataParamDelivered}}; |
| 542 | const flags_ui::FeatureEntry::FeatureParam kParcelTrackingTestDataInProgress[] = |
| 543 | {{commerce::kParcelTrackingTestDataParam, |
| 544 | commerce::kParcelTrackingTestDataParamInProgress}}; |
| 545 | const flags_ui::FeatureEntry::FeatureParam |
| 546 | kParcelTrackingTestDataOutForDelivery[] = { |
| 547 | {commerce::kParcelTrackingTestDataParam, |
| 548 | commerce::kParcelTrackingTestDataParamOutForDelivery}}; |
| 549 | const flags_ui::FeatureEntry::FeatureVariation |
| 550 | kParcelTrackingTestDataVariations[] = { |
| 551 | {"Delivered", kParcelTrackingTestDataDelivered, |
| 552 | std::size(kParcelTrackingTestDataDelivered), nullptr}, |
| 553 | {"In progress", kParcelTrackingTestDataInProgress, |
| 554 | std::size(kParcelTrackingTestDataInProgress), nullptr}, |
| 555 | {"Out for delivery", kParcelTrackingTestDataOutForDelivery, |
| 556 | std::size(kParcelTrackingTestDataOutForDelivery), nullptr}, |
| 557 | }; |
| 558 | |
Benjamin Williams | 1dc8f234 | 2024-01-04 21:25:55 | [diff] [blame] | 559 | const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAfterFRE[] = { |
| 560 | {kIOSDockingPromoExperimentType, "0"}}; |
| 561 | const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedAtAppLaunch[] = { |
| 562 | {kIOSDockingPromoExperimentType, "1"}}; |
| 563 | const FeatureEntry::FeatureParam kIOSDockingPromoDisplayedDuringFRE[] = { |
| 564 | {kIOSDockingPromoExperimentType, "2"}}; |
| 565 | |
| 566 | const FeatureEntry::FeatureVariation kIOSDockingPromoVariations[] = { |
| 567 | {"Display promo after FRE", kIOSDockingPromoDisplayedAfterFRE, |
| 568 | std::size(kIOSDockingPromoDisplayedAfterFRE), nullptr}, |
| 569 | {"Display promo at app launch", kIOSDockingPromoDisplayedAtAppLaunch, |
| 570 | std::size(kIOSDockingPromoDisplayedAtAppLaunch), nullptr}, |
| 571 | {"Display promo during FRE", kIOSDockingPromoDisplayedDuringFRE, |
| 572 | std::size(kIOSDockingPromoDisplayedDuringFRE), nullptr}}; |
| 573 | |
Ewann Pelle | c8634ab | 2024-02-23 16:50:35 | [diff] [blame] | 574 | const FeatureEntry::FeatureParam kModernTabStripNTBDynamic[] = { |
| 575 | {kModernTabStripParameterName, kModernTabStripNTBDynamicParam}}; |
| 576 | const FeatureEntry::FeatureParam kModernTabStripNTBStatic[] = { |
| 577 | {kModernTabStripParameterName, kModernTabStripNTBStaticParam}}; |
Gauthier Ambard | f1cd72f | 2024-10-08 16:15:33 | [diff] [blame] | 578 | const FeatureEntry::FeatureParam kModernTabStripCloserNTBOption[] = { |
| 579 | {kModernTabStripCloserNTB, "true"}, |
| 580 | {kModernTabStripBiggerNTB, "true"}}; |
| 581 | const FeatureEntry::FeatureParam kModernTabStripDarkerBackgroundOption[] = { |
| 582 | {kModernTabStripDarkerBackground, "true"}, |
| 583 | {kModernTabStripBiggerNTB, "true"}}; |
| 584 | const FeatureEntry::FeatureParam |
| 585 | kModernTabStripCloserNTBDarkerBackgroundOption[] = { |
| 586 | {kModernTabStripDarkerBackground, "true"}, |
| 587 | {kModernTabStripCloserNTB, "true"}, |
| 588 | {kModernTabStripBiggerNTB, "true"}}; |
| 589 | const FeatureEntry::FeatureParam kModernTabStripNTBNoBackgroundOption[] = { |
| 590 | {kModernTabStripNTBNoBackground, "true"}, |
| 591 | {kModernTabStripBiggerNTB, "true"}}; |
| 592 | const FeatureEntry::FeatureParam kModernTabStripBlackBackgroundOption[] = { |
| 593 | {kModernTabStripBlackBackground, "true"}, |
| 594 | {kModernTabStripNTBNoBackground, "true"}, |
| 595 | {kModernTabStripBiggerNTB, "true"}}; |
Ewann Pelle | c8634ab | 2024-02-23 16:50:35 | [diff] [blame] | 596 | |
Gauthier Ambard | 13b1a74 | 2024-10-09 07:53:22 | [diff] [blame] | 597 | const FeatureEntry::FeatureParam kModernTabStripCloseButtonVisibleOption[] = { |
| 598 | {kModernTabStripCloseButtonsVisible, "true"}}; |
| 599 | const FeatureEntry::FeatureParam |
| 600 | kModernTabStripInactiveTabsHighContrastOption[] = { |
| 601 | {kModernTabStripInactiveTabsHighContrast, "true"}, |
| 602 | {kModernTabStripDarkerBackgroundV3, "true"}}; |
| 603 | const FeatureEntry::FeatureParam kModernTabStripHighContrastNTBOption[] = { |
| 604 | {kModernTabStripHighContrastNTB, "true"}}; |
| 605 | const FeatureEntry::FeatureParam kModernTabStripCloseV3AllOptions[] = { |
| 606 | {kModernTabStripCloseButtonsVisible, "true"}, |
| 607 | {kModernTabStripInactiveTabsHighContrast, "true"}, |
| 608 | {kModernTabStripHighContrastNTB, "true"}, |
| 609 | {kModernTabStripDarkerBackgroundV3, "true"}}; |
| 610 | |
Ewann Pelle | c8634ab | 2024-02-23 16:50:35 | [diff] [blame] | 611 | const FeatureEntry::FeatureVariation kModernTabStripVariations[] = { |
| 612 | {"New tab button dynamic", kModernTabStripNTBDynamic, |
| 613 | std::size(kModernTabStripNTBDynamic), nullptr}, |
| 614 | {"New tab button static", kModernTabStripNTBStatic, |
| 615 | std::size(kModernTabStripNTBStatic), nullptr}, |
Gauthier Ambard | f1cd72f | 2024-10-08 16:15:33 | [diff] [blame] | 616 | {"Closer NTB", kModernTabStripCloserNTBOption, |
| 617 | std::size(kModernTabStripCloserNTBOption), nullptr}, |
| 618 | {"Darker background", kModernTabStripDarkerBackgroundOption, |
| 619 | std::size(kModernTabStripDarkerBackgroundOption), nullptr}, |
| 620 | {"Closer NTB + darker background", |
| 621 | kModernTabStripCloserNTBDarkerBackgroundOption, |
| 622 | std::size(kModernTabStripCloserNTBDarkerBackgroundOption), nullptr}, |
| 623 | {"NTB no background", kModernTabStripNTBNoBackgroundOption, |
| 624 | std::size(kModernTabStripNTBNoBackgroundOption), nullptr}, |
| 625 | {"Black background", kModernTabStripBlackBackgroundOption, |
| 626 | std::size(kModernTabStripBlackBackgroundOption), nullptr}, |
Gauthier Ambard | 13b1a74 | 2024-10-09 07:53:22 | [diff] [blame] | 627 | {"V3 Close buttons", kModernTabStripCloseButtonVisibleOption, |
| 628 | std::size(kModernTabStripCloseButtonVisibleOption), nullptr}, |
| 629 | {"V3 High Contrast tabs", kModernTabStripInactiveTabsHighContrastOption, |
| 630 | std::size(kModernTabStripInactiveTabsHighContrastOption), nullptr}, |
| 631 | {"V3 Visible NTB", kModernTabStripHighContrastNTBOption, |
| 632 | std::size(kModernTabStripHighContrastNTBOption), nullptr}, |
| 633 | {"V3 all options", kModernTabStripCloseV3AllOptions, |
| 634 | std::size(kModernTabStripCloseV3AllOptions), nullptr}, |
Ewann Pelle | c8634ab | 2024-02-23 16:50:35 | [diff] [blame] | 635 | }; |
| 636 | |
Olivier ROBIN | cb76f4fe | 2024-06-05 16:11:42 | [diff] [blame] | 637 | const FeatureEntry::FeatureVariation |
| 638 | kImageServiceOptimizationGuideSalientImagesVariations[] = { |
| 639 | {"High Performance Canonicalization", nullptr, 0, "3362133"}, |
| 640 | }; |
| 641 | |
Olivier Robin | f8374f1 | 2024-06-05 19:00:04 | [diff] [blame] | 642 | const FeatureEntry::FeatureParam kTabResumption15DisableSeeMoreButtonImages[] = |
| 643 | {{kTR15SeeMoreButtonParam, "false"}}; |
Olivier Robin | f8374f1 | 2024-06-05 19:00:04 | [diff] [blame] | 644 | |
| 645 | const FeatureEntry::FeatureVariation kTabResumption15Variations[] = { |
Olivier Robin | f8374f1 | 2024-06-05 19:00:04 | [diff] [blame] | 646 | {"No See More Button", kTabResumption15DisableSeeMoreButtonImages, |
| 647 | std::size(kTabResumption15DisableSeeMoreButtonImages), nullptr}, |
Olivier Robin | f8374f1 | 2024-06-05 19:00:04 | [diff] [blame] | 648 | }; |
Olivier ROBIN | b17c14b9 | 2024-10-09 13:49:13 | [diff] [blame] | 649 | |
| 650 | const FeatureEntry::FeatureParam kTabResumptionImagesOnlyThumbnail[] = { |
| 651 | {kTabResumptionImagesTypes, kTabResumptionImagesTypesThumbnails}}; |
| 652 | const FeatureEntry::FeatureParam kTabResumptionImagesOnlySalient[] = { |
| 653 | {kTabResumptionImagesTypes, kTabResumptionImagesTypesSalient}}; |
| 654 | |
| 655 | const FeatureEntry::FeatureVariation kTabResumptionImagesVariations[] = { |
| 656 | {"Only thumbnails", kTabResumptionImagesOnlyThumbnail, |
| 657 | std::size(kTabResumptionImagesOnlyThumbnail), nullptr}, |
| 658 | {"Only salient", kTabResumptionImagesOnlySalient, |
| 659 | std::size(kTabResumptionImagesOnlySalient), nullptr}, |
| 660 | }; |
| 661 | |
Charles Yang | f8e7adf | 2024-06-11 00:17:00 | [diff] [blame] | 662 | // Uses int values from Lens filters ablation mode enum. |
| 663 | const FeatureEntry::FeatureParam kLensFiltersAblationModeDisabled[] = { |
| 664 | {kLensFiltersAblationMode, "0"}}; |
| 665 | const FeatureEntry::FeatureParam kLensFiltersAblationModePostCapture[] = { |
| 666 | {kLensFiltersAblationMode, "1"}}; |
| 667 | const FeatureEntry::FeatureParam kLensFiltersAblationModeLVF[] = { |
| 668 | {kLensFiltersAblationMode, "2"}}; |
| 669 | const FeatureEntry::FeatureParam kLensFiltersAblationModeAlways[] = { |
| 670 | {kLensFiltersAblationMode, "3"}}; |
| 671 | |
| 672 | const FeatureEntry::FeatureVariation kLensFiltersAblationModeVariations[] = { |
| 673 | {"(Disabled)", kLensFiltersAblationModeDisabled, |
| 674 | std::size(kLensFiltersAblationModeDisabled), nullptr}, |
| 675 | {"(Post Capture)", kLensFiltersAblationModePostCapture, |
| 676 | std::size(kLensFiltersAblationModePostCapture), nullptr}, |
| 677 | {"(LVF)", kLensFiltersAblationModeLVF, |
| 678 | std::size(kLensFiltersAblationModeLVF), nullptr}, |
| 679 | {"(Always)", kLensFiltersAblationModeAlways, |
| 680 | std::size(kLensFiltersAblationModeAlways), nullptr}}; |
| 681 | |
| 682 | // Uses int values from Lens translate toggle mode enum. |
| 683 | const FeatureEntry::FeatureParam kLensTranslateToggleModeDisabled[] = { |
| 684 | {kLensTranslateToggleMode, "0"}}; |
| 685 | const FeatureEntry::FeatureParam kLensTranslateToggleModePostCapture[] = { |
| 686 | {kLensTranslateToggleMode, "1"}}; |
| 687 | const FeatureEntry::FeatureParam kLensTranslateToggleModeLVF[] = { |
| 688 | {kLensTranslateToggleMode, "2"}}; |
| 689 | const FeatureEntry::FeatureParam kLensTranslateToggleModeAlways[] = { |
| 690 | {kLensTranslateToggleMode, "3"}}; |
| 691 | |
| 692 | const FeatureEntry::FeatureVariation kLensTranslateToggleModeVariations[] = { |
| 693 | {"(Disabled)", kLensTranslateToggleModeDisabled, |
| 694 | std::size(kLensTranslateToggleModeDisabled), nullptr}, |
| 695 | {"(Post Capture)", kLensTranslateToggleModePostCapture, |
| 696 | std::size(kLensTranslateToggleModePostCapture), nullptr}, |
| 697 | {"(LVF)", kLensTranslateToggleModeLVF, |
| 698 | std::size(kLensTranslateToggleModeLVF), nullptr}, |
| 699 | {"(Always)", kLensTranslateToggleModeAlways, |
| 700 | std::size(kLensTranslateToggleModeAlways), nullptr}}; |
Olivier Robin | f8374f1 | 2024-06-05 19:00:04 | [diff] [blame] | 701 | |
Khalid Peer | 7cf75a2 | 2024-06-13 17:25:49 | [diff] [blame] | 702 | const FeatureEntry::FeatureParam |
| 703 | kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0[] = { |
| 704 | {"MlUrlPiecewiseMappedSearchBlending", "true"}, |
| 705 | {"MlUrlPiecewiseMappedSearchBlending_BreakPoints", |
| 706 | "0,550;0.018,1300;0.14,1398;1,1422"}, |
| 707 | {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1400"}, |
| 708 | {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}}; |
| 709 | const FeatureEntry::FeatureParam |
Khalid Peer | 9c07798f | 2024-07-15 22:39:41 | [diff] [blame] | 710 | kMlUrlPiecewiseMappedSearchBlendingDemotedBy50[] = { |
Khalid Peer | 7cf75a2 | 2024-06-13 17:25:49 | [diff] [blame] | 711 | {"MlUrlPiecewiseMappedSearchBlending", "true"}, |
| 712 | {"MlUrlPiecewiseMappedSearchBlending_BreakPoints", |
| 713 | "0,550;0.018,1250;0.14,1348;1,1422"}, |
| 714 | {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1350"}, |
| 715 | {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}}; |
| 716 | const FeatureEntry::FeatureParam |
Khalid Peer | 9c07798f | 2024-07-15 22:39:41 | [diff] [blame] | 717 | kMlUrlPiecewiseMappedSearchBlendingPromotedBy50[] = { |
Khalid Peer | 7cf75a2 | 2024-06-13 17:25:49 | [diff] [blame] | 718 | {"MlUrlPiecewiseMappedSearchBlending", "true"}, |
| 719 | {"MlUrlPiecewiseMappedSearchBlending_BreakPoints", |
Khalid Peer | 9c07798f | 2024-07-15 22:39:41 | [diff] [blame] | 720 | "0,550;0.018,1350;0.14,1448;1,1472"}, |
| 721 | {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1450"}, |
Khalid Peer | 7cf75a2 | 2024-06-13 17:25:49 | [diff] [blame] | 722 | {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}}; |
| 723 | const FeatureEntry::FeatureParam |
Khalid Peer | 9c07798f | 2024-07-15 22:39:41 | [diff] [blame] | 724 | kMlUrlPiecewiseMappedSearchBlendingPromotedBy100[] = { |
Khalid Peer | 7cf75a2 | 2024-06-13 17:25:49 | [diff] [blame] | 725 | {"MlUrlPiecewiseMappedSearchBlending", "true"}, |
| 726 | {"MlUrlPiecewiseMappedSearchBlending_BreakPoints", |
Khalid Peer | 9c07798f | 2024-07-15 22:39:41 | [diff] [blame] | 727 | "0,550;0.018,1400;0.14,1498;1,1522"}, |
| 728 | {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1500"}, |
Khalid Peer | 7cf75a2 | 2024-06-13 17:25:49 | [diff] [blame] | 729 | {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}}; |
Khalid Peer | 4501c1f | 2024-06-27 16:12:04 | [diff] [blame] | 730 | const FeatureEntry::FeatureParam |
| 731 | kMlUrlPiecewiseMappedSearchBlendingMobileMapping[] = { |
| 732 | {"MlUrlPiecewiseMappedSearchBlending", "true"}, |
| 733 | {"MlUrlPiecewiseMappedSearchBlending_BreakPoints", |
Khalid Peer | 5c9bd9e | 2024-07-17 17:16:42 | [diff] [blame] | 734 | "0,590;0.006,790;0.082,1290;0.443,1360;0.464,1400;0.987,1425;1,1530"}, |
Khalid Peer | 4501c1f | 2024-06-27 16:12:04 | [diff] [blame] | 735 | {"MlUrlPiecewiseMappedSearchBlending_GroupingThreshold", "1340"}, |
| 736 | {"MlUrlPiecewiseMappedSearchBlending_RelevanceBias", "0"}}; |
Khalid Peer | 7cf75a2 | 2024-06-13 17:25:49 | [diff] [blame] | 737 | |
| 738 | const FeatureEntry::FeatureVariation |
| 739 | kMlUrlPiecewiseMappedSearchBlendingVariations[] = { |
| 740 | {"adjusted by 0", kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0, |
| 741 | std::size(kMlUrlPiecewiseMappedSearchBlendingAdjustedBy0), nullptr}, |
Khalid Peer | 9c07798f | 2024-07-15 22:39:41 | [diff] [blame] | 742 | {"demoted by 50", kMlUrlPiecewiseMappedSearchBlendingDemotedBy50, |
| 743 | std::size(kMlUrlPiecewiseMappedSearchBlendingDemotedBy50), nullptr}, |
| 744 | {"promoted by 50", kMlUrlPiecewiseMappedSearchBlendingPromotedBy50, |
| 745 | std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy50), nullptr}, |
| 746 | {"promoted by 100", kMlUrlPiecewiseMappedSearchBlendingPromotedBy100, |
| 747 | std::size(kMlUrlPiecewiseMappedSearchBlendingPromotedBy100), nullptr}, |
Khalid Peer | 4501c1f | 2024-06-27 16:12:04 | [diff] [blame] | 748 | {"mobile mapping", kMlUrlPiecewiseMappedSearchBlendingMobileMapping, |
| 749 | std::size(kMlUrlPiecewiseMappedSearchBlendingMobileMapping), nullptr}, |
Khalid Peer | 7cf75a2 | 2024-06-13 17:25:49 | [diff] [blame] | 750 | }; |
| 751 | |
| 752 | const FeatureEntry::FeatureParam kOmniboxMlUrlScoringEnabledWithFixes[] = { |
| 753 | {"enable_scoring_signals_annotators_for_ml_scoring", "true"}, |
| 754 | {"MlUrlScoringShortcutDocumentSignals", "true"}, |
| 755 | }; |
| 756 | const FeatureEntry::FeatureParam kOmniboxMlUrlScoringUnlimitedNumCandidates[] = |
| 757 | { |
| 758 | {"MlUrlScoringUnlimitedNumCandidates", "true"}, |
| 759 | {"enable_scoring_signals_annotators_for_ml_scoring", "true"}, |
| 760 | {"MlUrlScoringShortcutDocumentSignals", "true"}, |
| 761 | }; |
| 762 | // Sets Bookmark(1), History Quick(4), History URL(8), Shortcuts(64), |
| 763 | // Document(512), and History Fuzzy(65536) providers max matches to 10. |
| 764 | const FeatureEntry::FeatureParam kOmniboxMlUrlScoringMaxMatchesByProvider10[] = |
| 765 | { |
| 766 | {"MlUrlScoringMaxMatchesByProvider", |
| 767 | "1:10,4:10,8:10,64:10,512:10,65536:10"}, |
| 768 | {"enable_scoring_signals_annotators_for_ml_scoring", "true"}, |
| 769 | {"MlUrlScoringShortcutDocumentSignals", "true"}, |
| 770 | }; |
| 771 | |
| 772 | const FeatureEntry::FeatureVariation kOmniboxMlUrlScoringVariations[] = { |
| 773 | {"Enabled with fixes", kOmniboxMlUrlScoringEnabledWithFixes, |
| 774 | std::size(kOmniboxMlUrlScoringEnabledWithFixes), nullptr}, |
| 775 | {"unlimited suggestion candidates", |
| 776 | kOmniboxMlUrlScoringUnlimitedNumCandidates, |
| 777 | std::size(kOmniboxMlUrlScoringUnlimitedNumCandidates), nullptr}, |
| 778 | {"Increase provider max limit to 10", |
| 779 | kOmniboxMlUrlScoringMaxMatchesByProvider10, |
| 780 | std::size(kOmniboxMlUrlScoringMaxMatchesByProvider10), nullptr}, |
| 781 | }; |
| 782 | |
| 783 | const FeatureEntry::FeatureParam kMlUrlSearchBlendingStable[] = { |
| 784 | {"MlUrlSearchBlending_StableSearchBlending", "true"}, |
| 785 | {"MlUrlSearchBlending_MappedSearchBlending", "false"}, |
| 786 | }; |
| 787 | const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedConservativeUrls[] = |
| 788 | { |
| 789 | {"MlUrlSearchBlending_StableSearchBlending", "false"}, |
| 790 | {"MlUrlSearchBlending_MappedSearchBlending", "true"}, |
| 791 | {"MlUrlSearchBlending_MappedSearchBlendingMin", "0"}, |
| 792 | {"MlUrlSearchBlending_MappedSearchBlendingMax", "2000"}, |
| 793 | {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1000"}, |
| 794 | }; |
| 795 | const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedModerateUrls[] = { |
| 796 | {"MlUrlSearchBlending_StableSearchBlending", "false"}, |
| 797 | {"MlUrlSearchBlending_MappedSearchBlending", "true"}, |
| 798 | }; |
| 799 | const FeatureEntry::FeatureParam kMlUrlSearchBlendingMappedAggressiveUrls[] = { |
| 800 | {"MlUrlSearchBlending_StableSearchBlending", "false"}, |
| 801 | {"MlUrlSearchBlending_MappedSearchBlending", "true"}, |
| 802 | {"MlUrlSearchBlending_MappedSearchBlendingMin", "1000"}, |
| 803 | {"MlUrlSearchBlending_MappedSearchBlendingMax", "4000"}, |
| 804 | {"MlUrlSearchBlending_MappedSearchBlendingGroupingThreshold", "1500"}, |
| 805 | }; |
| 806 | |
| 807 | const FeatureEntry::FeatureVariation kMlUrlSearchBlendingVariations[] = { |
| 808 | {"Stable", kMlUrlSearchBlendingStable, |
| 809 | std::size(kMlUrlSearchBlendingStable), nullptr}, |
| 810 | {"Mapped conservative urls", kMlUrlSearchBlendingMappedConservativeUrls, |
| 811 | std::size(kMlUrlSearchBlendingMappedConservativeUrls), nullptr}, |
| 812 | {"Mapped moderate urls", kMlUrlSearchBlendingMappedModerateUrls, |
| 813 | std::size(kMlUrlSearchBlendingMappedModerateUrls), nullptr}, |
| 814 | {"Mapped aggressive urls", kMlUrlSearchBlendingMappedAggressiveUrls, |
| 815 | std::size(kMlUrlSearchBlendingMappedAggressiveUrls), nullptr}, |
| 816 | }; |
| 817 | |
Khalid Peer | 4501c1f | 2024-06-27 16:12:04 | [diff] [blame] | 818 | const FeatureEntry::FeatureVariation kUrlScoringModelVariations[] = { |
| 819 | {"Small model", nullptr, 0, "3379590"}, |
| 820 | {"Full model", nullptr, 0, "3380197"}, |
| 821 | }; |
| 822 | |
Benjamin Williams | 0594caf | 2024-07-09 17:51:38 | [diff] [blame] | 823 | const FeatureEntry::FeatureParam kSafetyCheckNotificationsVerbose[] = { |
| 824 | {kSafetyCheckNotificationsExperimentType, "0"}}; |
| 825 | const FeatureEntry::FeatureParam kSafetyCheckNotificationsSuccinct[] = { |
| 826 | {kSafetyCheckNotificationsExperimentType, "1"}}; |
| 827 | |
| 828 | const FeatureEntry::FeatureVariation kSafetyCheckNotificationsVariations[] = { |
| 829 | {"Display multiple notifications at once", kSafetyCheckNotificationsVerbose, |
| 830 | std::size(kSafetyCheckNotificationsVerbose), nullptr}, |
| 831 | {"Display one notification at a time", kSafetyCheckNotificationsSuccinct, |
| 832 | std::size(kSafetyCheckNotificationsSuccinct), nullptr}}; |
| 833 | |
Elmehdi Rahmaoui | f5b7646 | 2024-06-24 10:44:46 | [diff] [blame] | 834 | const FeatureEntry::FeatureParam kSaveToPhotosContextMenuImprovement[] = { |
| 835 | {kSaveToPhotosContextMenuImprovementParam, "true"}, |
| 836 | {kSaveToPhotosTitleImprovementParam, "false"}, |
| 837 | {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"}, |
| 838 | }; |
| 839 | const FeatureEntry::FeatureParam kSaveToPhotosTitleImprovement[] = { |
| 840 | {kSaveToPhotosContextMenuImprovementParam, "false"}, |
| 841 | {kSaveToPhotosTitleImprovementParam, "true"}, |
| 842 | {kSaveToPhotosAccountDefaultChoiceImprovementParam, "false"}, |
| 843 | }; |
| 844 | const FeatureEntry::FeatureParam |
| 845 | kSaveToPhotosAccountDefaultChoiceImprovement[] = { |
| 846 | {kSaveToPhotosContextMenuImprovementParam, "false"}, |
| 847 | {kSaveToPhotosTitleImprovementParam, "false"}, |
| 848 | {kSaveToPhotosAccountDefaultChoiceImprovementParam, "true"}, |
| 849 | }; |
| 850 | |
| 851 | const FeatureEntry::FeatureVariation kSaveToPhotosImprovementsVariations[] = { |
| 852 | {"With Context Menu improvement Only", kSaveToPhotosContextMenuImprovement, |
| 853 | std::size(kSaveToPhotosContextMenuImprovement), nullptr}, |
| 854 | {"With Title improvement Only", kSaveToPhotosTitleImprovement, |
| 855 | std::size(kSaveToPhotosTitleImprovement), nullptr}, |
| 856 | {"With Account Default choice improvement Only", |
| 857 | kSaveToPhotosAccountDefaultChoiceImprovement, |
| 858 | std::size(kSaveToPhotosAccountDefaultChoiceImprovement), nullptr}, |
| 859 | }; |
| 860 | |
Stephen McGruer | 8fe98b6 | 2024-07-16 13:10:13 | [diff] [blame] | 861 | // LINT.IfChange(AutofillUploadCardRequestTimeouts) |
| 862 | const FeatureEntry::FeatureParam |
| 863 | kAutofillUploadCardRequestTimeout_6Point5Seconds[] = { |
| 864 | {"autofill_upload_card_request_timeout_milliseconds", "6500"}}; |
| 865 | const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_7Seconds[] = |
| 866 | {{"autofill_upload_card_request_timeout_milliseconds", "7000"}}; |
| 867 | const FeatureEntry::FeatureParam kAutofillUploadCardRequestTimeout_9Seconds[] = |
| 868 | {{"autofill_upload_card_request_timeout_milliseconds", "9000"}}; |
| 869 | const FeatureEntry::FeatureVariation |
| 870 | kAutofillUploadCardRequestTimeoutOptions[] = { |
| 871 | {"6.5 seconds", kAutofillUploadCardRequestTimeout_6Point5Seconds, |
| 872 | std::size(kAutofillUploadCardRequestTimeout_6Point5Seconds), nullptr}, |
| 873 | {"7 seconds", kAutofillUploadCardRequestTimeout_7Seconds, |
| 874 | std::size(kAutofillUploadCardRequestTimeout_7Seconds), nullptr}, |
| 875 | {"9 seconds", kAutofillUploadCardRequestTimeout_9Seconds, |
| 876 | std::size(kAutofillUploadCardRequestTimeout_9Seconds), nullptr}}; |
Benjamin Williams | e589c38 | 2024-07-30 12:11:03 | [diff] [blame] | 877 | // LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillUploadCardRequestTimeouts) |
Stephen McGruer | 8fe98b6 | 2024-07-16 13:10:13 | [diff] [blame] | 878 | |
Stephen McGruer | 0904cae | 2024-07-17 19:54:46 | [diff] [blame] | 879 | // LINT.IfChange(AutofillVcnEnrollRequestTimeouts) |
| 880 | const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_5Seconds[] = { |
| 881 | {"autofill_vcn_enroll_request_timeout_milliseconds", "5000"}}; |
| 882 | const FeatureEntry::FeatureParam |
| 883 | kAutofillVcnEnrollRequestTimeout_7Point5Seconds[] = { |
| 884 | {"autofill_vcn_enroll_request_timeout_milliseconds", "7500"}}; |
| 885 | const FeatureEntry::FeatureParam kAutofillVcnEnrollRequestTimeout_10Seconds[] = |
| 886 | {{"autofill_vcn_enroll_request_timeout_milliseconds", "10000"}}; |
| 887 | const FeatureEntry::FeatureVariation kAutofillVcnEnrollRequestTimeoutOptions[] = |
| 888 | {{"5 seconds", kAutofillVcnEnrollRequestTimeout_5Seconds, |
| 889 | std::size(kAutofillVcnEnrollRequestTimeout_5Seconds), nullptr}, |
| 890 | {"7.5 seconds", kAutofillVcnEnrollRequestTimeout_7Point5Seconds, |
| 891 | std::size(kAutofillVcnEnrollRequestTimeout_7Point5Seconds), nullptr}, |
| 892 | {"10 seconds", kAutofillVcnEnrollRequestTimeout_10Seconds, |
| 893 | std::size(kAutofillVcnEnrollRequestTimeout_10Seconds), nullptr}}; |
Benjamin Williams | e589c38 | 2024-07-30 12:11:03 | [diff] [blame] | 894 | // LINT.ThenChange(/chrome/browser/about_flags.cc:AutofillVcnEnrollRequestTimeouts) |
Stephen McGruer | 0904cae | 2024-07-17 19:54:46 | [diff] [blame] | 895 | |
Nicolas MacBeth | c738c4e | 2024-07-19 21:14:19 | [diff] [blame] | 896 | // Contextual Panel flag variations. |
| 897 | const FeatureEntry::FeatureParam kContextualPanelRichIPHArms[] = { |
| 898 | {"entrypoint-highlight-iph", "true"}, |
| 899 | {"entrypoint-rich-iph", "true"}, |
| 900 | }; |
| 901 | const FeatureEntry::FeatureParam kContextualPanelSmallIPHArm[] = { |
| 902 | {"entrypoint-highlight-iph", "false"}, |
| 903 | {"entrypoint-rich-iph", "false"}, |
| 904 | }; |
| 905 | const FeatureEntry::FeatureParam |
| 906 | kContextualPanelSmallIPHWithBlueHighlightArm[] = { |
| 907 | {"entrypoint-highlight-iph", "true"}, |
| 908 | {"entrypoint-rich-iph", "false"}, |
| 909 | }; |
| 910 | |
| 911 | const FeatureEntry::FeatureVariation kContextualPanelEntrypointArmVariations[] = |
| 912 | { |
| 913 | {"- Rich IPH", kContextualPanelRichIPHArms, |
| 914 | std::size(kContextualPanelRichIPHArms), nullptr}, |
| 915 | {"- Small IPH, no blue highlight", kContextualPanelSmallIPHArm, |
| 916 | std::size(kContextualPanelSmallIPHArm), nullptr}, |
| 917 | {"- Small IPH with blue highlight", |
| 918 | kContextualPanelSmallIPHWithBlueHighlightArm, |
| 919 | std::size(kContextualPanelSmallIPHWithBlueHighlightArm), nullptr}, |
| 920 | }; |
| 921 | |
Jood Hajeer | 3867886d | 2024-07-29 16:15:35 | [diff] [blame] | 922 | const FeatureEntry::FeatureParam kIdentityConfirmationSnackbarTestingConfig[] = |
Jood | 562c885f | 2024-09-05 17:06:55 | [diff] [blame] | 923 | {{"IdentityConfirmationMinDisplayInterval1", "0"}, |
| 924 | {"IdentityConfirmationMinDisplayInterval2", "0"}, |
| 925 | {"IdentityConfirmationMinDisplayInterval3", "0"}}; |
Jood Hajeer | 3867886d | 2024-07-29 16:15:35 | [diff] [blame] | 926 | const FeatureEntry::FeatureVariation |
| 927 | kIdentityConfirmationSnackbarTestingVariations[] = { |
| 928 | {" - for testing", kIdentityConfirmationSnackbarTestingConfig, |
| 929 | std::size(kIdentityConfirmationSnackbarTestingConfig), nullptr}}; |
| 930 | |
Chris Lu | 4c688e0 | 2024-09-07 00:48:08 | [diff] [blame] | 931 | const FeatureEntry::FeatureParam kPriceTrackingPromoForceShowArm[] = { |
| 932 | {segmentation_platform::features::kEphemeralCardRankerForceShowCardParam, |
| 933 | segmentation_platform::features::kPriceTrackingPromoForceOverride}, |
| 934 | }; |
| 935 | const FeatureEntry::FeatureParam kPriceTrackingPromoForceHideArm[] = { |
| 936 | {segmentation_platform::features::kEphemeralCardRankerForceHideCardParam, |
| 937 | segmentation_platform::features::kPriceTrackingPromoForceOverride}, |
| 938 | }; |
| 939 | |
| 940 | const FeatureEntry::FeatureVariation kEphemeralCardRankerCardOverrideOptions[] = |
| 941 | { |
| 942 | {"- Force Show Price Tracking Notification", |
| 943 | kPriceTrackingPromoForceShowArm, |
| 944 | std::size(kPriceTrackingPromoForceShowArm), nullptr}, |
| 945 | {"- Force Hide Price Tracking Notification", |
| 946 | kPriceTrackingPromoForceHideArm, |
| 947 | std::size(kPriceTrackingPromoForceHideArm), nullptr}, |
| 948 | }; |
| 949 | |
Hira Mahmood | 00c17e5 | 2024-10-09 14:30:48 | [diff] [blame^] | 950 | const FeatureEntry::FeatureParam |
| 951 | kSendTabIOSPushNotificationsWithMagicStackCard[] = { |
| 952 | {send_tab_to_self::kSendTabIOSPushNotificationsWithMagicStackCardParam, |
| 953 | "true"}}; |
| 954 | const FeatureEntry::FeatureVariation kSendTabIOSPushNotificationsVariations[] = |
| 955 | { |
| 956 | {"With Magic Stack Card", |
| 957 | kSendTabIOSPushNotificationsWithMagicStackCard, |
| 958 | std::size(kSendTabIOSPushNotificationsWithMagicStackCard), nullptr}, |
| 959 | }; |
| 960 | |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 961 | // To add a new entry, add to the end of kFeatureEntries. There are four |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 962 | // distinct types of entries: |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 963 | // . ENABLE_DISABLE_VALUE: entry is either enabled, disabled, or uses the |
| 964 | // default value for this feature. Use the ENABLE_DISABLE_VALUE_TYPE |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 965 | // macro for this type supplying the command line to the macro. |
| 966 | // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
| 967 | // deactivated state for this lab (i.e. no command line option). To specify |
| 968 | // this type of entry use the macro MULTI_VALUE_TYPE supplying it the |
| 969 | // array of choices. |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 970 | // . FEATURE_VALUE: entry is associated with a base::Feature instance. Entry is |
| 971 | // either enabled, disabled, or uses the default value of the associated |
| 972 | // base::Feature instance. To specify this type of entry use the macro |
| 973 | // FEATURE_VALUE_TYPE supplying it the base::Feature instance. |
| 974 | // . FEATURE_WITH_PARAM_VALUES: a list of choices associated with a |
| 975 | // base::Feature instance. Choices corresponding to the default state, a |
| 976 | // universally enabled state, and a universally disabled state are |
| 977 | // automatically included. To specify this type of entry use the macro |
| 978 | // FEATURE_WITH_PARAMS_VALUE_TYPE supplying it the base::Feature instance and |
| 979 | // the array of choices. |
| 980 | // |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 981 | // See the documentation of FeatureEntry for details on the fields. |
| 982 | // |
| 983 | // When adding a new choice, add it to the end of the list. |
| 984 | const flags_ui::FeatureEntry kFeatureEntries[] = { |
Cooper Knaak | 1e02656 | 2017-07-26 05:22:28 | [diff] [blame] | 985 | {"in-product-help-demo-mode-choice", |
| 986 | flag_descriptions::kInProductHelpDemoModeName, |
| 987 | flag_descriptions::kInProductHelpDemoModeDescription, flags_ui::kOsIos, |
| 988 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
Tommy Nyquist | c1d6dea1 | 2017-07-26 20:37:23 | [diff] [blame] | 989 | feature_engagement::kIPHDemoMode, |
| 990 | feature_engagement::kIPHDemoModeChoiceVariations, |
Marc Treib | 2752e8b | 2017-08-04 14:12:09 | [diff] [blame] | 991 | "IPH_DemoMode")}, |
Moe Ahmadi | c3fd7cd | 2018-05-11 21:40:22 | [diff] [blame] | 992 | {"enable-autofill-credit-card-upload", |
| 993 | flag_descriptions::kAutofillCreditCardUploadName, |
| 994 | flag_descriptions::kAutofillCreditCardUploadDescription, flags_ui::kOsIos, |
Anne Lim | 579b573 | 2018-08-30 18:24:24 | [diff] [blame] | 995 | FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)}, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 996 | {"use-sync-sandbox", flag_descriptions::kSyncSandboxName, |
| 997 | flag_descriptions::kSyncSandboxDescription, flags_ui::kOsIos, |
| 998 | SINGLE_VALUE_TYPE_AND_VALUE( |
Victor Hugo Vianna Silva | 3cd7ae9 | 2022-02-09 20:49:51 | [diff] [blame] | 999 | syncer::kSyncServiceURL, |
Moe Ahmadi | d6d5d17 | 2018-06-20 17:20:23 | [diff] [blame] | 1000 | "https://chrome-sync.sandbox.google.com/chrome-sync/alpha")}, |
| 1001 | {"wallet-service-use-sandbox", |
| 1002 | flag_descriptions::kWalletServiceUseSandboxName, |
| 1003 | flag_descriptions::kWalletServiceUseSandboxDescription, flags_ui::kOsIos, |
| 1004 | ENABLE_DISABLE_VALUE_TYPE_AND_VALUE( |
| 1005 | autofill::switches::kWalletServiceUseSandbox, |
| 1006 | "1", |
| 1007 | autofill::switches::kWalletServiceUseSandbox, |
| 1008 | "0")}, |
Mohamad Ahmadi | c4df81f | 2017-12-20 04:41:59 | [diff] [blame] | 1009 | {"show-autofill-type-predictions", |
| 1010 | flag_descriptions::kShowAutofillTypePredictionsName, |
| 1011 | flag_descriptions::kShowAutofillTypePredictionsDescription, |
| 1012 | flags_ui::kOsIos, |
Florian Leimgruber | f53ca39 | 2023-02-21 15:56:50 | [diff] [blame] | 1013 | FEATURE_VALUE_TYPE( |
| 1014 | autofill::features::test::kAutofillShowTypePredictions)}, |
Benjamin Williams | df18e7e | 2022-10-03 18:46:05 | [diff] [blame] | 1015 | {"fullscreen-promos-manager-skip-internal-limits", |
| 1016 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsName, |
| 1017 | flag_descriptions::kFullscreenPromosManagerSkipInternalLimitsDescription, |
| 1018 | flags_ui::kOsIos, |
| 1019 | FEATURE_VALUE_TYPE(kFullscreenPromosManagerSkipInternalLimits)}, |
Kurt Horimoto | dc33af3 | 2018-05-01 01:39:14 | [diff] [blame] | 1020 | {"fullscreen-viewport-adjustment-experiment", |
Chris Lu | 481a932 | 2019-09-25 22:16:53 | [diff] [blame] | 1021 | flag_descriptions::kFullscreenSmoothScrollingName, |
| 1022 | flag_descriptions::kFullscreenSmoothScrollingDescription, flags_ui::kOsIos, |
Aliona DANGLA | 4e3b473 | 2023-03-22 09:35:19 | [diff] [blame] | 1023 | FEATURE_VALUE_TYPE(web::features::kSmoothScrollingDefault)}, |
Robbie Gibson | 1f37a5e | 2020-08-06 17:03:06 | [diff] [blame] | 1024 | {"webpage-default-zoom-from-dynamic-type", |
| 1025 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeName, |
| 1026 | flag_descriptions::kWebPageDefaultZoomFromDynamicTypeDescription, |
| 1027 | flags_ui::kOsIos, |
| 1028 | FEATURE_VALUE_TYPE(web::kWebPageDefaultZoomFromDynamicType)}, |
Robbie Gibson | 88f2396 | 2020-09-28 14:35:56 | [diff] [blame] | 1029 | {"webpage-alternative-text-zoom", |
| 1030 | flag_descriptions::kWebPageAlternativeTextZoomName, |
| 1031 | flag_descriptions::kWebPageAlternativeTextZoomDescription, |
| 1032 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(web::kWebPageAlternativeTextZoom)}, |
Robbie Gibson | 1095b72c | 2022-06-06 17:03:34 | [diff] [blame] | 1033 | {"webpage-text-zoom-ipad", flag_descriptions::kWebPageTextZoomIPadName, |
| 1034 | flag_descriptions::kWebPageTextZoomIPadDescription, flags_ui::kOsIos, |
| 1035 | FEATURE_VALUE_TYPE(web::kWebPageTextZoomIPad)}, |
Stepan Khapugin | cc4e984 | 2019-01-23 13:38:13 | [diff] [blame] | 1036 | {"omnibox-ui-max-autocomplete-matches", |
| 1037 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesName, |
| 1038 | flag_descriptions::kOmniboxUIMaxAutocompleteMatchesDescription, |
| 1039 | flags_ui::kOsIos, |
| 1040 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1041 | omnibox::kUIExperimentMaxAutocompleteMatches, |
| 1042 | kOmniboxUIMaxAutocompleteMatchesVariations, |
| 1043 | "OmniboxUIMaxAutocompleteVariations")}, |
Moe Ahmadi | 01028f2 | 2022-08-06 17:57:35 | [diff] [blame] | 1044 | {"omnibox-local-history-zero-suggest-beyond-ntp", |
| 1045 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPName, |
| 1046 | flag_descriptions::kOmniboxLocalHistoryZeroSuggestBeyondNTPDescription, |
| 1047 | flags_ui::kOsIos, |
| 1048 | FEATURE_VALUE_TYPE(omnibox::kLocalHistoryZeroSuggestBeyondNTP)}, |
Stepan Khapugin | bac467e | 2022-05-06 21:11:54 | [diff] [blame] | 1049 | {"omnibox-max-zps-matches", flag_descriptions::kOmniboxMaxZPSMatchesName, |
| 1050 | flag_descriptions::kOmniboxMaxZPSMatchesDescription, flags_ui::kOsIos, |
| 1051 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMaxZeroSuggestMatches, |
| 1052 | kOmniboxMaxZPSMatchesVariations, |
| 1053 | "OmniboxMaxZPSVariations")}, |
Jérôme Lebel | c374fdd | 2019-09-27 10:36:48 | [diff] [blame] | 1054 | {"force-startup-signin-promo", |
| 1055 | flag_descriptions::kForceStartupSigninPromoName, |
| 1056 | flag_descriptions::kForceStartupSigninPromoDescription, flags_ui::kOsIos, |
Alice Wang | 345e0944 | 2021-07-05 09:03:29 | [diff] [blame] | 1057 | FEATURE_VALUE_TYPE(switches::kForceStartupSigninPromo)}, |
Tommy Martino | 6b4eb7e | 2020-06-25 18:25:41 | [diff] [blame] | 1058 | {"shared-highlighting-ios", flag_descriptions::kSharedHighlightingIOSName, |
| 1059 | flag_descriptions::kSharedHighlightingIOSDescription, flags_ui::kOsIos, |
| 1060 | FEATURE_VALUE_TYPE(kSharedHighlightingIOS)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 1061 | #if BUILDFLAG(IOS_SCREEN_TIME_ENABLED) |
edchin | 81467b8 | 2020-09-03 19:31:45 | [diff] [blame] | 1062 | {"screen-time-integration-ios", |
| 1063 | flag_descriptions::kScreenTimeIntegrationName, |
| 1064 | flag_descriptions::kScreenTimeIntegrationDescription, flags_ui::kOsIos, |
| 1065 | FEATURE_VALUE_TYPE(kScreenTimeIntegration)}, |
Sylvain Defresne | 9c10708 | 2020-10-27 16:39:13 | [diff] [blame] | 1066 | #endif |
Nazerke | 3e993f7 | 2020-09-21 13:00:06 | [diff] [blame] | 1067 | {"modern-tab-strip", flag_descriptions::kModernTabStripName, |
| 1068 | flag_descriptions::kModernTabStripDescription, flags_ui::kOsIos, |
Ewann Pelle | c8634ab | 2024-02-23 16:50:35 | [diff] [blame] | 1069 | FEATURE_WITH_PARAMS_VALUE_TYPE(kModernTabStrip, |
| 1070 | kModernTabStripVariations, |
| 1071 | "ModernTabStrip")}, |
Cheick Cisse | 76ade3d | 2020-12-16 00:15:11 | [diff] [blame] | 1072 | {"ios-shared-highlighting-color-change", |
| 1073 | flag_descriptions::kIOSSharedHighlightingColorChangeName, |
| 1074 | flag_descriptions::kIOSSharedHighlightingColorChangeDescription, |
Cheick Cisse | d0b5bfe | 2021-02-11 14:23:07 | [diff] [blame] | 1075 | flags_ui::kOsIos, |
| 1076 | FEATURE_VALUE_TYPE(web::features::kIOSSharedHighlightingColorChange)}, |
Cheick Cisse | fe99486 | 2021-12-15 16:01:34 | [diff] [blame] | 1077 | {"ios-shared-highlighting-v2", |
| 1078 | flag_descriptions::kIOSSharedHighlightingV2Name, |
| 1079 | flag_descriptions::kIOSSharedHighlightingV2Description, flags_ui::kOsIos, |
| 1080 | FEATURE_VALUE_TYPE(shared_highlighting::kIOSSharedHighlightingV2)}, |
Scott Yoder | c0cd99d | 2024-01-10 19:54:51 | [diff] [blame] | 1081 | {"ios-tips-notifications", flag_descriptions::kIOSTipsNotificationsName, |
| 1082 | flag_descriptions::kIOSTipsNotificationsDescription, flags_ui::kOsIos, |
Scott Yoder | af2bdf3 | 2024-01-30 20:26:15 | [diff] [blame] | 1083 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSTipsNotifications, |
| 1084 | kIOSTipsNotificationsVariations, |
| 1085 | "IOSTipsNotifications")}, |
gogerald | 0ff29e5 | 2021-02-03 18:56:19 | [diff] [blame] | 1086 | {"start-surface", flag_descriptions::kStartSurfaceName, |
| 1087 | flag_descriptions::kStartSurfaceDescription, flags_ui::kOsIos, |
gogerald | 0e39e3aa | 2021-02-10 18:41:23 | [diff] [blame] | 1088 | FEATURE_WITH_PARAMS_VALUE_TYPE(kStartSurface, |
| 1089 | kStartSurfaceVariations, |
| 1090 | "StartSurface")}, |
Nohemi Fernandez | c00842a | 2021-07-26 11:47:34 | [diff] [blame] | 1091 | {"wait-threshold-seconds-for-capabilities-api", |
| 1092 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiName, |
| 1093 | flag_descriptions::kWaitThresholdMillisecondsForCapabilitiesApiDescription, |
| 1094 | flags_ui::kOsIos, |
| 1095 | MULTI_VALUE_TYPE(kWaitThresholdMillisecondsForCapabilitiesApiChoices)}, |
Tina Wang | 686fa00 | 2024-05-18 10:10:06 | [diff] [blame] | 1096 | {"content-notification-experiment", |
| 1097 | flag_descriptions::kContentNotificationExperimentName, |
| 1098 | flag_descriptions::kContentNotificationExperimentDescription, |
| 1099 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContentNotificationExperiment)}, |
Tina Wang | 1cc9f47 | 2024-05-30 20:51:25 | [diff] [blame] | 1100 | {"content-notification-provisional-ignore-conditions", |
| 1101 | flag_descriptions::kContentNotificationProvisionalIgnoreConditionsName, |
| 1102 | flag_descriptions:: |
| 1103 | kContentNotificationProvisionalIgnoreConditionsDescription, |
| 1104 | flags_ui::kOsIos, |
| 1105 | FEATURE_VALUE_TYPE(kContentNotificationProvisionalIgnoreConditions)}, |
Guillem Perez | 49e1df4 | 2023-08-23 22:15:24 | [diff] [blame] | 1106 | {"content-push-notifications", |
| 1107 | flag_descriptions::kContentPushNotificationsName, |
| 1108 | flag_descriptions::kContentPushNotificationsDescription, flags_ui::kOsIos, |
Guillem Perez | 40086ef | 2023-11-20 20:03:52 | [diff] [blame] | 1109 | FEATURE_WITH_PARAMS_VALUE_TYPE(kContentPushNotifications, |
| 1110 | kContentPushNotificationsVariations, |
| 1111 | "ContentPushNotifications")}, |
Jason Hu | 67cfb0f | 2022-11-14 20:21:44 | [diff] [blame] | 1112 | {"enable-lens-in-omnibox-copied-image", |
| 1113 | flag_descriptions::kEnableLensInOmniboxCopiedImageName, |
| 1114 | flag_descriptions::kEnableLensInOmniboxCopiedImageDescription, |
| 1115 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableLensInOmniboxCopiedImage)}, |
Radu Nitescu | ab5bf73 | 2024-09-18 14:07:40 | [diff] [blame] | 1116 | {"enable-lens-overlay", flag_descriptions::kEnableLensOverlayName, |
| 1117 | flag_descriptions::kEnableLensOverlayDescription, flags_ui::kOsIos, |
| 1118 | FEATURE_VALUE_TYPE(kEnableLensOverlay)}, |
Sergio Collazos | 9fcc6ed | 2021-10-06 00:58:03 | [diff] [blame] | 1119 | {"enable-disco-feed-endpoint", |
| 1120 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointName, |
| 1121 | flag_descriptions::kEnableDiscoverFeedDiscoFeedEndpointDescription, |
| 1122 | flags_ui::kOsIos, |
Aliona DANGLA | 8fae66f0 | 2021-10-06 15:47:11 | [diff] [blame] | 1123 | FEATURE_VALUE_TYPE(kEnableDiscoverFeedDiscoFeedEndpoint)}, |
Tommy Martino | 7393d76 | 2021-10-12 17:59:28 | [diff] [blame] | 1124 | {"shared-highlighting-amp", |
| 1125 | flag_descriptions::kIOSSharedHighlightingAmpName, |
| 1126 | flag_descriptions::kIOSSharedHighlightingAmpDescription, flags_ui::kOsIos, |
| 1127 | FEATURE_VALUE_TYPE(shared_highlighting::kSharedHighlightingAmp)}, |
David Maunder | f4a5e1e | 2021-10-18 17:24:28 | [diff] [blame] | 1128 | {"enable-commerce-price-tracking", |
Matt Jones | 125dfb4 | 2022-02-11 17:23:42 | [diff] [blame] | 1129 | commerce::flag_descriptions::kCommercePriceTrackingName, |
| 1130 | commerce::flag_descriptions::kCommercePriceTrackingDescription, |
| 1131 | flags_ui::kOsIos, |
| 1132 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kCommercePriceTracking, |
| 1133 | commerce::kCommercePriceTrackingVariations, |
adamta | 67b6c581 | 2021-10-19 17:02:15 | [diff] [blame] | 1134 | "CommercePriceTracking")}, |
Matt Jones | 2e47b969 | 2024-02-23 21:56:43 | [diff] [blame] | 1135 | {"track-by-default-mobile", |
| 1136 | commerce::flag_descriptions::kTrackByDefaultOnMobileName, |
| 1137 | commerce::flag_descriptions::kTrackByDefaultOnMobileDescription, |
| 1138 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(commerce::kTrackByDefaultOnMobile)}, |
adamta | 250f4ad | 2023-08-02 15:26:06 | [diff] [blame] | 1139 | {"web-feed-ios", flag_descriptions::kEnableWebChannelsName, |
| 1140 | flag_descriptions::kEnableWebChannelsDescription, flags_ui::kOsIos, |
| 1141 | FEATURE_VALUE_TYPE(kEnableWebChannels)}, |
adamta | 3933159 | 2021-11-01 20:18:54 | [diff] [blame] | 1142 | {"ntp-view-hierarchy-repair", |
| 1143 | flag_descriptions::kNTPViewHierarchyRepairName, |
| 1144 | flag_descriptions::kNTPViewHierarchyRepairDescription, flags_ui::kOsIos, |
adamta | 8da8dce | 2022-11-17 18:03:20 | [diff] [blame] | 1145 | FEATURE_VALUE_TYPE(kEnableNTPViewHierarchyRepair)}, |
Cheick Cisse | 39b6a18 | 2024-05-29 15:13:44 | [diff] [blame] | 1146 | {"price-insights", commerce::flag_descriptions::kPriceInsightsName, |
| 1147 | commerce::flag_descriptions::kPriceInsightsDescription, flags_ui::kOsIos, |
| 1148 | FEATURE_VALUE_TYPE(commerce::kPriceInsights)}, |
Cheick Cisse | 7c03928d | 2024-03-11 23:27:38 | [diff] [blame] | 1149 | {"price-insights-ios", commerce::flag_descriptions::kPriceInsightsIosName, |
| 1150 | commerce::flag_descriptions::kPriceInsightsIosDescription, |
Cheick Cisse | 85457f2 | 2024-05-23 22:37:59 | [diff] [blame] | 1151 | flags_ui::kOsIos, |
| 1152 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kPriceInsightsIos, |
| 1153 | kPriceInsightsVariations, |
| 1154 | "PriceInsightsIos")}, |
| 1155 | {"price-insights-high-price-ios", |
| 1156 | commerce::flag_descriptions::kPriceInsightsHighPriceIosName, |
| 1157 | commerce::flag_descriptions::kPriceInsightsHighPriceIosDescription, |
| 1158 | flags_ui::kOsIos, |
| 1159 | FEATURE_VALUE_TYPE(commerce::kPriceInsightsHighPriceIos)}, |
Vishwas Uppoor | 89303a9 | 2022-08-03 00:56:26 | [diff] [blame] | 1160 | {"autofill-enable-card-product-name", |
| 1161 | flag_descriptions::kAutofillEnableCardProductNameName, |
| 1162 | flag_descriptions::kAutofillEnableCardProductNameDescription, |
| 1163 | flags_ui::kOsIos, |
| 1164 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardProductName)}, |
Raj T | b95d81354 | 2022-11-16 21:27:52 | [diff] [blame] | 1165 | {"enable-download-service-foreground-session", |
| 1166 | flag_descriptions::kDownloadServiceForegroundSessionName, |
| 1167 | flag_descriptions::kDownloadServiceForegroundSessionDescription, |
| 1168 | flags_ui::kOsIos, |
| 1169 | FEATURE_VALUE_TYPE(download::kDownloadServiceForegroundSessionIOSFeature)}, |
Olivier Robin | ffe767c | 2022-04-21 13:13:23 | [diff] [blame] | 1170 | {"enable-tflite-language-detection", |
| 1171 | flag_descriptions::kTFLiteLanguageDetectionName, |
| 1172 | flag_descriptions::kTFLiteLanguageDetectionDescription, flags_ui::kOsIos, |
| 1173 | FEATURE_VALUE_TYPE(translate::kTFLiteLanguageDetectionEnabled)}, |
Raj T | a921ffc | 2022-08-25 19:00:20 | [diff] [blame] | 1174 | {"optimization-guide-debug-logs", |
| 1175 | flag_descriptions::kOptimizationGuideDebugLogsName, |
| 1176 | flag_descriptions::kOptimizationGuideDebugLogsDescription, |
| 1177 | flags_ui::kOsIos, |
| 1178 | SINGLE_VALUE_TYPE(optimization_guide::switches::kDebugLoggingEnabled)}, |
Daniel White | d02b696 | 2023-02-14 14:19:55 | [diff] [blame] | 1179 | {"optimization-guide-push-notifications", |
| 1180 | flag_descriptions::kOptimizationGuidePushNotificationClientName, |
| 1181 | flag_descriptions::kOptimizationGuidePushNotificationClientDescription, |
| 1182 | flags_ui::kOsIos, |
| 1183 | FEATURE_VALUE_TYPE(optimization_guide::features::kPushNotifications)}, |
David Jean | ad303a9 | 2023-07-31 16:58:11 | [diff] [blame] | 1184 | {"intents-on-measurements", flag_descriptions::kMeasurementsName, |
| 1185 | flag_descriptions::kMeasurementsDescription, flags_ui::kOsIos, |
| 1186 | FEATURE_VALUE_TYPE(web::features::kEnableMeasurements)}, |
David Jean | ea886ba | 2024-01-17 11:50:22 | [diff] [blame] | 1187 | {"intents-on-viewport", flag_descriptions::kEnableViewportIntentsName, |
| 1188 | flag_descriptions::kEnableViewportIntentsDescription, flags_ui::kOsIos, |
| 1189 | FEATURE_VALUE_TYPE(web::features::kEnableViewportIntents)}, |
David Jean | dcc3e20 | 2024-05-22 08:36:33 | [diff] [blame] | 1190 | {"improve-parcel-detection", |
| 1191 | flag_descriptions::kEnableNewParcelTrackingNumberDetectionName, |
| 1192 | flag_descriptions::kEnableNewParcelTrackingNumberDetectionDescription, |
| 1193 | flags_ui::kOsIos, |
| 1194 | FEATURE_VALUE_TYPE( |
| 1195 | web::features::kEnableNewParcelTrackingNumberDetection)}, |
David Jean | f361ae9d | 2024-04-09 08:19:47 | [diff] [blame] | 1196 | {"enable-expkit-text-classifier-date", |
| 1197 | flag_descriptions::kEnableExpKitTextClassifierDateName, |
| 1198 | flag_descriptions::kEnableExpKitTextClassifierDateDescription, |
| 1199 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableExpKitTextClassifierDate)}, |
| 1200 | {"enable-expkit-text-classifier-address", |
| 1201 | flag_descriptions::kEnableExpKitTextClassifierAddressName, |
| 1202 | flag_descriptions::kEnableExpKitTextClassifierAddressDescription, |
Raj T | 18a2c8c | 2023-03-15 17:20:15 | [diff] [blame] | 1203 | flags_ui::kOsIos, |
David Jean | f361ae9d | 2024-04-09 08:19:47 | [diff] [blame] | 1204 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1205 | kEnableExpKitTextClassifierAddress, |
| 1206 | kEnableExpKitTextClassifierAddressVariations, |
| 1207 | "ExpKitTextClassifierAddress")}, |
| 1208 | {"enable-expkit-text-classifier-phonenumber", |
| 1209 | flag_descriptions::kEnableExpKitTextClassifierPhoneNumberName, |
| 1210 | flag_descriptions::kEnableExpKitTextClassifierPhoneNumberDescription, |
| 1211 | flags_ui::kOsIos, |
| 1212 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1213 | kEnableExpKitTextClassifierPhoneNumber, |
| 1214 | kEnableExpKitTextClassifierPhoneNumberVariations, |
| 1215 | "ExpKitTextClassifierPhoneNumber")}, |
| 1216 | {"enable-expkit-text-classifier-email", |
| 1217 | flag_descriptions::kEnableExpKitTextClassifierEmailName, |
| 1218 | flag_descriptions::kEnableExpKitTextClassifierEmailDescription, |
| 1219 | flags_ui::kOsIos, |
| 1220 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableExpKitTextClassifierEmail, |
| 1221 | kEnableExpKitTextClassifierEmailVariations, |
| 1222 | "ExpKitTextClassifierEmail")}, |
Elmehdi Rahmaoui | 458f4a2 | 2023-02-14 15:13:33 | [diff] [blame] | 1223 | {"one-tap-experience-maps", flag_descriptions::kOneTapForMapsName, |
| 1224 | flag_descriptions::kOneTapForMapsDescription, flags_ui::kOsIos, |
Olivier ROBIN | 82b6700 | 2023-07-31 14:34:46 | [diff] [blame] | 1225 | FEATURE_WITH_PARAMS_VALUE_TYPE(web::features::kOneTapForMaps, |
| 1226 | kOneTapForMapsWithVariations, |
| 1227 | "OneTapForMaps")}, |
Mustafa Emre Acer | b8bb01f | 2022-07-20 19:43:25 | [diff] [blame] | 1228 | {"omnibox-https-upgrades", flag_descriptions::kOmniboxHttpsUpgradesName, |
| 1229 | flag_descriptions::kOmniboxHttpsUpgradesDescription, flags_ui::kOsIos, |
| 1230 | FEATURE_VALUE_TYPE(omnibox::kDefaultTypedNavigationsToHttps)}, |
Alexander Tekle | b464381 | 2023-01-06 23:12:30 | [diff] [blame] | 1231 | {"autofill-enable-ranking-formula-address-profiles", |
| 1232 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesName, |
| 1233 | flag_descriptions::kAutofillEnableRankingFormulaAddressProfilesDescription, |
| 1234 | flags_ui::kOsIos, |
| 1235 | FEATURE_VALUE_TYPE( |
| 1236 | autofill::features::kAutofillEnableRankingFormulaAddressProfiles)}, |
Alexander Tekle | 35dfbbd | 2023-01-31 08:32:39 | [diff] [blame] | 1237 | {"autofill-enable-ranking-formula-credit-cards", |
| 1238 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsName, |
| 1239 | flag_descriptions::kAutofillEnableRankingFormulaCreditCardsDescription, |
| 1240 | flags_ui::kOsIos, |
| 1241 | FEATURE_VALUE_TYPE( |
| 1242 | autofill::features::kAutofillEnableRankingFormulaCreditCards)}, |
Sergio Collazos | 5855871 | 2022-05-18 17:24:02 | [diff] [blame] | 1243 | {"enable-feed-ablation", flag_descriptions::kEnableFeedAblationName, |
| 1244 | flag_descriptions::kEnableFeedAblationDescription, flags_ui::kOsIos, |
| 1245 | FEATURE_VALUE_TYPE(kEnableFeedAblation)}, |
Chris Lu | c36e396 | 2023-04-11 21:50:52 | [diff] [blame] | 1246 | {"content-suggestions-magic-stack", flag_descriptions::kMagicStackName, |
| 1247 | flag_descriptions::kMagicStackDescription, flags_ui::kOsIos, |
Chris Lu | ce928eb | 2023-05-12 21:36:26 | [diff] [blame] | 1248 | FEATURE_WITH_PARAMS_VALUE_TYPE(kMagicStack, |
| 1249 | kMagicStackVariations, |
| 1250 | flag_descriptions::kMagicStackName)}, |
Alexis Hetu | ec9d70c | 2023-11-13 16:27:31 | [diff] [blame] | 1251 | {"ios-keyboard-accessory-upgrade", |
| 1252 | flag_descriptions::kIOSKeyboardAccessoryUpgradeName, |
| 1253 | flag_descriptions::kIOSKeyboardAccessoryUpgradeDescription, |
| 1254 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgrade)}, |
Noémie St-Onge | 9da904ef | 2024-10-01 14:16:05 | [diff] [blame] | 1255 | {"ios-keyboard-accessory-upgrade-short-manual-fill-menu", |
| 1256 | flag_descriptions::kIOSKeyboardAccessoryUpgradeShortManualFillMenuName, |
| 1257 | flag_descriptions:: |
| 1258 | kIOSKeyboardAccessoryUpgradeShortManualFillMenuDescription, |
| 1259 | flags_ui::kOsIos, |
| 1260 | FEATURE_VALUE_TYPE(kIOSKeyboardAccessoryUpgradeShortManualFillMenu)}, |
Scott Yoder | 7b9e51f | 2023-09-13 23:47:26 | [diff] [blame] | 1261 | {"ios-large-fakebox", flag_descriptions::kIOSLargeFakeboxName, |
| 1262 | flag_descriptions::kIOSLargeFakeboxDescription, flags_ui::kOsIos, |
| 1263 | FEATURE_VALUE_TYPE(kIOSLargeFakebox)}, |
Chris Lu | b0bad57 | 2023-08-07 18:13:29 | [diff] [blame] | 1264 | {"ios-magic-stack-segmentation-ranking", |
| 1265 | flag_descriptions::kSegmentationPlatformIosModuleRankerName, |
| 1266 | flag_descriptions::kSegmentationPlatformIosModuleRankerDescription, |
| 1267 | flags_ui::kOsIos, |
Chris Lu | 6fd4eaf | 2023-08-08 18:29:30 | [diff] [blame] | 1268 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1269 | segmentation_platform::features::kSegmentationPlatformIosModuleRanker, |
| 1270 | kSegmentationPlatformIosModuleRankerVariations, |
| 1271 | flag_descriptions::kSegmentationPlatformIosModuleRankerName)}, |
Chris Lu | 63aa394 | 2024-05-10 22:15:32 | [diff] [blame] | 1272 | {"ios-magic-stack-segmentation-ranking-caching", |
| 1273 | flag_descriptions::kSegmentationPlatformIosModuleRankerCachingName, |
| 1274 | flag_descriptions::kSegmentationPlatformIosModuleRankerCachingDescription, |
| 1275 | flags_ui::kOsIos, |
| 1276 | FEATURE_VALUE_TYPE(kSegmentationPlatformIosModuleRankerCaching)}, |
Chris Lu | 9e4f17b | 2024-05-09 00:54:11 | [diff] [blame] | 1277 | {"ios-magic-stack-segmentation-ranking-split-by-surface", |
| 1278 | flag_descriptions::kSegmentationPlatformIosModuleRankerSplitBySurfaceName, |
| 1279 | flag_descriptions:: |
| 1280 | kSegmentationPlatformIosModuleRankerSplitBySurfaceDescription, |
| 1281 | flags_ui::kOsIos, |
| 1282 | FEATURE_VALUE_TYPE( |
| 1283 | segmentation_platform::features:: |
| 1284 | kSegmentationPlatformIosModuleRankerSplitBySurface)}, |
Olivier Robin | 058c1fad | 2022-05-31 18:24:06 | [diff] [blame] | 1285 | {"default-browser-intents-show-settings", |
| 1286 | flag_descriptions::kDefaultBrowserIntentsShowSettingsName, |
| 1287 | flag_descriptions::kDefaultBrowserIntentsShowSettingsDescription, |
| 1288 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDefaultBrowserIntentsShowSettings)}, |
Alexis Hetu | 5e72660 | 2023-12-15 15:18:28 | [diff] [blame] | 1289 | {"ios-password-bottom-sheet-autofocus", |
| 1290 | flag_descriptions::kIOSPasswordBottomSheetAutofocusName, |
| 1291 | flag_descriptions::kIOSPasswordBottomSheetAutofocusDescription, |
| 1292 | flags_ui::kOsIos, |
| 1293 | FEATURE_VALUE_TYPE( |
| 1294 | password_manager::features::kIOSPasswordBottomSheetAutofocus)}, |
Charlotte Cloutier | 18f0a536 | 2024-07-16 13:23:04 | [diff] [blame] | 1295 | {"ios-proactive-password-generation-bottom-sheet", |
| 1296 | flag_descriptions::kIOSProactivePasswordGenerationBottomSheetName, |
| 1297 | flag_descriptions::kIOSProactivePasswordGenerationBottomSheetDescription, |
| 1298 | flags_ui::kOsIos, |
| 1299 | FEATURE_VALUE_TYPE(password_manager::features:: |
| 1300 | kIOSProactivePasswordGenerationBottomSheet)}, |
Alexis Hetu | 0677e18 | 2024-04-10 16:07:37 | [diff] [blame] | 1301 | {"sync-webauthn-credentials", |
| 1302 | flag_descriptions::kSyncWebauthnCredentialsName, |
| 1303 | flag_descriptions::kSyncWebauthnCredentialsDescription, flags_ui::kOsIos, |
| 1304 | FEATURE_VALUE_TYPE(syncer::kSyncWebauthnCredentials)}, |
Moe Ahmadi | 098519d8 | 2022-07-27 18:34:24 | [diff] [blame] | 1305 | {"omnibox-zero-suggest-prefetching", |
| 1306 | flag_descriptions::kOmniboxZeroSuggestPrefetchingName, |
| 1307 | flag_descriptions::kOmniboxZeroSuggestPrefetchingDescription, |
| 1308 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetching)}, |
Khalid Peer | 79df565 | 2022-10-26 21:59:45 | [diff] [blame] | 1309 | {"omnibox-zero-suggest-prefetching-on-srp", |
| 1310 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPName, |
| 1311 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnSRPDescription, |
| 1312 | flags_ui::kOsIos, |
| 1313 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnSRP)}, |
| 1314 | {"omnibox-zero-suggest-prefetching-on-web", |
| 1315 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebName, |
| 1316 | flag_descriptions::kOmniboxZeroSuggestPrefetchingOnWebDescription, |
| 1317 | flags_ui::kOsIos, |
| 1318 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestPrefetchingOnWeb)}, |
Khalid Peer | 11b4b2c | 2022-10-12 20:53:47 | [diff] [blame] | 1319 | {"omnibox-zero-suggest-in-memory-caching", |
| 1320 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingName, |
| 1321 | flag_descriptions::kOmniboxZeroSuggestInMemoryCachingDescription, |
| 1322 | flags_ui::kOsIos, |
| 1323 | FEATURE_VALUE_TYPE(omnibox::kZeroSuggestInMemoryCaching)}, |
Ce Chen | bdfaed2 | 2022-10-20 16:08:35 | [diff] [blame] | 1324 | {"omnibox-on-device-tail-suggestions", |
| 1325 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsName, |
| 1326 | flag_descriptions::kOmniboxOnDeviceTailSuggestionsDescription, |
| 1327 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kOnDeviceTailModel)}, |
Christian Xu | cf26d56 | 2022-07-06 09:28:36 | [diff] [blame] | 1328 | {"omnibox-max-url-matches", flag_descriptions::kOmniboxMaxURLMatchesName, |
| 1329 | flag_descriptions::kOmniboxMaxURLMatchesDescription, flags_ui::kOsIos, |
| 1330 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kOmniboxMaxURLMatches, |
| 1331 | kOmniboxMaxURLMatchesVariations, |
| 1332 | "OmniboxMaxURLMatches")}, |
Stepan Khapugin | 1f83c5ae | 2024-01-31 15:55:20 | [diff] [blame] | 1333 | {"omnibox-most-visited-tiles-horizontal-render-group", |
| 1334 | flag_descriptions::kMostVisitedTilesHorizontalRenderGroupName, |
| 1335 | flag_descriptions::kMostVisitedTilesHorizontalRenderGroupDescription, |
| 1336 | flags_ui::kOsIos, |
| 1337 | FEATURE_VALUE_TYPE(omnibox::kMostVisitedTilesHorizontalRenderGroup)}, |
Olivier Robin | 60d3a06 | 2022-07-06 17:34:06 | [diff] [blame] | 1338 | {"metrickit-non-crash-reports", |
| 1339 | flag_descriptions::kMetrickitNonCrashReportName, |
| 1340 | flag_descriptions::kMetrickitNonCrashReportDescription, flags_ui::kOsIos, |
| 1341 | FEATURE_VALUE_TYPE(kMetrickitNonCrashReport)}, |
Nakul Vaidya | 13ca204 | 2022-07-27 01:59:55 | [diff] [blame] | 1342 | {"autofill-parse-vcn-card-on-file-standalone-cvc-fields", |
| 1343 | flag_descriptions::kAutofillParseVcnCardOnFileStandaloneCvcFieldsName, |
| 1344 | flag_descriptions:: |
| 1345 | kAutofillParseVcnCardOnFileStandaloneCvcFieldsDescription, |
| 1346 | flags_ui::kOsIos, |
| 1347 | FEATURE_VALUE_TYPE( |
| 1348 | autofill::features::kAutofillParseVcnCardOnFileStandaloneCvcFields)}, |
Gayane Petrosyan | 5960a17 | 2023-06-19 15:40:17 | [diff] [blame] | 1349 | {"default-browser-promo-trigger-criteria-experiment", |
| 1350 | flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentName, |
| 1351 | flag_descriptions::kDefaultBrowserTriggerCriteriaExperimentDescription, |
| 1352 | flags_ui::kOsIos, |
Gayane Petrosyan | 01f71178 | 2024-02-21 23:00:21 | [diff] [blame] | 1353 | FEATURE_VALUE_TYPE( |
| 1354 | feature_engagement::kDefaultBrowserTriggerCriteriaExperiment)}, |
Gayane Petrosyan | cffeda1 | 2024-09-17 17:10:37 | [diff] [blame] | 1355 | {"blue-dot-on-tools-menu-button", |
| 1356 | flag_descriptions::kBlueDotOnToolsMenuButtonName, |
| 1357 | flag_descriptions::kBlueDotOnToolsMenuButtonDescription, flags_ui::kOsIos, |
| 1358 | FEATURE_VALUE_TYPE(kBlueDotOnToolsMenuButton)}, |
Ed Chin | 91e4499 | 2022-07-27 13:42:34 | [diff] [blame] | 1359 | #if BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
| 1360 | {"feed-background-refresh-ios", |
| 1361 | flag_descriptions::kFeedBackgroundRefreshName, |
| 1362 | flag_descriptions::kFeedBackgroundRefreshDescription, flags_ui::kOsIos, |
| 1363 | FEATURE_WITH_PARAMS_VALUE_TYPE(kEnableFeedBackgroundRefresh, |
| 1364 | kFeedBackgroundRefreshVariations, |
| 1365 | "FeedBackgroundRefresh")}, |
Ed Chin | 178ec2a | 2023-02-10 22:21:26 | [diff] [blame] | 1366 | #endif // BUILDFLAG(IOS_BACKGROUND_MODE_ENABLED) |
Petro Akzhygitov | 2e2322e | 2023-04-25 16:26:57 | [diff] [blame] | 1367 | {"tab-grid-new-transitions", flag_descriptions::kTabGridNewTransitionsName, |
| 1368 | flag_descriptions::kTabGridNewTransitionsDescription, flags_ui::kOsIos, |
| 1369 | FEATURE_VALUE_TYPE(kTabGridNewTransitions)}, |
Daniel White | ae1cb67 | 2022-12-14 18:25:25 | [diff] [blame] | 1370 | {"iph-price-notifications-while-browsing", |
| 1371 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingName, |
| 1372 | flag_descriptions::kIPHPriceNotificationsWhileBrowsingDescription, |
| 1373 | flags_ui::kOsIos, |
| 1374 | FEATURE_VALUE_TYPE( |
| 1375 | feature_engagement::kIPHPriceNotificationsWhileBrowsingFeature)}, |
Ewann Pelle | dec2d04 | 2023-01-25 15:28:39 | [diff] [blame] | 1376 | {"shopping-list", commerce::flag_descriptions::kShoppingListName, |
| 1377 | commerce::flag_descriptions::kShoppingListDescription, flags_ui::kOsIos, |
| 1378 | FEATURE_VALUE_TYPE(commerce::kShoppingList)}, |
Matt Jones | 1795eda | 2023-05-09 20:24:48 | [diff] [blame] | 1379 | {"local-pdp-detection", |
| 1380 | commerce::flag_descriptions::kCommerceLocalPDPDetectionName, |
| 1381 | commerce::flag_descriptions::kCommerceLocalPDPDetectionDescription, |
| 1382 | flags_ui::kOsIos, |
| 1383 | FEATURE_VALUE_TYPE(commerce::kCommerceLocalPDPDetection)}, |
Louis Romero | 93e9b50a | 2023-01-26 01:46:12 | [diff] [blame] | 1384 | {"tab-inactivity-threshold", flag_descriptions::kTabInactivityThresholdName, |
| 1385 | flag_descriptions::kTabInactivityThresholdDescription, flags_ui::kOsIos, |
| 1386 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabInactivityThreshold, |
| 1387 | kTabInactivityThresholdVariations, |
| 1388 | "TabInactivityThreshold")}, |
Ali Juma | 57849c4 | 2023-02-21 22:53:43 | [diff] [blame] | 1389 | {"notification-settings-menu-item", |
| 1390 | flag_descriptions::kNotificationSettingsMenuItemName, |
| 1391 | flag_descriptions::kNotificationSettingsMenuItemDescription, |
| 1392 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kNotificationSettingsMenuItem)}, |
kalettuce | fb09e40 | 2023-02-27 18:35:53 | [diff] [blame] | 1393 | {"web-feed-feedback-reroute", |
| 1394 | flag_descriptions::kWebFeedFeedbackRerouteName, |
| 1395 | flag_descriptions::kWebFeedFeedbackRerouteDescription, flags_ui::kOsIos, |
| 1396 | FEATURE_VALUE_TYPE(kWebFeedFeedbackReroute)}, |
Tina Wang | d3f6f19 | 2023-04-05 05:22:43 | [diff] [blame] | 1397 | {"enable-follow-IPH-exp-params", |
| 1398 | flag_descriptions::kEnableFollowIPHExpParamsName, |
| 1399 | flag_descriptions::kEnableFollowIPHExpParamsDescription, flags_ui::kOsIos, |
| 1400 | FEATURE_VALUE_TYPE(kEnableFollowIPHExpParams)}, |
Guillem Perez | 3c139a82 | 2023-05-24 19:34:25 | [diff] [blame] | 1401 | {"enable-follow-ui-update", flag_descriptions::kEnableFollowUIUpdateName, |
| 1402 | flag_descriptions::kEnableFollowUIUpdateDescription, flags_ui::kOsIos, |
| 1403 | FEATURE_VALUE_TYPE(kEnableFollowUIUpdate)}, |
Marc Treib | e9f79ea7 | 2023-03-14 10:25:42 | [diff] [blame] | 1404 | {"enable-preferences-account-storage", |
| 1405 | flag_descriptions::kEnablePreferencesAccountStorageName, |
| 1406 | flag_descriptions::kEnablePreferencesAccountStorageDescription, |
| 1407 | flags_ui::kOsIos, |
| 1408 | FEATURE_VALUE_TYPE(syncer::kEnablePreferencesAccountStorage)}, |
Olivier ROBIN | a229d213 | 2023-03-21 12:44:20 | [diff] [blame] | 1409 | {"ios-browser-edit-menu-metrics", |
| 1410 | flag_descriptions::kIOSBrowserEditMenuMetricsName, |
| 1411 | flag_descriptions::kIOSBrowserEditMenuMetricsDescription, flags_ui::kOsIos, |
| 1412 | FEATURE_VALUE_TYPE(kIOSBrowserEditMenuMetrics)}, |
Benjamin Williams | 1dc8f234 | 2024-01-04 21:25:55 | [diff] [blame] | 1413 | {"ios-docking-promo", flag_descriptions::kIOSDockingPromoName, |
| 1414 | flag_descriptions::kIOSDockingPromoDescription, flags_ui::kOsIos, |
| 1415 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSDockingPromo, |
| 1416 | kIOSDockingPromoVariations, |
| 1417 | "IOSDockingPromo")}, |
Stepan Khapugin | b2f4952 | 2023-04-03 18:25:24 | [diff] [blame] | 1418 | {"omnibox-grouping-framework-non-zps", |
| 1419 | flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsName, |
| 1420 | flag_descriptions::kOmniboxGroupingFrameworkForTypedSuggestionsDescription, |
| 1421 | flags_ui::kOsIos, |
| 1422 | FEATURE_VALUE_TYPE(omnibox::kGroupingFrameworkForNonZPS)}, |
Robbie Gibson | 0ea28060 | 2023-04-12 01:02:39 | [diff] [blame] | 1423 | {"only-access-clipboard-async", |
| 1424 | flag_descriptions::kOnlyAccessClipboardAsyncName, |
| 1425 | flag_descriptions::kOnlyAccessClipboardAsyncDescription, flags_ui::kOsIos, |
| 1426 | FEATURE_VALUE_TYPE(kOnlyAccessClipboardAsync)}, |
Olivier ROBIN | 2613bcd0 | 2023-04-20 10:00:47 | [diff] [blame] | 1427 | {"ios-edit-menu-hide-search-web", |
| 1428 | flag_descriptions::kIOSEditMenuHideSearchWebName, |
| 1429 | flag_descriptions::kIOSEditMenuHideSearchWebDescription, flags_ui::kOsIos, |
| 1430 | FEATURE_VALUE_TYPE(kIOSEditMenuHideSearchWeb)}, |
Stephen McGruer | 9afca1a | 2023-05-18 20:55:17 | [diff] [blame] | 1431 | {"autofill-enable-card-art-image", |
| 1432 | flag_descriptions::kAutofillEnableCardArtImageName, |
| 1433 | flag_descriptions::kAutofillEnableCardArtImageDescription, |
| 1434 | flags_ui::kOsIos, |
| 1435 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardArtImage)}, |
Tina Wang | cda2c90 | 2023-05-25 17:39:45 | [diff] [blame] | 1436 | {"enable-signed-out-view-demotion", |
| 1437 | flag_descriptions::kEnableSignedOutViewDemotionName, |
| 1438 | flag_descriptions::kEnableSignedOutViewDemotionDescription, |
| 1439 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableSignedOutViewDemotion)}, |
Stepan Khapugin | 72c7429 | 2024-06-19 16:48:33 | [diff] [blame] | 1440 | {"spotlight-never-retain-index", |
| 1441 | flag_descriptions::kSpotlightNeverRetainIndexName, |
| 1442 | flag_descriptions::kSpotlightNeverRetainIndexDescription, flags_ui::kOsIos, |
| 1443 | FEATURE_VALUE_TYPE(kSpotlightNeverRetainIndex)}, |
Huiting Yu | bc1bf4d | 2023-06-26 18:15:32 | [diff] [blame] | 1444 | {"ios-iph-for-safari-switcher", |
| 1445 | flag_descriptions::kIPHForSafariSwitcherName, |
| 1446 | flag_descriptions::kIPHForSafariSwitcherDescription, flags_ui::kOsIos, |
| 1447 | FEATURE_VALUE_TYPE(kIPHForSafariSwitcher)}, |
Benjamin Williams | 9773edd4 | 2023-06-26 20:22:07 | [diff] [blame] | 1448 | {"safety-check-magic-stack", flag_descriptions::kSafetyCheckMagicStackName, |
| 1449 | flag_descriptions::kSafetyCheckMagicStackDescription, flags_ui::kOsIos, |
| 1450 | FEATURE_VALUE_TYPE(kSafetyCheckMagicStack)}, |
Ewann Pelle | 9cd85b2 | 2023-07-12 14:42:01 | [diff] [blame] | 1451 | {"tab-resumption", flag_descriptions::kTabResumptionName, |
| 1452 | flag_descriptions::kTabResumptionDescription, flags_ui::kOsIos, |
Ewann Pelle | a2bcb3a | 2023-08-28 13:53:00 | [diff] [blame] | 1453 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption, |
| 1454 | kTabResumptionVariations, |
| 1455 | "TabResumption")}, |
Christian Xu | 07d60019 | 2023-07-24 12:29:52 | [diff] [blame] | 1456 | {"bottom-omnibox-default-setting", |
| 1457 | flag_descriptions::kBottomOmniboxDefaultSettingName, |
| 1458 | flag_descriptions::kBottomOmniboxDefaultSettingDescription, |
| 1459 | flags_ui::kOsIos, |
| 1460 | FEATURE_WITH_PARAMS_VALUE_TYPE(kBottomOmniboxDefaultSetting, |
| 1461 | kBottomOmniboxDefaultSettingVariations, |
| 1462 | "BottomOmniboxDefaultSetting")}, |
Joemer Ramos | 46ca6f5 | 2024-09-27 18:12:29 | [diff] [blame] | 1463 | {"enable-async-real-time-check", |
| 1464 | flag_descriptions::kSafeBrowsingAsyncRealTimeCheckName, |
| 1465 | flag_descriptions::kSafeBrowsingAsyncRealTimeCheckDescription, |
| 1466 | flags_ui::kOsIos, |
| 1467 | FEATURE_VALUE_TYPE(safe_browsing::kSafeBrowsingAsyncRealTimeCheck)}, |
Quentin Pubert | 476786e8 | 2023-08-16 12:45:28 | [diff] [blame] | 1468 | {"enable-save-to-photos", flag_descriptions::kIOSSaveToPhotosName, |
| 1469 | flag_descriptions::kIOSSaveToPhotosDescription, flags_ui::kOsIos, |
| 1470 | FEATURE_VALUE_TYPE(kIOSSaveToPhotos)}, |
Elmehdi Rahmaoui | f5b7646 | 2024-06-24 10:44:46 | [diff] [blame] | 1471 | {"enable-save-to-photos-improvements", |
| 1472 | flag_descriptions::kIOSSaveToPhotosImprovementsName, |
| 1473 | flag_descriptions::kIOSSaveToPhotosImprovementsDescription, |
| 1474 | flags_ui::kOsIos, |
| 1475 | FEATURE_WITH_PARAMS_VALUE_TYPE(kIOSSaveToPhotosImprovements, |
| 1476 | kSaveToPhotosImprovementsVariations, |
| 1477 | "IOSSaveToPhotosImprovements")}, |
Jérôme Lebel | cc9523e | 2024-10-08 13:34:01 | [diff] [blame] | 1478 | {"enable-identity-in-auth-error", |
| 1479 | flag_descriptions::kEnableIdentityInAuthErrorName, |
| 1480 | flag_descriptions::kEnableIdentityInAuthErrorDescription, flags_ui::kOsIos, |
| 1481 | FEATURE_VALUE_TYPE(switches::kEnableIdentityInAuthError)}, |
Matt Jones | 7953439 | 2023-10-27 14:35:02 | [diff] [blame] | 1482 | {"parcel-tracking-test-data", |
| 1483 | commerce::flag_descriptions::kParcelTrackingTestDataName, |
| 1484 | commerce::flag_descriptions::kParcelTrackingTestDataDescription, |
| 1485 | flags_ui::kOsIos, |
| 1486 | FEATURE_WITH_PARAMS_VALUE_TYPE(commerce::kParcelTrackingTestData, |
| 1487 | kParcelTrackingTestDataVariations, |
| 1488 | "ParcelTrackingTestData")}, |
Christian Xu | 90e952f | 2023-09-13 09:05:28 | [diff] [blame] | 1489 | {"top-toolbar-theme-color", flag_descriptions::kThemeColorInTopToolbarName, |
| 1490 | flag_descriptions::kThemeColorInTopToolbarDescription, flags_ui::kOsIos, |
| 1491 | FEATURE_VALUE_TYPE(kThemeColorInTopToolbar)}, |
Rubin Deliallisi | 072bc84 | 2023-10-19 12:00:41 | [diff] [blame] | 1492 | {"privacy-guide-ios", flag_descriptions::kPrivacyGuideIosName, |
| 1493 | flag_descriptions::kPrivacyGuideIosDescription, flags_ui::kOsIos, |
| 1494 | FEATURE_VALUE_TYPE(kPrivacyGuideIos)}, |
Quentin Pubert | f2d75c3 | 2023-10-25 12:17:45 | [diff] [blame] | 1495 | {"enable-save-to-drive", flag_descriptions::kIOSSaveToDriveName, |
| 1496 | flag_descriptions::kIOSSaveToDriveDescription, flags_ui::kOsIos, |
| 1497 | FEATURE_VALUE_TYPE(kIOSSaveToDrive)}, |
Aliona DANGLA | 5971a8b | 2023-11-10 11:55:35 | [diff] [blame] | 1498 | {"fullscreen-improvement", flag_descriptions::kFullscreenImprovementName, |
| 1499 | flag_descriptions::kFullscreenImprovementDescription, flags_ui::kOsIos, |
| 1500 | FEATURE_VALUE_TYPE(kFullscreenImprovement)}, |
Gauthier Ambard | 8cca29a | 2024-04-10 08:27:36 | [diff] [blame] | 1501 | {"tab-groups-on-ipad", flag_descriptions::kTabGroupsIPadName, |
| 1502 | flag_descriptions::kTabGroupsIPadDescription, flags_ui::kOsIos, |
| 1503 | FEATURE_VALUE_TYPE(kTabGroupsIPad)}, |
Vidhan Jain | 1199e20 | 2024-03-15 14:42:59 | [diff] [blame] | 1504 | {"autofill-enable-dynamically-loading-fields-on-input", |
| 1505 | flag_descriptions:: |
| 1506 | kAutofillEnableDynamicallyLoadingFieldsForAddressInputName, |
| 1507 | flag_descriptions:: |
| 1508 | kAutofillEnableDynamicallyLoadingFieldsForAddressInputDescription, |
| 1509 | flags_ui::kOsIos, |
| 1510 | FEATURE_VALUE_TYPE(kAutofillDynamicallyLoadsFieldsForAddressInput)}, |
Filipa Senra | 0bd0798 | 2023-12-19 10:56:25 | [diff] [blame] | 1511 | {"revamp-page-info-ios", flag_descriptions::kRevampPageInfoIosName, |
| 1512 | flag_descriptions::kRevampPageInfoIosDescription, flags_ui::kOsIos, |
Filipa Senra | a2074a1 | 2024-06-10 14:49:20 | [diff] [blame] | 1513 | MULTI_VALUE_TYPE(kRevampPageInfoiOSChoices)}, |
aliaaborhamy | 00f89df | 2023-12-21 14:55:03 | [diff] [blame] | 1514 | {"share-in-web-context-menu-ios", |
| 1515 | flag_descriptions::kShareInWebContextMenuIOSName, |
| 1516 | flag_descriptions::kShareInWebContextMenuIOSDescription, flags_ui::kOsIos, |
| 1517 | FEATURE_VALUE_TYPE(kShareInWebContextMenuIOS)}, |
Marc Treib | 1f6c5db99 | 2024-01-04 20:25:14 | [diff] [blame] | 1518 | {"migrate-syncing-user-to-signed-in", |
| 1519 | flag_descriptions::kMigrateSyncingUserToSignedInName, |
| 1520 | flag_descriptions::kMigrateSyncingUserToSignedInDescription, |
| 1521 | flags_ui::kOsIos, |
| 1522 | FEATURE_VALUE_TYPE(switches::kMigrateSyncingUserToSignedIn)}, |
| 1523 | {"undo-migration-of-syncing-user-to-signed-in", |
| 1524 | flag_descriptions::kUndoMigrationOfSyncingUserToSignedInName, |
| 1525 | flag_descriptions::kUndoMigrationOfSyncingUserToSignedInDescription, |
| 1526 | flags_ui::kOsIos, |
| 1527 | FEATURE_VALUE_TYPE(switches::kUndoMigrationOfSyncingUserToSignedIn)}, |
Mustafa Emre Acer | 05412ee | 2024-01-11 01:03:55 | [diff] [blame] | 1528 | {"https-upgrades-ios", flag_descriptions::kHttpsUpgradesName, |
| 1529 | flag_descriptions::kHttpsUpgradesDescription, flags_ui::kOsIos, |
| 1530 | FEATURE_VALUE_TYPE(security_interstitials::features::kHttpsUpgrades)}, |
Robbie Gibson | a04957be | 2024-01-15 19:52:46 | [diff] [blame] | 1531 | {"contextual-panel", flag_descriptions::kContextualPanelName, |
| 1532 | flag_descriptions::kContextualPanelDescription, flags_ui::kOsIos, |
Nicolas MacBeth | c738c4e | 2024-07-19 21:14:19 | [diff] [blame] | 1533 | FEATURE_WITH_PARAMS_VALUE_TYPE(kContextualPanel, |
| 1534 | kContextualPanelEntrypointArmVariations, |
| 1535 | "ContextualPanel")}, |
Nicolas MacBeth | 47d6b62 | 2024-01-16 17:05:39 | [diff] [blame] | 1536 | {"contextual-panel-force-show-entrypoint", |
| 1537 | flag_descriptions::kContextualPanelForceShowEntrypointName, |
| 1538 | flag_descriptions::kContextualPanelForceShowEntrypointDescription, |
| 1539 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kContextualPanelForceShowEntrypoint)}, |
adamta | d0e8cfc | 2024-01-16 18:43:47 | [diff] [blame] | 1540 | {"enable-ipad-feed-ghost-cards", |
| 1541 | flag_descriptions::kEnableiPadFeedGhostCardsName, |
| 1542 | flag_descriptions::kEnableiPadFeedGhostCardsDescription, flags_ui::kOsIos, |
| 1543 | FEATURE_VALUE_TYPE(kEnableiPadFeedGhostCards)}, |
Christian Xu | 11df0ae | 2024-02-08 16:07:51 | [diff] [blame] | 1544 | {"omnibox-rich-autocompletion", |
| 1545 | flag_descriptions::kOmniboxRichAutocompletionName, |
| 1546 | flag_descriptions::kOmniboxRichAutocompletionDescription, flags_ui::kOsIos, |
Christian Xu | 10b84d7 | 2024-04-09 17:12:33 | [diff] [blame] | 1547 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1548 | omnibox::kRichAutocompletion, |
| 1549 | kRichAutocompletionImplementationVariations, |
| 1550 | "RichAutocompletionImplementationVariations")}, |
Jason Hu | d445445f | 2024-02-02 18:28:12 | [diff] [blame] | 1551 | {"disable-lens-camera", flag_descriptions::kDisableLensCameraName, |
| 1552 | flag_descriptions::kDisableLensCameraDescription, flags_ui::kOsIos, |
| 1553 | FEATURE_VALUE_TYPE(kDisableLensCamera)}, |
Charles Yang | 30c90b9 | 2024-03-08 18:00:59 | [diff] [blame] | 1554 | {"omnibox-color-icons", flag_descriptions::kOmniboxColorIconsName, |
| 1555 | flag_descriptions::kOmniboxColorIconsDescription, flags_ui::kOsIos, |
| 1556 | FEATURE_VALUE_TYPE(kOmniboxColorIcons)}, |
Charles Yang | 682634b | 2024-03-19 01:46:09 | [diff] [blame] | 1557 | {"enable-color-lens-and-voice-icons-in-home-screen-widget", |
| 1558 | flag_descriptions::kEnableColorLensAndVoiceIconsInHomeScreenWidgetName, |
| 1559 | flag_descriptions:: |
| 1560 | kEnableColorLensAndVoiceIconsInHomeScreenWidgetDescription, |
| 1561 | flags_ui::kOsIos, |
| 1562 | FEATURE_VALUE_TYPE(kEnableColorLensAndVoiceIconsInHomeScreenWidget)}, |
Alexander Tekle | eebe42b9 | 2024-02-23 21:27:15 | [diff] [blame] | 1563 | {"autofill-enable-card-benefits-for-american-express", |
| 1564 | flag_descriptions::kAutofillEnableCardBenefitsForAmericanExpressName, |
| 1565 | flag_descriptions:: |
| 1566 | kAutofillEnableCardBenefitsForAmericanExpressDescription, |
| 1567 | flags_ui::kOsIos, |
| 1568 | FEATURE_VALUE_TYPE( |
| 1569 | autofill::features::kAutofillEnableCardBenefitsForAmericanExpress)}, |
| 1570 | {"autofill-enable-card-benefits-for-capital-one", |
| 1571 | flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneName, |
| 1572 | flag_descriptions::kAutofillEnableCardBenefitsForCapitalOneDescription, |
| 1573 | flags_ui::kOsIos, |
| 1574 | FEATURE_VALUE_TYPE( |
| 1575 | autofill::features::kAutofillEnableCardBenefitsForCapitalOne)}, |
Yishui Liu | b88a38c | 2024-02-28 08:46:55 | [diff] [blame] | 1576 | {"autofill-enable-card-benefits-sync", |
| 1577 | flag_descriptions::kAutofillEnableCardBenefitsSyncName, |
| 1578 | flag_descriptions::kAutofillEnableCardBenefitsSyncDescription, |
| 1579 | flags_ui::kOsIos, |
| 1580 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableCardBenefitsSync)}, |
Rubin Deliallisi | 4170b1c | 2024-02-28 16:15:42 | [diff] [blame] | 1581 | {"linked-services-setting-ios", |
| 1582 | flag_descriptions::kLinkedServicesSettingIosName, |
| 1583 | flag_descriptions::kLinkedServicesSettingIosDescription, flags_ui::kOsIos, |
| 1584 | FEATURE_VALUE_TYPE(kLinkedServicesSettingIos)}, |
Aliona DANGLA | 52e69ff | 2024-02-29 12:22:28 | [diff] [blame] | 1585 | {"disable-fullscreen-scrolling", |
| 1586 | flag_descriptions::kDisableFullscreenScrollingName, |
| 1587 | flag_descriptions::kDisableFullscreenScrollingDescription, |
| 1588 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kDisableFullscreenScrolling)}, |
hvs | 7c6cb40 | 2024-03-27 02:39:00 | [diff] [blame] | 1589 | {"autofill-enable-prefetching-risk-data-for-retrieval", |
| 1590 | flag_descriptions::kAutofillEnablePrefetchingRiskDataForRetrievalName, |
Vincent Boisselle | 2e95b88 | 2024-03-29 21:03:56 | [diff] [blame] | 1591 | flag_descriptions:: |
| 1592 | kAutofillEnablePrefetchingRiskDataForRetrievalDescription, |
hvs | 7c6cb40 | 2024-03-27 02:39:00 | [diff] [blame] | 1593 | flags_ui::kOsIos, |
Vincent Boisselle | 2e95b88 | 2024-03-29 21:03:56 | [diff] [blame] | 1594 | FEATURE_VALUE_TYPE( |
| 1595 | autofill::features::kAutofillEnablePrefetchingRiskDataForRetrieval)}, |
| 1596 | {"autofill-sticky-infobar", flag_descriptions::kAutofillStickyInfobarName, |
| 1597 | flag_descriptions::kAutofillStickyInfobarDescription, flags_ui::kOsIos, |
| 1598 | FEATURE_VALUE_TYPE(kAutofillStickyInfobarIos)}, |
Raj T | c66dd12 | 2024-04-01 18:48:39 | [diff] [blame] | 1599 | {"page-content-annotations", flag_descriptions::kPageContentAnnotationsName, |
| 1600 | flag_descriptions::kPageContentAnnotationsDescription, flags_ui::kOsIos, |
| 1601 | FEATURE_VALUE_TYPE( |
| 1602 | page_content_annotations::features::kPageContentAnnotations)}, |
| 1603 | {"page-content-annotations-persist-salient-image-metadata", |
| 1604 | flag_descriptions::kPageContentAnnotationsPersistSalientImageMetadataName, |
| 1605 | flag_descriptions:: |
| 1606 | kPageContentAnnotationsPersistSalientImageMetadataDescription, |
| 1607 | flags_ui::kOsIos, |
| 1608 | FEATURE_VALUE_TYPE( |
| 1609 | page_content_annotations::features:: |
| 1610 | kPageContentAnnotationsPersistSalientImageMetadata)}, |
| 1611 | {"page-content-annotations-remote-page-metadata", |
| 1612 | flag_descriptions::kPageContentAnnotationsRemotePageMetadataName, |
| 1613 | flag_descriptions::kPageContentAnnotationsRemotePageMetadataDescription, |
| 1614 | flags_ui::kOsIos, |
| 1615 | FEATURE_VALUE_TYPE( |
| 1616 | page_content_annotations::features::kRemotePageMetadata)}, |
| 1617 | {"page-visibility-page-content-annotations", |
| 1618 | flag_descriptions::kPageVisibilityPageContentAnnotationsName, |
| 1619 | flag_descriptions::kPageVisibilityPageContentAnnotationsDescription, |
| 1620 | flags_ui::kOsIos, |
| 1621 | FEATURE_VALUE_TYPE(page_content_annotations::features:: |
| 1622 | kPageVisibilityPageContentAnnotations)}, |
Daniel White | 7867261f | 2024-04-02 19:08:12 | [diff] [blame] | 1623 | {"enhanced-safe-browsing-promo", |
| 1624 | flag_descriptions::kEnhancedSafeBrowsingPromoName, |
| 1625 | flag_descriptions::kEnhancedSafeBrowsingPromoDescription, flags_ui::kOsIos, |
Daniel White | b628508 | 2024-05-03 18:00:02 | [diff] [blame] | 1626 | FEATURE_VALUE_TYPE(safe_browsing::kEnhancedSafeBrowsingPromo)}, |
Sebsg | fcd5b0b | 2024-04-09 08:18:32 | [diff] [blame] | 1627 | {"cpe-performance-improvements", |
| 1628 | flag_descriptions::kCredentialProviderPerformanceImprovementsName, |
| 1629 | flag_descriptions::kCredentialProviderPerformanceImprovementsDescription, |
| 1630 | flags_ui::kOsIos, |
| 1631 | FEATURE_VALUE_TYPE(kCredentialProviderPerformanceImprovements)}, |
Vincent Boisselle | a1f27f32 | 2024-04-17 14:53:19 | [diff] [blame] | 1632 | {"password-manager-detect-username-in-uff", |
| 1633 | flag_descriptions::kIOSDetectUsernameInUffName, |
vincb | b01c53ed | 2024-08-22 13:09:56 | [diff] [blame] | 1634 | flag_descriptions::kIOSDetectUsernameInUffDescription, flags_ui::kOsIos, |
Vincent Boisselle | a1f27f32 | 2024-04-17 14:53:19 | [diff] [blame] | 1635 | FEATURE_VALUE_TYPE(password_manager::features::kIosDetectUsernameInUff)}, |
Jérôme Lebel | 993c7e3d | 2024-07-08 14:05:35 | [diff] [blame] | 1636 | {"identity-disc-account-menu", |
| 1637 | flag_descriptions::kIdentityDiscAccountMenuName, |
| 1638 | flag_descriptions::kIdentityDiscAccountMenuDescription, flags_ui::kOsIos, |
| 1639 | FEATURE_VALUE_TYPE(kIdentityDiscAccountMenu)}, |
Jood Hajeer | 3867886d | 2024-07-29 16:15:35 | [diff] [blame] | 1640 | {"identity-confirmation-snackbar", |
| 1641 | flag_descriptions::kIdentityConfirmationSnackbarName, |
| 1642 | flag_descriptions::kIdentityConfirmationSnackbarDescription, |
| 1643 | flags_ui::kOsIos, |
| 1644 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1645 | kIdentityConfirmationSnackbar, |
| 1646 | kIdentityConfirmationSnackbarTestingVariations, |
| 1647 | "IdentityConfirmationSnackbar")}, |
Filipa Senra | be00cbe | 2024-04-19 14:21:33 | [diff] [blame] | 1648 | {"ios-quick-delete", flag_descriptions::kIOSQuickDeleteName, |
| 1649 | flag_descriptions::kIOSQuickDeleteDescription, flags_ui::kOsIos, |
| 1650 | FEATURE_VALUE_TYPE(kIOSQuickDelete)}, |
Vipul Vinod Koul | 1629a19 | 2024-04-24 00:04:00 | [diff] [blame] | 1651 | {"autofill-enable-verve-card-support", |
| 1652 | flag_descriptions::kAutofillEnableVerveCardSupportName, |
| 1653 | flag_descriptions::kAutofillEnableVerveCardSupportDescription, |
| 1654 | flags_ui::kOsIos, |
| 1655 | FEATURE_VALUE_TYPE(autofill::features::kAutofillEnableVerveCardSupport)}, |
Ameur Hosni | 20b75fe5 | 2024-04-24 16:36:02 | [diff] [blame] | 1656 | {"omnibox-actions-in-suggest", |
| 1657 | flag_descriptions::kOmniboxActionsInSuggestName, |
| 1658 | flag_descriptions::kOmniboxActionsInSuggestDescription, flags_ui::kOsIos, |
| 1659 | FEATURE_VALUE_TYPE(kOmniboxActionsInSuggest)}, |
Ewann Pelle | 34939b6 | 2024-08-22 10:45:49 | [diff] [blame] | 1660 | {"tab-group-sync", flag_descriptions::kTabGroupSyncName, |
| 1661 | flag_descriptions::kTabGroupSyncDescription, flags_ui::kOsIos, |
Louis Romero | 5a84afc | 2024-04-25 10:29:20 | [diff] [blame] | 1662 | FEATURE_VALUE_TYPE(kTabGroupSync)}, |
Kavita Soni | c8eaa98 | 2024-05-16 17:09:11 | [diff] [blame] | 1663 | {"autofill-enable-save-card-loading-and-confirmation", |
| 1664 | flag_descriptions::kAutofillEnableSaveCardLoadingAndConfirmationName, |
| 1665 | flag_descriptions:: |
| 1666 | kAutofillEnableSaveCardLoadingAndConfirmationDescription, |
| 1667 | flags_ui::kOsIos, |
| 1668 | FEATURE_VALUE_TYPE( |
| 1669 | autofill::features::kAutofillEnableSaveCardLoadingAndConfirmation)}, |
| 1670 | {"autofill-enable-save-card-local-save-fallback", |
| 1671 | flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackName, |
| 1672 | flag_descriptions::kAutofillEnableSaveCardLocalSaveFallbackDescription, |
| 1673 | flags_ui::kOsIos, |
| 1674 | FEATURE_VALUE_TYPE( |
| 1675 | autofill::features::kAutofillEnableSaveCardLocalSaveFallback)}, |
| 1676 | {"autofill-enable-vcn-enroll-loading-and-confirmation", |
| 1677 | flag_descriptions::kAutofillEnableVcnEnrollLoadingAndConfirmationName, |
| 1678 | flag_descriptions:: |
| 1679 | kAutofillEnableVcnEnrollLoadingAndConfirmationDescription, |
| 1680 | flags_ui::kOsIos, |
| 1681 | FEATURE_VALUE_TYPE( |
| 1682 | autofill::features::kAutofillEnableVcnEnrollLoadingAndConfirmation)}, |
Ameur Hosni | 3d764c9 | 2024-05-28 14:11:12 | [diff] [blame] | 1683 | {"omnibox-suggestion-answer-migration", |
| 1684 | flag_descriptions::kOmniboxSuggestionAnswerMigrationName, |
| 1685 | flag_descriptions::kOmniboxSuggestionAnswerMigrationDescription, |
| 1686 | flags_ui::kOsIos, |
| 1687 | FEATURE_VALUE_TYPE(omnibox_feature_configs::SuggestionAnswerMigration:: |
Olivier Robin | 51ffd17 | 2024-05-29 08:56:30 | [diff] [blame] | 1688 | kOmniboxSuggestionAnswerMigration)}, |
| 1689 | {"tab-resumption1-5", flag_descriptions::kTabResumption1_5Name, |
| 1690 | flag_descriptions::kTabResumption1_5Description, flags_ui::kOsIos, |
Olivier Robin | f8374f1 | 2024-06-05 19:00:04 | [diff] [blame] | 1691 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumption1_5, |
| 1692 | kTabResumption15Variations, |
| 1693 | "TabResumption1_5")}, |
Hira Mahmood | 6e2a894e | 2024-05-31 15:18:19 | [diff] [blame] | 1694 | {"send-tab-ios-push-notifications", |
| 1695 | flag_descriptions::kSendTabToSelfIOSPushNotificationsName, |
| 1696 | flag_descriptions::kSendTabToSelfIOSPushNotificationsDescription, |
| 1697 | flags_ui::kOsIos, |
Hira Mahmood | 00c17e5 | 2024-10-09 14:30:48 | [diff] [blame^] | 1698 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1699 | send_tab_to_self::kSendTabToSelfIOSPushNotifications, |
| 1700 | kSendTabIOSPushNotificationsVariations, |
| 1701 | "SendTabToSelfIOSPushNotifications")}, |
Olivier Robin | 08bc56d0 | 2024-06-05 14:05:18 | [diff] [blame] | 1702 | {"tab-resumption-2", flag_descriptions::kTabResumption2Name, |
| 1703 | flag_descriptions::kTabResumption2Description, flags_ui::kOsIos, |
Olivier ROBIN | b17c14b9 | 2024-10-09 13:49:13 | [diff] [blame] | 1704 | FEATURE_VALUE_TYPE(kTabResumption2)}, |
Olivier ROBIN | cb76f4fe | 2024-06-05 16:11:42 | [diff] [blame] | 1705 | {"page-image-service-optimization-guide-salient-images", |
| 1706 | flag_descriptions::kPageImageServiceSalientImageName, |
| 1707 | flag_descriptions::kPageImageServiceSalientImageDescription, |
| 1708 | flags_ui::kOsIos, |
| 1709 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1710 | page_image_service::kImageServiceOptimizationGuideSalientImages, |
| 1711 | kImageServiceOptimizationGuideSalientImagesVariations, |
| 1712 | "PageImageService")}, |
Elmehdi Rahmaoui | fafd5b7 | 2024-06-06 08:34:22 | [diff] [blame] | 1713 | {"downloaded-pdf-opening-ios", flag_descriptions::kDownloadedPDFOpeningName, |
| 1714 | flag_descriptions::kDownloadedPDFOpeningDescription, flags_ui::kOsIos, |
| 1715 | FEATURE_VALUE_TYPE(kDownloadedPDFOpening)}, |
Salma Elmahallawy | c238380 | 2024-06-06 23:36:03 | [diff] [blame] | 1716 | {"clear-device-data-on-signout-for-managed-users", |
| 1717 | flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersName, |
| 1718 | flag_descriptions::kClearDeviceDataOnSignOutForManagedUsersDescription, |
| 1719 | flags_ui::kOsIos, |
| 1720 | FEATURE_VALUE_TYPE(kClearDeviceDataOnSignOutForManagedUsers)}, |
Charles Yang | f8e7adf | 2024-06-11 00:17:00 | [diff] [blame] | 1721 | {"lens-filters-ablation-mode-enabled", |
| 1722 | flag_descriptions::kLensFiltersAblationModeEnabledName, |
| 1723 | flag_descriptions::kLensFiltersAblationModeEnabledDescription, |
| 1724 | flags_ui::kOsIos, |
| 1725 | FEATURE_WITH_PARAMS_VALUE_TYPE(kLensFiltersAblationModeEnabled, |
| 1726 | kLensFiltersAblationModeVariations, |
| 1727 | "LensFiltersAblationMode")}, |
| 1728 | {"lens-translate-toogle-mode-enabled", |
| 1729 | flag_descriptions::kLensTranslateToggleModeEnabledName, |
| 1730 | flag_descriptions::kLensTranslateToggleModeEnabledDescription, |
| 1731 | flags_ui::kOsIos, |
| 1732 | FEATURE_WITH_PARAMS_VALUE_TYPE(kLensTranslateToggleModeEnabled, |
| 1733 | kLensTranslateToggleModeVariations, |
| 1734 | "LensTranslateToggleMode")}, |
Quentin Pubert | b0984c7 | 2024-06-12 15:41:59 | [diff] [blame] | 1735 | {"ios-choose-from-drive", flag_descriptions::kIOSChooseFromDriveName, |
| 1736 | flag_descriptions::kIOSChooseFromDriveDescription, flags_ui::kOsIos, |
| 1737 | FEATURE_VALUE_TYPE(kIOSChooseFromDrive)}, |
Khalid Peer | 7cf75a2 | 2024-06-13 17:25:49 | [diff] [blame] | 1738 | {"omnibox-ml-log-url-scoring-signals", |
| 1739 | flag_descriptions::kOmniboxMlLogUrlScoringSignalsName, |
| 1740 | flag_descriptions::kOmniboxMlLogUrlScoringSignalsDescription, |
| 1741 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(omnibox::kLogUrlScoringSignals)}, |
| 1742 | {"omnibox-ml-url-piecewise-mapped-search-blending", |
| 1743 | flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingName, |
| 1744 | flag_descriptions::kOmniboxMlUrlPiecewiseMappedSearchBlendingDescription, |
| 1745 | flags_ui::kOsIos, |
| 1746 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1747 | omnibox::kMlUrlPiecewiseMappedSearchBlending, |
| 1748 | kMlUrlPiecewiseMappedSearchBlendingVariations, |
| 1749 | "MlUrlPiecewiseMappedSearchBlending")}, |
| 1750 | {"omnibox-ml-url-score-caching", |
| 1751 | flag_descriptions::kOmniboxMlUrlScoreCachingName, |
| 1752 | flag_descriptions::kOmniboxMlUrlScoreCachingDescription, flags_ui::kOsIos, |
| 1753 | FEATURE_VALUE_TYPE(omnibox::kMlUrlScoreCaching)}, |
| 1754 | {"omnibox-ml-url-scoring", flag_descriptions::kOmniboxMlUrlScoringName, |
| 1755 | flag_descriptions::kOmniboxMlUrlScoringDescription, flags_ui::kOsIos, |
| 1756 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlScoring, |
| 1757 | kOmniboxMlUrlScoringVariations, |
| 1758 | "MlUrlScoring")}, |
| 1759 | {"omnibox-ml-url-search-blending", |
| 1760 | flag_descriptions::kOmniboxMlUrlSearchBlendingName, |
| 1761 | flag_descriptions::kOmniboxMlUrlSearchBlendingDescription, |
| 1762 | flags_ui::kOsIos, |
| 1763 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kMlUrlSearchBlending, |
| 1764 | kMlUrlSearchBlendingVariations, |
| 1765 | "MlUrlScoring")}, |
| 1766 | {"omnibox-ml-url-scoring-model", |
| 1767 | flag_descriptions::kOmniboxMlUrlScoringModelName, |
| 1768 | flag_descriptions::kOmniboxMlUrlScoringModelDescription, flags_ui::kOsIos, |
Khalid Peer | 4501c1f | 2024-06-27 16:12:04 | [diff] [blame] | 1769 | FEATURE_WITH_PARAMS_VALUE_TYPE(omnibox::kUrlScoringModel, |
| 1770 | kUrlScoringModelVariations, |
| 1771 | "MlUrlScoring")}, |
ginnnnnnny | 4d843e40 | 2024-06-14 10:39:53 | [diff] [blame] | 1772 | {"default-browser-promo-ipad-experimental-string", |
| 1773 | flag_descriptions::kDefaultBrowserPromoIPadExperimentalStringName, |
| 1774 | flag_descriptions::kDefaultBrowserPromoIPadExperimentalStringDescription, |
| 1775 | flags_ui::kOsIos, |
| 1776 | FEATURE_VALUE_TYPE(kDefaultBrowserPromoIPadExperimentalString)}, |
Siyu An | 4a486f0 | 2024-06-18 19:41:28 | [diff] [blame] | 1777 | {"autofill-show-manual-fill-for-virtual-cards", |
| 1778 | flag_descriptions::kAutofillShowManualFillForVirtualCardsName, |
| 1779 | flag_descriptions::kAutofillShowManualFillForVirtualCardsDescription, |
| 1780 | flags_ui::kOsIos, |
| 1781 | FEATURE_VALUE_TYPE( |
| 1782 | autofill::features::kAutofillShowManualFillForVirtualCards)}, |
adamta | f85e48d | 2024-07-08 17:13:29 | [diff] [blame] | 1783 | {"home-customization", flag_descriptions::kHomeCustomizationName, |
| 1784 | flag_descriptions::kHomeCustomizationDescription, flags_ui::kOsIos, |
| 1785 | FEATURE_VALUE_TYPE(kHomeCustomization)}, |
Benjamin Williams | 0594caf | 2024-07-09 17:51:38 | [diff] [blame] | 1786 | {"safety-check-notifications", |
| 1787 | flag_descriptions::kSafetyCheckNotificationsName, |
| 1788 | flag_descriptions::kSafetyCheckNotificationsDescription, flags_ui::kOsIos, |
| 1789 | FEATURE_WITH_PARAMS_VALUE_TYPE(kSafetyCheckNotifications, |
| 1790 | kSafetyCheckNotificationsVariations, |
| 1791 | "SafetyCheckNotifications")}, |
Federica Germinario | a1fe090 | 2024-07-12 08:28:46 | [diff] [blame] | 1792 | {"app-background-refresh-ios", flag_descriptions::kAppBackgroundRefreshName, |
| 1793 | flag_descriptions::kAppBackgroundRefreshDescription, flags_ui::kOsIos, |
| 1794 | FEATURE_VALUE_TYPE(kEnableAppBackgroundRefresh)}, |
Gauthier Ambard | 6648c99 | 2024-07-12 17:22:19 | [diff] [blame] | 1795 | {"inactive-tab-button-refactoring", |
| 1796 | flag_descriptions::kInactiveTabButtonRefactoringName, |
| 1797 | flag_descriptions::kInactiveTabButtonRefactoringDescription, |
| 1798 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kInactiveTabButtonRefactoring)}, |
Chris Lu | 3eba2631 | 2024-07-12 20:21:38 | [diff] [blame] | 1799 | {"home-memory-improvements", flag_descriptions::kHomeMemoryImprovementsName, |
| 1800 | flag_descriptions::kHomeMemoryImprovementsDescription, flags_ui::kOsIos, |
| 1801 | FEATURE_VALUE_TYPE(kHomeMemoryImprovements)}, |
Stephen McGruer | 8fe98b6 | 2024-07-16 13:10:13 | [diff] [blame] | 1802 | {"autofill-upload-card-request-timeout", |
| 1803 | flag_descriptions::kAutofillUploadCardRequestTimeoutName, |
| 1804 | flag_descriptions::kAutofillUploadCardRequestTimeoutDescription, |
| 1805 | flags_ui::kOsIos, |
| 1806 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1807 | autofill::features::kAutofillUploadCardRequestTimeout, |
| 1808 | kAutofillUploadCardRequestTimeoutOptions, |
| 1809 | "AutofillUploadCardRequestTimeout")}, |
Karol Sygiet | 6ac82c8 | 2024-07-16 14:22:39 | [diff] [blame] | 1810 | {"clear-undecryptable-passwords", |
| 1811 | flag_descriptions::kClearUndecryptablePasswordsName, |
| 1812 | flag_descriptions::kClearUndecryptablePasswordsDescription, |
| 1813 | flags_ui::kOsIos, |
| 1814 | FEATURE_VALUE_TYPE( |
| 1815 | password_manager::features::kClearUndecryptablePasswords)}, |
Stephen McGruer | 0904cae | 2024-07-17 19:54:46 | [diff] [blame] | 1816 | {"autofill-vcn-enroll-request-timeout", |
| 1817 | flag_descriptions::kAutofillVcnEnrollRequestTimeoutName, |
| 1818 | flag_descriptions::kAutofillVcnEnrollRequestTimeoutDescription, |
| 1819 | flags_ui::kOsIos, |
| 1820 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1821 | autofill::features::kAutofillVcnEnrollRequestTimeout, |
| 1822 | kAutofillVcnEnrollRequestTimeoutOptions, |
| 1823 | "AutofillVcnEnrollRequestTimeout")}, |
Charles Yang | 98bef0c | 2024-07-19 12:24:14 | [diff] [blame] | 1824 | {"lens-web-page-load-optimization-enabled", |
| 1825 | flag_descriptions::kLensWebPageLoadOptimizationEnabledName, |
| 1826 | flag_descriptions::kLensWebPageLoadOptimizationEnabledDescription, |
| 1827 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kLensWebPageLoadOptimizationEnabled)}, |
Eric Ekey | 4a93059 | 2024-07-19 18:58:14 | [diff] [blame] | 1828 | {"segmented-default-browser-promo", |
| 1829 | flag_descriptions::kSegmentedDefaultBrowserPromoName, |
| 1830 | flag_descriptions::kSegmentedDefaultBrowserPromoDescription, |
| 1831 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSegmentedDefaultBrowserPromo)}, |
Nicolas MacBeth | c738c4e | 2024-07-19 21:14:19 | [diff] [blame] | 1832 | {"rich-bubble-without-image", |
| 1833 | flag_descriptions::kRichBubbleWithoutImageName, |
| 1834 | flag_descriptions::kRichBubbleWithoutImageDescription, flags_ui::kOsIos, |
| 1835 | FEATURE_VALUE_TYPE(kRichBubbleWithoutImage)}, |
Junhui He | 5229465 | 2024-07-23 23:50:15 | [diff] [blame] | 1836 | {"autofill-unmask-card-request-timeout", |
| 1837 | flag_descriptions::kAutofillUnmaskCardRequestTimeoutName, |
| 1838 | flag_descriptions::kAutofillUnmaskCardRequestTimeoutDescription, |
| 1839 | flags_ui::kOsIos, |
| 1840 | FEATURE_VALUE_TYPE(autofill::features::kAutofillUnmaskCardRequestTimeout)}, |
vincb | e137983 | 2024-08-06 19:08:12 | [diff] [blame] | 1841 | {"autofill-across-iframes", flag_descriptions::kAutofillAcrossIframesName, |
| 1842 | flag_descriptions::kAutofillAcrossIframesDescription, flags_ui::kOsIos, |
| 1843 | FEATURE_VALUE_TYPE(autofill::features::kAutofillAcrossIframesIos)}, |
Cristian Ciacu | 62fe191 | 2024-08-07 10:14:50 | [diff] [blame] | 1844 | {"ios-page-info-last-visited", |
| 1845 | flag_descriptions::kPageInfoLastVisitedIOSName, |
| 1846 | flag_descriptions::kPageInfoLastVisitedIOSDescription, flags_ui::kOsIos, |
| 1847 | FEATURE_VALUE_TYPE(kPageInfoLastVisitedIOS)}, |
Daniel White | 1ced9e6 | 2024-08-15 19:27:38 | [diff] [blame] | 1848 | {"enable-trait-collection-registration", |
| 1849 | flag_descriptions::kEnableTraitCollectionRegistrationName, |
| 1850 | flag_descriptions::kEnableTraitCollectionRegistrationDescription, |
| 1851 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kEnableTraitCollectionRegistration)}, |
Ernesto Izquierdo Clua | ebe0a025 | 2024-08-19 22:05:54 | [diff] [blame] | 1852 | {"autofill-isolated-world-ios", |
| 1853 | flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSName, |
| 1854 | flag_descriptions::kAutofillIsolatedWorldForJavascriptIOSDescription, |
| 1855 | flags_ui::kOsIos, |
| 1856 | FEATURE_VALUE_TYPE(kAutofillIsolatedWorldForJavascriptIos)}, |
Ewann Pelle | 34939b6 | 2024-08-22 10:45:49 | [diff] [blame] | 1857 | {"tab-group-indicator", flag_descriptions::kTabGroupIndicatorName, |
| 1858 | flag_descriptions::kTabGroupIndicatorDescription, flags_ui::kOsIos, |
| 1859 | FEATURE_VALUE_TYPE(kTabGroupIndicator)}, |
thefrog | 8ed4745 | 2024-08-30 13:32:48 | [diff] [blame] | 1860 | {"safe-browsing-local-lists-use-sbv5", |
| 1861 | flag_descriptions::kSafeBrowsingLocalListsUseSBv5Name, |
| 1862 | flag_descriptions::kSafeBrowsingLocalListsUseSBv5Description, |
| 1863 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(safe_browsing::kLocalListsUseSBv5)}, |
Chris Lu | 4c688e0 | 2024-09-07 00:48:08 | [diff] [blame] | 1864 | {"ios-price-tracking-notification-promo-card", |
| 1865 | flag_descriptions::kPriceTrackingPromoName, |
| 1866 | flag_descriptions::kPriceTrackingPromoDescription, flags_ui::kOsIos, |
| 1867 | FEATURE_VALUE_TYPE(commerce::kPriceTrackingPromo)}, |
| 1868 | {"ios-segmentation-ephemeral-card-ranker", |
| 1869 | flag_descriptions::kSegmentationPlatformEphemeralCardRankerName, |
| 1870 | flag_descriptions::kSegmentationPlatformEphemeralCardRankerDescription, |
| 1871 | flags_ui::kOsIos, |
| 1872 | FEATURE_WITH_PARAMS_VALUE_TYPE( |
| 1873 | segmentation_platform::features:: |
| 1874 | kSegmentationPlatformEphemeralCardRanker, |
| 1875 | kEphemeralCardRankerCardOverrideOptions, |
| 1876 | "SegmentationPlatformEphemeralCardRanker")}, |
Asami Doi | 55f87dd | 2024-09-12 12:55:48 | [diff] [blame] | 1877 | {"new-sync-opt-in-illustration", |
| 1878 | flag_descriptions::kNewSyncOptInIllustrationName, |
| 1879 | flag_descriptions::kNewSyncOptInIllustrationDescription, flags_ui::kOsIos, |
| 1880 | FEATURE_VALUE_TYPE(kNewSyncOptInIllustration)}, |
Alexander Tekle | 8cf3c8e | 2024-09-13 21:38:07 | [diff] [blame] | 1881 | {"autofill-enable-log-form-events-to-all-parsed-form-types", |
| 1882 | flag_descriptions::kAutofillEnableLogFormEventsToAllParsedFormTypesName, |
| 1883 | flag_descriptions:: |
| 1884 | kAutofillEnableLogFormEventsToAllParsedFormTypesDescription, |
| 1885 | flags_ui::kOsIos, |
| 1886 | FEATURE_VALUE_TYPE( |
| 1887 | autofill::features::kAutofillEnableLogFormEventsToAllParsedFormTypes)}, |
Ananya Seelam | 2893d7b | 2024-09-23 19:49:39 | [diff] [blame] | 1888 | {"omnibox-on-clobber-focus-type-on-ios", |
| 1889 | flag_descriptions::kOmniboxOnClobberFocusTypeOnIOSName, |
| 1890 | flag_descriptions::kOmniboxOnClobberFocusTypeOnIOSDescription, |
| 1891 | flags_ui::kOsIos, |
| 1892 | FEATURE_VALUE_TYPE(omnibox::kOmniboxOnClobberFocusTypeOnContent)}, |
Benjamin Williams | ef9cfad | 2024-09-23 22:44:23 | [diff] [blame] | 1893 | {"segmentation-tips-manager", |
| 1894 | flag_descriptions::kSegmentationTipsManagerName, |
| 1895 | flag_descriptions::kSegmentationTipsManagerDescription, flags_ui::kOsIos, |
| 1896 | FEATURE_VALUE_TYPE(kSegmentationTipsManager)}, |
Ameur Hosni | 22b62d9 | 2024-09-25 10:51:02 | [diff] [blame] | 1897 | {"lens-overlay-force-show-onboarding-screen", |
| 1898 | flag_descriptions::kLensOverlayForceShowOnboardingScreenName, |
| 1899 | flag_descriptions::kLensOverlayForceShowOnboardingScreenDescription, |
| 1900 | flags_ui::kOsIos, |
| 1901 | FEATURE_VALUE_TYPE(kLensOverlayForceShowOnboardingScreen)}, |
Briana McClure | 6970502 | 2024-09-25 20:13:56 | [diff] [blame] | 1902 | {"tips-magic-stack", flag_descriptions::kTipsMagicStackName, |
| 1903 | flag_descriptions::kTipsMagicStackDescription, flags_ui::kOsIos, |
| 1904 | FEATURE_VALUE_TYPE(kTipsMagicStack)}, |
Gauthier Ambard | 766f4cf | 2024-09-26 16:56:25 | [diff] [blame] | 1905 | {"data-sharing", flag_descriptions::kDataSharingName, |
| 1906 | flag_descriptions::kDataSharingDescription, flags_ui::kOsIos, |
| 1907 | FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingFeature)}, |
| 1908 | {"data-sharing-join-only", flag_descriptions::kDataSharingJoinOnlyName, |
| 1909 | flag_descriptions::kDataSharingJoinOnlyDescription, flags_ui::kOsIos, |
| 1910 | FEATURE_VALUE_TYPE(data_sharing::features::kDataSharingJoinOnly)}, |
Rubin Deliallisi | b66a77a | 2024-10-02 18:09:48 | [diff] [blame] | 1911 | {"ios-soft-lock", flag_descriptions::kIOSSoftLockName, |
| 1912 | flag_descriptions::kIOSSoftLockDescription, flags_ui::kOsIos, |
Marc Treib | 31e4f9f | 2024-10-07 09:55:54 | [diff] [blame] | 1913 | FEATURE_VALUE_TYPE(kIOSSoftLock)}, |
| 1914 | {"separate-profiles-for-managed-accounts", |
| 1915 | flag_descriptions::kSeparateProfilesForManagedAccountsName, |
| 1916 | flag_descriptions::kSeparateProfilesForManagedAccountsDescription, |
Olivier ROBIN | b17c14b9 | 2024-10-09 13:49:13 | [diff] [blame] | 1917 | flags_ui::kOsIos, FEATURE_VALUE_TYPE(kSeparateProfilesForManagedAccounts)}, |
| 1918 | {"tab-resumption-2-reason", flag_descriptions::kTabResumption2ReasonName, |
| 1919 | flag_descriptions::kTabResumption2ReasonDescription, flags_ui::kOsIos, |
| 1920 | FEATURE_VALUE_TYPE(kTabResumption2Reason)}, |
| 1921 | {"tab-resumption-images", flag_descriptions::kTabResumptionImagesName, |
| 1922 | flag_descriptions::kTabResumptionImagesDescription, flags_ui::kOsIos, |
| 1923 | FEATURE_WITH_PARAMS_VALUE_TYPE(kTabResumptionImages, |
| 1924 | kTabResumptionImagesVariations, |
| 1925 | "TabResumption1_5")}, |
| 1926 | }; |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1927 | |
Rohit Rao | bed794c | 2020-04-27 15:27:45 | [diff] [blame] | 1928 | bool SkipConditionalFeatureEntry(const flags_ui::FeatureEntry& entry) { |
| 1929 | return false; |
| 1930 | } |
| 1931 | |
| 1932 | flags_ui::FlagsState& GetGlobalFlagsState() { |
| 1933 | static base::NoDestructor<flags_ui::FlagsState> flags_state(kFeatureEntries, |
| 1934 | nullptr); |
| 1935 | return *flags_state; |
| 1936 | } |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1937 | // Creates the experimental test policies map, used by AsyncPolicyLoader and |
| 1938 | // PolicyLoaderIOS to locally enable policies. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 1939 | NSMutableDictionary* CreateExperimentalTestingPolicies() { |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 1940 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 1941 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1942 | // Shared variables for all enterprise experimental flags. |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1943 | NSMutableDictionary* testing_policies = [[NSMutableDictionary alloc] init]; |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1944 | NSMutableArray* allowed_experimental_policies = [[NSMutableArray alloc] init]; |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1945 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 1946 | // Set some sample policy values for testing if EnableSamplePolicies is set to |
| 1947 | // true. |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1948 | if ([defaults boolForKey:@"EnableSamplePolicies"]) { |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1949 | [testing_policies addEntriesFromDictionary:@{ |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1950 | base::SysUTF8ToNSString(policy::key::kAutofillAddressEnabled) : @NO, |
| 1951 | |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 1952 | base::SysUTF8ToNSString(policy::key::kAutofillCreditCardEnabled) : @NO, |
| 1953 | |
| 1954 | // 2 = Disable all variations |
| 1955 | base::SysUTF8ToNSString(policy::key::kChromeVariations) : @2, |
| 1956 | |
| 1957 | // 2 = Do not allow any site to show popups |
| 1958 | base::SysUTF8ToNSString(policy::key::kDefaultPopupsSetting) : @2, |
| 1959 | |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1960 | // Set default search engine. |
| 1961 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderEnabled) : |
| 1962 | @YES, |
| 1963 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderSearchURL) : |
| 1964 | @"http://www.google.com/search?q={searchTerms}", |
| 1965 | base::SysUTF8ToNSString(policy::key::kDefaultSearchProviderName) : |
Tina Wang | 7cd0a06 | 2020-09-15 21:31:02 | [diff] [blame] | 1966 | @"TestEngine", |
Tina Wang | 5abee80 | 2020-07-29 23:09:52 | [diff] [blame] | 1967 | |
Tina Wang | 89068c84 | 2020-10-29 15:51:50 | [diff] [blame] | 1968 | base::SysUTF8ToNSString(policy::key::kEditBookmarksEnabled) : @NO, |
| 1969 | |
Gauthier Ambard | 21b2370 | 2021-04-16 16:11:27 | [diff] [blame] | 1970 | base::SysUTF8ToNSString(policy::key::kNTPContentSuggestionsEnabled) : @NO, |
| 1971 | |
Tina Wang | 59d0b7e | 2020-08-11 04:41:01 | [diff] [blame] | 1972 | base::SysUTF8ToNSString(policy::key::kTranslateEnabled) : @NO, |
Tina Wang | 54dddfc2 | 2020-08-20 22:34:53 | [diff] [blame] | 1973 | |
| 1974 | // 2 = Enhanced safe browsing protection |
| 1975 | base::SysUTF8ToNSString(policy::key::kSafeBrowsingProtectionLevel) : @2, |
| 1976 | |
| 1977 | base::SysUTF8ToNSString(policy::key::kSearchSuggestEnabled) : @YES, |
Hira Mahmood | a53b8d63 | 2023-01-03 10:03:29 | [diff] [blame] | 1978 | |
| 1979 | base::SysUTF8ToNSString(policy::key::kAppStoreRatingEnabled) : @NO, |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 1980 | }]; |
| 1981 | } |
| 1982 | |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1983 | if ([defaults boolForKey:@"EnableSyncDisabledPolicy"]) { |
Guillaume Jenkins | fe46d3a | 2021-04-26 19:51:04 | [diff] [blame] | 1984 | NSString* sync_policy_key = |
| 1985 | base::SysUTF8ToNSString(policy::key::kSyncDisabled); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 1986 | [testing_policies addEntriesFromDictionary:@{sync_policy_key : @YES}]; |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1987 | } |
Ewann | 227a3c0 | 2021-04-19 12:04:54 | [diff] [blame] | 1988 | |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 1989 | // SyncTypesListDisabled policy. |
| 1990 | NSString* Sync_types_list_disabled_key = |
| 1991 | base::SysUTF8ToNSString(policy::key::kSyncTypesListDisabled); |
| 1992 | NSMutableArray* Sync_types_list_disabled_values = |
| 1993 | [[NSMutableArray alloc] init]; |
| 1994 | if ([defaults boolForKey:@"SyncTypesListBookmarks"]) { |
| 1995 | [Sync_types_list_disabled_values addObject:@"bookmarks"]; |
| 1996 | } |
| 1997 | if ([defaults boolForKey:@"SyncTypesListReadingList"]) { |
| 1998 | [Sync_types_list_disabled_values addObject:@"readingList"]; |
| 1999 | } |
| 2000 | if ([defaults boolForKey:@"SyncTypesListPreferences"]) { |
| 2001 | [Sync_types_list_disabled_values addObject:@"preferences"]; |
| 2002 | } |
| 2003 | if ([defaults boolForKey:@"SyncTypesListPasswords"]) { |
| 2004 | [Sync_types_list_disabled_values addObject:@"passwords"]; |
| 2005 | } |
| 2006 | if ([defaults boolForKey:@"SyncTypesListAutofill"]) { |
| 2007 | [Sync_types_list_disabled_values addObject:@"autofill"]; |
| 2008 | } |
| 2009 | if ([defaults boolForKey:@"SyncTypesListTypedUrls"]) { |
| 2010 | [Sync_types_list_disabled_values addObject:@"typedUrls"]; |
| 2011 | } |
| 2012 | if ([defaults boolForKey:@"SyncTypesListTabs"]) { |
| 2013 | [Sync_types_list_disabled_values addObject:@"tabs"]; |
| 2014 | } |
| 2015 | if ([Sync_types_list_disabled_values count]) { |
| 2016 | [testing_policies addEntriesFromDictionary:@{ |
| 2017 | Sync_types_list_disabled_key : Sync_types_list_disabled_values |
| 2018 | }]; |
Ewann | 570a630 | 2021-08-17 07:22:42 | [diff] [blame] | 2019 | } |
| 2020 | |
Gauthier Ambard | 073eaa9 | 2021-11-22 15:24:13 | [diff] [blame] | 2021 | // If an incognito mode availability is set, set the value. |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 2022 | NSString* incognito_policy_key = |
| 2023 | base::SysUTF8ToNSString(policy::key::kIncognitoModeAvailability); |
| 2024 | NSInteger incognito_mode_availability = |
| 2025 | [defaults integerForKey:incognito_policy_key]; |
| 2026 | if (incognito_mode_availability) { |
Tina Wang | c6bcf57 | 2021-01-27 18:15:52 | [diff] [blame] | 2027 | [testing_policies addEntriesFromDictionary:@{ |
| 2028 | incognito_policy_key : @(incognito_mode_availability), |
| 2029 | }]; |
| 2030 | } |
| 2031 | |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 2032 | NSString* restriction_pattern = |
| 2033 | [defaults stringForKey:@"RestrictAccountsToPatterns"]; |
| 2034 | if ([restriction_pattern length] > 0) { |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 2035 | NSString* restrict_key = |
| 2036 | base::SysUTF8ToNSString(policy::key::kRestrictAccountsToPatterns); |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 2037 | [testing_policies addEntriesFromDictionary:@{ |
Ewann | b3bee38 | 2021-08-16 09:12:29 | [diff] [blame] | 2038 | restrict_key : @[ restriction_pattern ] |
Ewann | 40a8f8a | 2021-07-29 10:01:20 | [diff] [blame] | 2039 | }]; |
| 2040 | } |
| 2041 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 2042 | // If the sign-in policy is set (not "None"), add the policy key to the list |
| 2043 | // of enabled experimental policies, and set the value. |
| 2044 | NSString* const kSigninPolicyKey = @"BrowserSignin"; |
| 2045 | NSInteger signin_policy_mode = [defaults integerForKey:kSigninPolicyKey]; |
| 2046 | if (signin_policy_mode) { |
| 2047 | // Remove the mode offset that was used to represent the unset policy. |
| 2048 | --signin_policy_mode; |
| 2049 | DCHECK(signin_policy_mode >= 0); |
| 2050 | |
Vincent Boisselle | 19200bc | 2021-09-01 17:58:25 | [diff] [blame] | 2051 | [testing_policies addEntriesFromDictionary:@{ |
| 2052 | kSigninPolicyKey : @(signin_policy_mode), |
| 2053 | }]; |
| 2054 | } |
| 2055 | |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 2056 | // If the New Tab Page URL is set (not empty) add the value to the list of |
| 2057 | // test policies. |
| 2058 | NSString* ntp_location = [defaults stringForKey:@"NTPLocation"]; |
| 2059 | if ([ntp_location length] > 0) { |
| 2060 | NSString* ntp_location_key = |
| 2061 | base::SysUTF8ToNSString(policy::key::kNewTabPageLocation); |
| 2062 | [testing_policies |
| 2063 | addEntriesFromDictionary:@{ntp_location_key : ntp_location}]; |
Veronique Nguyen | 302d870 | 2022-01-12 21:18:57 | [diff] [blame] | 2064 | [allowed_experimental_policies addObject:ntp_location_key]; |
Veronique Nguyen | 9b1044f | 2022-01-11 14:41:13 | [diff] [blame] | 2065 | } |
| 2066 | |
Ali Juma | 9ec36d2 | 2022-03-28 14:53:12 | [diff] [blame] | 2067 | if ([defaults boolForKey:@"DisallowChromeDataInBackups"]) { |
| 2068 | NSString* allow_backups_key = |
| 2069 | base::SysUTF8ToNSString(policy::key::kAllowChromeDataInBackups); |
| 2070 | [testing_policies addEntriesFromDictionary:@{allow_backups_key : @NO}]; |
| 2071 | [allowed_experimental_policies addObject:allow_backups_key]; |
| 2072 | } |
| 2073 | |
Victor Hugo Vianna Silva | 9e1a730 | 2023-02-21 08:56:24 | [diff] [blame] | 2074 | if ([defaults boolForKey:@"DisablePasswordManagerPolicy"]) { |
| 2075 | NSString* password_manager_key = |
| 2076 | base::SysUTF8ToNSString(policy::key::kPasswordManagerEnabled); |
| 2077 | [testing_policies addEntriesFromDictionary:@{password_manager_key : @NO}]; |
| 2078 | [allowed_experimental_policies addObject:password_manager_key]; |
| 2079 | } |
Vincent Boisselle | 003569a7 | 2023-09-11 16:03:12 | [diff] [blame] | 2080 | |
| 2081 | if ([defaults boolForKey:@"EnableUserPolicyMerge"]) { |
| 2082 | NSString* user_policy_merge_key = |
| 2083 | base::SysUTF8ToNSString(policy::key::kCloudUserPolicyMerge); |
| 2084 | [testing_policies addEntriesFromDictionary:@{user_policy_merge_key : @YES}]; |
| 2085 | [allowed_experimental_policies addObject:user_policy_merge_key]; |
| 2086 | } |
| 2087 | |
Arthur Milchior | bb44f5c8 | 2023-03-14 16:14:46 | [diff] [blame] | 2088 | if ([defaults boolForKey:@"AddManagedBookmarks"]) { |
| 2089 | NSString* managed_bookmarks_key = |
| 2090 | base::SysUTF8ToNSString(policy::key::kManagedBookmarks); |
| 2091 | NSString* managed_bookmarks_value = |
Avi Drissman | aa24581 | 2023-04-27 20:20:57 | [diff] [blame] | 2092 | @"[" |
| 2093 | // The following gets filtered out from |
| 2094 | // the JSON string when parsed. |
| 2095 | " {" |
| 2096 | " \"toplevel_name\": \"Managed Bookmarks\"" |
| 2097 | " }," |
| 2098 | " {" |
| 2099 | " \"name\": \"Google\"," |
| 2100 | " \"url\": \"google.com\"" |
| 2101 | " }," |
| 2102 | " {" |
| 2103 | " \"name\": \"Empty Folder\"," |
| 2104 | " \"children\": []" |
| 2105 | " }," |
| 2106 | " {" |
| 2107 | " \"name\": \"Big Folder\"," |
| 2108 | " \"children\": [" |
| 2109 | " {" |
| 2110 | " \"name\": \"Youtube\"," |
| 2111 | " \"url\": \"youtube.com\"" |
| 2112 | " }," |
| 2113 | " {" |
| 2114 | " \"name\": \"Chromium\"," |
| 2115 | " \"url\": \"chromium.org\"" |
| 2116 | " }," |
| 2117 | " {" |
| 2118 | " \"name\": \"More Stuff\"," |
| 2119 | " \"children\": [" |
| 2120 | " {" |
| 2121 | " \"name\": \"Bugs\"," |
| 2122 | " \"url\": \"crbug.com\"" |
| 2123 | " }" |
| 2124 | " ]" |
| 2125 | " }" |
| 2126 | " ]" |
| 2127 | " }" |
| 2128 | "]"; |
Arthur Milchior | bb44f5c8 | 2023-03-14 16:14:46 | [diff] [blame] | 2129 | [testing_policies addEntriesFromDictionary:@{ |
| 2130 | managed_bookmarks_key : managed_bookmarks_value |
| 2131 | }]; |
| 2132 | [allowed_experimental_policies addObject:managed_bookmarks_key]; |
| 2133 | } |
Victor Hugo Vianna Silva | 9e1a730 | 2023-02-21 08:56:24 | [diff] [blame] | 2134 | |
Guillaume Jenkins | 25e9bd7 | 2020-08-27 17:39:06 | [diff] [blame] | 2135 | // If any experimental policy was allowed, set the EnableExperimentalPolicies |
| 2136 | // policy. |
| 2137 | if ([allowed_experimental_policies count] > 0) { |
| 2138 | [testing_policies setValue:allowed_experimental_policies |
| 2139 | forKey:base::SysUTF8ToNSString( |
| 2140 | policy::key::kEnableExperimentalPolicies)]; |
| 2141 | } |
| 2142 | |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 2143 | NSString* metrics_reporting_key = @"MetricsReportingEnabled"; |
| 2144 | switch ([defaults integerForKey:metrics_reporting_key]) { |
| 2145 | case 1: |
| 2146 | // Metrics reporting forced. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 2147 | [testing_policies setValue:@YES forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 2148 | break; |
| 2149 | case 2: |
| 2150 | // Metrics reporting disabled. |
Louis Romero | ec603fd5f6 | 2023-01-20 14:07:13 | [diff] [blame] | 2151 | [testing_policies setValue:@NO forKey:metrics_reporting_key]; |
jlebel | 2eb4022 | 2022-05-06 11:15:42 | [diff] [blame] | 2152 | break; |
| 2153 | default: |
| 2154 | // Metrics reporting not managed. |
| 2155 | break; |
| 2156 | } |
| 2157 | |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 2158 | // Warning: Add new flags to TestingPoliciesHash() below. |
| 2159 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 2160 | return testing_policies; |
| 2161 | } |
David Jean | 6f85d44f | 2021-08-19 08:08:45 | [diff] [blame] | 2162 | |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 2163 | } // namespace |
| 2164 | |
Gauthier Ambard | 02dbf02 | 2022-08-23 08:28:47 | [diff] [blame] | 2165 | // Add all switches from experimental flags to `command_line`. |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 2166 | void AppendSwitchesFromExperimentalSettings(base::CommandLine* command_line) { |
| 2167 | NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 2168 | |
| 2169 | // Set the UA flag if UseMobileSafariUA is enabled. |
| 2170 | if ([defaults boolForKey:@"UseMobileSafariUA"]) { |
| 2171 | // Safari uses "Vesion/", followed by the OS version excluding bugfix, where |
| 2172 | // Chrome puts its product token. |
| 2173 | int32_t major = 0; |
| 2174 | int32_t minor = 0; |
| 2175 | int32_t bugfix = 0; |
| 2176 | base::SysInfo::OperatingSystemVersionNumbers(&major, &minor, &bugfix); |
| 2177 | std::string product = base::StringPrintf("Version/%d.%d", major, minor); |
| 2178 | |
| 2179 | command_line->AppendSwitchASCII(switches::kUserAgent, |
| 2180 | web::BuildMobileUserAgent(product)); |
| 2181 | } |
| 2182 | |
| 2183 | // Shared variables for all enterprise experimental flags. |
Vincent Boisselle | ed0e6f1a | 2021-11-09 06:47:34 | [diff] [blame] | 2184 | NSMutableDictionary* testing_policies = CreateExperimentalTestingPolicies(); |
David Jean | 5ca263c | 2021-08-18 09:19:30 | [diff] [blame] | 2185 | |
| 2186 | // If a CBCM enrollment token is provided, force Chrome Browser Cloud |
| 2187 | // Management to enabled and add the token to the list of policies. |
| 2188 | NSString* token_key = |
| 2189 | base::SysUTF8ToNSString(policy::key::kCloudManagementEnrollmentToken); |
| 2190 | NSString* token = [defaults stringForKey:token_key]; |
| 2191 | |
| 2192 | if ([token length] > 0) { |
| 2193 | command_line->AppendSwitch(switches::kEnableChromeBrowserCloudManagement); |
| 2194 | [testing_policies setValue:token forKey:token_key]; |
| 2195 | } |
| 2196 | |
Guillaume Jenkins | 57606d7 | 2020-08-13 17:32:55 | [diff] [blame] | 2197 | // If some policies were set, commit them to the app's registration defaults. |
| 2198 | if ([testing_policies count] > 0) { |
Guillaume Jenkins | eeb7007c | 2020-06-25 22:55:40 | [diff] [blame] | 2199 | NSDictionary* registration_defaults = |
| 2200 | @{kPolicyLoaderIOSConfigurationKey : testing_policies}; |
| 2201 | [defaults registerDefaults:registration_defaults]; |
| 2202 | } |
| 2203 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2204 | // Freeform commandline flags. These are added last, so that any flags added |
| 2205 | // earlier in this function take precedence. |
| 2206 | if ([defaults boolForKey:@"EnableFreeformCommandLineFlags"]) { |
| 2207 | base::CommandLine::StringVector flags; |
| 2208 | // Append an empty "program" argument. |
| 2209 | flags.push_back(""); |
| 2210 | |
| 2211 | // The number of flags corresponds to the number of text fields in |
| 2212 | // Experimental.plist. |
| 2213 | const int kNumFreeformFlags = 5; |
| 2214 | for (int i = 1; i <= kNumFreeformFlags; ++i) { |
| 2215 | NSString* key = |
| 2216 | [NSString stringWithFormat:@"FreeformCommandLineFlag%d", i]; |
| 2217 | NSString* flag = [defaults stringForKey:key]; |
| 2218 | if ([flag length]) { |
Robbie Gibson | c91ce62 | 2019-05-20 14:44:33 | [diff] [blame] | 2219 | // iOS keyboard replaces -- with —, so undo that. |
| 2220 | flag = [flag stringByReplacingOccurrencesOfString:@"—" |
| 2221 | withString:@"--" |
| 2222 | options:0 |
| 2223 | range:NSMakeRange(0, 1)]; |
| 2224 | // To make things easier, allow flags with no dashes by prepending them |
| 2225 | // here. This also allows for flags that just have one dash if they |
| 2226 | // exist. |
| 2227 | if (![flag hasPrefix:@"-"]) { |
| 2228 | flag = [@"--" stringByAppendingString:flag]; |
| 2229 | } |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2230 | flags.push_back(base::SysNSStringToUTF8(flag)); |
| 2231 | } |
| 2232 | } |
| 2233 | |
| 2234 | base::CommandLine temp_command_line(flags); |
| 2235 | command_line->AppendArguments(temp_command_line, false); |
| 2236 | } |
msarda | fc76f66 | 2017-02-24 12:46:28 | [diff] [blame] | 2237 | |
justincohen | dacc85d | 2017-06-28 23:34:10 | [diff] [blame] | 2238 | // Populate command line flag for 3rd party keyboard omnibox workaround. |
| 2239 | NSString* enableThirdPartyKeyboardWorkaround = |
| 2240 | [defaults stringForKey:@"EnableThirdPartyKeyboardWorkaround"]; |
| 2241 | if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Enabled"]) { |
| 2242 | command_line->AppendSwitch(switches::kEnableThirdPartyKeyboardWorkaround); |
| 2243 | } else if ([enableThirdPartyKeyboardWorkaround isEqualToString:@"Disabled"]) { |
| 2244 | command_line->AppendSwitch(switches::kDisableThirdPartyKeyboardWorkaround); |
| 2245 | } |
| 2246 | |
Sylvain Defresne | d3cd8d9 | 2022-01-18 13:35:08 | [diff] [blame] | 2247 | ios::provider::AppendSwitchesFromExperimentalSettings(defaults, command_line); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2248 | } |
| 2249 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2250 | void ConvertFlagsToSwitches(flags_ui::FlagsStorage* flags_storage, |
| 2251 | base::CommandLine* command_line) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2252 | GetGlobalFlagsState().ConvertFlagsToSwitches( |
sdefresne | c976390 | 2015-12-02 10:30:11 | [diff] [blame] | 2253 | flags_storage, command_line, flags_ui::kAddSentinels, |
Gregory Chatzinoff | f652372 | 2017-11-21 01:33:53 | [diff] [blame] | 2254 | switches::kEnableFeatures, switches::kDisableFeatures); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2255 | } |
| 2256 | |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 2257 | std::vector<std::string> RegisterAllFeatureVariationParameters( |
| 2258 | flags_ui::FlagsStorage* flags_storage, |
| 2259 | base::FeatureList* feature_list) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2260 | return GetGlobalFlagsState().RegisterAllFeatureVariationParameters( |
| 2261 | flags_storage, feature_list); |
jkrcal | bf07337 | 2016-07-29 07:21:31 | [diff] [blame] | 2262 | } |
| 2263 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2264 | void GetFlagFeatureEntries(flags_ui::FlagsStorage* flags_storage, |
| 2265 | flags_ui::FlagAccess access, |
Matt Menke | 4d77757 | 2022-06-15 15:55:50 | [diff] [blame] | 2266 | base::Value::List& supported_entries, |
| 2267 | base::Value::List& unsupported_entries) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2268 | GetGlobalFlagsState().GetFlagFeatureEntries( |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2269 | flags_storage, access, supported_entries, unsupported_entries, |
Renjie Tang | 208c819 | 2020-11-03 00:46:51 | [diff] [blame] | 2270 | base::BindRepeating(&SkipConditionalFeatureEntry)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2271 | } |
| 2272 | |
| 2273 | void SetFeatureEntryEnabled(flags_ui::FlagsStorage* flags_storage, |
| 2274 | const std::string& internal_name, |
| 2275 | bool enable) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2276 | GetGlobalFlagsState().SetFeatureEntryEnabled(flags_storage, internal_name, |
| 2277 | enable); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2278 | } |
| 2279 | |
| 2280 | void ResetAllFlags(flags_ui::FlagsStorage* flags_storage) { |
Sylvain Defresne | 8327a2f | 2019-01-17 14:19:18 | [diff] [blame] | 2281 | GetGlobalFlagsState().ResetAllFlags(flags_storage); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2282 | } |
| 2283 | |
Nicolas MacBeth | 972e259 | 2023-02-23 15:22:09 | [diff] [blame] | 2284 | bool IsRestartNeededToCommitChanges() { |
| 2285 | return GetGlobalFlagsState().IsRestartNeededToCommitChanges(); |
| 2286 | } |
| 2287 | |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2288 | namespace testing { |
| 2289 | |
Elly Fong-Jones | 323ab109 | 2021-08-23 22:36:31 | [diff] [blame] | 2290 | base::span<const flags_ui::FeatureEntry> GetFeatureEntries() { |
| 2291 | return base::span<const flags_ui::FeatureEntry>(kFeatureEntries, |
Daniel Cheng | 1f047a8 | 2022-02-26 10:04:53 | [diff] [blame] | 2292 | std::size(kFeatureEntries)); |
sdefresne | 14900ee | 2015-11-27 14:43:21 | [diff] [blame] | 2293 | } |
| 2294 | |
| 2295 | } // namespace testing |