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

Unified Diff: services/shell/background/background_shell.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 | « no previous file | services/shell/runner/host/child_process_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/background/background_shell.cc
diff --git a/services/shell/background/background_shell.cc b/services/shell/background/background_shell.cc
index 4c42c09dda5f785c299cb5f544d10dcef8e94e5a..bed732b068f1bdf26074cfec54c02512ace79e4a 100644
--- a/services/shell/background/background_shell.cc
+++ b/services/shell/background/background_shell.cc
@@ -151,7 +151,8 @@ mojom::ShellClientRequest BackgroundShell::CreateShellClientRequest(
params->set_source(CreateShellIdentity());
params->set_target(Identity(name, mojom::kRootUserID));
mojom::ShellClientRequest request;
- base::WaitableEvent signal(true, false);
+ base::WaitableEvent signal(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
thread_->message_loop()->task_runner()->PostTask(
FROM_HERE, base::Bind(&MojoThread::CreateShellClientRequest,
base::Unretained(thread_.get()), &signal, name,
« no previous file with comments | « no previous file | services/shell/runner/host/child_process_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698