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

Unified Diff: ppapi/nacl_irt/plugin_startup.cc

Issue 2043893002: Migrate WaitableEvent to enum-based constructor in ppapi/nacl_irt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile 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 | « ppapi/nacl_irt/manifest_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/nacl_irt/plugin_startup.cc
diff --git a/ppapi/nacl_irt/plugin_startup.cc b/ppapi/nacl_irt/plugin_startup.cc
index 338f524608f767035087d3c207e8445fdc32d1da..369b2b7c3487f3ee983427d964c5d149eea6ad0a 100644
--- a/ppapi/nacl_irt/plugin_startup.cc
+++ b/ppapi/nacl_irt/plugin_startup.cc
@@ -63,7 +63,9 @@ void StartUpPlugin() {
DCHECK(!g_shutdown_event);
DCHECK(!g_io_thread);
- g_shutdown_event = new base::WaitableEvent(true, false);
+ g_shutdown_event =
+ new base::WaitableEvent(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
g_io_thread = new base::Thread("Chrome_NaClIOThread");
g_io_thread->StartWithOptions(
base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
@@ -75,7 +77,8 @@ void StartUpPlugin() {
// TODO(hidehiko,dmichael): This works, but is probably not well designed
// usage. Once a better approach is made, replace this by that way.
// (crbug.com/364241).
- base::WaitableEvent event(true, false);
+ base::WaitableEvent event(base::WaitableEvent::ResetPolicy::MANUAL,
+ base::WaitableEvent::InitialState::NOT_SIGNALED);
g_io_thread->task_runner()->PostTask(
FROM_HERE, base::Bind(StartUpManifestServiceOnIOThread, &event));
event.Wait();
« no previous file with comments | « ppapi/nacl_irt/manifest_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698