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