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

Unified Diff: base/sync_socket_win.cc

Issue 2047163003: Manual refactor to enum-based WaitableEvent for remaining _win files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +sync_socket_win.cc Created 4 years, 6 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 | chrome/browser/chrome_select_file_dialog_factory_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sync_socket_win.cc
diff --git a/base/sync_socket_win.cc b/base/sync_socket_win.cc
index 067c7de217bdba49b8655973f50f88aebebdccc2..c101f77ad9d870e3c832ac31706504c63c752c34 100644
--- a/base/sync_socket_win.cc
+++ b/base/sync_socket_win.cc
@@ -294,13 +294,17 @@ size_t SyncSocket::Peek() {
}
CancelableSyncSocket::CancelableSyncSocket()
- : shutdown_event_(true, false), file_operation_(true, false) {
-}
+ : shutdown_event_(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED),
+ file_operation_(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED) {}
CancelableSyncSocket::CancelableSyncSocket(Handle handle)
- : SyncSocket(handle), shutdown_event_(true, false),
- file_operation_(true, false) {
-}
+ : SyncSocket(handle),
+ shutdown_event_(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED),
+ file_operation_(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED) {}
bool CancelableSyncSocket::Shutdown() {
// This doesn't shut down the pipe immediately, but subsequent Receive or Send
« no previous file with comments | « no previous file | chrome/browser/chrome_select_file_dialog_factory_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698