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

Unified Diff: content/plugin/plugin_channel.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/plugin/plugin_channel.h ('k') | content/plugin/plugin_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/plugin_channel.cc
diff --git a/content/plugin/plugin_channel.cc b/content/plugin/plugin_channel.cc
index d94863aeb47e25743271eaec54faf14cce0ade3b..1f21c84d4bbbed77b7d8a0d9d243819b4772b5f4 100644
--- a/content/plugin/plugin_channel.cc
+++ b/content/plugin/plugin_channel.cc
@@ -140,7 +140,7 @@ class PluginChannel::MessageFilter : public IPC::MessageFilter {
};
PluginChannel* PluginChannel::GetPluginChannel(
- int renderer_id, base::MessageLoopProxy* ipc_message_loop) {
+ int renderer_id, base::SingleThreadTaskRunner* ipc_task_runner) {
// Map renderer ID to a (single) channel to that process.
std::string channel_key = base::StringPrintf(
"%d.r%d", base::GetCurrentProcId(), renderer_id);
@@ -150,7 +150,7 @@ PluginChannel* PluginChannel::GetPluginChannel(
channel_key,
IPC::Channel::MODE_SERVER,
ClassFactory,
- ipc_message_loop,
+ ipc_task_runner,
false,
ChildProcess::current()->GetShutDownEvent()));
@@ -226,10 +226,10 @@ void PluginChannel::CleanUp() {
}
}
-bool PluginChannel::Init(base::MessageLoopProxy* ipc_message_loop,
+bool PluginChannel::Init(base::SingleThreadTaskRunner* ipc_task_runner,
bool create_pipe_now,
base::WaitableEvent* shutdown_event) {
- if (!NPChannelBase::Init(ipc_message_loop, create_pipe_now, shutdown_event))
+ if (!NPChannelBase::Init(ipc_task_runner, create_pipe_now, shutdown_event))
return false;
channel_->AddFilter(filter_.get());
« no previous file with comments | « content/plugin/plugin_channel.h ('k') | content/plugin/plugin_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698