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

Unified Diff: components/sync/base/scoped_event_signal.h

Issue 2496723003: [Sync] Signal UIModelWorker to abort on sync shutdown. (Closed)
Patch Set: Address comments + add test. 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/base/scoped_event_signal.h
diff --git a/components/sync/base/scoped_event_signal.h b/components/sync/base/scoped_event_signal.h
index d8df1044afdb84bcfe9d7471d697dc5eb961ee60..b2b30c693e2c82cf2d5c43292138f3d81fbd1989 100644
--- a/components/sync/base/scoped_event_signal.h
+++ b/components/sync/base/scoped_event_signal.h
@@ -29,6 +29,9 @@ class ScopedEventSignal {
~ScopedEventSignal();
+ // Whether the wrapped event has been signaled already.
+ bool IsSignaled() const;
+
private:
base::WaitableEvent* event_;
« no previous file with comments | « no previous file | components/sync/base/scoped_event_signal.cc » ('j') | components/sync/driver/glue/ui_model_worker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698