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

Unified Diff: sync/internal_api/http_bridge.cc

Issue 2031713002: Migrate WaitableEvent to enum-based constructor in sync/ (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
Index: sync/internal_api/http_bridge.cc
diff --git a/sync/internal_api/http_bridge.cc b/sync/internal_api/http_bridge.cc
index c34edacd747e9cfd46d7de34f821296698caac33..b50b266d0cc4748be9025f389ae78f95bc04b003 100644
--- a/sync/internal_api/http_bridge.cc
+++ b/sync/internal_api/http_bridge.cc
@@ -138,7 +138,8 @@ HttpBridge::HttpBridge(
const BindToTrackerCallback& bind_to_tracker_callback)
: created_on_loop_(base::MessageLoop::current()),
user_agent_(user_agent),
- http_post_completed_(false, false),
+ http_post_completed_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED),
request_context_getter_(context_getter),
network_task_runner_(request_context_getter_->GetNetworkTaskRunner()),
network_time_update_callback_(network_time_update_callback),
« no previous file with comments | « sync/internal_api/attachments/attachment_service_proxy_unittest.cc ('k') | sync/internal_api/http_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698