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

Unified Diff: webkit/plugins/ppapi/ppb_buffer_impl.cc

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « webkit/plugins/ppapi/ppapi_webplugin_impl.cc ('k') | webkit/plugins/ppapi/ppb_file_ref_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_buffer_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_buffer_impl.cc b/webkit/plugins/ppapi/ppb_buffer_impl.cc
index ffc793215c560b6394241438fd7dbfc26d5d9c08..c00a9db30bd1ea49b0bb8fb7d47085e6d8a47cce 100644
--- a/webkit/plugins/ppapi/ppb_buffer_impl.cc
+++ b/webkit/plugins/ppapi/ppb_buffer_impl.cc
@@ -32,7 +32,7 @@ PPB_Buffer_Impl::~PPB_Buffer_Impl() {
// static
PP_Resource PPB_Buffer_Impl::Create(PP_Instance instance, uint32_t size) {
scoped_refptr<PPB_Buffer_Impl> new_resource(CreateResource(instance, size));
- if (new_resource)
+ if (new_resource.get())
return new_resource->GetReference();
return 0;
}
« no previous file with comments | « webkit/plugins/ppapi/ppapi_webplugin_impl.cc ('k') | webkit/plugins/ppapi/ppb_file_ref_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698