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

Unified Diff: ppapi/proxy/truetype_font_singleton_resource.cc

Issue 15806016: Update ppapi/ 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 | « ppapi/proxy/serialized_var.cc ('k') | ppapi/proxy/url_loader_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/truetype_font_singleton_resource.cc
diff --git a/ppapi/proxy/truetype_font_singleton_resource.cc b/ppapi/proxy/truetype_font_singleton_resource.cc
index 1fee97bfb08f31f8652756af49ba7fa8c429965e..027557e889a45f635dedce3eedea86d9c692bd3f 100644
--- a/ppapi/proxy/truetype_font_singleton_resource.cc
+++ b/ppapi/proxy/truetype_font_singleton_resource.cc
@@ -49,7 +49,7 @@ int32_t TrueTypeFontSingletonResource::GetFontsInFamily(
const scoped_refptr<TrackedCallback>& callback) {
scoped_refptr<StringVar> family_var = StringVar::FromPPVar(family);
const uint32_t kMaxFamilySizeInBytes = 1024;
- if (!family_var || family_var->value().size() > kMaxFamilySizeInBytes)
+ if (!family_var.get() || family_var->value().size() > kMaxFamilySizeInBytes)
return PP_ERROR_BADARGUMENT;
Call<PpapiPluginMsg_TrueTypeFontSingleton_GetFontsInFamilyReply>(BROWSER,
PpapiHostMsg_TrueTypeFontSingleton_GetFontsInFamily(family_var->value()),
« no previous file with comments | « ppapi/proxy/serialized_var.cc ('k') | ppapi/proxy/url_loader_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698