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

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

Issue 2024723002: DO NOT COMMIT (will be split in sub-components) - clang-tidy WaitableEvent refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: fix presubmits 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: 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 | « services/shell/standalone/tracer.cc ('k') | sync/internal_api/attachments/attachment_service_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698