Index: printing/pdf_metafile_skia.cc |
diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc |
index dd182ac2cc4e9246e61eac596b5439a8c82d6cea..df96d376271be97bceca1b71f52c984c069ec228 100644 |
--- a/printing/pdf_metafile_skia.cc |
+++ b/printing/pdf_metafile_skia.cc |
@@ -195,8 +195,7 @@ bool PdfMetafileSkia::FinishDocument() { |
canvas->drawPicture(page.content_); |
doc->endPage(); |
} |
- if (!doc->close()) |
- return false; |
+ doc->close(); |
data_->pdf_data_.reset(stream.detachAsStream()); |
return true; |