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

Unified Diff: services/shell/runner/host/child_process_base.cc

Issue 2031693002: Migrate WaitableEvent to enum-based constructor in services/ (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 | « services/shell/background/background_shell.cc ('k') | services/shell/runner/host/child_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/runner/host/child_process_base.cc
diff --git a/services/shell/runner/host/child_process_base.cc b/services/shell/runner/host/child_process_base.cc
index 3778b0f1c1a1ffe2e19e015905036f1fc6de780d..eb798f3d788dcfd594a01e3b0428cb132323db13 100644
--- a/services/shell/runner/host/child_process_base.cc
+++ b/services/shell/runner/host/child_process_base.cc
@@ -62,7 +62,10 @@ std::unique_ptr<LinuxSandbox> InitializeSandbox() {
class ScopedAppContext : public mojo::edk::ProcessDelegate {
public:
ScopedAppContext()
- : io_thread_("io_thread"), wait_for_shutdown_event_(true, false) {
+ : io_thread_("io_thread"),
+ wait_for_shutdown_event_(
+ base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED) {
// Initialize Mojo before starting any threads.
mojo::edk::Init();
« no previous file with comments | « services/shell/background/background_shell.cc ('k') | services/shell/runner/host/child_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698