| Index: chrome/child/pdf_child_init.cc
|
| diff --git a/chrome/child/pdf_child_init.cc b/chrome/child/pdf_child_init.cc
|
| index 45b403a26e5b05471f6fb47d491328a23edff098..fe9a1a4f29dc6a3cb90a6069260f3dc47af5a9e0 100644
|
| --- a/chrome/child/pdf_child_init.cc
|
| +++ b/chrome/child/pdf_child_init.cc
|
| @@ -50,9 +50,11 @@ DWORD WINAPI GetFontDataPatch(HDC hdc,
|
| LOGFONT logfont;
|
| if (GetObject(font, sizeof(LOGFONT), &logfont)) {
|
| std::vector<char> font_data;
|
| - content::ChildThread::Get()->PreCacheFont(logfont);
|
| + if (content::ChildThread::Get())
|
| + content::ChildThread::Get()->PreCacheFont(logfont);
|
| rv = g_original_get_font_data(hdc, table, offset, buffer, length);
|
| - content::ChildThread::Get()->ReleaseCachedFonts();
|
| + if (content::ChildThread::Get())
|
| + content::ChildThread::Get()->ReleaseCachedFonts();
|
| }
|
| }
|
| return rv;
|
|
|