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

Unified Diff: ppapi/nacl_irt/plugin_startup.cc

Issue 1174543002: ppapi: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix V8VarConverterTest. Created 5 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/plugin_main.cc ('k') | ppapi/nacl_irt/ppapi_dispatcher.h » ('j') | 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 2061fc831ec5058069bc03c418cbf390f8b5b763..338f524608f767035087d3c207e8445fdc32d1da 100644
--- a/ppapi/nacl_irt/plugin_startup.cc
+++ b/ppapi/nacl_irt/plugin_startup.cc
@@ -6,7 +6,9 @@
#include "base/bind.h"
#include "base/file_descriptor_posix.h"
+#include "base/location.h"
#include "base/logging.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
#include "ipc/ipc_channel_handle.h"
@@ -37,10 +39,9 @@ void StartUpManifestServiceOnIOThread(base::WaitableEvent* event) {
DCHECK(g_shutdown_event);
g_manifest_service = new ManifestService(
- IPC::ChannelHandle(
- "NaCl IPC", base::FileDescriptor(g_manifest_service_fd, false)),
- g_io_thread->message_loop_proxy(),
- g_shutdown_event);
+ IPC::ChannelHandle("NaCl IPC",
+ base::FileDescriptor(g_manifest_service_fd, false)),
+ g_io_thread->task_runner(), g_shutdown_event);
event->Signal();
}
@@ -75,9 +76,8 @@ void StartUpPlugin() {
// usage. Once a better approach is made, replace this by that way.
// (crbug.com/364241).
base::WaitableEvent event(true, false);
- g_io_thread->message_loop_proxy()->PostTask(
- FROM_HERE,
- base::Bind(StartUpManifestServiceOnIOThread, &event));
+ g_io_thread->task_runner()->PostTask(
+ FROM_HERE, base::Bind(StartUpManifestServiceOnIOThread, &event));
event.Wait();
}
« no previous file with comments | « ppapi/nacl_irt/plugin_main.cc ('k') | ppapi/nacl_irt/ppapi_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698