diff options
Diffstat (limited to 'content/plugin/webplugin_proxy.cc')
-rw-r--r-- | content/plugin/webplugin_proxy.cc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc index f0834d0..5817060 100644 --- a/content/plugin/webplugin_proxy.cc +++ b/content/plugin/webplugin_proxy.cc @@ -220,8 +220,10 @@ NPObject* WebPluginProxy::GetWindowScriptNPObject() { if (!success) return NULL; - window_npobject_ = NPObjectProxy::Create( - channel_, npobject_route_id, host_render_view_routing_id_, page_url_); + window_npobject_ = NPObjectProxy::Create(channel_.get(), + npobject_route_id, + host_render_view_routing_id_, + page_url_); return window_npobject_; } @@ -237,8 +239,10 @@ NPObject* WebPluginProxy::GetPluginElement() { if (!success) return NULL; - plugin_element_ = NPObjectProxy::Create( - channel_, npobject_route_id, host_render_view_routing_id_, page_url_); + plugin_element_ = NPObjectProxy::Create(channel_.get(), + npobject_route_id, + host_render_view_routing_id_, + page_url_); return plugin_element_; } @@ -278,7 +282,7 @@ WebPluginResourceClient* WebPluginProxy::GetResourceClient(int id) { } int WebPluginProxy::GetRendererId() { - if (channel_) + if (channel_.get()) return channel_->renderer_id(); return -1; } |