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