// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/saved_tab_groups/features.h" #include "base/feature_list.h" #include "base/metrics/field_trial_params.h" #include "build/build_config.h" namespace tab_groups { // Core feature flag for tab group sync on Android. // Controls registration with the sync service and tab model hookup UI layer. // TabGroupSyncService is eanbled when either this flag or kTabGroupPaneAndroid // is enabled. BASE_FEATURE(…); // Feature flag used to enable tab group revisit surface. BASE_FEATURE(…); // Feature flag used to determine whether the network layer is disabled for // tab group sync. BASE_FEATURE(…); BASE_FEATURE(…); // Builds off of the original TabGroupsSave feature by making some UI tweaks and // adjustments. This flag controls the v2 update of sync, restore, dialog // triggering, extension support etc. b/325123353 BASE_FEATURE(…); // This flag controls the UI update made to saved tab groups as well as model // and sync support for pinning saved tab groups. BASE_FEATURE(…); // Feature flag specific to UNO. Controls how we handle tab groups on sign-out // and sync toggle. Can be defined independently for each platform. BASE_FEATURE(…); // Feature flag specific to Desktop platforms. When enabled, desktop platforms // will use the TabGroupSyncService. When disabled, desktop platforms will // continue to use SavedTabGroupKeyedService. BASE_FEATURE(…); // Feature flag to remove any merge logic from saved tab group model. BASE_FEATURE(…); // Feature flag to disable auto-open of saved tab groups. Note that the // settings page for auto open will still be visible, and when user is allowed // to change. However the written pref from the user selection will not be // honored. This feature flag should be used only in case of an emergency. BASE_FEATURE(…); // Feature flag to restrict download on synced tabs if the navigation is // triggered without attention.. BASE_FEATURE(…); // Feature flag to defer media load on background tab. BASE_FEATURE(…); // Kill switch to stop notifying observers when user interaction time is // updated and storing it to the storage. BASE_FEATURE(…); bool IsTabGroupsSaveV2Enabled() { … } bool IsTabGroupsSaveUIUpdateEnabled() { … } bool IsTabGroupSyncServiceDesktopMigrationEnabled() { … } bool IsTabGroupSyncCoordinatorEnabled() { … } bool AlwaysAcceptServerDataInModel() { … } bool RestrictDownloadOnSyncedTabs() { … } bool DeferMediaLoadInBackgroundTab() { … } } // namespace tab_groups