blob: 9f68e5ae6a18d1f88a1efaae19400a6ee970c9c5 [file] [log] [blame]
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/flags/android/chrome_feature_list.h"
#include <stddef.h>
#include <string>
#include "base/android/feature_map.h"
#include "base/feature_list.h"
#include "base/features.h"
#include "base/no_destructor.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/feature_guide/notifications/feature_notification_guide_service.h"
#include "chrome/browser/flags/android/chrome_session_state.h"
#include "chrome/browser/flags/jni_headers/ChromeFeatureMap_jni.h"
#include "chrome/browser/notifications/chime/android/features.h"
#include "chrome/browser/push_messaging/push_messaging_features.h"
#include "chrome/browser/share/share_features.h"
#include "chrome/browser/signin/signin_features.h"
#include "chrome/browser/ui/ui_features.h"
#include "chrome/common/chrome_features.h"
#include "chrome_feature_list.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/browser_sync/browser_sync_switches.h"
#include "components/browser_ui/photo_picker/android/features.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/content_settings/core/common/features.h"
#include "components/contextual_search/core/browser/contextual_search_field_trial.h"
#include "components/download/public/common/download_features.h"
#include "components/embedder_support/android/util/cdn_utils.h"
#include "components/feature_engagement/public/feature_list.h"
#include "components/feed/feed_feature_list.h"
#include "components/history/core/browser/features.h"
#include "components/history_clusters/core/features.h"
#include "components/invalidation/impl/invalidation_switches.h"
#include "components/language/core/common/language_experiments.h"
#include "components/messages/android/messages_feature.h"
#include "components/ntp_tiles/features.h"
#include "components/offline_pages/core/offline_page_feature.h"
#include "components/omnibox/common/omnibox_features.h"
#include "components/optimization_guide/core/optimization_guide_features.h"
#include "components/page_info/core/features.h"
#include "components/paint_preview/features/features.h"
#include "components/password_manager/core/browser/features/password_features.h"
#include "components/password_manager/core/common/password_manager_features.h"
#include "components/permissions/features.h"
#include "components/plus_addresses/features.h"
#include "components/policy/core/common/features.h"
#include "components/privacy_sandbox/privacy_sandbox_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/segmentation_platform/public/features.h"
#include "components/send_tab_to_self/features.h"
#include "components/shared_highlighting/core/common/shared_highlighting_features.h"
#include "components/signin/public/base/signin_switches.h"
#include "components/subresource_filter/core/browser/subresource_filter_features.h"
#include "components/supervised_user/core/common/features.h"
#include "components/sync/base/features.h"
#include "components/webapps/browser/features.h"
#include "content/public/common/content_features.h"
#include "device/fido/features.h"
#include "media/base/media_switches.h"
#include "services/device/public/cpp/device_features.h"
#include "services/network/public/cpp/features.h"
#include "third_party/blink/public/common/features.h"
#include "ui/base/ui_base_features.h"
namespace chrome {
namespace android {
namespace {
// Array of features exposed through the Java ChromeFeatureList API. Entries in
// this array may either refer to features defined in the header of this file or
// in other locations in the code base (e.g. chrome/, components/, etc).
const base::Feature* const kFeaturesExposedToJava[] = {
&autofill::features::kAutofillAddressProfileSavePromptNicknameSupport,
&autofill::features::kAutofillEnableRankingFormulaAddressProfiles,
&autofill::features::kAutofillEnableRankingFormulaCreditCards,
&autofill::features::kAutofillEnableManualFallbackForVirtualCards,
&autofill::features::kAutofillEnableNewCardArtAndNetworkImages,
&autofill::features::kAutofillEnableCardArtServerSideStretching,
&autofill::features::kAutofillEnableUpdateVirtualCardEnrollment,
&autofill::features::kAutofillEnableVirtualCardMetadata,
&autofill::features::kAutofillEnableCardArtImage,
&autofill::features::kAutofillEnableCardProductName,
&autofill::features::kAutofillVirtualViewStructureAndroid,
&autofill::features::kAutofillEnablePaymentsMandatoryReauth,
&autofill::features::kAutofillEnableMovingGPayLogoToTheRightOnClank,
&autofill::features::kAutofillEnableCvcStorageAndFilling,
&autofill::features::kAutofillEnableSaveCardLoadingAndConfirmation,
&autofill::features::kAutofillUpdateChromeSettingsLinkToGPayWeb,
&blink::features::kForceWebContentsDarkMode,
&blink::features::kPrerender2,
&commerce::kCommerceMerchantViewer,
&commerce::kCommercePriceTracking,
&commerce::kShoppingList,
&commerce::kShoppingPDPMetrics,
&content_settings::kDarkenWebsitesCheckboxInThemesSetting,
&content_settings::features::kTrackingProtection3pcd,
&content_settings::features::kUserBypassUI,
&download::features::kSmartSuggestionForLargeDownloads,
&download::features::kDownloadsMigrateToJobsAPI,
&base::features::kCollectAndroidFrameTimelineMetrics,
&download::features::kDownloadNotificationServiceUnifiedAPI,
&features::kGenericSensorExtraClasses,
&features::kBackForwardCache,
&features::kBackForwardTransitions,
&features::kBlockMidiByDefault,
&features::kBoardingPassDetector,
&features::kNetworkServiceInProcess,
&features::kElasticOverscroll,
&features::kNotificationOneTapUnsubscribe,
&features::kPrivacyGuideAndroid3,
&features::kPrivacyGuidePreloadAndroid,
&features::kPushMessagingDisallowSenderIDs,
&features::kPwaUpdateDialogForIcon,
&features::kQuietNotificationPrompts,
&features::kToolbarUseHardwareBitmapDraw,
&features::kWebNfc,
&features::kIncognitoDownloadsWarning,
&features::kIncognitoNtpRevamp,
&feature_engagement::kIPHTabSwitcherButtonFeature,
&feature_engagement::kUseClientConfigIPH,
&feature_guide::features::kFeatureNotificationGuide,
&feature_guide::features::kSkipCheckForLowEngagedUsers,
&feed::kFeedDynamicColors,
&feed::kFeedFollowUiUpdate,
&feed::kFeedImageMemoryCacheSizePercentage,
&feed::kFeedLoadingPlaceholder,
&feed::kFeedNoViewCache,
&feed::kFeedPerformanceStudy,
&feed::kFeedShowSignInCommand,
&feed::kFeedSignedOutViewDemotion,
&feed::kFeedUserInteractionReliabilityReport,
&feed::kInterestFeedV2,
&feed::kInterestFeedV2Hearts,
&feed::kWebFeed,
&feed::kWebFeedAwareness,
&feed::kWebFeedOnboarding,
&feed::kWebFeedSort,
&feed::kXsurfaceMetricsReporting,
&history::kOrganicRepeatableQueries,
&history_clusters::kRenameJourneys,
&history_clusters::internal::kJourneys,
&history_clusters::internal::kOmniboxAction,
&history_clusters::internal::kOmniboxHistoryClusterProvider,
&kAdaptiveButtonInTopToolbarTranslate,
&kAdaptiveButtonInTopToolbarAddToBookmarks,
&kAdaptiveButtonInTopToolbarCustomizationV2,
&kAddToHomescreenIPH,
&kAdvancedPeripheralsSupportTabStrip,
&kRedirectExplicitCTAIntentsToExistingActivity,
&kAllowNewIncognitoTabIntents,
&kAndroidAppIntegration,
&kAndroidElegantTextHeight,
&kAndroidHatsRefactor,
&kAndroidHub,
&kAndroidImprovedBookmarks,
&kAndroidVisibleUrlTruncationV2,
&kAnimatedImageDragShadow,
&kAppSpecificHistory,
&kArchiveTabService,
&kAuxiliarySearchDonation,
&kAvoidSelectedTabFocusOnLayoutDoneShowing,
&kBackGestureActivityTabProvider,
&kBackGestureMoveToBackDuringStartup,
&kBackGestureRefactorAndroid,
&kBackgroundThreadPool,
&kBlockIntentsWhileLocked,
&kCacheActivityTaskID,
&kCastDeviceFilter,
&kClearOmniboxFocusAfterNavigation,
&kCreateNewTabInitializeRenderer,
&kCCTBrandTransparencyMemoryImprovement,
&kCCTClientDataHeader,
&kCCTFeatureUsage,
&kCCTIncognitoAvailableToThirdParty,
&kCCTIntentFeatureOverrides,
&kCCTMinimized,
&kCCTMinimizedEnabledByDefault,
&kCCTPageInsightsHub,
&kCCTPageInsightsHubBetterScroll,
&kCCTReportParallelRequestStatus,
&kCCTResizableForThirdParties,
&kCCTResizableSideSheet,
&kCCTResizableSideSheetForThirdParties,
&kCCTTabModalDialog,
&kDontAutoHideBrowserControls,
&kCacheDeprecatedSystemLocationSetting,
&kChromeSurveyNextAndroid,
&kCommandLineOnNonRooted,
&kContextMenuTranslateWithGoogleLens,
&kContextMenuPopupForAllScreenSizes,
&kContextualSearchDisableOnlineDetection,
&kContextualSearchSuppressShortView,
&kContextualSearchThinWebViewImplementation,
&kDeferKeepScreenOnDuringGesture,
&kDeferNotifyInMotion,
&kDeferTabSwitcherLayoutCreation,
&kDelayTempStripRemoval,
&kDragDropIntoOmnibox,
&kDrawEdgeToEdge,
&kDrawNativeEdgeToEdge,
&kDrawWebEdgeToEdge,
&kDynamicTopChrome,
&kEarlyInitializeStartupMetrics,
&kExperimentsForAgsa,
&kFocusOmniboxInIncognitoTabIntents,
&kFullscreenInsetsApiMigration,
&kGridTabSwitcherAndroidAnimations,
&kIncognitoReauthenticationForAndroid,
&kIncognitoScreenshot,
&kInstantStart,
&kLensOnQuickActionSearchWidget,
&kMagicStackAndroid,
&kMultiInstanceApplicationStatusCleanup,
&kNewTabSearchEngineUrlAndroid,
&kNotificationPermissionVariant,
&kNotificationPermissionBottomSheet,
&kOpenDownloadDialog,
&kPageAnnotationsService,
&kPaintPreviewNewColdStartHeuristic,
&kPreconnectOnTabCreation,
&kPriceChangeModule,
&kPwaRestoreUi,
&kPwaUniversalInstallUi,
&kOmahaMinSdkVersionAndroid,
&kShortCircuitUnfocusAnimation,
&kOmniboxNoopEditUrlSuggestionClicks,
&kPartnerCustomizationsUma,
&kQuickDeleteForAndroid,
&kQuickDeleteAndroidAnimation,
&kReadAloud,
&kReadAloudInOverflowMenuInCCT,
&kReadAloudInMultiWindow,
&kReadAloudPlayback,
&kReaderModeInCCT,
&kRecordSuppressionMetrics,
&kReengagementNotification,
&kRelatedSearchesAllLanguage,
&kReportParentalControlSitesChild,
&kSearchEnginesPromoV3,
&kShowNtpAtStartupAndroid,
&kShowScrollableMVTOnNTPAndroid,
&kShowScrollableMVTOnNtpPhoneAndroid,
&kSmallerTabStripTitleLimit,
&kFeedPositionAndroid,
&kSearchResumptionModuleAndroid,
&kShareSheetMigrationAndroid,
&kSuppressToolbarCaptures,
&kTabDragDropAndroid,
&kTabAndLinkDragDropAndroid,
&kTabStripGroupIndicatorsAndroid,
&kTabEngagementReportingAndroid,
&kTabGroupParityAndroid,
&kTabletToolbarReordering,
&kTabResumptionModuleAndroid,
&kTabStateFlatBuffer,
&kTabStripStartupRefactoring,
&kTabToGTSAnimation,
&kTabWindowManagerIndexReassignmentActivityFinishing,
&kTabWindowManagerIndexReassignmentActivityInSameTask,
&kTabWindowManagerIndexReassignmentActivityNotInAppTasks,
&kTabWindowManagerReportIndicesMismatch,
&kTestDefaultDisabled,
&kTestDefaultEnabled,
&kStartSurfaceAndroid,
&kStartSurfaceOnTablet,
&kStartSurfaceReturnTime,
&kAccountReauthenticationRecentTimeWindow,
&kStartSurfaceRefactor,
&kStartSurfaceWithAccessibility,
&kSurfacePolish,
&kUmaBackgroundSessions,
&kUseLibunwindstackNativeUnwinderAndroid,
&kVerticalAutomotiveBackButtonToolbar,
&kVoiceSearchAudioCapturePolicy,
&kWebOtpCrossDeviceSimpleString,
&kWebApkAllowIconUpdate,
&kWebApkBackupAndRestoreBackend,
&kWebApkIconUpdateThreshold,
&features::kDnsOverHttps,
&notifications::features::kUseChimeAndroidSdk,
&paint_preview::kPaintPreviewDemo,
&language::kCctAutoTranslate,
&language::kDetailedLanguageSettings,
&messages::kMessagesForAndroidSaveCard,
&offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421.
&omnibox::kMostVisitedTilesHorizontalRenderGroup,
&omnibox::kOmniboxMatchToolbarAndStatusBarColor,
&omnibox::kOmniboxModernizeVisualUpdate,
&omnibox::kOmniboxOnClobberFocusTypeOnContent,
&omnibox::kOmniboxShortcutsAndroid,
&omnibox::kQueryTilesInZPSOnNTP,
&omnibox::kSearchReadyOmniboxAllowQueryEdit,
&omnibox::kSuggestionAnswersColorReverse,
&omnibox::kUpdatedConnectionSecurityIndicators,
&omnibox::kOmniboxTouchDownTriggerForPrefetch,
&optimization_guide::features::kPushNotifications,
&page_info::kPageInfoAboutThisSiteMoreLangs,
&password_manager::features::kBiometricTouchToFill,
&password_manager::features::kPasskeyManagementUsingAccountSettingsAndroid,
&password_manager::features::kPasswordGenerationBottomSheet,
&password_manager::features::kRecoverFromNeverSaveAndroid,
&password_manager::features::kSharedPasswordNotificationUI,
&password_manager::features::
kUnifiedPasswordManagerLocalPasswordsMigrationWarning,
&permissions::features::kPermissionsPromptSurvey,
&privacy_sandbox::kPrivacySandboxAdsNoticeCCT,
&plus_addresses::kFeature,
&privacy_sandbox::kPrivacySandboxFirstPartySetsUI,
&privacy_sandbox::kPrivacySandboxSettings4,
&privacy_sandbox::kPrivacySandboxProactiveTopicsBlocking,
&privacy_sandbox::kTrackingProtectionNoticeRequestTracking,
&privacy_sandbox::kTrackingProtectionSettingsPageRollbackNotice,
&privacy_sandbox::kTrackingProtectionOnboardingSkipSecurePageCheck,
&query_tiles::features::kQueryTiles,
&safe_browsing::kFriendlierSafeBrowsingSettingsEnhancedProtection,
&safe_browsing::kFriendlierSafeBrowsingSettingsStandardProtection,
&safe_browsing::kHashPrefixRealTimeLookups,
&safe_browsing::kRedInterstitialFacelift,
&safe_browsing::kSafeBrowsingNewGmsApiForBrowseUrlDatabaseCheck,
&safe_browsing::kSafeBrowsingNewGmsApiForSubresourceFilterCheck,
&segmentation_platform::features::kContextualPageActions,
&segmentation_platform::features::kContextualPageActionPriceTracking,
&segmentation_platform::features::kContextualPageActionReaderMode,
&segmentation_platform::features::kContextualPageActionShareModel,
&send_tab_to_self::kSendTabToSelfV2,
&share::kScreenshotsForAndroidV2,
&supervised_user::kKidFriendlyContentFeed,
&supervised_user::kMigrateAccountManagementSettingsToCapabilities,
&switches::kForceStartupSigninPromo,
&switches::kForceDisableExtendedSyncPromos,
&switches::kSearchEngineChoice,
&switches::kSeedAccountsRevamp,
&switches::kTangibleSync,
&syncer::kPassExplicitSyncPassphraseToGmsCore,
&syncer::kReplaceSyncPromosWithSignInPromos,
&syncer::kSyncAndroidLimitNTPPromoImpressions,
&syncer::kSyncDecoupleAddressPaymentSettings,
&syncer::kSyncEnableContactInfoDataTypeInTransportMode,
&syncer::kSyncShowIdentityErrorsForSignedInUsers,
&webapps::features::kWebApkInstallFailureNotification,
&webapps::features::kAmbientBadgeSuppressFirstVisit,
&network::features::kPrivateStateTokens,
};
// static
base::android::FeatureMap* GetFeatureMap() {
static base::NoDestructor<base::android::FeatureMap> kFeatureMap(std::vector(
std::begin(kFeaturesExposedToJava), std::end(kFeaturesExposedToJava)));
return kFeatureMap.get();
}
} // namespace
static jlong JNI_ChromeFeatureMap_GetNativeMap(JNIEnv* env) {
return reinterpret_cast<jlong>(GetFeatureMap());
}
// Alphabetical:
BASE_FEATURE(kAdaptiveButtonInTopToolbarTranslate,
"AdaptiveButtonInTopToolbarTranslate",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAdaptiveButtonInTopToolbarAddToBookmarks,
"AdaptiveButtonInTopToolbarAddToBookmarks",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAdaptiveButtonInTopToolbarCustomizationV2,
"AdaptiveButtonInTopToolbarCustomizationV2",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAddToHomescreenIPH,
"AddToHomescreenIPH",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAdvancedPeripheralsSupportTabStrip,
"AdvancedPeripheralsSupportTabStrip",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAllowNewIncognitoTabIntents,
"AllowNewIncognitoTabIntents",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAvoidSelectedTabFocusOnLayoutDoneShowing,
"AvoidSelectedTabFocusOnLayoutDoneShowing",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kFocusOmniboxInIncognitoTabIntents,
"FocusOmniboxInIncognitoTabIntents",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAndroidAppIntegration,
"AndroidAppIntegration",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAndroidElegantTextHeight,
"AndroidElegantTextHeight",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAndroidHatsRefactor,
"AndroidHatsRefactor",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAndroidHub, "AndroidHub", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAndroidImprovedBookmarks,
"AndroidImprovedBookmarks",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAndroidVisibleUrlTruncationV2,
"AndroidVisibleUrlTruncationV2",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAnimatedImageDragShadow,
"AnimatedImageDragShadow",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAppSpecificHistory,
"AppSpecificHistory",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kArchiveTabService,
"ArchiveTabService",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kAuxiliarySearchDonation,
"AuxiliarySearchDonation",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kBackgroundThreadPool,
"BackgroundThreadPool",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kBlockIntentsWhileLocked,
"BlockIntentsWhileLocked",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCacheActivityTaskID,
"CacheActivityTaskID",
base::FEATURE_ENABLED_BY_DEFAULT);
// Used in downstream code.
BASE_FEATURE(kCastDeviceFilter,
"CastDeviceFilter",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kClearOmniboxFocusAfterNavigation,
"ClearOmniboxFocusAfterNavigation",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCreateNewTabInitializeRenderer,
"CreateNewTabInitializeRenderer",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCCTBrandTransparencyMemoryImprovement,
"CCTBrandTransparencyMemoryImprovement",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCCTClientDataHeader,
"CCTClientDataHeader",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCCTFeatureUsage,
"CCTFeatureUsage",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCCTIncognitoAvailableToThirdParty,
"CCTIncognitoAvailableToThirdParty",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCCTIntentFeatureOverrides,
"CCTIntentFeatureOverrides",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCCTMinimized, "CCTMinimized", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCCTMinimizedEnabledByDefault,
"CCTMinimizedEnabledByDefault",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCCTPageInsightsHub,
"CCTPageInsightsHub",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCCTPageInsightsHubBetterScroll,
"CCTPageInsightsHubBetterScroll",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCCTReportParallelRequestStatus,
"CCTReportParallelRequestStatus",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCCTResizableForThirdParties,
"CCTResizableForThirdParties",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCCTResizableSideSheet,
"CCTResizableSideSheet",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCCTResizableSideSheetForThirdParties,
"CCTResizableSideSheetForThirdParties",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCCTTabModalDialog,
"CCTTabModalDialog",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kDontAutoHideBrowserControls,
"DontAutoHideBrowserControls",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kCacheDeprecatedSystemLocationSetting,
"CacheDeprecatedSystemLocationSetting",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kChromeSurveyNextAndroid,
"ChromeSurveyNextAndroid",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kCommandLineOnNonRooted,
"CommandLineOnNonRooted",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kContextMenuPopupForAllScreenSizes,
"ContextMenuPopupForAllScreenSizes",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kContextMenuTranslateWithGoogleLens,
"ContextMenuTranslateWithGoogleLens",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kLensOnQuickActionSearchWidget,
"LensOnQuickActionSearchWidget",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kContextualSearchDisableOnlineDetection,
"ContextualSearchDisableOnlineDetection",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kContextualSearchSuppressShortView,
"ContextualSearchSuppressShortView",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kContextualSearchThinWebViewImplementation,
"ContextualSearchThinWebViewImplementation",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kDeferKeepScreenOnDuringGesture,
"DeferKeepScreenOnDuringGesture",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kDeferNotifyInMotion,
"DeferNotifyInMotion",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kDeferTabSwitcherLayoutCreation,
"DeferTabSwitcherLayoutCreation",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kDelayTempStripRemoval,
"DelayTempStripRemoval",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kDownloadAutoResumptionThrottling,
"DownloadAutoResumptionThrottling",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kDragDropIntoOmnibox,
"DragDropIntoOmnibox",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kDrawEdgeToEdge,
"DrawEdgeToEdge",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kDrawNativeEdgeToEdge,
"DrawNativeEdgeToEdge",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kDrawWebEdgeToEdge,
"DrawWebEdgeToEdge",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kDynamicTopChrome,
"DynamicTopChrome",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kEarlyInitializeStartupMetrics,
"EarlyInitializeStartupMetrics",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kExperimentsForAgsa,
"ExperimentsForAgsa",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kFullscreenInsetsApiMigration,
"FullscreenInsetsApiMigration",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kGridTabSwitcherAndroidAnimations,
"GridTabSwitcherAndroidAnimations",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kIncognitoReauthenticationForAndroid,
"IncognitoReauthenticationForAndroid",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kIncognitoScreenshot,
"IncognitoScreenshot",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kInstantStart, "InstantStart", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kMagicStackAndroid,
"MagicStackAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kMultiInstanceApplicationStatusCleanup,
"MultiInstanceApplicationStatusCleanup",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kNewTabSearchEngineUrlAndroid,
"NewTabSearchEngineUrlAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kNotificationPermissionVariant,
"NotificationPermissionVariant",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kNotificationPermissionBottomSheet,
"NotificationPermissionBottomSheet",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kPageAnnotationsService,
"PageAnnotationsService",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kPaintPreviewNewColdStartHeuristic,
"PaintPreviewNewColdStartHeuristic",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kPreconnectOnTabCreation,
"PreconnectOnTabCreation",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kPriceChangeModule,
"PriceChangeModule",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kPwaRestoreUi, "PwaRestoreUi", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kPwaUniversalInstallUi,
"PwaUniversalInstallUi",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kBackGestureActivityTabProvider,
"BackGestureActivityTabProvider",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kBackGestureMoveToBackDuringStartup,
"BackGestureMoveToBackDuringStartup",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kBackGestureRefactorAndroid,
"BackGestureRefactorAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kOmahaMinSdkVersionAndroid,
"OmahaMinSdkVersionAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kShortCircuitUnfocusAnimation,
"ShortCircuitUnfocusAnimation",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kOmniboxNoopEditUrlSuggestionClicks,
"OmniboxNoopEditUrlSuggestionClicks",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kOpenDownloadDialog,
"OpenDownloadDialog",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kOpenPdfInline,
"OpenPdfInline",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kPartnerCustomizationsUma,
"PartnerCustomizationsUma",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kQuickDeleteForAndroid,
"QuickDeleteForAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kQuickDeleteAndroidAnimation,
"QuickDeleteAndroidAnimation",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kReadAloud, "ReadAloud", base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kReadAloudInOverflowMenuInCCT,
"ReadAloudInOverflowMenuInCCT",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kReadAloudInMultiWindow,
"ReadAloudInMultiWindow",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kReadAloudPlayback,
"ReadAloudPlayback",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kReaderModeInCCT,
"ReaderModeInCCT",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kRecordSuppressionMetrics,
"RecordSuppressionMetrics",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kRedirectExplicitCTAIntentsToExistingActivity,
"RedirectExplicitCTAIntentsToExistingActivity",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kReengagementNotification,
"ReengagementNotification",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kRelatedSearchesAllLanguage,
"RelatedSearchesAllLanguage",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kReportParentalControlSitesChild,
"ReportParentalControlSitesChild",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kShowNtpAtStartupAndroid,
"ShowNtpAtStartupAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kShowScrollableMVTOnNTPAndroid,
"ShowScrollableMVTOnNTPAndroid",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kShowScrollableMVTOnNtpPhoneAndroid,
"ShowScrollableMVTOnNtpPhoneAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kShareSheetMigrationAndroid,
"ShareSheetMigrationAndroid",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kSmallerTabStripTitleLimit,
"SmallerTabStripTitleLimit",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kSuppressToolbarCaptures,
"SuppressToolbarCaptures",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kTabDragDropAndroid,
"TabDragDropAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kTabAndLinkDragDropAndroid,
"TabAndLinkDragDropAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kTabEngagementReportingAndroid,
"TabEngagementReportingAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kTabGroupParityAndroid,
"TabGroupParityAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kTabStripGroupIndicatorsAndroid,
"TabStripGroupIndicatorsAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kTabStateFlatBuffer,
"TabStateFlatBuffer",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kTabletToolbarReordering,
"TabletToolbarReordering",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kTabStripStartupRefactoring,
"TabStripStartupRefactoring",
base::FEATURE_DISABLED_BY_DEFAULT);
// Enabled, but often disabled in tests to reduce animation flakes and test
// low-end device behavior where this animation is disabled.
BASE_FEATURE(kTabToGTSAnimation,
"TabToGTSAnimation",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kTabWindowManagerIndexReassignmentActivityFinishing,
"TabWindowManagerIndexReassignmentActivityFinishing",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kTabWindowManagerIndexReassignmentActivityInSameTask,
"TabWindowManagerIndexReassignmentActivityInSameTask",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kTabWindowManagerIndexReassignmentActivityNotInAppTasks,
"TabWindowManagerIndexReassignmentActivityNotInAppTasks",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kTabWindowManagerReportIndicesMismatch,
"TabWindowManagerReportIndicesMismatch",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kTestDefaultDisabled,
"TestDefaultDisabled",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kTestDefaultEnabled,
"TestDefaultEnabled",
base::FEATURE_ENABLED_BY_DEFAULT);
// This feature updates the triggering logic for the default search engine
// choice promo. See crbug.com/1471643 for more details.
BASE_FEATURE(kSearchEnginesPromoV3,
"SearchEnginesPromoV3",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kStartSurfaceAndroid,
"StartSurfaceAndroid",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kFeedPositionAndroid,
"FeedPositionAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kSearchResumptionModuleAndroid,
"SearchResumptionModuleAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kStartSurfaceOnTablet,
"StartSurfaceOnTablet",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kStartSurfaceReturnTime,
"StartSurfaceReturnTime",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kAccountReauthenticationRecentTimeWindow,
"AccountReauthenticationRecentTimeWindow",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kStartSurfaceRefactor,
"StartSurfaceRefactor",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kStartSurfaceWithAccessibility,
"StartSurfaceWithAccessibility",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kSurfacePolish, "SurfacePolish", base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kTabResumptionModuleAndroid,
"TabResumptionModuleAndroid",
base::FEATURE_DISABLED_BY_DEFAULT);
// If enabled, keep logging and reporting UMA while chrome is backgrounded.
BASE_FEATURE(kUmaBackgroundSessions,
"UMABackgroundSessions",
base::FEATURE_ENABLED_BY_DEFAULT);
// Use the LibunwindstackNativeUnwinderAndroid for only browser main thread, and
// only on Android.
BASE_FEATURE(kUseLibunwindstackNativeUnwinderAndroid,
"UseLibunwindstackNativeUnwinderAndroid",
base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kUserMediaScreenCapturing,
"UserMediaScreenCapturing",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kVerticalAutomotiveBackButtonToolbar,
"VerticalAutomotiveBackButtonToolbar",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kVoiceSearchAudioCapturePolicy,
"VoiceSearchAudioCapturePolicy",
base::FEATURE_DISABLED_BY_DEFAULT);
// Shows only the remote device name on the Android notification instead of
// a descriptive text.
BASE_FEATURE(kWebOtpCrossDeviceSimpleString,
"WebOtpCrossDeviceSimpleString",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kWebApkAllowIconUpdate,
"WebApkAllowIconUpdate",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kWebApkIconUpdateThreshold,
"WebApkIconUpdateThreshold",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kWebApkBackupAndRestoreBackend,
"WebApkBackupAndRestoreBackend",
base::FEATURE_DISABLED_BY_DEFAULT);
} // namespace android
} // namespace chrome