summaryrefslogtreecommitdiffstats
path: root/content/plugin
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-03 21:25:01 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-03 21:25:01 +0000
commitc679b2a84dc18146be677df48fd062cb2cf2a3c0 (patch)
tree4cedbf2611ae0315543da0e1949089d272e3d4fa /content/plugin
parent517370b4d6d2a1bbd753c7bd8d608109681c7619 (diff)
downloadchromium_src-c679b2a84dc18146be677df48fd062cb2cf2a3c0.zip
chromium_src-c679b2a84dc18146be677df48fd062cb2cf2a3c0.tar.gz
chromium_src-c679b2a84dc18146be677df48fd062cb2cf2a3c0.tar.bz2
Update content/ to use WeakPtr<T>::get() instead of implicit "operator T*"
BUG=245942 R=avi@chromium.org Review URL: https://codereview.chromium.org/16256018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203775 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/plugin')
-rw-r--r--content/plugin/webplugin_delegate_stub.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/plugin/webplugin_delegate_stub.cc b/content/plugin/webplugin_delegate_stub.cc
index 2b76d8d..023861d 100644
--- a/content/plugin/webplugin_delegate_stub.cc
+++ b/content/plugin/webplugin_delegate_stub.cc
@@ -38,7 +38,7 @@ static void DestroyWebPluginAndDelegate(
WebPlugin* webplugin) {
// The plugin may not expect us to try to release the scriptable object
// after calling NPP_Destroy on the instance, so delete the stub now.
- if (scriptable_object)
+ if (scriptable_object.get())
scriptable_object->DeleteSoon();
// WebPlugin must outlive WebPluginDelegate.
if (delegate)