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

Unified Diff: content/renderer/npapi/plugin_channel_host.cc

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 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 | « content/renderer/npapi/plugin_channel_host.h ('k') | content/renderer/npapi/webplugin_delegate_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/npapi/plugin_channel_host.cc
diff --git a/content/renderer/npapi/plugin_channel_host.cc b/content/renderer/npapi/plugin_channel_host.cc
index 679288f51331c44b9f89fd8c375225445df7bc0b..d552ff871976d9db45c20dc77a23fc441c0dbf11 100644
--- a/content/renderer/npapi/plugin_channel_host.cc
+++ b/content/renderer/npapi/plugin_channel_host.cc
@@ -60,15 +60,11 @@ bool* PluginChannelHost::GetRemoveTrackingFlag() {
// static
PluginChannelHost* PluginChannelHost::GetPluginChannelHost(
const IPC::ChannelHandle& channel_handle,
- base::MessageLoopProxy* ipc_message_loop) {
+ base::SingleThreadTaskRunner* ipc_task_runner) {
PluginChannelHost* result =
static_cast<PluginChannelHost*>(NPChannelBase::GetChannel(
- channel_handle,
- IPC::Channel::MODE_CLIENT,
- ClassFactory,
- ipc_message_loop,
- true,
- ChildProcess::current()->GetShutDownEvent()));
+ channel_handle, IPC::Channel::MODE_CLIENT, ClassFactory,
+ ipc_task_runner, true, ChildProcess::current()->GetShutDownEvent()));
return result;
}
@@ -78,10 +74,10 @@ PluginChannelHost::PluginChannelHost() : expecting_shutdown_(false) {
PluginChannelHost::~PluginChannelHost() {
}
-bool PluginChannelHost::Init(base::MessageLoopProxy* ipc_message_loop,
+bool PluginChannelHost::Init(base::SingleThreadTaskRunner* ipc_task_runner,
bool create_pipe_now,
base::WaitableEvent* shutdown_event) {
- return NPChannelBase::Init(ipc_message_loop, create_pipe_now, shutdown_event);
+ return NPChannelBase::Init(ipc_task_runner, create_pipe_now, shutdown_event);
}
int PluginChannelHost::GenerateRouteID() {
« no previous file with comments | « content/renderer/npapi/plugin_channel_host.h ('k') | content/renderer/npapi/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698