chromium/components/saved_tab_groups/pref_names.h

// 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.

#ifndef COMPONENTS_SAVED_TAB_GROUPS_PREF_NAMES_H_
#define COMPONENTS_SAVED_TAB_GROUPS_PREF_NAMES_H_

#include "build/build_config.h"

namespace user_prefs {
class PrefRegistrySyncable;
}

namespace tab_groups::prefs {

// Whether tab groups are syncable across devices.
inline constexpr char kSyncableTabGroups[] =;

#if BUILDFLAG(IS_ANDROID)
inline constexpr char kAutoOpenSyncedTabGroups[] =
    "auto_open_synced_tab_groups";
inline constexpr char kStopShowingTabGroupConfirmationOnClose[] =
    "stop_showing_tab_group_confirmation_on_close";
inline constexpr char kStopShowingTabGroupConfirmationOnUngroup[] =
    "stop_showing_tab_group_confirmation_on_ungroup";
inline constexpr char kStopShowingTabGroupConfirmationOnTabRemove[] =
    "stop_showing_tab_group_confirmation_on_tab_remove";
inline constexpr char kStopShowingTabGroupConfirmationOnTabClose[] =
    "stop_showing_tab_group_confirmation_on_tab_close";
#endif  // BUILDFLAG(IS_ANDROID)

// Boolean which specifies whether the tab group is automatically pinned when
// it's created.
inline constexpr char kAutoPinNewTabGroups[] =;

// Whether the DataTypeStore has been migrated from storing
// SavedTabGroupSpecifics to SavedTabGroupData.
inline constexpr char kSavedTabGroupSpecificsToDataMigration[] =;

// The pref that stores the deleted group IDs that needs to be closed in the
// local tab model. Stores a dictionary of local ID -> sync ID. Local ID is the
// main thing that the tab model needs. On startup, UI queries the deleted IDs
// and closes them up. Sync ID isn't really needed since it's already removed
// from sync and the model, but kept for use in case we find a future use for
// it. When the group is closed, the ID will be deleted from this pref.
inline constexpr char kDeletedTabGroupIds[] =;

// Registers the Clear Browsing Data UI prefs.
void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);

}  // namespace tab_groups::prefs

#endif  // COMPONENTS_SAVED_TAB_GROUPS_PREF_NAMES_H_