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

Unified Diff: base/synchronization/cancellation_flag.h

Issue 949293002: Implement a poor man's PostAfterStartupTask() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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 | « no previous file | base/synchronization/cancellation_flag.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/synchronization/cancellation_flag.h
diff --git a/base/synchronization/cancellation_flag.h b/base/synchronization/cancellation_flag.h
index 51a4def1eb31984f0eafeb97dbd0d8678541ee59..555f2da0794cc512dc548fd4b6f4b5c7835a382e 100644
--- a/base/synchronization/cancellation_flag.h
+++ b/base/synchronization/cancellation_flag.h
@@ -29,6 +29,9 @@ class BASE_EXPORT CancellationFlag {
void Set();
bool IsSet() const; // Returns true iff the flag was set.
+ // Intended to help with testing.
+ void UnsafeReset();
jam 2015/04/08 20:34:27 nit: testing methods need to end with ForTesting()
michaeln 2015/04/08 21:57:25 Done.
+
private:
base::subtle::Atomic32 flag_;
#if !defined(NDEBUG)
« no previous file with comments | « no previous file | base/synchronization/cancellation_flag.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698