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

Unified Diff: components/sync/engine_impl/cycle/sync_cycle_context.cc

Issue 2644373003: Revert of [Sync] Make directory types registration explicit in ModelTypeRegistry (Closed)
Patch Set: Created 3 years, 11 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: components/sync/engine_impl/cycle/sync_cycle_context.cc
diff --git a/components/sync/engine_impl/cycle/sync_cycle_context.cc b/components/sync/engine_impl/cycle/sync_cycle_context.cc
index c50ea257317ff7940b9530f198f0277e8ae0809e..744fa4bc2966b2a18ca268f586877589a268cda0 100644
--- a/components/sync/engine_impl/cycle/sync_cycle_context.cc
+++ b/components/sync/engine_impl/cycle/sync_cycle_context.cc
@@ -43,4 +43,9 @@
return model_type_registry_->GetEnabledTypes();
}
+void SyncCycleContext::SetRoutingInfo(
+ const ModelSafeRoutingInfo& routing_info) {
+ model_type_registry_->SetEnabledDirectoryTypes(routing_info);
+}
+
} // namespace syncer
« no previous file with comments | « components/sync/engine_impl/cycle/sync_cycle_context.h ('k') | components/sync/engine_impl/model_type_connector_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698