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

Unified Diff: components/sync/engine/sync_backend_registrar.cc

Issue 2942773002: Task Scheduler API migration: change BrowserThreadModelWorker to SequencedModelWorker (Closed)
Patch Set: Updated more comments to reflect thread -> sequence migration. Created 3 years, 6 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/sync_backend_registrar.cc
diff --git a/components/sync/engine/sync_backend_registrar.cc b/components/sync/engine/sync_backend_registrar.cc
index ad300d46fdfd4f6f20e250b7d707f1cac694f49a..3377992c9b2981a994422b09afc3432494758c84 100644
--- a/components/sync/engine/sync_backend_registrar.cc
+++ b/components/sync/engine/sync_backend_registrar.cc
@@ -264,7 +264,7 @@ bool SyncBackendRegistrar::IsCurrentThreadSafeForModel(
auto it = workers_.find(group);
DCHECK(it != workers_.end());
- return it->second->IsOnModelThread();
+ return it->second->IsOnModelSequence();
}
SyncBackendRegistrar::~SyncBackendRegistrar() {
« no previous file with comments | « components/sync/engine/sequenced_model_worker_unittest.cc ('k') | components/sync/engine/sync_backend_registrar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698