Index: base/synchronization/cancellation_flag.cc |
diff --git a/base/synchronization/cancellation_flag.cc b/base/synchronization/cancellation_flag.cc |
index ad3b551169d481e7715f5238ab9a4d81dbe2928a..ca5c0a82837070742e63914f79e57d924721efd4 100644 |
--- a/base/synchronization/cancellation_flag.cc |
+++ b/base/synchronization/cancellation_flag.cc |
@@ -19,4 +19,8 @@ bool CancellationFlag::IsSet() const { |
return base::subtle::Acquire_Load(&flag_) != 0; |
} |
+void CancellationFlag::UnsafeResetForTesting() { |
+ base::subtle::Release_Store(&flag_, 0); |
+} |
+ |
} // namespace base |