| 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()),
|
|
|