Index: content/plugin/webplugin_proxy.cc |
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc |
index f0834d0e8fc5bdf196597afeb8ee0f37e23a4e4f..5817060f541ce6d4ae4be89f444d7eeec5364e6e 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; |
} |