summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/plugin_dispatcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/plugin_dispatcher.cc')
-rw-r--r--ppapi/proxy/plugin_dispatcher.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/ppapi/proxy/plugin_dispatcher.cc b/ppapi/proxy/plugin_dispatcher.cc
index f99ec9e..6cd0ab4 100644
--- a/ppapi/proxy/plugin_dispatcher.cc
+++ b/ppapi/proxy/plugin_dispatcher.cc
@@ -161,7 +161,9 @@ bool PluginDispatcher::InitPluginWithChannel(
base::ProcessId peer_pid,
const IPC::ChannelHandle& channel_handle,
bool is_client) {
- InitWithChannel(delegate, peer_pid);
+ if (!Dispatcher::InitWithChannel(delegate, peer_pid, channel_handle,
+ is_client))
+ return false;
plugin_delegate_ = delegate;
plugin_dispatcher_id_ = plugin_delegate_->Register(this);
@@ -174,7 +176,6 @@ bool PluginDispatcher::InitPluginWithChannel(
new PluginMessageFilter(
delegate->GetGloballySeenInstanceIDSet(),
PluginGlobals::Get()->resource_reply_thread_registrar()));
- ConnectChannel(channel_handle, is_client);
return true;
}