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

Unified Diff: webkit/plugins/ppapi/ppb_var_deprecated_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/ppb_file_ref_impl.cc ('k') | webkit/plugins/ppapi/url_request_info_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_var_deprecated_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_var_deprecated_impl.cc b/webkit/plugins/ppapi/ppb_var_deprecated_impl.cc
index 4ea102a80b4d556e82b5277c872917bd34a61e74..63c024e14154083360e100b95394b553b8d0dd4c 100644
--- a/webkit/plugins/ppapi/ppb_var_deprecated_impl.cc
+++ b/webkit/plugins/ppapi/ppb_var_deprecated_impl.cc
@@ -81,7 +81,7 @@ bool PPVarToNPVariantNoCopy(PP_Var var, NPVariant* result) {
}
case PP_VARTYPE_OBJECT: {
scoped_refptr<NPObjectVar> object(NPObjectVar::FromPPVar(var));
- if (!object) {
+ if (!object.get()) {
VOID_TO_NPVARIANT(*result);
return false;
}
@@ -112,7 +112,7 @@ class ObjectAccessorTryCatch : public TryCatch {
ObjectAccessorTryCatch(PP_Var object, PP_Var* exception)
: TryCatch(exception),
object_(NPObjectVar::FromPPVar(object)) {
- if (!object_) {
+ if (!object_.get()) {
SetException(kInvalidObjectException);
}
}
@@ -379,7 +379,7 @@ bool IsInstanceOfDeprecated(PP_Var var,
const PPP_Class_Deprecated* ppp_class,
void** ppp_class_data) {
scoped_refptr<NPObjectVar> object(NPObjectVar::FromPPVar(var));
- if (!object)
+ if (!object.get())
return false; // Not an object at all.
return PluginObject::IsInstanceOf(object->np_object(),
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_ref_impl.cc ('k') | webkit/plugins/ppapi/url_request_info_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698