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