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

Unified Diff: services/shell/background/background_shell.cc

Issue 2024723002: DO NOT COMMIT (will be split in sub-components) - clang-tidy WaitableEvent refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: fix presubmits 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: 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,

Powered by Google App Engine
This is Rietveld 408576698