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

Unified Diff: printing/pdf_metafile_skia.cc

Issue 2355343003: SkDocument::close is changing to void (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698