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

Unified Diff: chrome/common/service_process_util_posix.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/common/service_process_util_posix.cc
diff --git a/chrome/common/service_process_util_posix.cc b/chrome/common/service_process_util_posix.cc
index 024340f75d306a5c41180a4ba98df424e01d0a8d..9bd3783c4a9523f83aff16d8c482def1b75b486c 100644
--- a/chrome/common/service_process_util_posix.cc
+++ b/chrome/common/service_process_util_posix.cc
@@ -182,7 +182,9 @@ bool ServiceProcessState::SignalReady(base::SingleThreadTaskRunner* task_runner,
DPLOG(ERROR) << "pipe";
return false;
}
- base::WaitableEvent signal_ready(true, false);
+ base::WaitableEvent signal_ready(
+ base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
bool success = false;
task_runner->PostTask(FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698