Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: content/plugin/webplugin_proxy.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/plugin/webplugin_delegate_stub.cc ('k') | content/public/browser/browser_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « content/plugin/webplugin_delegate_stub.cc ('k') | content/public/browser/browser_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698