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()) { |