summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_broker_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/ppapi/ppb_broker_impl.cc')
-rw-r--r--webkit/plugins/ppapi/ppb_broker_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/plugins/ppapi/ppb_broker_impl.cc b/webkit/plugins/ppapi/ppb_broker_impl.cc
index 9e0cb5c..83912c5 100644
--- a/webkit/plugins/ppapi/ppb_broker_impl.cc
+++ b/webkit/plugins/ppapi/ppb_broker_impl.cc
@@ -72,7 +72,7 @@ PPB_Broker_Impl::PPB_Broker_Impl(PluginInstance* instance)
PPB_Broker_Impl::~PPB_Broker_Impl() {
if (broker_) {
- broker_->Release(instance());
+ broker_->Disconnect(this);
broker_ = NULL;
}
@@ -94,7 +94,7 @@ int32_t PPB_Broker_Impl::Connect(
return PP_ERROR_FAILED;
}
- broker_ = plugin_delegate->ConnectToPpapiBroker(instance(), this);
+ broker_ = plugin_delegate->ConnectToPpapiBroker(this);
if (!broker_)
return PP_ERROR_FAILED;