Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2172)

Unified Diff: chrome/browser/sync/profile_sync_components_factory_impl.cc

Issue 1222203008: [Sync] Add priority preferences datatype for mobile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/profile_sync_components_factory_impl.cc
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl.cc b/chrome/browser/sync/profile_sync_components_factory_impl.cc
index afd8ae2a73800f83d926b0af4008c3bc80f1123e..52627d5cf6df4a1da29743ae97620b3a2eb437df 100644
--- a/chrome/browser/sync/profile_sync_components_factory_impl.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc
@@ -314,6 +314,15 @@ void ProfileSyncComponentsFactoryImpl::RegisterCommonDataTypes(
new PasswordDataTypeController(this, profile_));
}
+ if (!disabled_types.Has(syncer::PRIORITY_PREFERENCES)) {
+ pss->RegisterDataTypeController(
+ new UIDataTypeController(
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
+ base::Bind(&ChromeReportUnrecoverableError),
+ syncer::PRIORITY_PREFERENCES,
+ this));
+ }
+
// Article sync is disabled by default. Register only if explicitly enabled.
if (IsEnableSyncArticlesSet()) {
pss->RegisterDataTypeController(
@@ -369,15 +378,6 @@ void ProfileSyncComponentsFactoryImpl::RegisterDesktopDataTypes(
this));
}
- if (!disabled_types.Has(syncer::PRIORITY_PREFERENCES)) {
- pss->RegisterDataTypeController(
- new UIDataTypeController(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
- base::Bind(&ChromeReportUnrecoverableError),
- syncer::PRIORITY_PREFERENCES,
- this));
- }
-
#if defined(ENABLE_THEMES)
// Theme sync is enabled by default. Register unless explicitly disabled.
if (!disabled_types.Has(syncer::THEMES)) {

Powered by Google App Engine
This is Rietveld 408576698