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

Unified Diff: storage/common/database/database_connections.cc

Issue 2031703002: Migrate WaitableEvent to enum-based constructor in storage/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/common/database/database_connections.cc
diff --git a/storage/common/database/database_connections.cc b/storage/common/database/database_connections.cc
index f6931d3942b71d599b2780bf07f513f2afd85b0c..bbc7afcbd74dc49be034758f4cfb096de5adfe25 100644
--- a/storage/common/database/database_connections.cc
+++ b/storage/common/database/database_connections.cc
@@ -153,7 +153,9 @@ void DatabaseConnectionsWrapper::RemoveOpenConnection(
bool DatabaseConnectionsWrapper::WaitForAllDatabasesToClose(
base::TimeDelta timeout) {
- base::WaitableEvent waitable_event(true, false);
+ base::WaitableEvent waitable_event(
+ base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
{
base::AutoLock auto_lock(open_connections_lock_);
if (open_connections_.IsEmpty())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698