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

Unified Diff: components/sync/driver/glue/sync_backend_host_impl.cc

Issue 2501743005: [Sync] Remove SyncClient dep from SyncBackendRegistrar. (Closed)
Patch Set: Self-review. 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
« no previous file with comments | « no previous file | components/sync/driver/glue/sync_backend_registrar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/glue/sync_backend_host_impl.cc
diff --git a/components/sync/driver/glue/sync_backend_host_impl.cc b/components/sync/driver/glue/sync_backend_host_impl.cc
index 06d6c1ea71f9153aeffe00abb448733b702eac0d..cb23e3ce2f0cc59a0c26ff5a030452a620cd2bae 100644
--- a/components/sync/driver/glue/sync_backend_host_impl.cc
+++ b/components/sync/driver/glue/sync_backend_host_impl.cc
@@ -88,7 +88,9 @@ void SyncBackendHostImpl::Initialize(
CHECK(sync_thread);
sync_thread_ = sync_thread;
- registrar_ = base::MakeUnique<SyncBackendRegistrar>(name_, sync_client_);
+ registrar_ = base::MakeUnique<SyncBackendRegistrar>(
+ name_, base::Bind(&SyncClient::CreateModelWorkerForGroup,
+ base::Unretained(sync_client_)));
DCHECK(frontend);
frontend_ = frontend;
« no previous file with comments | « no previous file | components/sync/driver/glue/sync_backend_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698