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

Unified Diff: webkit/plugins/npapi/plugin_stream_url.cc

Issue 11189146: Eliminate implicit conversion from scoped_refptr<T> to T* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « webkit/plugins/npapi/plugin_instance.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_stream_url.cc
diff --git a/webkit/plugins/npapi/plugin_stream_url.cc b/webkit/plugins/npapi/plugin_stream_url.cc
index b7efcdfbb982817ff034a3b34c8c68f8b12e1bd2..2286d55108e0c86078e4ee9c9395d6a0652d52bd 100644
--- a/webkit/plugins/npapi/plugin_stream_url.cc
+++ b/webkit/plugins/npapi/plugin_stream_url.cc
@@ -36,7 +36,7 @@ bool PluginStreamUrl::Close(NPReason reason) {
scoped_refptr<PluginStream> protect(this);
CancelRequest();
bool result = PluginStream::Close(reason);
- instance()->RemoveStream(this);
+ instance()->RemoveStream(protect);
return result;
}
@@ -75,7 +75,7 @@ void PluginStreamUrl::DidReceiveResponse(const std::string& mime_type,
request_is_seekable);
if (!opened) {
CancelRequest();
- instance()->RemoveStream(this);
+ instance()->RemoveStream(protect);
} else {
if (id_ > 0)
instance()->webplugin()->SetDeferResourceLoading(id_, false);
« no previous file with comments | « webkit/plugins/npapi/plugin_instance.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698