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

Unified Diff: content/renderer/webplugin_delegate_proxy.cc

Issue 16256018: Update content/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix incorrectly modified code 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/renderer/pepper/pepper_video_source_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/webplugin_delegate_proxy.cc
diff --git a/content/renderer/webplugin_delegate_proxy.cc b/content/renderer/webplugin_delegate_proxy.cc
index caa182d7350696b14d70a0aabf94cec59a745f9c..51bf98784d58bb6c5f5aef0f2b7bc5ac2a988e2b 100644
--- a/content/renderer/webplugin_delegate_proxy.cc
+++ b/content/renderer/webplugin_delegate_proxy.cc
@@ -247,7 +247,7 @@ void WebPluginDelegateProxy::PluginDestroyed() {
if (window_)
WillDestroyWindow();
- if (render_view_)
+ if (render_view_.get())
render_view_->UnregisterPluginDelegate(this);
if (channel_host_.get()) {
@@ -268,7 +268,7 @@ void WebPluginDelegateProxy::PluginDestroyed() {
channel_host_ = NULL;
}
- if (window_script_object_) {
+ if (window_script_object_.get()) {
// Release the window script object, if the plugin didn't already.
// If we don't do this then it will linger until the last plugin instance is
// destroyed. In the meantime, though, the frame that it refers to may have
« no previous file with comments | « content/renderer/pepper/pepper_video_source_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698