Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: printing/image.cc

Issue 2064843002: PdfMetafileSkia: start supporting more document types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-06-14 (Tuesday) 10:42:59 EDT Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/printing/renderer/print_web_view_helper_linux.cc ('k') | printing/pdf_metafile_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/image.cc
diff --git a/printing/image.cc b/printing/image.cc
index a0376bb048c6e79061cd34ec67755d82e6eaa894..68faf9775ebad8349803e33ff1eda7ef8a259c95 100644
--- a/printing/image.cc
+++ b/printing/image.cc
@@ -152,7 +152,7 @@ bool Image::LoadPng(const std::string& compressed) {
bool Image::LoadMetafile(const std::string& data) {
Lei Zhang 2016/06/14 18:02:19 Looks like this is gone now with r399738 landed.
DCHECK(!data.empty());
- PdfMetafileSkia metafile;
+ PdfMetafileSkia metafile(PDF_SKIA_DOCUMENT_TYPE);
if (!metafile.InitFromData(data.data(),
base::checked_cast<uint32_t>(data.size())))
return false;
« no previous file with comments | « components/printing/renderer/print_web_view_helper_linux.cc ('k') | printing/pdf_metafile_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698