summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/host_dispatcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/host_dispatcher.cc')
-rw-r--r--ppapi/proxy/host_dispatcher.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/ppapi/proxy/host_dispatcher.cc b/ppapi/proxy/host_dispatcher.cc
index d9fcc36..2dce10a 100644
--- a/ppapi/proxy/host_dispatcher.cc
+++ b/ppapi/proxy/host_dispatcher.cc
@@ -90,10 +90,13 @@ HostDispatcher::~HostDispatcher() {
}
bool HostDispatcher::InitHostWithChannel(
- ProxyChannel::Delegate* delegate,
+ Delegate* delegate,
const IPC::ChannelHandle& channel_handle,
bool is_client) {
- return Dispatcher::InitWithChannel(delegate, channel_handle, is_client);
+ if (!Dispatcher::InitWithChannel(delegate, channel_handle, is_client))
+ return false;
+ SetDelegate(delegate);
+ return true;
}
// static