Index: content/renderer/renderer_blink_platform_impl.cc |
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc |
index f299044aed658e30ffad74ddaa9bf72a30fa7723..371943b8479728f0ed260c7f5fb9d352511f2f40 100644 |
--- a/content/renderer/renderer_blink_platform_impl.cc |
+++ b/content/renderer/renderer_blink_platform_impl.cc |
@@ -546,8 +546,7 @@ bool RendererBlinkPlatformImpl::SandboxSupport::LoadFont(NSFont* src_font, |
return false; |
} |
- if (font_data_size == 0 || font_data == base::SharedMemory::NULLHandle() || |
- *font_id == 0) { |
+ if (font_data_size == 0 || !font_data.IsValid() || *font_id == 0) { |
LOG(ERROR) << "Bad response from RenderProcessHostMsg_LoadFont() for " << |
src_font_descriptor.font_name; |
*out = NULL; |