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

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

Issue 2489433002: [Sync] Move thread checking into the ModelSafeWorker interface. (Closed)
Patch Set: Improve/add 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/engine/passive_model_worker.cc
diff --git a/components/sync/engine/passive_model_worker.cc b/components/sync/engine/passive_model_worker.cc
index 623b31961526b5d5ec0bc078dc1d64c324bdbfd2..6a4f76676e487ccf728959a044c67f298753e5be 100644
--- a/components/sync/engine/passive_model_worker.cc
+++ b/components/sync/engine/passive_model_worker.cc
@@ -22,4 +22,10 @@ ModelSafeGroup PassiveModelWorker::GetModelSafeGroup() {
return GROUP_PASSIVE;
}
+bool PassiveModelWorker::IsOnModelThread() {
+ // Passive types are checked by SyncBackendRegistrar.
+ NOTREACHED();
+ return false;
+}
+
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698