Introducing a synced pref for tabgroup sync
This pref allows a device to check whether tabgroup sync is enabled
on the profile. And thus allows it to sync tabgroups from other devices.
This is currently only used by Android, but will be used later by other platforms
Bug: 336134530
Change-Id: Idbb31449b5340455430192a391e89af5e62a2338
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5497984
Reviewed-by: Tommy Nyquist <[email protected]>
Reviewed-by: Rushan Suleymanov <[email protected]>
Commit-Queue: Min Qin <[email protected]>
Reviewed-by: Dominic Battre <[email protected]>
Reviewed-by: Victor Vianna <[email protected]>
Reviewed-by: Shakti Sahu <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1296077}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index f27fa495..e0fd02f3b 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -159,6 +159,7 @@
#include "components/proxy_config/pref_proxy_config_tracker_impl.h"
#include "components/safe_browsing/content/common/file_type_policies_prefs.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
+#include "components/saved_tab_groups/pref_names.h"
#include "components/search_engines/template_url_prepopulate_data.h"
#include "components/security_interstitials/content/insecure_form_blocking_page.h"
#include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
@@ -259,7 +260,6 @@
#include "chrome/browser/readaloud/android/prefs.h"
#include "chrome/browser/safety_hub/android/prefs.h"
#include "chrome/browser/ssl/known_interception_disclosure_infobar_delegate.h"
-#include "chrome/browser/tab_group_sync/prefs.h"
#include "components/cdm/browser/media_drm_storage_impl.h" // nogncheck crbug.com/1125897
#include "components/ntp_snippets/register_prefs.h"
#include "components/ntp_tiles/popular_sites_impl.h"
@@ -1915,6 +1915,7 @@
syncer::SyncPrefs::RegisterProfilePrefs(registry);
syncer::SyncTransportDataPrefs::RegisterProfilePrefs(registry);
TemplateURLPrepopulateData::RegisterProfilePrefs(registry);
+ tab_groups::prefs::RegisterProfilePrefs(registry);
tpcd::experiment::RegisterProfilePrefs(registry);
translate::TranslatePrefs::RegisterProfilePrefs(registry);
omnibox::RegisterProfilePrefs(registry);
@@ -1982,7 +1983,6 @@
readaloud::RegisterProfilePrefs(registry);
RecentTabsPagePrefs::RegisterProfilePrefs(registry);
safety_hub_prefs::RegisterSafetyHubAndroidProfilePrefs(registry);
- tab_groups::RegisterProfilePrefs(registry);
usage_stats::UsageStatsBridge::RegisterProfilePrefs(registry);
variations::VariationsService::RegisterProfilePrefs(registry);
webapps::InstallPromptPrefs::RegisterProfilePrefs(registry);