blob: d563b4e8a2f3d2999f349cc0d5d2069f4c41f487 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Instructions for adding new entries to this file:
// https://chromium.googlesource.com/chromium/src/+/main/docs/how_to_add_your_feature_flag.md#step-2_adding-the-feature-flag-to-the-chrome_flags-ui
#include "chrome/browser/about_flags.h"
#include <iterator>
#include <map>
#include <memory>
#include <set>
#include <utility>
#include "ash/public/cpp/app_list/app_list_features.h"
#include "ash/public/cpp/app_list/app_list_switches.h"
#include "ash/public/cpp/keyboard/keyboard_switches.h"
#include "base/base_switches.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/i18n/base_i18n_switches.h"
#include "base/memory/singleton.h"
#include "base/metrics/histogram_functions.h"
#include "base/no_destructor.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "cc/base/features.h"
#include "cc/base/switches.h"
#include "chrome/browser/ash/android_sms/android_sms_switches.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/fast_checkout/fast_checkout_features.h"
#include "chrome/browser/feature_guide/notifications/feature_notification_guide_service.h"
#include "chrome/browser/flag_descriptions.h"
#include "chrome/browser/login_detection/login_detection_util.h"
#include "chrome/browser/media/router/discovery/access_code/access_code_cast_constants.h"
#include "chrome/browser/navigation_predictor/navigation_predictor_features.h"
#include "chrome/browser/navigation_predictor/search_engine_preconnector.h"
#include "chrome/browser/net/stub_resolver_config_reader.h"
#include "chrome/browser/net/system_network_context_manager.h"
#include "chrome/browser/notifications/scheduler/public/features.h"
#include "chrome/browser/performance_manager/policies/policy_features.h"
#include "chrome/browser/permissions/abusive_origin_notifications_permission_revocation_config.h"
#include "chrome/browser/permissions/quiet_notification_permission_ui_config.h"
#include "chrome/browser/predictors/loading_predictor_config.h"
#include "chrome/browser/prefetch/prefetch_proxy/prefetch_proxy_features.h"
#include "chrome/browser/prefetch/prefetch_proxy/prefetch_proxy_params.h"
#include "chrome/browser/resource_coordinator/tab_manager_features.h"
#include "chrome/browser/share/share_features.h"
#include "chrome/browser/sharing/features.h"
#include "chrome/browser/sharing_hub/sharing_hub_features.h"
#include "chrome/browser/site_isolation/about_flags.h"
#include "chrome/browser/ui/app_list/search/search_features.h"
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/browser/unexpire_flags.h"
#include "chrome/browser/unexpire_flags_gen.h"
#include "chrome/browser/video_tutorials/switches.h"
#include "chrome/browser/webauthn/webauthn_switches.h"
#include "chrome/common/buildflags.h"
#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_content_client.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_switches.h"
#include "chromeos/ui/wm/features.h"
#include "components/assist_ranker/predictor_config_definitions.h"
#include "components/autofill/core/browser/autofill_experiments.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/autofill/core/common/autofill_switches.h"
#include "components/autofill/core/common/autofill_util.h"
#include "components/autofill_assistant/browser/features.h"
#include "components/browser_sync/browser_sync_switches.h"
#include "components/browsing_data/core/features.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/flag_descriptions.h"
#include "components/component_updater/component_updater_command_line_config_policy.h"
#include "components/component_updater/component_updater_switches.h"
#include "components/content_settings/core/common/features.h"
#include "components/contextual_search/core/browser/public.h"
#include "components/dom_distiller/core/dom_distiller_features.h"
#include "components/dom_distiller/core/dom_distiller_switches.h"
#include "components/download/public/common/download_features.h"
#include "components/error_page/common/error_page_switches.h"
#include "components/feature_engagement/public/feature_constants.h"
#include "components/feature_engagement/public/feature_list.h"
#include "components/feed/feed_feature_list.h"
#include "components/flags_ui/feature_entry.h"
#include "components/flags_ui/feature_entry_macros.h"
#include "components/flags_ui/flags_state.h"
#include "components/flags_ui/flags_storage.h"
#include "components/flags_ui/flags_ui_metrics.h"
#include "components/flags_ui/flags_ui_switches.h"
#include "components/heavy_ad_intervention/heavy_ad_features.h"
#include "components/history/core/browser/features.h"
#include "components/history_clusters/core/features.h"
#include "components/history_clusters/core/on_device_clustering_features.h"
#include "components/invalidation/impl/invalidation_switches.h"
#include "components/language/core/common/language_experiments.h"
#include "components/lens/lens_features.h"
#include "components/lookalikes/core/features.h"
#include "components/messages/android/messages_feature.h"
#include "components/mirroring/service/mirroring_features.h"
#include "components/nacl/common/buildflags.h"
#include "components/nacl/common/nacl_switches.h"
#include "components/network_session_configurator/common/network_features.h"
#include "components/network_session_configurator/common/network_switches.h"
#include "components/no_state_prefetch/browser/no_state_prefetch_field_trial.h"
#include "components/ntp_tiles/features.h"
#include "components/offline_pages/core/offline_page_feature.h"
#include "components/omnibox/browser/omnibox_field_trial.h"
#include "components/omnibox/common/omnibox_features.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "components/optimization_guide/core/optimization_guide_switches.h"
#include "components/page_info/core/features.h"
#include "components/paint_preview/buildflags/buildflags.h"
#include "components/paint_preview/features/features.h"
#include "components/password_manager/core/common/password_manager_features.h"
#include "components/payments/core/features.h"
#include "components/permissions/features.h"
#include "components/policy/core/common/features.h"
#include "components/query_tiles/switches.h"
#include "components/reading_list/features/reading_list_switches.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/search/ntp_features.h"
#include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
#include "components/security_state/core/security_state.h"
#include "components/segmentation_platform/public/features.h"
#include "components/send_tab_to_self/features.h"
#include "components/services/heap_profiling/public/cpp/switches.h"
#include "components/shared_highlighting/core/common/shared_highlighting_features.h"
#include "components/signin/core/browser/dice_account_reconcilor_delegate.h"
#include "components/signin/public/base/signin_buildflags.h"
#include "components/signin/public/base/signin_switches.h"
#include "components/site_isolation/features.h"
#include "components/spellcheck/common/spellcheck_features.h"
#include "components/spellcheck/spellcheck_buildflags.h"
#include "components/sync/base/command_line_switches.h"
#include "components/sync/base/features.h"
#include "components/tracing/common/tracing_switches.h"
#include "components/translate/core/browser/translate_manager.h"
#include "components/translate/core/browser/translate_prefs.h"
#include "components/translate/core/browser/translate_ranker_impl.h"
#include "components/translate/core/common/translate_util.h"
#include "components/ui_devtools/switches.h"
#include "components/version_info/version_info.h"
#include "components/viz/common/features.h"
#include "components/viz/common/switches.h"
#include "components/webapps/common/switches.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "device/base/features.h"
#include "device/bluetooth/floss/floss_features.h"
#include "device/fido/features.h"
#include "device/gamepad/public/cpp/gamepad_features.h"
#include "device/vr/buildflags/buildflags.h"
#include "extensions/buildflags/buildflags.h"
#include "gpu/config/gpu_finch_features.h"
#include "gpu/config/gpu_switches.h"
#include "media/audio/audio_features.h"
#include "media/base/media_switches.h"
#include "media/capture/capture_switches.h"
#include "media/media_buildflags.h"
#include "media/midi/midi_switches.h"
#include "media/webrtc/webrtc_features.h"
#include "mojo/core/embedder/features.h"
#include "net/base/features.h"
#include "net/net_buildflags.h"
#include "net/nqe/effective_connection_type.h"
#include "net/nqe/network_quality_estimator_params.h"
#include "net/websockets/websocket_basic_handshake_stream.h"
#include "pdf/buildflags.h"
#include "ppapi/buildflags/buildflags.h"
#include "printing/buildflags/buildflags.h"
#include "sandbox/policy/features.h"
#include "sandbox/policy/switches.h"
#include "services/device/public/cpp/device_features.h"
#include "services/device/public/cpp/serial/serial_switches.h"
#include "services/media_session/public/cpp/features.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/cpp/network_switches.h"
#include "storage/browser/quota/quota_features.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/forcedark/forcedark_switches.h"
#include "third_party/blink/public/common/switches.h"
#include "ui/accessibility/accessibility_features.h"
#include "ui/accessibility/accessibility_switches.h"
#include "ui/base/ui_base_features.h"
#include "ui/base/ui_base_switches.h"
#include "ui/compositor/compositor_switches.h"
#include "ui/display/display_features.h"
#include "ui/display/display_switches.h"
#include "ui/events/blink/blink_features.h"
#include "ui/events/event_switches.h"
#include "ui/gfx/switches.h"
#include "ui/gl/buildflags.h"
#include "ui/gl/gl_features.h"
#include "ui/gl/gl_switches.h"
#include "ui/native_theme/native_theme_features.h"
#include "ui/ui_features.h"
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#include "base/allocator/buildflags.h"
#endif
#if BUILDFLAG(IS_CHROMEOS)
#include "base/process/process.h"
#include "chrome/browser/apps/intent_helper/intent_picker_features.h"
#include "chromeos/constants/chromeos_features.h"
#endif
#if BUILDFLAG(IS_ANDROID)
#include "chrome/browser/android/explore_sites/explore_sites_feature.h"
#include "chrome/browser/flags/android/chrome_feature_list.h"
#include "chrome/browser/notifications/chime/android/features.h"
#include "components/browser_ui/photo_picker/android/features.h"
#include "components/content_creation/notes/core/note_features.h"
#include "components/content_creation/reactions/core/reactions_features.h"
#include "components/translate/content/android/translate_message.h"
#include "components/webapps/browser/features.h"
#else // BUILDFLAG(IS_ANDROID)
#include "chrome/browser/media/router/discovery/access_code/access_code_cast_sink_service.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/web_applications/preinstalled_app_install_features.h"
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/components/arc/arc_features.h"
#include "ash/components/arc/arc_util.h"
#include "ash/constants/ash_features.h"
#include "ash/constants/ash_switches.h"
#include "chrome/browser/ash/crosapi/browser_manager.h"
#include "chrome/browser/ash/crosapi/browser_util.h"
#include "chrome/browser/ash/crostini/crostini_util.h"
#include "chrome/browser/memory/memory_ablation_study.h"
#include "chrome/browser/nearby_sharing/common/nearby_share_features.h"
#include "chrome/common/webui_url_constants.h"
#include "chromeos/ash/components/assistant/buildflags.h"
#include "chromeos/ash/components/memory/swap_configuration.h"
#include "chromeos/ash/services/assistant/public/cpp/features.h"
#include "components/app_restore/features.h"
#include "components/metrics/structured/structured_metrics_features.h" // nogncheck
#include "media/capture/video/chromeos/video_capture_features_chromeos.h"
#include "remoting/host/chromeos/features.h"
#include "third_party/cros_system_api/switches/chrome_switches.h"
#include "ui/events/ozone/features.h"
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#include "base/i18n/icu_mergeable_data_file.h"
#include "chrome/browser/lacros/lacros_url_handling.h"
#include "chrome/common/webui_url_constants.h"
#endif
#if BUILDFLAG(IS_MAC)
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/cocoa/screentime/screentime_features.h"
#endif // BUILDFLAG(IS_MAC)
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "extensions/common/extension_features.h"
#include "extensions/common/switches.h"
#endif // BUILDFLAG(ENABLE_EXTENSIONS)
#if BUILDFLAG(ENABLE_PDF)
#include "pdf/pdf_features.h"
#endif
#if BUILDFLAG(ENABLE_PRINTING)
#include "printing/printing_features.h"
#endif
#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
#include "chrome/browser/supervised_user/supervised_user_features/supervised_user_features.h" // nogncheck
#endif // ENABLE_SUPERVISED_USERS
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
#include "ui/ozone/buildflags.h"
#include "ui/ozone/public/ozone_switches.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_WIN)
#include "base/win/windows_version.h"
#include "chrome/browser/win/titlebar_config.h"
#include "ui/color/color_switches.h" // nogncheck
#endif
#if defined(TOOLKIT_VIEWS)
#include "ui/views/views_features.h"
#include "ui/views/views_switches.h"
#endif // defined(TOOLKIT_VIEWS)
using flags_ui::FeatureEntry;
using flags_ui::kDeprecated;
using flags_ui::kOsAndroid;
using flags_ui::kOsCrOS;
using flags_ui::kOsCrOSOwnerOnly;
using flags_ui::kOsFuchsia;
using flags_ui::kOsLacros;
using flags_ui::kOsLinux;
using flags_ui::kOsMac;
using flags_ui::kOsWin;
namespace about_flags {
namespace {
const unsigned kOsAll =
kOsMac | kOsWin | kOsLinux | kOsCrOS | kOsAndroid | kOsFuchsia | kOsLacros;
const unsigned kOsDesktop =
kOsMac | kOsWin | kOsLinux | kOsCrOS | kOsFuchsia | kOsLacros;
#if defined(USE_AURA)
const unsigned kOsAura = kOsWin | kOsLinux | kOsCrOS | kOsFuchsia | kOsLacros;
#endif // USE_AURA
#if defined(USE_AURA)
const FeatureEntry::Choice kPullToRefreshChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flags_ui::kGenericExperimentChoiceDisabled, switches::kPullToRefresh, "0"},
{flags_ui::kGenericExperimentChoiceEnabled, switches::kPullToRefresh, "1"},
{flag_descriptions::kPullToRefreshEnabledTouchscreen,
switches::kPullToRefresh, "2"}};
#endif // USE_AURA
const FeatureEntry::Choice kOverlayStrategiesChoices[] = {
{flag_descriptions::kOverlayStrategiesDefault, "", ""},
{flag_descriptions::kOverlayStrategiesNone,
switches::kEnableHardwareOverlays, ""},
{flag_descriptions::kOverlayStrategiesUnoccludedFullscreen,
switches::kEnableHardwareOverlays, "single-fullscreen"},
{flag_descriptions::kOverlayStrategiesUnoccluded,
switches::kEnableHardwareOverlays, "single-fullscreen,single-on-top"},
{flag_descriptions::kOverlayStrategiesOccludedAndUnoccluded,
switches::kEnableHardwareOverlays,
"single-fullscreen,single-on-top,underlay"},
};
const FeatureEntry::Choice kTouchTextSelectionStrategyChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kTouchSelectionStrategyCharacter,
blink::switches::kTouchTextSelectionStrategy, "character"},
{flag_descriptions::kTouchSelectionStrategyDirection,
blink::switches::kTouchTextSelectionStrategy, "direction"}};
#if BUILDFLAG(IS_WIN)
const FeatureEntry::Choice kUseAngleChoicesWindows[] = {
{flag_descriptions::kUseAngleDefault, "", ""},
{flag_descriptions::kUseAngleGL, switches::kUseANGLE,
gl::kANGLEImplementationOpenGLName},
{flag_descriptions::kUseAngleD3D11, switches::kUseANGLE,
gl::kANGLEImplementationD3D11Name},
{flag_descriptions::kUseAngleD3D9, switches::kUseANGLE,
gl::kANGLEImplementationD3D9Name},
{flag_descriptions::kUseAngleD3D11on12, switches::kUseANGLE,
gl::kANGLEImplementationD3D11on12Name}};
#elif BUILDFLAG(IS_MAC)
const FeatureEntry::Choice kUseAngleChoicesMac[] = {
{flag_descriptions::kUseAngleDefault, "", ""},
{flag_descriptions::kUseAngleGL, switches::kUseANGLE,
gl::kANGLEImplementationOpenGLName},
{flag_descriptions::kUseAngleMetal, switches::kUseANGLE,
gl::kANGLEImplementationMetalName}};
#endif
#if BUILDFLAG(IS_LINUX)
const FeatureEntry::Choice kOzonePlatformHintRuntimeChoices[] = {
{flag_descriptions::kOzonePlatformHintChoiceDefault, "", ""},
{flag_descriptions::kOzonePlatformHintChoiceAuto,
switches::kOzonePlatformHint, "auto"},
#if BUILDFLAG(OZONE_PLATFORM_X11)
{flag_descriptions::kOzonePlatformHintChoiceX11,
switches::kOzonePlatformHint, "x11"},
#endif
#if BUILDFLAG(OZONE_PLATFORM_WAYLAND)
{flag_descriptions::kOzonePlatformHintChoiceWayland,
switches::kOzonePlatformHint, "wayland"},
#endif
};
#endif
#if BUILDFLAG(ENABLE_VR)
const FeatureEntry::Choice kWebXrForceRuntimeChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kWebXrRuntimeChoiceNone, switches::kWebXrForceRuntime,
switches::kWebXrRuntimeNone},
#if BUILDFLAG(ENABLE_OPENXR)
{flag_descriptions::kWebXrRuntimeChoiceOpenXR, switches::kWebXrForceRuntime,
switches::kWebXrRuntimeOpenXr},
#endif // ENABLE_OPENXR
};
#endif // ENABLE_VR
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kElasticOverscrollFilterType[] = {
{features::kElasticOverscrollType, features::kElasticOverscrollTypeFilter}};
const FeatureEntry::FeatureParam kElasticOverscrollTransformType[] = {
{features::kElasticOverscrollType,
features::kElasticOverscrollTypeTransform}};
const FeatureEntry::FeatureVariation kElasticOverscrollVariations[] = {
{"Pixel shader stretch", kElasticOverscrollFilterType,
std::size(kElasticOverscrollFilterType), nullptr},
{"Transform stretch", kElasticOverscrollTransformType,
std::size(kElasticOverscrollTransformType), nullptr}};
const FeatureEntry::FeatureParam kCCTResizablePolicyParamUseAllowlist[] = {
{"default_policy", "use-allowlist"}};
const FeatureEntry::FeatureParam kCCTResizablePolicyParamUseDenylist[] = {
{"default_policy", "use-denylist"}};
const FeatureEntry::FeatureVariation
kCCTResizableThirdPartiesDefaultPolicyVariations[] = {
{"Use Allowlist", kCCTResizablePolicyParamUseAllowlist,
std::size(kCCTResizablePolicyParamUseAllowlist), nullptr},
{"Use Denylist", kCCTResizablePolicyParamUseDenylist,
std::size(kCCTResizablePolicyParamUseDenylist), nullptr}};
const FeatureEntry::Choice kReaderModeHeuristicsChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kReaderModeHeuristicsMarkup,
switches::kReaderModeHeuristics,
switches::reader_mode_heuristics::kOGArticle},
{flag_descriptions::kReaderModeHeuristicsAdaboost,
switches::kReaderModeHeuristics,
switches::reader_mode_heuristics::kAdaBoost},
{flag_descriptions::kReaderModeHeuristicsAlwaysOn,
switches::kReaderModeHeuristics,
switches::reader_mode_heuristics::kAlwaysTrue},
{flag_descriptions::kReaderModeHeuristicsAlwaysOff,
switches::kReaderModeHeuristics, switches::reader_mode_heuristics::kNone},
{flag_descriptions::kReaderModeHeuristicsAllArticles,
switches::kReaderModeHeuristics,
switches::reader_mode_heuristics::kAllArticles},
};
const FeatureEntry::Choice kForceUpdateMenuTypeChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kUpdateMenuTypeNone, switches::kForceUpdateMenuType,
"none"},
{flag_descriptions::kUpdateMenuTypeUpdateAvailable,
switches::kForceUpdateMenuType, "update_available"},
{flag_descriptions::kUpdateMenuTypeUnsupportedOSVersion,
switches::kForceUpdateMenuType, "unsupported_os_version"},
};
#else // BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kReaderModeOfferInSettings[] = {
{switches::kReaderModeDiscoverabilityParamName,
switches::kReaderModeOfferInSettings}};
const FeatureEntry::FeatureVariation kReaderModeDiscoverabilityVariations[] = {
{"available in settings", kReaderModeOfferInSettings,
std::size(kReaderModeOfferInSettings), nullptr}};
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kAdaptiveButton_AlwaysNone[] = {
{"mode", "always-none"}};
const FeatureEntry::FeatureParam kAdaptiveButton_AlwaysNewTab[] = {
{"mode", "always-new-tab"}};
const FeatureEntry::FeatureParam kAdaptiveButton_AlwaysShare[] = {
{"mode", "always-share"}};
const FeatureEntry::FeatureParam kAdaptiveButton_AlwaysVoice[] = {
{"mode", "always-voice"}};
const FeatureEntry::FeatureVariation kAdaptiveButtonInTopToolbarVariations[] = {
{"Always None", kAdaptiveButton_AlwaysNone,
std::size(kAdaptiveButton_AlwaysNone), nullptr},
{"Always New Tab", kAdaptiveButton_AlwaysNewTab,
std::size(kAdaptiveButton_AlwaysNewTab), nullptr},
{"Always Share", kAdaptiveButton_AlwaysShare,
std::size(kAdaptiveButton_AlwaysShare), nullptr},
{"Always Voice", kAdaptiveButton_AlwaysVoice,
std::size(kAdaptiveButton_AlwaysVoice), nullptr},
};
const FeatureEntry::FeatureParam kAdaptiveButtonCustomization_NewTab[] = {
{"default_segment", "new-tab"},
{"ignore_segmentation_results", "true"}};
const FeatureEntry::FeatureParam kAdaptiveButtonCustomization_Share[] = {
{"default_segment", "share"},
{"ignore_segmentation_results", "true"}};
const FeatureEntry::FeatureParam kAdaptiveButtonCustomization_Voice[] = {
{"default_segment", "voice"},
{"ignore_segmentation_results", "true"}};
const FeatureEntry::FeatureVariation
kAdaptiveButtonInTopToolbarCustomizationVariations[] = {
{"New Tab", kAdaptiveButtonCustomization_NewTab,
std::size(kAdaptiveButtonCustomization_NewTab), nullptr},
{"Share", kAdaptiveButtonCustomization_Share,
std::size(kAdaptiveButtonCustomization_Share), nullptr},
{"Voice", kAdaptiveButtonCustomization_Voice,
std::size(kAdaptiveButtonCustomization_Voice), nullptr},
};
#endif // BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam
kAutofillSaveCardUiExperimentEnableFasterAndProtected[] = {
{"autofill_save_card_ui_experiment_selector_in_number", "1"},
};
const FeatureEntry::FeatureParam
kAutofillSaveCardUiExperimentEnableEncryptedAndSecure[] = {
{"autofill_save_card_ui_experiment_selector_in_number", "2"},
};
const FeatureEntry::FeatureVariation kAutofillSaveCardUiExperimentOptions[] = {
{flag_descriptions::kAutofillSaveCardUiExperimentFasterAndProtected,
kAutofillSaveCardUiExperimentEnableFasterAndProtected,
std::size(kAutofillSaveCardUiExperimentEnableFasterAndProtected), nullptr},
{flag_descriptions::kAutofillSaveCardUiExperimentEncryptedAndSecure,
kAutofillSaveCardUiExperimentEnableEncryptedAndSecure,
std::size(kAutofillSaveCardUiExperimentEnableEncryptedAndSecure), nullptr},
};
#if !BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::FeatureParam kForceDark_SimpleHsl[] = {
{"inversion_method", "hsl_based"},
{"image_behavior", "none"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_SimpleCielab[] = {
{"inversion_method", "cielab_based"},
{"image_behavior", "none"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_SimpleRgb[] = {
{"inversion_method", "rgb_based"},
{"image_behavior", "none"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
// Keep in sync with the kForceDark_SelectiveImageInversion
// in aw_feature_entries.cc if you tweak these parameters.
const FeatureEntry::FeatureParam kForceDark_SelectiveImageInversion[] = {
{"inversion_method", "cielab_based"},
{"image_behavior", "selective"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_SelectiveElementInversion[] = {
{"inversion_method", "cielab_based"},
{"image_behavior", "none"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_SelectiveGeneralInversion[] = {
{"inversion_method", "cielab_based"},
{"image_behavior", "selective"},
{"foreground_lightness_threshold", "150"},
{"background_lightness_threshold", "205"}};
const FeatureEntry::FeatureParam kForceDark_IncreaseTextContrast[] = {
{"increase_text_contrast", "true"}};
const FeatureEntry::FeatureVariation kForceDarkVariations[] = {
{"with simple HSL-based inversion", kForceDark_SimpleHsl,
std::size(kForceDark_SimpleHsl), nullptr},
{"with simple CIELAB-based inversion", kForceDark_SimpleCielab,
std::size(kForceDark_SimpleCielab), nullptr},
{"with simple RGB-based inversion", kForceDark_SimpleRgb,
std::size(kForceDark_SimpleRgb), nullptr},
{"with selective image inversion", kForceDark_SelectiveImageInversion,
std::size(kForceDark_SelectiveImageInversion), nullptr},
{"with selective inversion of non-image elements",
kForceDark_SelectiveElementInversion,
std::size(kForceDark_SelectiveElementInversion), nullptr},
{"with selective inversion of everything",
kForceDark_SelectiveGeneralInversion,
std::size(kForceDark_SelectiveGeneralInversion), nullptr},
{"with increased text contrast", kForceDark_IncreaseTextContrast,
std::size(kForceDark_IncreaseTextContrast), nullptr}};
#endif // !BUILDFLAG(IS_CHROMEOS)
const FeatureEntry::FeatureParam kMBIModeLegacy[] = {{"mode", "legacy"}};
const FeatureEntry::FeatureParam kMBIModeEnabledPerRenderProcessHost[] = {
{"mode", "per_render_process_host"}};
const FeatureEntry::FeatureParam kMBIModeEnabledPerSiteInstance[] = {
{"mode", "per_site_instance"}};
const FeatureEntry::FeatureVariation kMBIModeVariations[] = {
{"legacy mode", kMBIModeLegacy, std::size(kMBIModeLegacy), nullptr},
{"per render process host", kMBIModeEnabledPerRenderProcessHost,
std::size(kMBIModeEnabledPerRenderProcessHost), nullptr},
{"per site instance", kMBIModeEnabledPerSiteInstance,
std::size(kMBIModeEnabledPerSiteInstance), nullptr}};
const FeatureEntry::FeatureParam kIntensiveWakeUpThrottlingAfter10Seconds[] = {
{blink::features::kIntensiveWakeUpThrottling_GracePeriodSeconds_Name,
"10"}};
const FeatureEntry::FeatureVariation kIntensiveWakeUpThrottlingVariations[] = {
{"10 seconds after a tab is hidden (facilitates testing)",
kIntensiveWakeUpThrottlingAfter10Seconds,
std::size(kIntensiveWakeUpThrottlingAfter10Seconds), nullptr},
};
const FeatureEntry::FeatureParam kFencedFramesImplementationTypeShadowDOM[] = {
{"implementation_type", "shadow_dom"}};
const FeatureEntry::FeatureParam kFencedFramesImplementationTypeMPArch[] = {
{"implementation_type", "mparch"}};
const FeatureEntry::FeatureVariation
kFencedFramesImplementationTypeVariations[] = {
{"with ShadowDOM", kFencedFramesImplementationTypeShadowDOM,
std::size(kFencedFramesImplementationTypeShadowDOM), nullptr},
{"with multiple page architecture",
kFencedFramesImplementationTypeMPArch,
std::size(kFencedFramesImplementationTypeMPArch), nullptr}};
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kCloseTabSuggestionsStale_Immediate[] = {
{"baseline_tab_suggestions", "true"},
{"baseline_close_tab_suggestions", "true"}};
const FeatureEntry::FeatureParam kCloseTabSuggestionsStale_4Hours[] = {
{"close_tab_suggestions_stale_time_ms", "14400000"}};
const FeatureEntry::FeatureParam kCloseTabSuggestionsStale_8Hours[] = {
{"close_tab_suggestions_stale_time_ms", "28800000"}};
const FeatureEntry::FeatureParam kCloseTabSuggestionsStale_7Days[] = {
{"close_tab_suggestions_stale_time_ms", "604800000"}};
const FeatureEntry::FeatureParam kCloseTabSuggestionsTimeSiteEngagement[] = {
{"close_tab_min_num_tabs", "5"},
{"close_tab_features_time_last_used_enabled", "true"},
{"close_tab_features_time_last_used_transform", "MEAN_VARIANCE"},
{"close_tab_features_time_last_used_threshold", "0.5"},
{"close_tab_features_site_engagement_enabled", "true"},
{"close_tab_features_site_engagement_threshold", "90.0"},
};
const FeatureEntry::FeatureParam kGroupAndCloseTabSuggestions_Immediate[] = {
{"baseline_tab_suggestions", "true"},
{"baseline_group_tab_suggestions", "true"},
{"baseline_close_tab_suggestions", "true"}};
const FeatureEntry::FeatureVariation kCloseTabSuggestionsStaleVariations[] = {
{"Close Immediate", kCloseTabSuggestionsStale_Immediate,
std::size(kCloseTabSuggestionsStale_Immediate), nullptr},
{"Group+Close Immediate", kGroupAndCloseTabSuggestions_Immediate,
std::size(kGroupAndCloseTabSuggestions_Immediate), nullptr},
{"4 hours", kCloseTabSuggestionsStale_4Hours,
std::size(kCloseTabSuggestionsStale_4Hours), nullptr},
{"8 hours", kCloseTabSuggestionsStale_8Hours,
std::size(kCloseTabSuggestionsStale_8Hours), nullptr},
{"7 days", kCloseTabSuggestionsStale_7Days,
std::size(kCloseTabSuggestionsStale_7Days), nullptr},
{"Time & Site Engagement", kCloseTabSuggestionsTimeSiteEngagement,
std::size(kCloseTabSuggestionsTimeSiteEngagement), nullptr},
};
const FeatureEntry::FeatureParam kLongScreenshot_AutoscrollDragSlow[] = {
{"autoscroll", "1"}};
const FeatureEntry::FeatureParam kLongScreenshot_AutoscrollDragQuick[] = {
{"autoscroll", "2"}};
const FeatureEntry::FeatureVariation kLongScreenshotVariations[] = {
{"Autoscroll Experiment 1", kLongScreenshot_AutoscrollDragSlow,
std::size(kLongScreenshot_AutoscrollDragSlow), nullptr},
{"Autoscroll Experiment 2", kLongScreenshot_AutoscrollDragQuick,
std::size(kLongScreenshot_AutoscrollDragQuick), nullptr}};
const FeatureEntry::FeatureParam kShowSingleRowMVTiles[] = {
{"most_visited_max_rows_normal_screen", "1"},
{"most_visited_max_rows_small_screen", "1"},
{"small_screen_height_threshold_dp", "700"}};
const FeatureEntry::FeatureParam kShowTwoRowsMVTiles[] = {
{"most_visited_max_rows_normal_screen", "2"},
{"most_visited_max_rows_small_screen", "2"},
{"small_screen_height_threshold_dp", "700"}};
const FeatureEntry::FeatureVariation kQueryTilesVariations[] = {
{"(show single row of MV tiles)", kShowSingleRowMVTiles,
std::size(kShowSingleRowMVTiles), nullptr},
{"(show two rows of MV tiles)", kShowTwoRowsMVTiles,
std::size(kShowTwoRowsMVTiles), nullptr}};
#endif // BUILDFLAG(IS_ANDROID)
const FeatureEntry::Choice kEnableGpuRasterizationChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flags_ui::kGenericExperimentChoiceEnabled,
switches::kEnableGpuRasterization, ""},
{flags_ui::kGenericExperimentChoiceDisabled,
switches::kDisableGpuRasterization, ""},
};
const FeatureEntry::Choice kExtensionContentVerificationChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kExtensionContentVerificationBootstrap,
switches::kExtensionContentVerification,
switches::kExtensionContentVerificationBootstrap},
{flag_descriptions::kExtensionContentVerificationEnforce,
switches::kExtensionContentVerification,
switches::kExtensionContentVerificationEnforce},
{flag_descriptions::kExtensionContentVerificationEnforceStrict,
switches::kExtensionContentVerification,
switches::kExtensionContentVerificationEnforceStrict},
};
const FeatureEntry::Choice kTopChromeTouchUiChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flags_ui::kGenericExperimentChoiceAutomatic, switches::kTopChromeTouchUi,
switches::kTopChromeTouchUiAuto},
{flags_ui::kGenericExperimentChoiceDisabled, switches::kTopChromeTouchUi,
switches::kTopChromeTouchUiDisabled},
{flags_ui::kGenericExperimentChoiceEnabled, switches::kTopChromeTouchUi,
switches::kTopChromeTouchUiEnabled}};
#if BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::Choice kUXStudy1Choices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{memory::kUXStudy1A, memory::kUXStudy1Switch, memory::kUXStudy1A},
{memory::kUXStudy1B, memory::kUXStudy1Switch, memory::kUXStudy1B},
{memory::kUXStudy1C, memory::kUXStudy1Switch, memory::kUXStudy1C},
{memory::kUXStudy1D, memory::kUXStudy1Switch, memory::kUXStudy1D},
};
const char kLacrosAvailabilityIgnoreInternalName[] =
"lacros-availability-ignore";
const char kLacrosOnlyInternalName[] = "lacros-only";
const char kLacrosPrimaryInternalName[] = "lacros-primary";
const char kLacrosSupportInternalName[] = "lacros-support";
const char kLacrosStabilityInternalName[] = "lacros-stability";
const char kWebAppsCrosapiInternalName[] = "web-apps-crosapi";
const char kArcVmBalloonPolicyInternalName[] =
"arc-use-limit-cache-balloon-policy";
const FeatureEntry::Choice kLacrosStabilityChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{crosapi::browser_util::kLacrosStabilityChannelCanary,
crosapi::browser_util::kLacrosStabilitySwitch,
crosapi::browser_util::kLacrosStabilityChannelCanary},
{crosapi::browser_util::kLacrosStabilityChannelDev,
crosapi::browser_util::kLacrosStabilitySwitch,
crosapi::browser_util::kLacrosStabilityChannelDev},
{crosapi::browser_util::kLacrosStabilityChannelBeta,
crosapi::browser_util::kLacrosStabilitySwitch,
crosapi::browser_util::kLacrosStabilityChannelBeta},
{crosapi::browser_util::kLacrosStabilityChannelStable,
crosapi::browser_util::kLacrosStabilitySwitch,
crosapi::browser_util::kLacrosStabilityChannelStable},
};
const char kLacrosSelectionInternalName[] = "lacros-selection";
const FeatureEntry::Choice kLacrosSelectionChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kLacrosSelectionStatefulDescription,
crosapi::browser_util::kLacrosSelectionSwitch,
crosapi::browser_util::kLacrosSelectionStateful},
{flag_descriptions::kLacrosSelectionRootfsDescription,
crosapi::browser_util::kLacrosSelectionSwitch,
crosapi::browser_util::kLacrosSelectionRootfs},
};
const FeatureEntry::Choice kLacrosAvailabilityPolicyChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{crosapi::browser_util::kLacrosAvailabilityPolicyUserChoice,
crosapi::browser_util::kLacrosAvailabilityPolicySwitch,
crosapi::browser_util::kLacrosAvailabilityPolicyUserChoice},
{crosapi::browser_util::kLacrosAvailabilityPolicyLacrosDisabled,
crosapi::browser_util::kLacrosAvailabilityPolicySwitch,
crosapi::browser_util::kLacrosAvailabilityPolicyLacrosDisabled},
{crosapi::browser_util::kLacrosAvailabilityPolicySideBySide,
crosapi::browser_util::kLacrosAvailabilityPolicySwitch,
crosapi::browser_util::kLacrosAvailabilityPolicySideBySide},
{crosapi::browser_util::kLacrosAvailabilityPolicyLacrosPrimary,
crosapi::browser_util::kLacrosAvailabilityPolicySwitch,
crosapi::browser_util::kLacrosAvailabilityPolicyLacrosPrimary},
{crosapi::browser_util::kLacrosAvailabilityPolicyLacrosOnly,
crosapi::browser_util::kLacrosAvailabilityPolicySwitch,
crosapi::browser_util::kLacrosAvailabilityPolicyLacrosOnly},
};
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::Choice kForceUIDirectionChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kForceDirectionLtr, switches::kForceUIDirection,
switches::kForceDirectionLTR},
{flag_descriptions::kForceDirectionRtl, switches::kForceUIDirection,
switches::kForceDirectionRTL},
};
const FeatureEntry::Choice kForceTextDirectionChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kForceDirectionLtr, switches::kForceTextDirection,
switches::kForceDirectionLTR},
{flag_descriptions::kForceDirectionRtl, switches::kForceTextDirection,
switches::kForceDirectionRTL},
};
#if BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::Choice kSchedulerConfigurationChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kSchedulerConfigurationConservative,
switches::kSchedulerConfiguration,
switches::kSchedulerConfigurationConservative},
{flag_descriptions::kSchedulerConfigurationPerformance,
switches::kSchedulerConfiguration,
switches::kSchedulerConfigurationPerformance},
};
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::FeatureParam kDynamicSearchUpdateAnimationDuration_50[] = {
{"search_result_translation_duration", "50"}};
const FeatureEntry::FeatureParam kDynamicSearchUpdateAnimationDuration_100[] = {
{"search_result_translation_duration", "100"}};
const FeatureEntry::FeatureParam kDynamicSearchUpdateAnimationDuration_150[] = {
{"search_result_translation_duration", "150"}};
const FeatureEntry::FeatureVariation kDynamicSearchUpdateAnimationVariations[] =
{{"50ms", kDynamicSearchUpdateAnimationDuration_50,
std::size(kDynamicSearchUpdateAnimationDuration_50), nullptr},
{"100ms", kDynamicSearchUpdateAnimationDuration_100,
std::size(kDynamicSearchUpdateAnimationDuration_100), nullptr},
{"150ms", kDynamicSearchUpdateAnimationDuration_150,
std::size(kDynamicSearchUpdateAnimationDuration_150), nullptr}};
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(ENABLE_NACL)
// Note: This needs to be kept in sync with parsing in
// content/common/zygote/zygote_communication_linux.cc
const FeatureEntry::Choice kVerboseLoggingInNaclChoices[] = {
{flag_descriptions::kVerboseLoggingInNaclChoiceDefault, "", ""},
{flag_descriptions::kVerboseLoggingInNaclChoiceLow,
switches::kVerboseLoggingInNacl, switches::kVerboseLoggingInNaclChoiceLow},
{flag_descriptions::kVerboseLoggingInNaclChoiceMedium,
switches::kVerboseLoggingInNacl,
switches::kVerboseLoggingInNaclChoiceMedium},
{flag_descriptions::kVerboseLoggingInNaclChoiceHigh,
switches::kVerboseLoggingInNacl,
switches::kVerboseLoggingInNaclChoiceHigh},
{flag_descriptions::kVerboseLoggingInNaclChoiceHighest,
switches::kVerboseLoggingInNacl,
switches::kVerboseLoggingInNaclChoiceHighest},
{flag_descriptions::kVerboseLoggingInNaclChoiceDisabled,
switches::kVerboseLoggingInNacl,
switches::kVerboseLoggingInNaclChoiceDisabled},
};
#endif // ENABLE_NACL
const FeatureEntry::Choice kSiteIsolationOptOutChoices[] = {
{flag_descriptions::kSiteIsolationOptOutChoiceDefault, "", ""},
{flag_descriptions::kSiteIsolationOptOutChoiceOptOut,
switches::kDisableSiteIsolation, ""},
};
const FeatureEntry::Choice kForceColorProfileChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kForceColorProfileSRGB,
switches::kForceDisplayColorProfile, "srgb"},
{flag_descriptions::kForceColorProfileP3,
switches::kForceDisplayColorProfile, "display-p3-d65"},
{flag_descriptions::kForceColorProfileColorSpin,
switches::kForceDisplayColorProfile, "color-spin-gamma24"},
{flag_descriptions::kForceColorProfileSCRGBLinear,
switches::kForceDisplayColorProfile, "scrgb-linear"},
{flag_descriptions::kForceColorProfileHDR10,
switches::kForceDisplayColorProfile, "hdr10"},
};
const FeatureEntry::Choice kMemlogModeChoices[] = {
{flags_ui::kGenericExperimentChoiceDisabled, "", ""},
{flag_descriptions::kMemlogModeMinimal, heap_profiling::kMemlogMode,
heap_profiling::kMemlogModeMinimal},
{flag_descriptions::kMemlogModeAll, heap_profiling::kMemlogMode,
heap_profiling::kMemlogModeAll},
{flag_descriptions::kMemlogModeBrowser, heap_profiling::kMemlogMode,
heap_profiling::kMemlogModeBrowser},
{flag_descriptions::kMemlogModeGpu, heap_profiling::kMemlogMode,
heap_profiling::kMemlogModeGpu},
{flag_descriptions::kMemlogModeAllRenderers, heap_profiling::kMemlogMode,
heap_profiling::kMemlogModeAllRenderers},
{flag_descriptions::kMemlogModeRendererSampling,
heap_profiling::kMemlogMode, heap_profiling::kMemlogModeRendererSampling},
};
const FeatureEntry::Choice kMemlogStackModeChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kMemlogStackModeNative,
heap_profiling::kMemlogStackMode, heap_profiling::kMemlogStackModeNative},
{flag_descriptions::kMemlogStackModeNativeWithThreadNames,
heap_profiling::kMemlogStackMode,
heap_profiling::kMemlogStackModeNativeWithThreadNames},
};
const FeatureEntry::Choice kMemlogSamplingRateChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kMemlogSamplingRate10KB,
heap_profiling::kMemlogSamplingRate,
heap_profiling::kMemlogSamplingRate10KB},
{flag_descriptions::kMemlogSamplingRate50KB,
heap_profiling::kMemlogSamplingRate,
heap_profiling::kMemlogSamplingRate50KB},
{flag_descriptions::kMemlogSamplingRate100KB,
heap_profiling::kMemlogSamplingRate,
heap_profiling::kMemlogSamplingRate100KB},
{flag_descriptions::kMemlogSamplingRate500KB,
heap_profiling::kMemlogSamplingRate,
heap_profiling::kMemlogSamplingRate500KB},
{flag_descriptions::kMemlogSamplingRate1MB,
heap_profiling::kMemlogSamplingRate,
heap_profiling::kMemlogSamplingRate1MB},
{flag_descriptions::kMemlogSamplingRate5MB,
heap_profiling::kMemlogSamplingRate,
heap_profiling::kMemlogSamplingRate5MB},
};
const FeatureEntry::FeatureParam kPageContentAnnotationsContentParams[] = {
{"annotate_title_instead_of_page_content", "false"},
{"extract_related_searches", "true"},
{"max_size_for_text_dump_in_bytes", "5120"},
{"write_to_history_service", "true"},
};
const FeatureEntry::FeatureParam kPageContentAnnotationsTitleParams[] = {
{"annotate_title_instead_of_page_content", "true"},
{"extract_related_searches", "true"},
{"write_to_history_service", "true"},
};
const FeatureEntry::FeatureVariation kPageContentAnnotationsVariations[] = {
{"All Annotations and Persistence on Content",
kPageContentAnnotationsContentParams,
std::size(kPageContentAnnotationsContentParams), nullptr},
{"All Annotations and Persistence on Title",
kPageContentAnnotationsTitleParams,
std::size(kPageContentAnnotationsTitleParams), nullptr},
};
const FeatureEntry::FeatureParam
kPageEntitiesPageContentAnnotationsAllLocalesParams[] = {
{"supported_locales", "*"},
};
const FeatureEntry::FeatureVariation
kPageEntitiesPageContentAnnotationsVariations[] = {
{"All Supported Locales",
kPageEntitiesPageContentAnnotationsAllLocalesParams,
std::size(kPageEntitiesPageContentAnnotationsAllLocalesParams),
nullptr},
};
const FeatureEntry::FeatureParam
kJourneysSortClustersWithinBatchForQueryParams[] = {
{"JourneysLocaleOrLanguageAllowlist", "*"},
{"JourneysSortClustersWithinBatchForQuery", "true"},
};
const FeatureEntry::FeatureParam kJourneysDropHiddenVisitsParams[] = {
{"JourneysLocaleOrLanguageAllowlist", "*"},
{"drop_hidden_visits", "true"},
};
const FeatureEntry::FeatureParam kJourneysShowAllVisitsParams[] = {
{"JourneysLocaleOrLanguageAllowlist", "*"},
// To show all visits, set the number of visits above the fold to a very
// high number. We drop the rest above this very high number because we
// definitely don't want to surface a Show More UI after that number.
{"JourneysNumVisitsToAlwaysShowAboveTheFold", "200"},
{"drop_hidden_visits", "true"},
};
const FeatureEntry::FeatureParam kJourneysAllLocalesParams[] = {
{"JourneysLocaleOrLanguageAllowlist", "*"},
};
const FeatureEntry::FeatureVariation kJourneysVariations[] = {
{"Sort Clusters Within Batch for Query",
kJourneysSortClustersWithinBatchForQueryParams,
std::size(kJourneysSortClustersWithinBatchForQueryParams), nullptr},
{"No 'Show More' - Drop hidden visits", kJourneysDropHiddenVisitsParams,
std::size(kJourneysDropHiddenVisitsParams), nullptr},
{"No 'Show More' - Show all visits", kJourneysShowAllVisitsParams,
std::size(kJourneysShowAllVisitsParams), nullptr},
{"All Supported Locales", kJourneysAllLocalesParams,
std::size(kJourneysAllLocalesParams), nullptr},
};
const FeatureEntry::FeatureParam kJourneysOmniboxActionOnAllURLsParams[] = {
{"omnibox_action_on_urls", "true"},
{"omnibox_action_on_noisy_urls", "true"},
{"omnibox_action_on_navigation_intents", "true"},
{"omnibox_action_with_pedals", "true"},
};
const FeatureEntry::FeatureParam kJourneysOmniboxActionOnNonNoisyURLsParams[] =
{
{"omnibox_action_on_urls", "true"},
{"omnibox_action_on_noisy_urls", "false"},
{"omnibox_action_on_navigation_intents", "true"},
{"omnibox_action_with_pedals", "true"},
};
const FeatureEntry::FeatureParam
kJourneysOmniboxActionOnNavigationIntentsParams[] = {
{"omnibox_action_on_urls", "false"},
{"omnibox_action_on_noisy_urls", "false"},
{"omnibox_action_on_navigation_intents", "true"},
{"omnibox_action_with_pedals", "false"},
};
const FeatureEntry::FeatureParam kJourneysOmniboxActionWithPedalsParams[] = {
{"omnibox_action_on_urls", "false"},
{"omnibox_action_on_noisy_urls", "false"},
{"omnibox_action_on_navigation_intents", "false"},
{"omnibox_action_with_pedals", "true"},
};
const FeatureEntry::FeatureVariation kJourneysOmniboxActionVariations[] = {
{"Action Chips on All URLs", kJourneysOmniboxActionOnAllURLsParams,
std::size(kJourneysOmniboxActionOnAllURLsParams), nullptr},
{"Action Chips on Non-Noisy URLs",
kJourneysOmniboxActionOnNonNoisyURLsParams,
std::size(kJourneysOmniboxActionOnNonNoisyURLsParams), nullptr},
{"Action Chips Enabled on Navigation Intents",
kJourneysOmniboxActionOnNavigationIntentsParams,
std::size(kJourneysOmniboxActionOnNavigationIntentsParams), nullptr},
{"Action Chips Enabled with Pedals", kJourneysOmniboxActionWithPedalsParams,
std::size(kJourneysOmniboxActionWithPedalsParams), nullptr},
};
const FeatureEntry::FeatureParam kJourneysLabelsWithEntitiesParams[] = {
{"labels_from_entities", "true"},
};
const FeatureEntry::FeatureParam
kJourneysLabelsWithEntitiesNoHostnamesParams[] = {
{"labels_from_hostnames", "false"},
{"labels_from_entities", "true"},
};
const FeatureEntry::FeatureVariation kJourneysLabelsVariations[] = {
{"With Entities", kJourneysLabelsWithEntitiesParams,
std::size(kJourneysLabelsWithEntitiesParams), nullptr},
{"With Entities, No Hostnames",
kJourneysLabelsWithEntitiesNoHostnamesParams,
std::size(kJourneysLabelsWithEntitiesNoHostnamesParams), nullptr},
};
const FeatureEntry::FeatureParam
kJourneysOnDeviceClusteringNoContentClusteringParams[] = {
{"content_clustering_enabled", "false"},
};
const FeatureEntry::FeatureParam
kJourneysOnDeviceClusteringContentClusteringParams[] = {
{"content_clustering_enabled", "true"},
};
const FeatureEntry::FeatureParam kJourneysShowSingleDomainClustersParams[] = {
{"hide_single_domain_clusters_on_prominent_ui_surfaces", "false"},
};
const FeatureEntry::FeatureParam kJourneysHideSingleDomainClustersParams[] = {
{"hide_single_domain_clusters_on_prominent_ui_surfaces", "true"},
};
const FeatureEntry::FeatureVariation kJourneysOnDeviceClusteringVariations[] = {
{"No Content Clustering",
kJourneysOnDeviceClusteringNoContentClusteringParams,
std::size(kJourneysOnDeviceClusteringNoContentClusteringParams), nullptr},
{"Content Clustering", kJourneysOnDeviceClusteringContentClusteringParams,
std::size(kJourneysOnDeviceClusteringContentClusteringParams), nullptr},
{"Show Single Domain Journeys", kJourneysShowSingleDomainClustersParams,
std::size(kJourneysShowSingleDomainClustersParams), nullptr},
{"Hide Single Domain Journeys", kJourneysHideSingleDomainClustersParams,
std::size(kJourneysHideSingleDomainClustersParams), nullptr},
};
const FeatureEntry::FeatureParam
kJourneysOnDeviceClusteringKeywordFilteringAllVariationsParams[] = {
{"keyword_filter_on_categories", "false"},
{"keyword_filter_on_noisy_visits", "false"},
{"keyword_filter_on_visit_hosts", "false"},
{"keyword_filter_on_search_terms", "true"},
};
const FeatureEntry::FeatureParam
kJourneysOnDeviceClusteringKeywordFilteringNoCategoriesParams[] = {
{"keyword_filter_on_categories", "false"},
};
const FeatureEntry::FeatureParam
kJourneysOnDeviceClusteringKeywordFilteringNoNoisyVisitsParams[] = {
{"keyword_filter_on_noisy_visits", "false"},
};
const FeatureEntry::FeatureParam
kJourneysOnDeviceClusteringKeywordFilteringNoVisitHostsParams[] = {
{"keyword_filter_on_visit_hosts", "false"},
};
const FeatureEntry::FeatureParam
kJourneysOnDeviceClusteringKeywordFilteringWithSearchTermsParams[] = {
{"keyword_filter_on_search_terms", "true"},
};
const FeatureEntry::FeatureVariation
kJourneysOnDeviceClusteringKeywordFilteringVariations[] = {
{"All Variations",
kJourneysOnDeviceClusteringKeywordFilteringAllVariationsParams,
std::size(
kJourneysOnDeviceClusteringKeywordFilteringAllVariationsParams),
nullptr},
{"No Categories",
kJourneysOnDeviceClusteringKeywordFilteringNoCategoriesParams,
std::size(
kJourneysOnDeviceClusteringKeywordFilteringNoCategoriesParams),
nullptr},
{"No Noisy Visits",
kJourneysOnDeviceClusteringKeywordFilteringNoNoisyVisitsParams,
std::size(
kJourneysOnDeviceClusteringKeywordFilteringNoNoisyVisitsParams),
nullptr},
{"No Visit Hosts",
kJourneysOnDeviceClusteringKeywordFilteringNoVisitHostsParams,
std::size(
kJourneysOnDeviceClusteringKeywordFilteringNoVisitHostsParams),
nullptr},
{"With Search Terms",
kJourneysOnDeviceClusteringKeywordFilteringWithSearchTermsParams,
std::size(
kJourneysOnDeviceClusteringKeywordFilteringWithSearchTermsParams),
nullptr},
};
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA)
const FeatureEntry::FeatureParam kOmniboxDocumentProviderServerScoring[] = {
{"DocumentUseServerScore", "true"},
{"DocumentUseClientScore", "false"},
{"DocumentCapScorePerRank", "false"},
{"DocumentBoostOwned", "false"},
};
const FeatureEntry::FeatureParam
kOmniboxDocumentProviderServerScoringCappedByRank[] = {
{"DocumentUseServerScore", "true"},
{"DocumentUseClientScore", "false"},
{"DocumentCapScorePerRank", "true"},
{"DocumentBoostOwned", "true"},
};
const FeatureEntry::FeatureParam kOmniboxDocumentProviderClientScoring[] = {
{"DocumentUseServerScore", "false"},
{"DocumentUseClientScore", "true"},
{"DocumentCapScorePerRank", "false"},
{"DocumentBoostOwned", "false"},
};
const FeatureEntry::FeatureParam
kOmniboxDocumentProviderServerAndClientScoring[] = {
{"DocumentUseServerScore", "true"},
{"DocumentUseClientScore", "true"},
{"DocumentCapScorePerRank", "false"},
{"DocumentBoostOwned", "false"},
};
const FeatureEntry::FeatureVariation kOmniboxDocumentProviderVariations[] = {
{"server scores", kOmniboxDocumentProviderServerScoring,
std::size(kOmniboxDocumentProviderServerScoring), nullptr},
{"server scores capped by rank",
kOmniboxDocumentProviderServerScoringCappedByRank,
std::size(kOmniboxDocumentProviderServerScoringCappedByRank), nullptr},
{"client scores", kOmniboxDocumentProviderClientScoring,
std::size(kOmniboxDocumentProviderClientScoring), nullptr},
{"server and client scores", kOmniboxDocumentProviderServerAndClientScoring,
std::size(kOmniboxDocumentProviderServerAndClientScoring), nullptr}};
// A limited number of combinations of the rich autocompletion params.
const FeatureEntry::FeatureParam
kOmniboxRichAutocompletionConservativeModerate[] = {
{"RichAutocompletionAutocompleteTitles", "true"},
{"RichAutocompletionAutocompleteNonPrefixShortcutProvider", "true"},
{"RichAutocompletionAutocompleteTitlesMinChar", "3"},
{"RichAutocompletionAutocompleteNonPrefixMinChar", "5"}};
const FeatureEntry::FeatureParam
kOmniboxRichAutocompletionConservativeModerate2[] = {
{"RichAutocompletionAutocompleteTitlesShortcutProvider", "true"},
{"RichAutocompletionAutocompleteNonPrefixShortcutProvider", "true"},
{"RichAutocompletionAutocompleteTitlesMinChar", "3"},
{"RichAutocompletionAutocompleteNonPrefixMinChar", "5"}};
const FeatureEntry::FeatureParam kOmniboxRichAutocompletionAggressive2[] = {
{"RichAutocompletionAutocompleteTitlesShortcutProvider", "true"},
{"RichAutocompletionAutocompleteTitlesMinChar", "2"},
{"RichAutocompletionAutocompleteShortcutText", "true"},
{"RichAutocompletionAutocompleteShortcutTextMinChar", "2"}};
const FeatureEntry::FeatureParam kOmniboxRichAutocompletionAggressive3[] = {
{"RichAutocompletionAutocompleteTitlesShortcutProvider", "true"},
{"RichAutocompletionAutocompleteTitlesMinChar", "3"},
{"RichAutocompletionAutocompleteShortcutText", "true"},
{"RichAutocompletionAutocompleteShortcutTextMinChar", "3"}};
const FeatureEntry::FeatureParam kOmniboxRichAutocompletionAggressive4[] = {
{"RichAutocompletionAutocompleteTitlesShortcutProvider", "true"},
{"RichAutocompletionAutocompleteTitlesMinChar", "4"},
{"RichAutocompletionAutocompleteShortcutText", "true"},
{"RichAutocompletionAutocompleteShortcutTextMinChar", "4"}};
const FeatureEntry::FeatureVariation
kOmniboxRichAutocompletionPromisingVariations[] = {
{"Conservative Moderate - Title, Shortcut Non-Prefix, min 3/5",
kOmniboxRichAutocompletionConservativeModerate,
std::size(kOmniboxRichAutocompletionConservativeModerate), nullptr},
{"Conservative Moderate 2 - Shortcut Title, Shortcut Non-Prefix, min "
"3/5",
kOmniboxRichAutocompletionConservativeModerate2,
std::size(kOmniboxRichAutocompletionConservativeModerate2), nullptr},
{"Aggressive 2 - Title Shortcut Title 2, Shortcut Text 2",
kOmniboxRichAutocompletionAggressive2,
std::size(kOmniboxRichAutocompletionAggressive2), nullptr},
{"Aggressive 3 - Title Shortcut Title 3, Shortcut Text 3",
kOmniboxRichAutocompletionAggressive3,
std::size(kOmniboxRichAutocompletionAggressive3), nullptr},
{"Aggressive 4 - Title Shortcut Title 4, Shortcut Text 4",
kOmniboxRichAutocompletionAggressive4,
std::size(kOmniboxRichAutocompletionAggressive4), nullptr},
};
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) ||
// BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA)
const FeatureEntry::FeatureParam kOmniboxBookmarkPathsReplaceTitle[] = {
{"OmniboxBookmarkPathsUiReplaceTitle", "true"}};
const FeatureEntry::FeatureParam kOmniboxBookmarkPathsReplaceUrl[] = {
{"OmniboxBookmarkPathsUiReplaceUrl", "true"}};
const FeatureEntry::FeatureParam kOmniboxBookmarkPathsAppendAfterTitle[] = {
{"OmniboxBookmarkPathsUiAppendAfterTitle", "true"}};
const FeatureEntry::FeatureParam kOmniboxBookmarkPathsDynamicReplaceUrl[] = {
{"OmniboxBookmarkPathsUiDynamicReplaceUrl", "true"}};
const FeatureEntry::FeatureVariation kOmniboxBookmarkPathsVariations[] = {
{"Default UI (Title - URL)", {}, 0, nullptr},
{"Replace title (Path/Title - URL)", kOmniboxBookmarkPathsReplaceTitle,
std::size(kOmniboxBookmarkPathsReplaceTitle), nullptr},
{"Replace URL (Title - Path)", kOmniboxBookmarkPathsReplaceUrl,
std::size(kOmniboxBookmarkPathsReplaceUrl), nullptr},
{"Append after title (Title : Path - URL)",
kOmniboxBookmarkPathsAppendAfterTitle,
std::size(kOmniboxBookmarkPathsAppendAfterTitle), nullptr},
{"Dynamic Replace URL (Title - Path|URL)",
kOmniboxBookmarkPathsDynamicReplaceUrl,
std::size(kOmniboxBookmarkPathsDynamicReplaceUrl), nullptr}};
const FeatureEntry::FeatureVariation
kOmniboxOnFocusSuggestionsContextualWebVariations[] = {
{"GOC Only", {}, 0, "t3317583"},
{"pSuggest Only", {}, 0, "t3318055"},
{"GOC, pSuggest Fallback", {}, 0, "t3317692"},
{"GOC, pSuggest Backfill", {}, 0, "t3317694"},
{"GOC, Default Hidden", {}, 0, "t3317834"},
};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches5[] = {
{"MaxZeroSuggestMatches", "5"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches6[] = {
{"MaxZeroSuggestMatches", "6"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches7[] = {
{"MaxZeroSuggestMatches", "7"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches8[] = {
{"MaxZeroSuggestMatches", "8"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches9[] = {
{"MaxZeroSuggestMatches", "9"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches10[] = {
{"MaxZeroSuggestMatches", "10"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches11[] = {
{"MaxZeroSuggestMatches", "11"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches12[] = {
{"MaxZeroSuggestMatches", "12"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches13[] = {
{"MaxZeroSuggestMatches", "13"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches14[] = {
{"MaxZeroSuggestMatches", "14"}};
const FeatureEntry::FeatureParam kMaxZeroSuggestMatches15[] = {
{"MaxZeroSuggestMatches", "15"}};
const FeatureEntry::FeatureVariation kMaxZeroSuggestMatchesVariations[] = {
{"5", kMaxZeroSuggestMatches5, std::size(kMaxZeroSuggestMatches5), nullptr},
{"6", kMaxZeroSuggestMatches6, std::size(kMaxZeroSuggestMatches6), nullptr},
{"7", kMaxZeroSuggestMatches7, std::size(kMaxZeroSuggestMatches7), nullptr},
{"8", kMaxZeroSuggestMatches8, std::size(kMaxZeroSuggestMatches8), nullptr},
{"9", kMaxZeroSuggestMatches9, std::size(kMaxZeroSuggestMatches9), nullptr},
{"10", kMaxZeroSuggestMatches10, std::size(kMaxZeroSuggestMatches10),
nullptr},
{"11", kMaxZeroSuggestMatches11, std::size(kMaxZeroSuggestMatches11),
nullptr},
{"12", kMaxZeroSuggestMatches12, std::size(kMaxZeroSuggestMatches12),
nullptr},
{"13", kMaxZeroSuggestMatches13, std::size(kMaxZeroSuggestMatches13),
nullptr},
{"14", kMaxZeroSuggestMatches14, std::size(kMaxZeroSuggestMatches14),
nullptr},
{"15", kMaxZeroSuggestMatches15, std::size(kMaxZeroSuggestMatches15),
nullptr}};
const FeatureEntry::FeatureVariation
kOmniboxTrendingZeroPrefixSuggestionsOnNTPVariations[] = {
{"Signed-in Users", {}, 0, "t4693175"},
{"Signed-out Users", {}, 0, "t4693176"},
{"All Users", {}, 0, "t4693177"}};
constexpr FeatureEntry::FeatureParam kOmniboxZeroSuggestInMemoryCache[] = {
{"ZeroSuggestCacheCounterfactual", "true"}};
constexpr FeatureEntry::FeatureParam kOmniboxZeroSuggestCacheDuration15Secs[] =
{{"ZeroSuggestCacheDurationSec", "15"},
{"ZeroSuggestCacheCounterfactual", "true"}};
constexpr FeatureEntry::FeatureVariation
kOmniboxZeroSuggestPrefetchingVariations[] = {
{"In-memory cache", kOmniboxZeroSuggestInMemoryCache,
std::size(kOmniboxZeroSuggestInMemoryCache), nullptr},
{"15 sec HTTP cache", kOmniboxZeroSuggestCacheDuration15Secs,
std::size(kOmniboxZeroSuggestCacheDuration15Secs), nullptr}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches3[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "3"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches4[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "4"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches5[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "5"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches6[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "6"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches7[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "7"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches8[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "8"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches9[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "9"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches10[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "10"}};
const FeatureEntry::FeatureParam kOmniboxUIMaxAutocompleteMatches12[] = {
{OmniboxFieldTrial::kUIMaxAutocompleteMatchesParam, "12"}};
const FeatureEntry::FeatureVariation
kOmniboxUIMaxAutocompleteMatchesVariations[] = {
{"3 matches", kOmniboxUIMaxAutocompleteMatches3,
std::size(kOmniboxUIMaxAutocompleteMatches3), nullptr},
{"4 matches", kOmniboxUIMaxAutocompleteMatches4,
std::size(kOmniboxUIMaxAutocompleteMatches4), nullptr},
{"5 matches", kOmniboxUIMaxAutocompleteMatches5,
std::size(kOmniboxUIMaxAutocompleteMatches5), nullptr},
{"6 matches", kOmniboxUIMaxAutocompleteMatches6,
std::size(kOmniboxUIMaxAutocompleteMatches6), nullptr},
{"7 matches", kOmniboxUIMaxAutocompleteMatches7,
std::size(kOmniboxUIMaxAutocompleteMatches7), nullptr},
{"8 matches", kOmniboxUIMaxAutocompleteMatches8,
std::size(kOmniboxUIMaxAutocompleteMatches8), nullptr},
{"9 matches", kOmniboxUIMaxAutocompleteMatches9,
std::size(kOmniboxUIMaxAutocompleteMatches9), nullptr},
{"10 matches", kOmniboxUIMaxAutocompleteMatches10,
std::size(kOmniboxUIMaxAutocompleteMatches10), nullptr},
{"12 matches", kOmniboxUIMaxAutocompleteMatches12,
std::size(kOmniboxUIMaxAutocompleteMatches12), nullptr}};
const FeatureEntry::FeatureParam kOmniboxMaxURLMatches2[] = {
{OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "2"}};
const FeatureEntry::FeatureParam kOmniboxMaxURLMatches3[] = {
{OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "3"}};
const FeatureEntry::FeatureParam kOmniboxMaxURLMatches4[] = {
{OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "4"}};
const FeatureEntry::FeatureParam kOmniboxMaxURLMatches5[] = {
{OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "5"}};
const FeatureEntry::FeatureParam kOmniboxMaxURLMatches6[] = {
{OmniboxFieldTrial::kOmniboxMaxURLMatchesParam, "6"}};
const FeatureEntry::FeatureVariation kOmniboxMaxURLMatchesVariations[] = {
{"2 matches", kOmniboxMaxURLMatches2, std::size(kOmniboxMaxURLMatches2),
nullptr},
{"3 matches", kOmniboxMaxURLMatches3, std::size(kOmniboxMaxURLMatches3),
nullptr},
{"4 matches", kOmniboxMaxURLMatches4, std::size(kOmniboxMaxURLMatches4),
nullptr},
{"5 matches", kOmniboxMaxURLMatches5, std::size(kOmniboxMaxURLMatches5),
nullptr},
{"6 matches", kOmniboxMaxURLMatches6, std::size(kOmniboxMaxURLMatches6),
nullptr}};
const FeatureEntry::FeatureParam kOmniboxDynamicMaxAutocomplete90[] = {
{"OmniboxDynamicMaxAutocompleteUrlCutoff", "0"},
{"OmniboxDynamicMaxAutocompleteIncreasedLimit", "9"}};
const FeatureEntry::FeatureParam kOmniboxDynamicMaxAutocomplete91[] = {
{"OmniboxDynamicMaxAutocompleteUrlCutoff", "1"},
{"OmniboxDynamicMaxAutocompleteIncreasedLimit", "9"}};
const FeatureEntry::FeatureParam kOmniboxDynamicMaxAutocomplete92[] = {
{"OmniboxDynamicMaxAutocompleteUrlCutoff", "2"},
{"OmniboxDynamicMaxAutocompleteIncreasedLimit", "9"}};
const FeatureEntry::FeatureParam kOmniboxDynamicMaxAutocomplete100[] = {
{"OmniboxDynamicMaxAutocompleteUrlCutoff", "0"},
{"OmniboxDynamicMaxAutocompleteIncreasedLimit", "10"}};
const FeatureEntry::FeatureParam kOmniboxDynamicMaxAutocomplete101[] = {
{"OmniboxDynamicMaxAutocompleteUrlCutoff", "1"},
{"OmniboxDynamicMaxAutocompleteIncreasedLimit", "10"}};
const FeatureEntry::FeatureParam kOmniboxDynamicMaxAutocomplete102[] = {
{"OmniboxDynamicMaxAutocompleteUrlCutoff", "2"},
{"OmniboxDynamicMaxAutocompleteIncreasedLimit", "10"}};
const FeatureEntry::FeatureVariation
kOmniboxDynamicMaxAutocompleteVariations[] = {
{"9 suggestions if 0 or fewer URLs", kOmniboxDynamicMaxAutocomplete90,
std::size(kOmniboxDynamicMaxAutocomplete90), nullptr},
{"9 suggestions if 1 or fewer URLs", kOmniboxDynamicMaxAutocomplete91,
std::size(kOmniboxDynamicMaxAutocomplete91), nullptr},
{"9 suggestions if 2 or fewer URLs", kOmniboxDynamicMaxAutocomplete92,
std::size(kOmniboxDynamicMaxAutocomplete92), nullptr},
{"10 suggestions if 0 or fewer URLs", kOmniboxDynamicMaxAutocomplete100,
std::size(kOmniboxDynamicMaxAutocomplete100), nullptr},
{"10 suggestions if 1 or fewer URLs", kOmniboxDynamicMaxAutocomplete101,
std::size(kOmniboxDynamicMaxAutocomplete101), nullptr},
{"10 suggestions if 2 or fewer URLs", kOmniboxDynamicMaxAutocomplete102,
std::size(kOmniboxDynamicMaxAutocomplete102), nullptr}};
const FeatureEntry::FeatureParam kFiveOrganicRepeatableQueries[] = {
{"MaxNumRepeatableQueries", "5"}};
const FeatureEntry::FeatureParam kFiveOrganicRepeatableQueriesScaled[] = {
{"MaxNumRepeatableQueries", "5"},
{"ScaleRepeatableQueriesScores", "true"}};
const FeatureEntry::FeatureParam
kFiveOrganicRepeatableQueriesScaledPrivileged[] = {
{"MaxNumRepeatableQueries", "5"},
{"ScaleRepeatableQueriesScores", "true"},
{"PrivilegeRepeatableQueries", "true"}};
const FeatureEntry::FeatureVariation kOrganicRepeatableQueriesVariations[] = {
{"- up to 5 repeatable queries", kFiveOrganicRepeatableQueries,
std::size(kFiveOrganicRepeatableQueries), nullptr},
{"- up to 5 repeatable queries - scaled for mixing",
kFiveOrganicRepeatableQueriesScaled,
std::size(kFiveOrganicRepeatableQueriesScaled), nullptr},
{"- up to 5 repeatable queries - scaled and privileged for mixing",
kFiveOrganicRepeatableQueriesScaledPrivileged,
std::size(kFiveOrganicRepeatableQueriesScaledPrivileged), nullptr}};
const FeatureEntry::FeatureParam kMinimumTabWidthSettingPinned[] = {
{features::kMinimumTabWidthFeatureParameterName, "54"}};
const FeatureEntry::FeatureParam kMinimumTabWidthSettingMedium[] = {
{features::kMinimumTabWidthFeatureParameterName, "72"}};
const FeatureEntry::FeatureParam kMinimumTabWidthSettingLarge[] = {
{features::kMinimumTabWidthFeatureParameterName, "140"}};
const FeatureEntry::FeatureParam kMinimumTabWidthSettingFull[] = {
{features::kMinimumTabWidthFeatureParameterName, "256"}};
const FeatureEntry::FeatureVariation kTabScrollingVariations[] = {
{" - tabs shrink to pinned tab width", kMinimumTabWidthSettingPinned,
std::size(kMinimumTabWidthSettingPinned), nullptr},
{" - tabs shrink to a medium width", kMinimumTabWidthSettingMedium,
std::size(kMinimumTabWidthSettingMedium), nullptr},
{" - tabs shrink to a large width", kMinimumTabWidthSettingLarge,
std::size(kMinimumTabWidthSettingLarge), nullptr},
{" - tabs don't shrink", kMinimumTabWidthSettingFull,
std::size(kMinimumTabWidthSettingFull), nullptr}};
const FeatureEntry::FeatureParam kAlsoShowMediaTabsinOpenTabsSection[] = {
{features::kTabSearchAlsoShowMediaTabsinOpenTabsSectionParameterName,
"true"}};
const FeatureEntry::FeatureVariation kTabSearchMediaTabsVariations[] = {
{" - media tabs also shown in open tabs section",
kAlsoShowMediaTabsinOpenTabsSection,
std::size(kAlsoShowMediaTabsinOpenTabsSection), nullptr}};
const FeatureEntry::FeatureParam kTabSearchSearchThresholdSmall[] = {
{features::kTabSearchSearchThresholdName, "0.3"}};
const FeatureEntry::FeatureParam kTabSearchSearchThresholdMedium[] = {
{features::kTabSearchSearchThresholdName, "0.6"}};
const FeatureEntry::FeatureParam kTabSearchSearchThresholdLarge[] = {
{features::kTabSearchSearchThresholdName, "0.8"}};
const FeatureEntry::FeatureVariation kTabSearchSearchThresholdVariations[] = {
{" - fuzzy level: small", kTabSearchSearchThresholdSmall,
std::size(kTabSearchSearchThresholdSmall), nullptr},
{" - fuzzy level: medium", kTabSearchSearchThresholdMedium,
std::size(kTabSearchSearchThresholdMedium), nullptr},
{" - fuzzy level: large", kTabSearchSearchThresholdLarge,
std::size(kTabSearchSearchThresholdLarge), nullptr}};
const FeatureEntry::FeatureParam kTabHoverCardImagesAlternateFormat[] = {
{features::kTabHoverCardAlternateFormat, "1"}};
const FeatureEntry::FeatureVariation kTabHoverCardImagesVariations[] = {
{" alternate hover card format", kTabHoverCardImagesAlternateFormat,
std::size(kTabHoverCardImagesAlternateFormat), nullptr}};
const FeatureEntry::FeatureParam kSharedHighlightingMaxContextWords5[] = {
{shared_highlighting::kSharedHighlightingRefinedMaxContextWordsName, "5"}};
const FeatureEntry::FeatureParam kSharedHighlightingMaxContextWords10[] = {
{shared_highlighting::kSharedHighlightingRefinedMaxContextWordsName, "10"}};
const FeatureEntry::FeatureParam kSharedHighlightingMaxContextWords15[] = {
{shared_highlighting::kSharedHighlightingRefinedMaxContextWordsName, "15"}};
const FeatureEntry::FeatureParam kSharedHighlightingMaxContextWords20[] = {
{shared_highlighting::kSharedHighlightingRefinedMaxContextWordsName, "20"}};
const FeatureEntry::FeatureVariation
kSharedHighlightingMaxContextWordsVariations[] = {
{" - maxContextWords: 5", kSharedHighlightingMaxContextWords5,
std::size(kSharedHighlightingMaxContextWords5), nullptr},
{" - maxContextWords: 10", kSharedHighlightingMaxContextWords10,
std::size(kSharedHighlightingMaxContextWords10), nullptr},
{" - maxContextWords: 15", kSharedHighlightingMaxContextWords15,
std::size(kSharedHighlightingMaxContextWords15), nullptr},
{" - maxContextWords: 20", kSharedHighlightingMaxContextWords20,
std::size(kSharedHighlightingMaxContextWords20), nullptr}};
#if !BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kNtpChromeCartModuleFakeData[] = {
{ntp_features::kNtpChromeCartModuleDataParam, "fake"},
{ntp_features::kNtpChromeCartModuleAbandonedCartDiscountParam, "true"}};
const FeatureEntry::FeatureParam kNtpChromeCartModuleAbandonedCartDiscount[] = {
{ntp_features::kNtpChromeCartModuleAbandonedCartDiscountParam, "true"},
{ntp_features::kNtpChromeCartModuleAbandonedCartDiscountUseUtmParam,
"true"},
{"partner-merchant-pattern",
"(electronicexpress.com|zazzle.com|wish.com|homesquare.com|iherb.com|"
"zappos.com|otterbox.com)"}};
const FeatureEntry::FeatureParam kNtpChromeCartModuleHeuristicsImprovement[] = {
{ntp_features::kNtpChromeCartModuleHeuristicsImprovementParam, "true"}};
const FeatureEntry::FeatureParam kNtpChromeCartModuleRBDAndCouponDiscount[] = {
{ntp_features::kNtpChromeCartModuleHeuristicsImprovementParam, "true"},
{ntp_features::kNtpChromeCartModuleAbandonedCartDiscountParam, "true"},
{ntp_features::kNtpChromeCartModuleAbandonedCartDiscountUseUtmParam,
"true"},
{"partner-merchant-pattern",
"(electronicexpress.com|zazzle.com|wish.com|homesquare.com)"},
{ntp_features::kNtpChromeCartModuleCouponParam, "true"}};
const FeatureEntry::FeatureVariation kNtpChromeCartModuleVariations[] = {
{"- Fake Data And Discount", kNtpChromeCartModuleFakeData,
std::size(kNtpChromeCartModuleFakeData), nullptr},
{"- Abandoned Cart Discount", kNtpChromeCartModuleAbandonedCartDiscount,
std::size(kNtpChromeCartModuleAbandonedCartDiscount), nullptr},
{"- Heuristics Improvement", kNtpChromeCartModuleHeuristicsImprovement,
std::size(kNtpChromeCartModuleHeuristicsImprovement), nullptr},
{"- RBD and Coupons", kNtpChromeCartModuleRBDAndCouponDiscount,
std::size(kNtpChromeCartModuleRBDAndCouponDiscount), nullptr},
};
// The following are consent v2 variations in the Chrome Cart module.
const flags_ui::FeatureEntry::FeatureParam kDiscountConsentNtpDialog[] = {
{commerce::kNtpChromeCartModuleDiscountConsentNtpVariationParam, "3"}};
const flags_ui::FeatureEntry::FeatureParam kDiscountConsentNtpNativeDialog[] = {
{commerce::kNtpChromeCartModuleDiscountConsentNtpVariationParam, "4"}};
const FeatureEntry::FeatureVariation kDiscountConsentV2Variations[] = {
{"WebUi Dialog Consent", kDiscountConsentNtpDialog,
std::size(kDiscountConsentNtpDialog), nullptr},
{"Native Dialog Consent", kDiscountConsentNtpNativeDialog,
std::size(kDiscountConsentNtpNativeDialog), nullptr},
};
const FeatureEntry::FeatureParam kNtpRecipeTasksModuleFakeData[] = {
{ntp_features::kNtpRecipeTasksModuleDataParam, "fake"}};
const FeatureEntry::FeatureParam kNtpRecipeTasksModuleHistorical7Days[] = {
{ntp_features::kNtpRecipeTasksModuleExperimentGroupParam, "historical-7"}};
const FeatureEntry::FeatureParam kNtpRecipeTasksModuleHistorical14Days[] = {
{ntp_features::kNtpRecipeTasksModuleExperimentGroupParam, "historical-14"}};
const FeatureEntry::FeatureParam kNtpRecipeTasksModuleMix7Days[] = {
{ntp_features::kNtpRecipeTasksModuleExperimentGroupParam, "mix-7"}};
const FeatureEntry::FeatureParam kNtpRecipeTasksModuleMix14Days[] = {
{ntp_features::kNtpRecipeTasksModuleExperimentGroupParam, "mix-14"}};
const FeatureEntry::FeatureVariation kNtpRecipeTasksModuleVariations[] = {
{"- Fake Data", kNtpRecipeTasksModuleFakeData,
std::size(kNtpRecipeTasksModuleFakeData), nullptr},
{"- Historical Arm (7 days)", kNtpRecipeTasksModuleHistorical7Days,
std::size(kNtpRecipeTasksModuleHistorical7Days), nullptr},
{"- Historical Arm (14 days)", kNtpRecipeTasksModuleHistorical14Days,
std::size(kNtpRecipeTasksModuleHistorical14Days), nullptr},
{"- Recommended Mix Arm (7 days)", kNtpRecipeTasksModuleMix7Days,
std::size(kNtpRecipeTasksModuleMix7Days), nullptr},
{"- Recommended Mix Arm (14 days)", kNtpRecipeTasksModuleMix14Days,
std::size(kNtpRecipeTasksModuleMix14Days), nullptr},
};
const FeatureEntry::FeatureParam kNtpDriveModuleFakeData[] = {
{ntp_features::kNtpDriveModuleDataParam, "fake"}};
const FeatureEntry::FeatureParam kNtpDriveModuleManagedUsersOnly[] = {
{ntp_features::kNtpDriveModuleManagedUsersOnlyParam, "true"}};
const FeatureEntry::FeatureVariation kNtpDriveModuleVariations[] = {
{"- Fake Data", kNtpDriveModuleFakeData, std::size(kNtpDriveModuleFakeData),
nullptr},
{"- Managed Users Only", kNtpDriveModuleManagedUsersOnly,
std::size(kNtpDriveModuleManagedUsersOnly), nullptr},
};
const FeatureEntry::FeatureParam kNtpPhotosModuleFakeData0[] = {
{ntp_features::kNtpPhotosModuleDataParam, "0"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleFakeData1[] = {
{ntp_features::kNtpPhotosModuleDataParam, "1"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleFakeData2[] = {
{ntp_features::kNtpPhotosModuleDataParam, "2"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleFakeData3[] = {
{ntp_features::kNtpPhotosModuleDataParam, "3"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleFakeData4[] = {
{ntp_features::kNtpPhotosModuleDataParam, "4"}};
const FeatureEntry::FeatureVariation kNtpPhotosModuleVariations[] = {
{" - Fake memories: 0", kNtpPhotosModuleFakeData0,
std::size(kNtpPhotosModuleFakeData0), nullptr},
{" - Fake memories: 1", kNtpPhotosModuleFakeData1,
std::size(kNtpPhotosModuleFakeData1), nullptr},
{" - Fake memories: 2", kNtpPhotosModuleFakeData2,
std::size(kNtpPhotosModuleFakeData2), nullptr},
{" - Fake memories: 3", kNtpPhotosModuleFakeData3,
std::size(kNtpPhotosModuleFakeData3), nullptr},
{" - Fake memories: 4", kNtpPhotosModuleFakeData4,
std::size(kNtpPhotosModuleFakeData4), nullptr}};
const FeatureEntry::FeatureParam kNtpPhotosModuleOptInRHTitle[] = {
{ntp_features::kNtpPhotosModuleOptInTitleParam, "0"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleOptInFavoriteTitle[] = {
{ntp_features::kNtpPhotosModuleOptInTitleParam, "1"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleOptInPersonalizedTitle[] = {
{ntp_features::kNtpPhotosModuleOptInTitleParam, "2"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleOptInTripsTitle[] = {
{ntp_features::kNtpPhotosModuleOptInTitleParam, "3"}};
const FeatureEntry::FeatureVariation kNtpPhotosModuleOptInTitleVariations[] = {
{" - Recent Highlights", kNtpPhotosModuleOptInRHTitle,
std::size(kNtpPhotosModuleOptInRHTitle), nullptr},
{" - Favorite people", kNtpPhotosModuleOptInFavoriteTitle,
std::size(kNtpPhotosModuleOptInFavoriteTitle), nullptr},
{" - Personalized title", kNtpPhotosModuleOptInPersonalizedTitle,
std::size(kNtpPhotosModuleOptInPersonalizedTitle), nullptr},
{" - Trips title", kNtpPhotosModuleOptInTripsTitle,
std::size(kNtpPhotosModuleOptInTripsTitle), nullptr}};
const FeatureEntry::FeatureParam kNtpPhotosModuleLogo1ArtWork[] = {
{ntp_features::kNtpPhotosModuleOptInArtWorkParam, "1"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleLogo2ArtWork[] = {
{ntp_features::kNtpPhotosModuleOptInArtWorkParam, "2"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleIllustrationsArtWork[] = {
{ntp_features::kNtpPhotosModuleOptInArtWorkParam, "3"}};
const FeatureEntry::FeatureParam kNtpPhotosModuleStockpileArtWork[] = {
{ntp_features::kNtpPhotosModuleOptInArtWorkParam, "4"}};
const FeatureEntry::FeatureVariation kNtpPhotosModuleOptInArtWorkVariations[] =
{{" - Artwork with Logo - 1", kNtpPhotosModuleLogo1ArtWork,
std::size(kNtpPhotosModuleLogo1ArtWork), nullptr},
{" - Artwork with Logo - 2", kNtpPhotosModuleLogo2ArtWork,
std::size(kNtpPhotosModuleLogo2ArtWork), nullptr},
{" - Artwork with Illustrations", kNtpPhotosModuleIllustrationsArtWork,
std::size(kNtpPhotosModuleIllustrationsArtWork), nullptr},
{" - Artwork with Stockpile", kNtpPhotosModuleStockpileArtWork,
std::size(kNtpPhotosModuleStockpileArtWork), nullptr}};
const FeatureEntry::FeatureParam kRealboxMatchOmniboxThemeVar1[] = {
{ntp_features::kRealboxMatchOmniboxThemeVariantParam, "1"}};
const FeatureEntry::FeatureParam kRealboxMatchOmniboxThemeVar2[] = {
{ntp_features::kRealboxMatchOmniboxThemeVariantParam, "2"}};
const FeatureEntry::FeatureVariation kRealboxMatchOmniboxThemeVariations[] = {
{"(NTP background on steady state and Omnibox steady state background on "
"hover)",
kRealboxMatchOmniboxThemeVar1, std::size(kRealboxMatchOmniboxThemeVar1),
nullptr},
{"(NTP background on steady state and Omnibox active state background on "
"hover)",
kRealboxMatchOmniboxThemeVar2, std::size(kRealboxMatchOmniboxThemeVar2),
nullptr}};
const FeatureEntry::FeatureParam kRealboxMatchSearchboxThemeRoundedCorners[] = {
{ntp_features::kRealboxMatchSearchboxThemeParam, "1"}};
const FeatureEntry::FeatureVariation kRealboxMatchSearchboxThemeVariations[] = {
{"(Rounded Corners)", kRealboxMatchSearchboxThemeRoundedCorners,
std::size(kRealboxMatchSearchboxThemeRoundedCorners), nullptr}};
const FeatureEntry::FeatureParam kNtpSafeBrowsingModuleFastCooldown[] = {
{ntp_features::kNtpSafeBrowsingModuleCooldownPeriodDaysParam, "0.001"},
{ntp_features::kNtpSafeBrowsingModuleCountMaxParam, "1"}};
const FeatureEntry::FeatureVariation kNtpSafeBrowsingModuleVariations[] = {
{"(Fast Cooldown)", kNtpSafeBrowsingModuleFastCooldown,
std::size(kNtpSafeBrowsingModuleFastCooldown), nullptr},
};
#endif // !BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kTranslateForceTriggerOnEnglishGeo[] = {
{language::kOverrideModelKey, language::kOverrideModelGeoValue},
{language::kEnforceRankerKey, "false"}};
const FeatureEntry::FeatureParam kTranslateForceTriggerOnEnglishBackoff[] = {
{language::kOverrideModelKey, language::kOverrideModelDefaultValue},
{language::kEnforceRankerKey, "false"},
{language::kBackoffThresholdKey, "0"}};
const FeatureEntry::FeatureVariation
kTranslateForceTriggerOnEnglishVariations[] = {
{"(Geo model without Ranker)", kTranslateForceTriggerOnEnglishGeo,
std::size(kTranslateForceTriggerOnEnglishGeo), nullptr},
{"(Zero threshold)", kTranslateForceTriggerOnEnglishBackoff,
std::size(kTranslateForceTriggerOnEnglishBackoff), nullptr}};
#endif // BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kOverridePrefsForHrefTranslateForceAuto[] = {
{translate::kForceAutoTranslateKey, "true"}};
const FeatureEntry::FeatureVariation
kOverrideLanguagePrefsForHrefTranslateVariations[] = {
{"(Force automatic translation of blocked languages for hrefTranslate)",
kOverridePrefsForHrefTranslateForceAuto,
std::size(kOverridePrefsForHrefTranslateForceAuto), nullptr}};
const FeatureEntry::FeatureVariation
kOverrideSitePrefsForHrefTranslateVariations[] = {
{"(Force automatic translation of blocked sites for hrefTranslate)",
kOverridePrefsForHrefTranslateForceAuto,
std::size(kOverridePrefsForHrefTranslateForceAuto), nullptr}};
const FeatureEntry::FeatureParam
kOverrideUnsupportedPageLanguageForHrefTranslateForceAuto[] = {
{"force-auto-translate-for-unsupported-page-language", "true"}};
const FeatureEntry::FeatureVariation
kOverrideUnsupportedPageLanguageForHrefTranslateVariations[] = {
{"(Force automatic translation of pages with unknown language for "
"hrefTranslate)",
kOverrideUnsupportedPageLanguageForHrefTranslateForceAuto,
std::size(kOverrideUnsupportedPageLanguageForHrefTranslateForceAuto),
nullptr}};
const FeatureEntry::FeatureParam
kOverrideSimilarLanguagesForHrefTranslateForceAuto[] = {
{"force-auto-translate-for-similar-languages", "true"}};
const FeatureEntry::FeatureVariation
kOverrideSimilarLanguagesForHrefTranslateVariations[] = {
{"(Force automatic translation of pages with the same language as the "
"target language for hrefTranslate)",
kOverrideSimilarLanguagesForHrefTranslateForceAuto,
std::size(kOverrideSimilarLanguagesForHrefTranslateForceAuto),
nullptr}};
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kExploreSitesExperimental = {
chrome::android::explore_sites::kExploreSitesVariationParameterName,
chrome::android::explore_sites::kExploreSitesVariationExperimental};
const FeatureEntry::FeatureParam kExploreSitesDenseTitleBottom[] = {
{chrome::android::explore_sites::kExploreSitesDenseVariationParameterName,
chrome::android::explore_sites::
kExploreSitesDenseVariationDenseTitleBottom},
};
const FeatureEntry::FeatureParam kExploreSitesDenseTitleRight[] = {
{chrome::android::explore_sites::kExploreSitesDenseVariationParameterName,
chrome::android::explore_sites::
kExploreSitesDenseVariationDenseTitleRight},
};
const FeatureEntry::FeatureVariation kExploreSitesVariations[] = {
{"Experimental", &kExploreSitesExperimental, 1, nullptr},
{"Dense Title Bottom", kExploreSitesDenseTitleBottom,
std::size(kExploreSitesDenseTitleBottom), nullptr},
{"Dense Title Right", kExploreSitesDenseTitleRight,
std::size(kExploreSitesDenseTitleRight), nullptr}};
const FeatureEntry::FeatureParam kRelatedSearchesUrl = {"stamp", "1Ru"};
const FeatureEntry::FeatureParam kRelatedSearchesContent = {"stamp", "1Rc"};
const FeatureEntry::FeatureVariation kRelatedSearchesVariations[] = {
{"from URL", &kRelatedSearchesUrl, 1, nullptr},
{"from content", &kRelatedSearchesContent, 1, nullptr},
};
const FeatureEntry::FeatureParam kRelatedSearchesUiVerbose = {"verbosity", "v"};
const FeatureEntry::FeatureParam kRelatedSearchesUiExtreme = {"verbosity", "x"};
const FeatureEntry::FeatureVariation kRelatedSearchesUiVariations[] = {
{"verbose", &kRelatedSearchesUiVerbose, 1, nullptr},
{"extreme", &kRelatedSearchesUiExtreme, 1, nullptr},
};
const FeatureEntry::FeatureParam kRelatedSearchesInBarNoShowDefaultChip = {
"default_query_chip", "false"};
const FeatureEntry::FeatureParam kRelatedSearchesInBarShowDefaultChip = {
"default_query_chip", "true"};
const FeatureEntry::FeatureParam
kRelatedSearchesInBarShowDefaultChipWith110SpEllipsis[] = {
{"default_query_chip", "true"},
{"default_query_max_width_sp", "110"}};
const FeatureEntry::FeatureParam
kRelatedSearchesInBarShowDefaultChipWith115SpEllipsis[] = {
{"default_query_chip", "true"},
{"default_query_max_width_sp", "115"}};
const FeatureEntry::FeatureParam
kRelatedSearchesInBarShowDefaultChipWith120SpEllipsis[] = {
{"default_query_chip", "true"},
{"default_query_max_width_sp", "120"}};
const FeatureEntry::FeatureVariation kRelatedSearchesInBarVariations[] = {
{"without default query chip", &kRelatedSearchesInBarNoShowDefaultChip, 1,
nullptr},
{"with default query chip", &kRelatedSearchesInBarShowDefaultChip, 1,
nullptr},
{"with 110sp ellipsized default query chip",
kRelatedSearchesInBarShowDefaultChipWith110SpEllipsis,
std::size(kRelatedSearchesInBarShowDefaultChipWith110SpEllipsis), nullptr},
{"with 115sp ellipsized default query chip",
kRelatedSearchesInBarShowDefaultChipWith115SpEllipsis,
std::size(kRelatedSearchesInBarShowDefaultChipWith115SpEllipsis), nullptr},
{"with 120sp ellipsized default query chip",
kRelatedSearchesInBarShowDefaultChipWith120SpEllipsis,
std::size(kRelatedSearchesInBarShowDefaultChipWith120SpEllipsis), nullptr},
};
const FeatureEntry::FeatureParam kRelatedSearchesAlternateUxNoShowDefaultChip =
{"default_query_chip", "false"};
const FeatureEntry::FeatureParam kRelatedSearchesAlternateUxShowDefaultChip = {
"default_query_chip", "true"};
const FeatureEntry::FeatureParam
kRelatedSearchesAlternateUxShowDefaultChipWith110SpEllipsis[] = {
{"default_query_chip", "true"},
{"default_query_max_width_sp", "110"}};
const FeatureEntry::FeatureParam
kRelatedSearchesAlternateUxShowDefaultChipWith115SpEllipsis[] = {
{"default_query_chip", "true"},
{"default_query_max_width_sp", "115"}};
const FeatureEntry::FeatureParam
kRelatedSearchesAlternateUxShowDefaultChipWith120SpEllipsis[] = {
{"default_query_chip", "true"},
{"default_query_max_width_sp", "120"}};
const FeatureEntry::FeatureVariation kRelatedSearchesAlternateUxVariations[] = {
{"without default query chip",
&kRelatedSearchesAlternateUxNoShowDefaultChip, 1, nullptr},
{"with default query chip", &kRelatedSearchesAlternateUxShowDefaultChip, 1,
nullptr},
{"with 110sp ellipsized default query chip",
kRelatedSearchesAlternateUxShowDefaultChipWith110SpEllipsis,
std::size(kRelatedSearchesAlternateUxShowDefaultChipWith110SpEllipsis),
nullptr},
{"with 115sp ellipsized default query chip",
kRelatedSearchesAlternateUxShowDefaultChipWith115SpEllipsis,
std::size(kRelatedSearchesAlternateUxShowDefaultChipWith115SpEllipsis),
nullptr},
{"with 120sp ellipsized default query chip",
kRelatedSearchesAlternateUxShowDefaultChipWith120SpEllipsis,
std::size(kRelatedSearchesAlternateUxShowDefaultChipWith120SpEllipsis),
nullptr},
};
#endif // BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kResamplingInputEventsLSQEnabled[] = {
{"predictor", features::kPredictorNameLsq}};
const FeatureEntry::FeatureParam kResamplingInputEventsKalmanEnabled[] = {
{"predictor", features::kPredictorNameKalman}};
const FeatureEntry::FeatureParam kResamplingInputEventsLinearFirstEnabled[] = {
{"predictor", features::kPredictorNameLinearFirst}};
const FeatureEntry::FeatureParam kResamplingInputEventsLinearSecondEnabled[] = {
{"predictor", features::kPredictorNameLinearSecond}};
const FeatureEntry::FeatureParam
kResamplingInputEventsLinearResamplingEnabled[] = {
{"predictor", features::kPredictorNameLinearResampling}};
const FeatureEntry::FeatureVariation kResamplingInputEventsFeatureVariations[] =
{{features::kPredictorNameLsq, kResamplingInputEventsLSQEnabled,
std::size(kResamplingInputEventsLSQEnabled), nullptr},
{features::kPredictorNameKalman, kResamplingInputEventsKalmanEnabled,
std::size(kResamplingInputEventsKalmanEnabled), nullptr},
{features::kPredictorNameLinearFirst,
kResamplingInputEventsLinearFirstEnabled,
std::size(kResamplingInputEventsLinearFirstEnabled), nullptr},
{features::kPredictorNameLinearSecond,
kResamplingInputEventsLinearSecondEnabled,
std::size(kResamplingInputEventsLinearSecondEnabled), nullptr},
{features::kPredictorNameLinearResampling,
kResamplingInputEventsLinearResamplingEnabled,
std::size(kResamplingInputEventsLinearResamplingEnabled), nullptr}};
const FeatureEntry::FeatureParam
kResamplingScrollEventsPredictionTimeBasedEnabled[] = {
{"mode", features::kPredictionTypeTimeBased},
{"latency", features::kPredictionTypeDefaultTime}};
const FeatureEntry::FeatureParam
kResamplingScrollEventsPredictionFramesBasedEnabled[] = {
{"mode", features::kPredictionTypeFramesBased},
{"latency", features::kPredictionTypeDefaultFramesRatio}};
const FeatureEntry::FeatureVariation
kResamplingScrollEventsExperimentalPredictionVariations[] = {
{features::kPredictionTypeTimeBased,
kResamplingScrollEventsPredictionTimeBasedEnabled,
std::size(kResamplingScrollEventsPredictionTimeBasedEnabled), nullptr},
{features::kPredictionTypeFramesBased,
kResamplingScrollEventsPredictionFramesBasedEnabled,
std::size(kResamplingScrollEventsPredictionFramesBasedEnabled),
nullptr}};
const FeatureEntry::FeatureParam kFilteringPredictionEmptyFilterEnabled[] = {
{"filter", features::kFilterNameEmpty}};
const FeatureEntry::FeatureParam kFilteringPredictionOneEuroFilterEnabled[] = {
{"filter", features::kFilterNameOneEuro}};
const FeatureEntry::FeatureVariation kFilteringPredictionFeatureVariations[] = {
{features::kFilterNameEmpty, kFilteringPredictionEmptyFilterEnabled,
std::size(kFilteringPredictionEmptyFilterEnabled), nullptr},
{features::kFilterNameOneEuro, kFilteringPredictionOneEuroFilterEnabled,
std::size(kFilteringPredictionOneEuroFilterEnabled), nullptr}};
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kTabSwitcherOnReturn_Immediate[] = {
{"tab_switcher_on_return_time_ms", "0"}};
const FeatureEntry::FeatureParam kTabSwitcherOnReturn_1Minute[] = {
{"tab_switcher_on_return_time_ms", "60000"}};
const FeatureEntry::FeatureParam kTabSwitcherOnReturn_30Minutes[] = {
{"tab_switcher_on_return_time_ms", "1800000"}};
const FeatureEntry::FeatureParam kTabSwitcherOnReturn_60Minutes[] = {
{"tab_switcher_on_return_time_ms", "3600000"}};
const FeatureEntry::FeatureVariation kTabSwitcherOnReturnVariations[] = {
{"Immediate", kTabSwitcherOnReturn_Immediate,
std::size(kTabSwitcherOnReturn_30Minutes), nullptr},
{"1 minute", kTabSwitcherOnReturn_1Minute,
std::size(kTabSwitcherOnReturn_30Minutes), nullptr},
{"30 minutes", kTabSwitcherOnReturn_30Minutes,
std::size(kTabSwitcherOnReturn_30Minutes), nullptr},
{"60 minutes", kTabSwitcherOnReturn_60Minutes,
std::size(kTabSwitcherOnReturn_60Minutes), nullptr},
};
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kTabGridLayoutAndroid_NewTabVariation[] = {
{"tab_grid_layout_android_new_tab", "NewTabVariation"},
{"allow_to_refetch", "true"}};
const FeatureEntry::FeatureParam kTabGridLayoutAndroid_NewTabTile[] = {
{"tab_grid_layout_android_new_tab_tile", "NewTabTile"}};
const FeatureEntry::FeatureParam kTabGridLayoutAndroid_TallNTV[] = {
{"thumbnail_aspect_ratio", "0.85"},
{"allow_to_refetch", "true"},
{"tab_grid_layout_android_new_tab", "NewTabVariation"},
{"enable_launch_polish", "true"},
{"enable_launch_bug_fix", "true"}};
const FeatureEntry::FeatureParam kTabGridLayoutAndroid_SearchChip[] = {
{"enable_search_term_chip", "true"}};
const FeatureEntry::FeatureParam
kTabGridLayoutAndroid_TabGroupAutoCreation_TabGroupFirst[] = {
{"enable_tab_group_auto_creation", "false"},
{"show_open_in_tab_group_menu_item_first", "true"}};
const FeatureEntry::FeatureParam kTabGridLayoutAndroid_TabGroupAutoCreation[] =
{{"enable_tab_group_auto_creation", "false"},
{"show_open_in_tab_group_menu_item_first", "false"}};
const FeatureEntry::FeatureVariation kTabGridLayoutAndroidVariations[] = {
{"New Tab Variation", kTabGridLayoutAndroid_NewTabVariation,
std::size(kTabGridLayoutAndroid_NewTabVariation), nullptr},
{"New Tab Tile", kTabGridLayoutAndroid_NewTabTile,
std::size(kTabGridLayoutAndroid_NewTabTile), nullptr},
{"Tall NTV", kTabGridLayoutAndroid_TallNTV,
std::size(kTabGridLayoutAndroid_TallNTV), nullptr},
{"Search term chip", kTabGridLayoutAndroid_SearchChip,
std::size(kTabGridLayoutAndroid_SearchChip), nullptr},
{"Without auto group", kTabGridLayoutAndroid_TabGroupAutoCreation,
std::size(kTabGridLayoutAndroid_TabGroupAutoCreation), nullptr},
{"Without auto group-group first",
kTabGridLayoutAndroid_TabGroupAutoCreation_TabGroupFirst,
std::size(kTabGridLayoutAndroid_TabGroupAutoCreation_TabGroupFirst),
nullptr},
};
const FeatureEntry::FeatureParam kStartSurfaceAndroid_SingleSurface[] = {
{"start_surface_variation", "single"},
{"show_tabs_in_mru_order", "true"}};
const FeatureEntry::FeatureParam kStartSurfaceAndroid_SingleSurface_V2[] = {
{"start_surface_variation", "single"},
{"show_last_active_tab_only", "true"},
{"open_ntp_instead_of_start", "true"}};
const FeatureEntry::FeatureParam kStartSurfaceAndroid_SingleSurfaceSingleTab[] =
{{"start_surface_variation", "single"},
{"show_last_active_tab_only", "true"},
{"hide_switch_when_no_incognito_tabs", "true"}};
const FeatureEntry::FeatureParam kStartSurfaceAndroid_CandidateA[] = {
{"start_surface_variation", "single"},
{"show_last_active_tab_only", "true"},
{"hide_switch_when_no_incognito_tabs", "true"},
{"tab_count_button_on_start_surface", "true"}};
const FeatureEntry::FeatureParam kStartSurfaceAndroid_CandidateA_SyncCheck[] = {
{"start_surface_variation", "single"},
{"show_last_active_tab_only", "true"},
{"hide_switch_when_no_incognito_tabs", "true"},
{"tab_count_button_on_start_surface", "true"},
{"check_sync_before_show_start_at_startup", "true"}};
const FeatureEntry::FeatureParam
kStartSurfaceAndroid_CandidateA_SigninPromoTimeLimit[] = {
{"start_surface_variation", "single"},
{"show_last_active_tab_only", "true"},
{"hide_switch_when_no_incognito_tabs", "true"},
{"tab_count_button_on_start_surface", "true"},
{"sign_in_promo_show_since_last_background_limit_ms", "30000"}};
const FeatureEntry::FeatureParam kStartSurfaceAndroid_CandidateB[] = {
{"start_surface_variation", "single"},
{"show_last_active_tab_only", "true"},
{"hide_switch_when_no_incognito_tabs", "true"},
{"tab_count_button_on_start_surface", "true"},
{"open_ntp_instead_of_start", "true"}};
const FeatureEntry::FeatureParam
kStartSurfaceAndroid_CandidateB_AlwaysShowIncognito[] = {
{"start_surface_variation", "single"},
{"show_last_active_tab_only", "true"},
{"hide_switch_when_no_incognito_tabs", "false"},
{"tab_count_button_on_start_surface", "true"},
{"open_ntp_instead_of_start", "true"}};
const FeatureEntry::FeatureVariation kStartSurfaceAndroidVariations[] = {
{"Canidate A", kStartSurfaceAndroid_CandidateA,
std::size(kStartSurfaceAndroid_CandidateA), nullptr},
{"Canidate A + Sync check", kStartSurfaceAndroid_CandidateA_SyncCheck,
std::size(kStartSurfaceAndroid_CandidateA_SyncCheck), nullptr},
{"Canidate A + Sign in promo backgrounded time limit",
kStartSurfaceAndroid_CandidateA_SigninPromoTimeLimit,
std::size(kStartSurfaceAndroid_CandidateA_SigninPromoTimeLimit), nullptr},
{"Canidate B", kStartSurfaceAndroid_CandidateB,
std::size(kStartSurfaceAndroid_CandidateB), nullptr},
{"Canidate B + Always show Incognito icon",
kStartSurfaceAndroid_CandidateB_AlwaysShowIncognito,
std::size(kStartSurfaceAndroid_CandidateB_AlwaysShowIncognito), nullptr},
{"Single Surface", kStartSurfaceAndroid_SingleSurface,
std::size(kStartSurfaceAndroid_SingleSurface), nullptr},
{"Single Surface V2", kStartSurfaceAndroid_SingleSurface_V2,
std::size(kStartSurfaceAndroid_SingleSurface_V2), nullptr},
{"Single Surface + Single Tab", kStartSurfaceAndroid_SingleSurfaceSingleTab,
std::size(kStartSurfaceAndroid_SingleSurfaceSingleTab), nullptr},
};
const FeatureEntry::FeatureParam kFeedPositionAndroid_push_down_feed_small[] = {
{"push_down_feed_small", "true"}};
const FeatureEntry::FeatureParam kFeedPositionAndroid_push_down_feed_large[] = {
{"push_down_feed_large", "true"}};
const FeatureEntry::FeatureParam kFeedPositionAndroid_pull_up_feed[] = {
{"pull_up_feed", "true"}};
const FeatureEntry::FeatureVariation kFeedPositionAndroidVariations[] = {
{"Push down Feed (small)", kFeedPositionAndroid_push_down_feed_small,
std::size(kFeedPositionAndroid_push_down_feed_small), nullptr},
{"Push down Feed (large)", kFeedPositionAndroid_push_down_feed_large,
std::size(kFeedPositionAndroid_push_down_feed_large), nullptr},
{"Pull up Feed", kFeedPositionAndroid_pull_up_feed,
std::size(kFeedPositionAndroid_pull_up_feed), nullptr},
};
const FeatureEntry::FeatureParam kFeatureNotificationGuide_low_engaged[] = {
{"enable_feature_incognito_tab", "true"},
{"enable_feature_ntp_suggestion_card", "true"},
{"enable_feature_voice_search", "true"}};
const FeatureEntry::FeatureParam kFeatureNotificationGuide_default_browser[] = {
{"enable_feature_default_browser", "true"}};
const FeatureEntry::FeatureVariation kFeatureNotificationGuideVariations[] = {
{"Low engaged users", kFeatureNotificationGuide_low_engaged,
std::size(kFeatureNotificationGuide_low_engaged), nullptr},
{"Default browser", kFeatureNotificationGuide_default_browser,
std::size(kFeatureNotificationGuide_default_browser), nullptr},
};
const FeatureEntry::FeatureParam
kNotificationPermissionRationale_show_dialog_next_start_text_variant[] = {
{"always_show_rationale_before_requesting_permission", "true"},
{"notification_permission_dialog_text_variant_2", "true"},
{"permission_request_interval_days", "0"},
};
const FeatureEntry::FeatureParam
kNotificationPermissionRationale_show_dialog_next_start[] = {
{"always_show_rationale_before_requesting_permission", "true"},
{"notification_permission_dialog_text_variant_2", "false"},
{"permission_request_interval_days", "0"},
};
const FeatureEntry::FeatureVariation
kNotificationPermissionRationaleVariations[] = {
{"- Show rationale dialog on next startup",
kNotificationPermissionRationale_show_dialog_next_start,
std::size(kNotificationPermissionRationale_show_dialog_next_start),
nullptr},
{"- Show rationale dialog on next startup - alternative copy",
kNotificationPermissionRationale_show_dialog_next_start_text_variant,
std::size(
kNotificationPermissionRationale_show_dialog_next_start_text_variant),
nullptr},
};
const FeatureEntry::FeatureParam kWebFeed_accelerator[] = {
{"intro_style", "accelerator"}};
const FeatureEntry::FeatureParam kWebFeed_IPH[] = {{"intro_style", "IPH"}};
const FeatureEntry::FeatureVariation kWebFeedVariations[] = {
{"accelerator recommendations", kWebFeed_accelerator,
std::size(kWebFeed_accelerator), nullptr},
{"IPH recommendations", kWebFeed_IPH, std::size(kWebFeed_IPH), nullptr},
};
const FeatureEntry::FeatureParam kWebFeedAwareness_new_animation[] = {
{"awareness_style", "new animation"}};
const FeatureEntry::FeatureParam kWebFeedAwareness_IPH[] = {
{"awareness_style", "IPH"}};
const FeatureEntry::FeatureVariation kWebFeedAwarenessVariations[] = {
{"new animation", kWebFeedAwareness_new_animation,
std::size(kWebFeedAwareness_new_animation), nullptr},
{"IPH and dot", kWebFeedAwareness_IPH, std::size(kWebFeedAwareness_IPH),
nullptr},
};
const FeatureEntry::FeatureParam kConditionalTabStripAndroid_Immediate[] = {
{"conditional_tab_strip_session_time_ms", "0"}};
const FeatureEntry::FeatureParam kConditionalTabStripAndroid_60Minutes[] = {
{"conditional_tab_strip_session_time_ms", "3600000"}};
const FeatureEntry::FeatureVariation kConditionalTabStripAndroidVariations[] = {
{"Immediate", kConditionalTabStripAndroid_Immediate,
std::size(kConditionalTabStripAndroid_Immediate), nullptr},
{"60 minutes", kConditionalTabStripAndroid_60Minutes,
std::size(kConditionalTabStripAndroid_60Minutes), nullptr},
};
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kAddToHomescreen_UseTextBubble[] = {
{"use_text_bubble", "true"}};
const FeatureEntry::FeatureParam kAddToHomescreen_UseMessage[] = {
{"use_message", "true"}};
const FeatureEntry::FeatureVariation kAddToHomescreenIPHVariations[] = {
{"Use Text Bubble", kAddToHomescreen_UseTextBubble,
std::size(kAddToHomescreen_UseTextBubble), nullptr},
{"Use Message", kAddToHomescreen_UseMessage,
std::size(kAddToHomescreen_UseMessage), nullptr}};
#endif
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam
kAutofillUseMobileLabelDisambiguationShowAll[] = {
{autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
autofill::features::
kAutofillUseMobileLabelDisambiguationParameterShowAll}};
const FeatureEntry::FeatureParam
kAutofillUseMobileLabelDisambiguationShowOne[] = {
{autofill::features::kAutofillUseMobileLabelDisambiguationParameterName,
autofill::features::
kAutofillUseMobileLabelDisambiguationParameterShowOne}};
const FeatureEntry::FeatureVariation
kAutofillUseMobileLabelDisambiguationVariations[] = {
{"(show all)", kAutofillUseMobileLabelDisambiguationShowAll,
std::size(kAutofillUseMobileLabelDisambiguationShowAll), nullptr},
{"(show one)", kAutofillUseMobileLabelDisambiguationShowOne,
std::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}};
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kLensCameraAssistedSearchLensButtonStart[] = {
{"searchBoxStartVariantForLensCameraAssistedSearch", "true"}};
const FeatureEntry::FeatureParam kLensCameraAssistedSearchLensButtonEnd[] = {
{"searchBoxStartVariantForLensCameraAssistedSearch", "false"}};
const FeatureEntry::FeatureParam
kLensCameraAssistedSkipAgsaVersionCheckEnabled[] = {
{"skipAgsaVersionCheck", "true"}};
const FeatureEntry::FeatureParam
kLensCameraAssistedSkipAgsaVersionCheckDisabled[] = {
{"skipAgsaVersionCheck", "false"}};
const FeatureEntry::FeatureParam kLensCameraAssistedSearchOnTablet[] = {
{"enableCameraAssistedSearchOnTablet", "true"}};
const FeatureEntry::FeatureVariation kLensCameraAssistedSearchVariations[] = {
{"(Lens then Mic)", kLensCameraAssistedSearchLensButtonStart,
std::size(kLensCameraAssistedSearchLensButtonStart), nullptr},
{"(Mic then Lens)", kLensCameraAssistedSearchLensButtonEnd,
std::size(kLensCameraAssistedSearchLensButtonEnd), nullptr},
{"(without AGSA version check)",
kLensCameraAssistedSkipAgsaVersionCheckEnabled,
std::size(kLensCameraAssistedSkipAgsaVersionCheckEnabled), nullptr},
{"(with AGSA version check )",
kLensCameraAssistedSkipAgsaVersionCheckDisabled,
std::size(kLensCameraAssistedSkipAgsaVersionCheckDisabled), nullptr},
{"(on Tablet)", kLensCameraAssistedSearchOnTablet,
std::size(kLensCameraAssistedSearchOnTablet), nullptr}};
const FeatureEntry::FeatureParam kLensContextMenuSearchOnTablet[] = {
{"enableContextMenuSearchOnTablet", "true"}};
const FeatureEntry::FeatureVariation kLensContextMenuSearchVariations[] = {
{"(on Tablet)", kLensContextMenuSearchOnTablet,
std::size(kLensContextMenuSearchOnTablet), nullptr},
};
const FeatureEntry::FeatureParam kDynamicColorFull[] = {
{"dynamic_color_full", "true"}};
const FeatureEntry::FeatureVariation kDynamicColorAndroidVariations[] = {
{"(Full)", kDynamicColorFull, std::size(kDynamicColorFull), nullptr},
};
#endif // BUILDFLAG(IS_ANDROID)
const FeatureEntry::Choice kNotificationSchedulerChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::
kNotificationSchedulerImmediateBackgroundTaskDescription,
notifications::switches::kNotificationSchedulerImmediateBackgroundTask,
""},
};
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kAssistantConsentV2_reprompts_counter[] = {
{"count", "3"}};
const FeatureEntry::FeatureVariation kAssistantConsentV2_Variations[] = {
{"Limited Re-prompts", kAssistantConsentV2_reprompts_counter,
std::size(kAssistantConsentV2_reprompts_counter), nullptr},
};
const FeatureEntry::FeatureParam kOmniboxAssistantVoiceSearchGreyMic[] = {
{"min_agsa_version", "10.95"},
{"colorful_mic", "false"}};
const FeatureEntry::FeatureParam kOmniboxAssistantVoiceSearchColorfulMic[] = {
{"min_agsa_version", "10.95"},
{"colorful_mic", "true"}};
const FeatureEntry::FeatureParam
kOmniboxAssistantVoiceSearchNoMultiAccountCheck[] = {
{"min_agsa_version", "10.95"},
{"colorful_mic", "true"},
{"enable_multi_account_check", "false"}};
const FeatureEntry::FeatureVariation kOmniboxAssistantVoiceSearchVariations[] =
{
{"(grey mic)", kOmniboxAssistantVoiceSearchGreyMic,
std::size(kOmniboxAssistantVoiceSearchGreyMic), nullptr},
{"(colorful mic)", kOmniboxAssistantVoiceSearchColorfulMic,
std::size(kOmniboxAssistantVoiceSearchColorfulMic), nullptr},
{"(no account check)", kOmniboxAssistantVoiceSearchNoMultiAccountCheck,
std::size(kOmniboxAssistantVoiceSearchNoMultiAccountCheck), nullptr},
};
const FeatureEntry::FeatureParam
kPhotoPickerVideoSupportEnabledWithAnimatedThumbnails[] = {
{"animate_thumbnails", "true"}};
const FeatureEntry::FeatureVariation
kPhotoPickerVideoSupportFeatureVariations[] = {
{"(with animated thumbnails)",
kPhotoPickerVideoSupportEnabledWithAnimatedThumbnails,
std::size(kPhotoPickerVideoSupportEnabledWithAnimatedThumbnails),
nullptr}};
// Request Desktop Site on Tablet by default variations.
const FeatureEntry::FeatureParam kRequestDesktopSiteForTablets100[] = {
{"screen_width_dp", "100"},
{"enabled", "true"}};
const FeatureEntry::FeatureParam kRequestDesktopSiteForTablets600[] = {
{"screen_width_dp", "600"},
{"enabled", "true"}};
const FeatureEntry::FeatureParam kRequestDesktopSiteForTablets768[] = {
{"screen_width_dp", "768"},
{"enabled", "true"}};
const FeatureEntry::FeatureParam kRequestDesktopSiteForTablets960[] = {
{"screen_width_dp", "960"},
{"enabled", "true"}};
const FeatureEntry::FeatureParam kRequestDesktopSiteForTablets1024[] = {
{"screen_width_dp", "1024"},
{"enabled", "true"}};
const FeatureEntry::FeatureParam kRequestDesktopSiteForTablets1280[] = {
{"screen_width_dp", "1280"},
{"enabled", "true"}};
const FeatureEntry::FeatureParam kRequestDesktopSiteForTablets1920[] = {
{"screen_width_dp", "1920"},
{"enabled", "true"}};
const FeatureEntry::FeatureVariation kRequestDesktopSiteForTabletsVariations[] =
{{"for 100dp+ screens", kRequestDesktopSiteForTablets100,
std::size(kRequestDesktopSiteForTablets100), nullptr},
{"for 600dp+ screens", kRequestDesktopSiteForTablets600,
std::size(kRequestDesktopSiteForTablets600), nullptr},
{"for 768dp+ screens", kRequestDesktopSiteForTablets768,
std::size(kRequestDesktopSiteForTablets768), nullptr},
{"for 960dp+ screens", kRequestDesktopSiteForTablets960,
std::size(kRequestDesktopSiteForTablets960), nullptr},
{"for 1024dp+ screens", kRequestDesktopSiteForTablets1024,
std::size(kRequestDesktopSiteForTablets1024), nullptr},
{"for 1280dp+ screens", kRequestDesktopSiteForTablets1280,
std::size(kRequestDesktopSiteForTablets1280), nullptr},
{"for 1920dp+ screens", kRequestDesktopSiteForTablets1920,
std::size(kRequestDesktopSiteForTablets1920), nullptr}};
#endif // BUILDFLAG(IS_ANDROID)
// TODO(crbug.com/991082,1015377): Remove after proper support for back-forward
// cache is implemented.
const FeatureEntry::FeatureParam kBackForwardCache_ForceCaching[] = {
{"TimeToLiveInBackForwardCacheInSeconds", "300"},
{"should_ignore_blocklists", "true"},
{"enable_same_site", "true"}};
// With this, back-forward cache will be enabled on eligible pages when doing
// same-site navigations (instead of only cross-site navigations).
const FeatureEntry::FeatureParam kBackForwardCache_SameSite[] = {
{"enable_same_site", "true"}};
const FeatureEntry::FeatureVariation kBackForwardCacheVariations[] = {
{"same-site support (experimental)", kBackForwardCache_SameSite,
std::size(kBackForwardCache_SameSite), nullptr},
{"force caching all pages (experimental)", kBackForwardCache_ForceCaching,
std::size(kBackForwardCache_ForceCaching), nullptr},
};
#if BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::Choice kEnableCrOSActionRecorderChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{ash::switches::kCrOSActionRecorderWithHash,
ash::switches::kEnableCrOSActionRecorder,
ash::switches::kCrOSActionRecorderWithHash},
{ash::switches::kCrOSActionRecorderWithoutHash,
ash::switches::kEnableCrOSActionRecorder,
ash::switches::kCrOSActionRecorderWithoutHash},
{ash::switches::kCrOSActionRecorderCopyToDownloadDir,
ash::switches::kEnableCrOSActionRecorder,
ash::switches::kCrOSActionRecorderCopyToDownloadDir},
{ash::switches::kCrOSActionRecorderDisabled,
ash::switches::kEnableCrOSActionRecorder,
ash::switches::kCrOSActionRecorderDisabled},
{ash::switches::kCrOSActionRecorderStructuredDisabled,
ash::switches::kEnableCrOSActionRecorder,
ash::switches::kCrOSActionRecorderStructuredDisabled},
};
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::Choice kWebOtpBackendChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kWebOtpBackendSmsVerification, switches::kWebOtpBackend,
switches::kWebOtpBackendSmsVerification},
{flag_descriptions::kWebOtpBackendUserConsent, switches::kWebOtpBackend,
switches::kWebOtpBackendUserConsent},
{flag_descriptions::kWebOtpBackendAuto, switches::kWebOtpBackend,
switches::kWebOtpBackendAuto},
};
const FeatureEntry::Choice kQueryTilesCountryChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flag_descriptions::kQueryTilesCountryCodeUS,
query_tiles::switches::kQueryTilesCountryCode, "US"},
{flag_descriptions::kQueryTilesCountryCodeIndia,
query_tiles::switches::kQueryTilesCountryCode, "IN"},
{flag_descriptions::kQueryTilesCountryCodeBrazil,
query_tiles::switches::kQueryTilesCountryCode, "BR"},
{flag_descriptions::kQueryTilesCountryCodeNigeria,
query_tiles::switches::kQueryTilesCountryCode, "NG"},
{flag_descriptions::kQueryTilesCountryCodeIndonesia,
query_tiles::switches::kQueryTilesCountryCode, "ID"},
};
#endif // BUILDFLAG(IS_ANDROID)
// The choices for --enable-experimental-cookie-features. This really should
// just be a SINGLE_VALUE_TYPE, but it is misleading to have the choices be
// labeled "Disabled"/"Enabled". So instead this is made to be a
// MULTI_VALUE_TYPE with choices "Default"/"Enabled".
const FeatureEntry::Choice kEnableExperimentalCookieFeaturesChoices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flags_ui::kGenericExperimentChoiceEnabled,
switches::kEnableExperimentalCookieFeatures, ""},
};
#if BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::Choice kFrameThrottleFpsChoices[] = {
{flag_descriptions::kFrameThrottleFpsDefault, "", ""},
{flag_descriptions::kFrameThrottleFps5, ash::switches::kFrameThrottleFps,
"5"},
{flag_descriptions::kFrameThrottleFps10, ash::switches::kFrameThrottleFps,
"10"},
{flag_descriptions::kFrameThrottleFps15, ash::switches::kFrameThrottleFps,
"15"},
{flag_descriptions::kFrameThrottleFps20, ash::switches::kFrameThrottleFps,
"20"},
{flag_descriptions::kFrameThrottleFps25, ash::switches::kFrameThrottleFps,
"25"},
{flag_descriptions::kFrameThrottleFps30, ash::switches::kFrameThrottleFps,
"30"}};
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::FeatureParam kDrawPredictedPointExperiment1Point12Ms[] = {
{"predicted_points", features::kDraw1Point12Ms}};
const FeatureEntry::FeatureParam kDrawPredictedPointExperiment2Points6Ms[] = {
{"predicted_points", features::kDraw2Points6Ms}};
const FeatureEntry::FeatureParam kDrawPredictedPointExperiment1Point6Ms[] = {
{"predicted_points", features::kDraw1Point6Ms}};
const FeatureEntry::FeatureParam kDrawPredictedPointExperiment2Points3Ms[] = {
{"predicted_points", features::kDraw2Points3Ms}};
const FeatureEntry::FeatureVariation kDrawPredictedPointVariations[] = {
{flag_descriptions::kDraw1PredictedPoint12Ms,
kDrawPredictedPointExperiment1Point12Ms,
std::size(kDrawPredictedPointExperiment1Point12Ms), nullptr},
{flag_descriptions::kDraw2PredictedPoints6Ms,
kDrawPredictedPointExperiment2Points6Ms,
std::size(kDrawPredictedPointExperiment2Points6Ms), nullptr},
{flag_descriptions::kDraw1PredictedPoint6Ms,
kDrawPredictedPointExperiment1Point6Ms,
std::size(kDrawPredictedPointExperiment1Point6Ms), nullptr},
{flag_descriptions::kDraw2PredictedPoints3Ms,
kDrawPredictedPointExperiment2Points3Ms,
std::size(kDrawPredictedPointExperiment2Points3Ms), nullptr}};
const FeatureEntry::FeatureParam kFedCmVariationAutoSignin[] = {
{features::kFedCmAutoSigninFieldTrialParamName, "true"}};
const FeatureEntry::FeatureParam kFedCmVariationIdpSignout[] = {
{features::kFedCmIdpSignoutFieldTrialParamName, "true"}};
const FeatureEntry::FeatureParam kFedCmVariationIframe[] = {
{features::kFedCmIframeSupportFieldTrialParamName, "true"}};
const FeatureEntry::FeatureVariation kFedCmFeatureVariations[] = {
{"- with FedCM auto sign-in", kFedCmVariationAutoSignin,
std::size(kFedCmVariationAutoSignin), nullptr},
{"- with FedCM IDP sign-out", kFedCmVariationIdpSignout,
std::size(kFedCmVariationIdpSignout), nullptr},
{"- with iframe support", kFedCmVariationIframe,
std::size(kFedCmVariationIframe), nullptr},
};
#if BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::Choice kForceControlFaceAeChoices[] = {
{"Default", "", ""},
{"Enable", media::switches::kForceControlFaceAe, "enable"},
{"Disable", media::switches::kForceControlFaceAe, "disable"}};
const FeatureEntry::Choice kHdrNetOverrideChoices[] = {
{"Default", "", ""},
{"Force enabled", media::switches::kHdrNetOverride,
media::switches::kHdrNetForceEnabled},
{"Force disabled", media::switches::kHdrNetOverride,
media::switches::kHdrNetForceDisabled}};
const FeatureEntry::Choice kAutoFramingOverrideChoices[] = {
{"Default", "", ""},
{"Force enabled", media::switches::kAutoFramingOverride,
media::switches::kAutoFramingForceEnabled},
{"Force disabled", media::switches::kAutoFramingOverride,
media::switches::kAutoFramingForceDisabled}};
#endif
#if BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::Choice kCrostiniContainerChoices[] = {
{"Default", "", ""},
{"Buster", crostini::kCrostiniContainerFlag, "buster"},
{"Bullseye", crostini::kCrostiniContainerFlag, "bullseye"},
};
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
// The variations of --password-domain-capabilities-fetching.
const FeatureEntry::FeatureParam
kPasswordDomainCapabilitiesFetchingVariationLiveExperiment[] = {
{password_manager::features::kPasswordChangeLiveExperimentParam.name,
"true"}};
const FeatureEntry::FeatureVariation
kPasswordDomainCapabilitiesFetchingFeatureVariations[] = {
{"Live experiment",
kPasswordDomainCapabilitiesFetchingVariationLiveExperiment,
std::size(kPasswordDomainCapabilitiesFetchingVariationLiveExperiment),
nullptr}};
// The variations of --password-change-support.
const FeatureEntry::FeatureParam
kPasswordChangeVariationWithForcedDialogAfterEverySuccessfulSubmission[] = {
{password_manager::features::
kPasswordChangeWithForcedDialogAfterEverySuccessfulSubmission,
"true"}};
const FeatureEntry::FeatureVariation kPasswordChangeFeatureVariations[] = {
{"Force dialog after every successful form submission.",
kPasswordChangeVariationWithForcedDialogAfterEverySuccessfulSubmission,
std::size(
kPasswordChangeVariationWithForcedDialogAfterEverySuccessfulSubmission),
nullptr}};
// The variations of --password-change-in-settings.
const FeatureEntry::FeatureParam
kPasswordChangeInSettingsVariationWithForcedWarningForEverySite[] = {
{password_manager::features::
kPasswordChangeInSettingsWithForcedWarningForEverySite,
"true"}};
const FeatureEntry::FeatureVariation
kPasswordChangeInSettingsFeatureVariations[] = {
{"Force leak warnings for every site in settings.",
kPasswordChangeInSettingsVariationWithForcedWarningForEverySite,
std::size(
kPasswordChangeInSettingsVariationWithForcedWarningForEverySite),
nullptr}};
#if BUILDFLAG(IS_ANDROID)
// The variations of --touch-to-fill-password-submission.
const FeatureEntry::FeatureParam
kTouchToFillPasswordSubmissionWithConservativeHeuristics[] = {
{password_manager::features::
kTouchToFillPasswordSubmissionWithConservativeHeuristics,
"true"}};
const FeatureEntry::FeatureVariation
kTouchToFillPasswordSubmissionVariations[] = {
{"Use conservative heuristics",
kTouchToFillPasswordSubmissionWithConservativeHeuristics,
std::size(kTouchToFillPasswordSubmissionWithConservativeHeuristics),
nullptr}};
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kPermissionIconTimeout6000[] = {
{"PermissionIconTimeoutMs", "6000"}};
const FeatureEntry::FeatureParam kPermissionIconTimeout4000[] = {
{"PermissionIconTimeoutMs", "4000"}};
const FeatureEntry::FeatureParam kPermissionIconTimeout3000[] = {
{"PermissionIconTimeoutMs", "3000"}};
const FeatureEntry::FeatureParam kPermissionIconTimeout2000[] = {
{"PermissionIconTimeoutMs", "2000"}};
const FeatureEntry::FeatureVariation
kPageInfoDiscoverabilityTimeoutVariations[] = {
{"Long (6s)", kPermissionIconTimeout6000,
std::size(kPermissionIconTimeout6000), nullptr},
{"Medium (4s)", kPermissionIconTimeout4000,
std::size(kPermissionIconTimeout4000), nullptr},
{"Short (3s)", kPermissionIconTimeout3000,
std::size(kPermissionIconTimeout3000), nullptr},
{"Extra-Short (2s)", kPermissionIconTimeout2000,
std::size(kPermissionIconTimeout2000), nullptr},
};
#endif // BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_ANDROID)
// The variations of --metrics-settings-android.
const FeatureEntry::FeatureParam kMetricsSettingsAndroidAlternativeOne[] = {
{"fre", "1"}};
const FeatureEntry::FeatureParam kMetricsSettingsAndroidAlternativeTwo[] = {
{"fre", "2"}};
const FeatureEntry::FeatureVariation kMetricsSettingsAndroidVariations[] = {
{"Alternative FRE 1", kMetricsSettingsAndroidAlternativeOne,
std::size(kMetricsSettingsAndroidAlternativeOne), nullptr},
{"Alternative FRE 2", kMetricsSettingsAndroidAlternativeTwo,
std::size(kMetricsSettingsAndroidAlternativeTwo), nullptr},
};
#endif // BUILDFLAG(IS_ANDROID)
#if !BUILDFLAG(IS_ANDROID)
// SCT Auditing feature variations.
const FeatureEntry::FeatureParam kSCTAuditingSamplingRateNone[] = {
{"sampling_rate", "0.0"}};
const FeatureEntry::FeatureParam kSCTAuditingSamplingRateAlternativeOne[] = {
{"sampling_rate", "0.0001"}};
const FeatureEntry::FeatureParam kSCTAuditingSamplingRateAlternativeTwo[] = {
{"sampling_rate", "0.001"}};
const FeatureEntry::FeatureVariation kSCTAuditingVariations[] = {
{"Sampling rate 0%", kSCTAuditingSamplingRateNone,
std::size(kSCTAuditingSamplingRateNone), nullptr},
{"Sampling rate 0.01%", kSCTAuditingSamplingRateAlternativeOne,
std::size(kSCTAuditingSamplingRateAlternativeOne), nullptr},
{"Sampling rate 0.1%", kSCTAuditingSamplingRateAlternativeTwo,
std::size(kSCTAuditingSamplingRateAlternativeTwo), nullptr},
};
#endif // !BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kUseDnsHttpsSvcbBoth[] = {
{"UseDnsHttpsSvcbEnableInsecure", "true"}};
const FeatureEntry::FeatureParam kUseDnsHttpsSvcbDohOnly[] = {
{"UseDnsHttpsSvcbEnableInsecure", "false"}};
const FeatureEntry::FeatureVariation kUseDnsHttpsSvcbVariations[] = {
{"for DNS-over-HTTPS and insecure DNS", kUseDnsHttpsSvcbBoth,
std::size(kUseDnsHttpsSvcbBoth), nullptr},
{"for DNS-over-HTTPS only", kUseDnsHttpsSvcbDohOnly,
std::size(kUseDnsHttpsSvcbDohOnly), nullptr},
};
#if BUILDFLAG(IS_ANDROID)
// The variations of ContentLanguagesInLanguagePicker.
const FeatureEntry::FeatureParam
kContentLanguagesInLanguagePickerDisableObservers[] = {
{language::kContentLanguagesDisableObserversParam, "true"}};
const FeatureEntry::FeatureVariation
kContentLanguagesInLanguaePickerVariations[] = {
{"Without observers", kContentLanguagesInLanguagePickerDisableObservers,
std::size(kContentLanguagesInLanguagePickerDisableObservers), nullptr},
};
#endif // BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kCheckOfflineCapabilityWarnOnly[] = {
{"check_mode", "warn_only"}};
const FeatureEntry::FeatureParam kCheckOfflineCapabilityEnforce[] = {
{"check_mode", "enforce"}};
const FeatureEntry::FeatureVariation kCheckOfflineCapabilityVariations[] = {
{"Warn-only", kCheckOfflineCapabilityWarnOnly,
std::size(kCheckOfflineCapabilityWarnOnly), nullptr},
{"Enforce", kCheckOfflineCapabilityEnforce,
std::size(kCheckOfflineCapabilityEnforce), nullptr},
};
#if BUILDFLAG(IS_CHROMEOS_ASH)
const FeatureEntry::FeatureParam kCategoricalSearch_Unranked[] = {
{"ranking", "none"}};
const FeatureEntry::FeatureParam kCategoricalSearch_ByItem[] = {
{"ranking", "item"}};
const FeatureEntry::FeatureParam kCategoricalSearch_ByUsage[] = {
{"ranking", "usage"}};
const FeatureEntry::FeatureVariation kCategoricalSearchVariations[] = {
{"Unranked", kCategoricalSearch_Unranked,
std::size(kCategoricalSearch_Unranked), nullptr},
{"By item", kCategoricalSearch_ByItem, std::size(kCategoricalSearch_ByItem),
nullptr},
{"By usage", kCategoricalSearch_ByUsage,
std::size(kCategoricalSearch_ByUsage), nullptr}};
const FeatureEntry::FeatureParam kProductivityLauncher_WithoutContinue[] = {
{"enable_continue", "false"}};
const FeatureEntry::FeatureVariation kProductivityLauncherVariations[] = {
{"without Continue", kProductivityLauncher_WithoutContinue,
std::size(kProductivityLauncher_WithoutContinue), nullptr}};
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
constexpr FeatureEntry::FeatureParam kPlatformProvidedTrustTokenIssuance[] = {
{"PlatformProvidedTrustTokenIssuance", "true"}};
constexpr FeatureEntry::FeatureVariation
kPlatformProvidedTrustTokensVariations[] = {
{"with platform-provided trust token issuance",
kPlatformProvidedTrustTokenIssuance,
std::size(kPlatformProvidedTrustTokenIssuance), nullptr}};
#if BUILDFLAG(IS_CHROMEOS_ASH)
constexpr char kPersonalizationHubInternalName[] = "personalization-hub";
constexpr char kWallpaperFastRefreshInternalName[] = "wallpaper-fast-refresh";
constexpr char kWallpaperFullScreenPreviewInternalName[] =
"wallpaper-fullscreen-preview";
constexpr char kWallpaperGooglePhotosIntegrationInternalName[] =
"wallpaper-google-photos-integration";
constexpr char kWallpaperPerDeskName[] = "per-desk-wallpaper";
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(ENABLE_PAINT_PREVIEW) && BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kPaintPreviewStartupWithAccessibility[] = {
{"has_accessibility_support", "true"}};
const FeatureEntry::FeatureVariation kPaintPreviewStartupVariations[] = {
{"with accessibility support", kPaintPreviewStartupWithAccessibility,
std::size(kPaintPreviewStartupWithAccessibility), nullptr}};
#endif // BUILDFLAG(ENABLE_PAINT_PREVIEW) && BUILDFLAG(IS_ANDROID)
#if BUILDFLAG(IS_CHROMEOS_ASH)
constexpr char kBorealisBigGlInternalName[] = "borealis-big-gl";
constexpr char kBorealisDiskManagementInternalName[] =
"borealis-disk-management";
constexpr char kBorealisForceBetaClientInternalName[] =
"borealis-force-beta-client";
constexpr char kBorealisLinuxModeInternalName[] = "borealis-linux-mode";
// This differs slightly from its symbol's name since "enabled" is used
// internally to refer to whether borealis is installed or not.
constexpr char kBorealisPermittedInternalName[] = "borealis-enabled";
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_CHROMEOS_ASH)
constexpr char kClipboardHistoryReorderInternalName[] =
"clipboard-history-reorder";
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
#if BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kReadLaterUseRootBookmarkAsDefault[] = {
{"use_root_bookmark_as_default", "true"}};
const FeatureEntry::FeatureParam kReadLaterInAppMenu[] = {
{"use_root_bookmark_as_default", "true"},
{"reading_list_in_app_menu", "true"},
{"allow_bookmark_type_swapping", "true"}};
const FeatureEntry::FeatureParam kReadLaterSemiIntegrated[] = {
{"use_root_bookmark_as_default", "true"},
{"allow_bookmark_type_swapping", "true"}};
const FeatureEntry::FeatureParam kReadLaterNoCustomTab[] = {
{"use_root_bookmark_as_default", "true"},
{"use_cct", "false"}};
const FeatureEntry::FeatureVariation kReadLaterVariations[] = {
{"(use root bookmark as default)", kReadLaterUseRootBookmarkAsDefault,
std::size(kReadLaterUseRootBookmarkAsDefault), nullptr},
{"(with app menu item)", kReadLaterInAppMenu,
std::size(kReadLaterInAppMenu), nullptr},
{"(bookmarks semi-integration)", kReadLaterSemiIntegrated,
std::size(kReadLaterSemiIntegrated), nullptr},
{"(no custom tab)", kReadLaterNoCustomTab, std::size(kReadLaterNoCustomTab),
nullptr}};
const FeatureEntry::FeatureParam kBookmarksRefreshVisuals[] = {
{"bookmark_visuals_enabled", "true"}};
const FeatureEntry::FeatureParam kBookmarksRefreshCompactVisuals[] = {
{"bookmark_visuals_enabled", "true"},
{"bookmark_compact_visuals_enabled", "true"}};
const FeatureEntry::FeatureParam kBookmarksRefreshAppMenu[] = {
{"bookmark_in_app_menu", "true"}};
const FeatureEntry::FeatureParam kBookmarksRefreshNormal[] = {
{"bookmark_visuals_enabled", "true"},
{"bookmark_in_app_menu", "true"}};
const FeatureEntry::FeatureParam kBookmarksRefreshCompact[] = {
{"bookmark_visuals_enabled", "true"},
{"bookmark_compact_visuals_enabled", "true"},
{"bookmark_in_app_menu", "true"}};
const FeatureEntry::FeatureVariation kBookmarksRefreshVariations[] = {
{"(enabled w/ visuals)", kBookmarksRefreshNormal,
std::size(kBookmarksRefreshNormal), nullptr},
{"(enabled w/ compact visuals)", kBookmarksRefreshCompact,
std::size(kBookmarksRefreshCompact), nullptr},
{"(visuals only)", kBookmarksRefreshVisuals,
std::size(kBookmarksRefreshVisuals), nullptr},
{"(compact visuals only)", kBookmarksRefreshCompactVisuals,
std::size(kBookmarksRefreshCompactVisuals), nullptr},
{"(app menu item only)", kBookmarksRefreshAppMenu,
std::size(kBookmarksRefreshAppMenu), nullptr}};
#endif // BUILDFLAG(IS_ANDROID)
const FeatureEntry::FeatureParam kLargeFaviconFromGoogle96[] = {
{"favicon_size_in_dip", "96"}};
const FeatureEntry::FeatureParam kLargeFaviconFromGoogle128[] = {
{"favicon_size_in_dip", "128"}};
const FeatureEntry::FeatureVariation kLargeFaviconFromGoogleVariations