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

Unified Diff: components/storage_monitor/test_storage_monitor.cc

Issue 2028193002: Migrate WaitableEvent to enum-based constructor in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: rm comment explaining true/false Created 4 years, 7 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
Index: components/storage_monitor/test_storage_monitor.cc
diff --git a/components/storage_monitor/test_storage_monitor.cc b/components/storage_monitor/test_storage_monitor.cc
index 45ed4389b39e21c8a3a10957f43f398c6ae326df..3277f6fa585b8e459c573fbda618d4e3c376a2bc 100644
--- a/components/storage_monitor/test_storage_monitor.cc
+++ b/components/storage_monitor/test_storage_monitor.cc
@@ -62,7 +62,8 @@ void TestStorageMonitor::SyncInitialize() {
if (monitor->IsInitialized())
return;
- base::WaitableEvent event(true, false);
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
monitor->EnsureInitialized(base::Bind(&base::WaitableEvent::Signal,
base::Unretained(&event)));
while (!event.IsSignaled()) {

Powered by Google App Engine
This is Rietveld 408576698