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

Unified Diff: chrome/test/chromedriver/net/sync_websocket_impl.cc

Issue 2021393004: Migrate WaitableEvent to enum-based constructor in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Split out custom changes to thread_watcher_unittest.cc 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: chrome/test/chromedriver/net/sync_websocket_impl.cc
diff --git a/chrome/test/chromedriver/net/sync_websocket_impl.cc b/chrome/test/chromedriver/net/sync_websocket_impl.cc
index 3650ef0df0b574b2a74bc3423ba93e91df969981..71f364ebc0eafce4b3a63b8902c7fa3b440c2751 100644
--- a/chrome/test/chromedriver/net/sync_websocket_impl.cc
+++ b/chrome/test/chromedriver/net/sync_websocket_impl.cc
@@ -53,7 +53,8 @@ bool SyncWebSocketImpl::Core::IsConnected() {
bool SyncWebSocketImpl::Core::Connect(const GURL& url) {
bool success = false;
- base::WaitableEvent event(false, false);
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
context_getter_->GetNetworkTaskRunner()->PostTask(
FROM_HERE,
base::Bind(&SyncWebSocketImpl::Core::ConnectOnIO,
@@ -64,7 +65,8 @@ bool SyncWebSocketImpl::Core::Connect(const GURL& url) {
bool SyncWebSocketImpl::Core::Send(const std::string& message) {
bool success = false;
- base::WaitableEvent event(false, false);
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
context_getter_->GetNetworkTaskRunner()->PostTask(
FROM_HERE,
base::Bind(&SyncWebSocketImpl::Core::SendOnIO,

Powered by Google App Engine
This is Rietveld 408576698