diff options
author | shrikant@chromium.org <shrikant@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-28 00:32:55 +0000 |
---|---|---|
committer | shrikant@chromium.org <shrikant@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-28 00:32:55 +0000 |
commit | b66484ebec72042d2807198c59b205577d18c450 (patch) | |
tree | c981a85d95e10ec4afc0d8a0101d42db54d2f988 | |
parent | 05f9e680a796507b015f77a0762b9bc7398e2bc6 (diff) | |
download | chromium_src-b66484ebec72042d2807198c59b205577d18c450.zip chromium_src-b66484ebec72042d2807198c59b205577d18c450.tar.gz chromium_src-b66484ebec72042d2807198c59b205577d18c450.tar.bz2 |
Disabling hidpi for pepper pdf on Windows.
Lack of scaled resources on Windows was causing the crash mentioned in the bug.
BUG=338050
R=dmichael,cpu
Review URL: https://codereview.chromium.org/137623010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247354 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/renderer/pepper/ppb_pdf_impl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/renderer/pepper/ppb_pdf_impl.cc b/chrome/renderer/pepper/ppb_pdf_impl.cc index 0668585a..d9d618c 100644 --- a/chrome/renderer/pepper/ppb_pdf_impl.cc +++ b/chrome/renderer/pepper/ppb_pdf_impl.cc @@ -360,6 +360,10 @@ void SaveAs(PP_Instance instance_id) { PP_Bool IsFeatureEnabled(PP_Instance instance, PP_PDFFeature feature) { switch (feature) { case PP_PDFFEATURE_HIDPI: +#if defined(OS_WIN) + // Disable this for Windows until scaled resources become available. + return PP_FALSE; +#endif return PP_TRUE; case PP_PDFFEATURE_PRINTING: return IsPrintingEnabled(instance) ? PP_TRUE : PP_FALSE; |