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

Unified Diff: net/disk_cache/blockfile/backend_impl.cc

Issue 2030663002: Migrate WaitableEvent to enum-based constructor in net/ (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 | « net/base/keygen_handler_unittest.cc ('k') | net/disk_cache/blockfile/in_flight_io.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/backend_impl.cc
diff --git a/net/disk_cache/blockfile/backend_impl.cc b/net/disk_cache/blockfile/backend_impl.cc
index fe05bac3d61be8c6a0c4e1f289b3ff341e0071c0..e52900844f6dd46a03e485035f3689f334576357 100644
--- a/net/disk_cache/blockfile/backend_impl.cc
+++ b/net/disk_cache/blockfile/backend_impl.cc
@@ -136,9 +136,9 @@ BackendImpl::BackendImpl(
first_timer_(true),
user_load_(false),
net_log_(net_log),
- done_(true, false),
- ptr_factory_(this) {
-}
+ done_(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED),
+ ptr_factory_(this) {}
BackendImpl::BackendImpl(
const base::FilePath& path,
@@ -163,7 +163,8 @@ BackendImpl::BackendImpl(
first_timer_(true),
user_load_(false),
net_log_(net_log),
- done_(true, false),
+ done_(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED),
ptr_factory_(this) {}
BackendImpl::~BackendImpl() {
« no previous file with comments | « net/base/keygen_handler_unittest.cc ('k') | net/disk_cache/blockfile/in_flight_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698