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

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

Issue 2496723003: [Sync] Signal UIModelWorker to abort on sync shutdown. (Closed)
Patch Set: Fix iOS hopefully. 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
« no previous file with comments | « components/sync/driver/glue/ui_model_worker_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 caacfcaf47705de59c101d6023f90b6171e1c4b5..29f06cda7f651ec84a0761aa007a226ec4344eef 100644
--- a/components/sync/engine/model_safe_worker.h
+++ b/components/sync/engine/model_safe_worker.h
@@ -67,6 +67,9 @@ class ModelSafeWorker : public base::RefCountedThreadSafe<ModelSafeWorker> {
// Returns true if called on the thread this worker works on.
virtual bool IsOnModelThread() = 0;
+ // Return true if the worker was stopped. Thread safe.
+ bool IsStopped();
+
protected:
ModelSafeWorker();
virtual ~ModelSafeWorker();
@@ -76,9 +79,6 @@ class ModelSafeWorker : public base::RefCountedThreadSafe<ModelSafeWorker> {
// from a model-safe thread.
virtual SyncerError DoWorkAndWaitUntilDoneImpl(const WorkCallback& work) = 0;
- // Return true if the worker was stopped. Thread safe.
- bool IsStopped();
-
private:
friend class base::RefCountedThreadSafe<ModelSafeWorker>;
« no previous file with comments | « components/sync/driver/glue/ui_model_worker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698