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

Unified Diff: components/sync/driver/glue/sync_backend_registrar.h

Issue 2481313002: [Sync] Move sync thread ownership to ProfileSyncService. (Closed)
Patch Set: Address comments. 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/sync/driver/glue/sync_backend_registrar.h
diff --git a/components/sync/driver/glue/sync_backend_registrar.h b/components/sync/driver/glue/sync_backend_registrar.h
index b878537e762812efe9830853344a4bdb423dda2f..6354658754867a0ae05d0126d990d901736fa9fd 100644
--- a/components/sync/driver/glue/sync_backend_registrar.h
+++ b/components/sync/driver/glue/sync_backend_registrar.h
@@ -35,7 +35,6 @@ class SyncBackendRegistrar : public SyncManager::ChangeDelegate {
SyncBackendRegistrar(
const std::string& name,
SyncClient* sync_client,
- std::unique_ptr<base::Thread> sync_thread,
const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
const scoped_refptr<base::SingleThreadTaskRunner>& file_thread);
@@ -117,11 +116,6 @@ class SyncBackendRegistrar : public SyncManager::ChangeDelegate {
void GetWorkers(std::vector<scoped_refptr<ModelSafeWorker>>* out);
void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out);
- // Release ownership of |sync_thread_|. Called when sync is disabled.
- std::unique_ptr<base::Thread> ReleaseSyncThread();
-
- base::Thread* sync_thread();
-
private:
typedef std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker>> WorkerMap;
typedef std::map<ModelType, ChangeProcessor*> ProcessorMap;
@@ -177,8 +171,6 @@ class SyncBackendRegistrar : public SyncManager::ChangeDelegate {
const scoped_refptr<base::SingleThreadTaskRunner> db_thread_;
const scoped_refptr<base::SingleThreadTaskRunner> file_thread_;
- std::unique_ptr<base::Thread> sync_thread_;
-
// Set of types with non-blocking implementation (as opposed to directory
// based).
ModelTypeSet non_blocking_types_;
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_mock.cc ('k') | components/sync/driver/glue/sync_backend_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698