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