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