diff options
Diffstat (limited to 'chrome/utility/utility_thread.cc')
-rw-r--r-- | chrome/utility/utility_thread.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/utility/utility_thread.cc b/chrome/utility/utility_thread.cc index 5628860..cca4b34 100644 --- a/chrome/utility/utility_thread.cc +++ b/chrome/utility/utility_thread.cc @@ -260,7 +260,7 @@ bool UtilityThread::RenderPDFToWinMetafile( return false; scoped_ptr<printing::NativeMetafile> metafile( - printing::NativeMetafileFactory::CreateMetafile()); + printing::NativeMetafileFactory::Create()); metafile->CreateFileBackedDc(NULL, NULL, metafile_path); // Since we created the metafile using the screen DPI (but we actually want // the PDF DLL to print using the passed in render_dpi, we apply the following @@ -291,7 +291,7 @@ bool UtilityThread::RenderPDFToWinMetafile( metafile->FinishPage(); } } - metafile->Close(); + metafile->FinishDocument(); return ret; } #endif // defined(OS_WIN) |