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

Unified Diff: components/sync/engine/model_safe_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/model_safe_worker.h
diff --git a/components/sync/engine/model_safe_worker.h b/components/sync/engine/model_safe_worker.h
index 869bbae47db3afecc6113bb56688495164663f60..caacfcaf47705de59c101d6023f90b6171e1c4b5 100644
--- a/components/sync/engine/model_safe_worker.h
+++ b/components/sync/engine/model_safe_worker.h
@@ -64,6 +64,9 @@ class ModelSafeWorker : public base::RefCountedThreadSafe<ModelSafeWorker> {
virtual ModelSafeGroup GetModelSafeGroup() = 0;
+ // Returns true if called on the thread this worker works on.
+ virtual bool IsOnModelThread() = 0;
+
protected:
ModelSafeWorker();
virtual ~ModelSafeWorker();

Powered by Google App Engine
This is Rietveld 408576698