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

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

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.h
diff --git a/components/sync/engine/passive_model_worker.h b/components/sync/engine/passive_model_worker.h
index 999a587bbc9c5c478417133f2a4a319da1d123f5..ac744dea9dfd0334fc3d07592ba9e741dabd1d71 100644
--- a/components/sync/engine/passive_model_worker.h
+++ b/components/sync/engine/passive_model_worker.h
@@ -18,8 +18,9 @@ class PassiveModelWorker : public ModelSafeWorker {
public:
PassiveModelWorker();
- // ModelSafeWorker implementation. Called on the sync thread.
+ // ModelSafeWorker implementation.
ModelSafeGroup GetModelSafeGroup() override;
+ bool IsOnModelThread() override;
protected:
SyncerError DoWorkAndWaitUntilDoneImpl(const WorkCallback& work) override;

Powered by Google App Engine
This is Rietveld 408576698