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

Unified Diff: ppapi/proxy/platform_verification_private_resource.cc

Issue 467303005: Remove implicit conversions from scoped_refptr to T* in ppapi/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: ppapi/proxy/platform_verification_private_resource.cc
diff --git a/ppapi/proxy/platform_verification_private_resource.cc b/ppapi/proxy/platform_verification_private_resource.cc
index d361f4f82796314f94e8cc480ea59695bf368312..76d514871d0c39cd4638a939a9a9aadd03866b6a 100644
--- a/ppapi/proxy/platform_verification_private_resource.cc
+++ b/ppapi/proxy/platform_verification_private_resource.cc
@@ -52,7 +52,7 @@ int32_t PlatformVerificationPrivateResource::ChallengePlatform(
scoped_refptr<ArrayBufferVar> challenge_buffer =
ArrayBufferVar::FromPPVar(challenge);
- if (!challenge_buffer)
+ if (!challenge_buffer.get())
return PP_ERROR_BADARGUMENT;
uint8_t* challenge_data = static_cast<uint8_t*>(challenge_buffer->Map());

Powered by Google App Engine
This is Rietveld 408576698