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

Unified Diff: components/browser_sync/profile_sync_components_factory_impl.cc

Issue 2451843002: Add Store+Sync to reading list. (Closed)
Patch Set: rebase (distilled_url -> distilled_path) Created 4 years, 1 month 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: components/browser_sync/profile_sync_components_factory_impl.cc
diff --git a/components/browser_sync/profile_sync_components_factory_impl.cc b/components/browser_sync/profile_sync_components_factory_impl.cc
index f71096c80b08db9f02f09e32904a0a1aea4f7899..ac76bc74757e8db5a648f7be788a68ee210fe6f8 100644
--- a/components/browser_sync/profile_sync_components_factory_impl.cc
+++ b/components/browser_sync/profile_sync_components_factory_impl.cc
@@ -274,6 +274,14 @@ void ProfileSyncComponentsFactoryImpl::RegisterCommonDataTypes(
base::MakeUnique<UIDataTypeController>(syncer::ARTICLES, error_callback,
sync_client_));
}
+ // Reading list sync is enabled by default. Register unless explicitly
+ // disabled.
+ if (!disabled_types.Has(syncer::READING_LIST)) {
+ sync_service->RegisterDataTypeController(
+ base::MakeUnique<ModelTypeController>(
+ syncer::READING_LIST, error_callback, sync_client_,
+ base::ThreadTaskRunnerHandle::Get()));
+ }
}
DataTypeManager* ProfileSyncComponentsFactoryImpl::CreateDataTypeManager(

Powered by Google App Engine
This is Rietveld 408576698