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

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 1131093004: Cleanup: Slight simplification in the PDFiumEngine dtor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove one more if Created 5 years, 7 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: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index e580fede6aba69640b283f2395d9c2b5252c2021..fc0bc9b3aa7a6e683ad568c338c951365f4aee5a 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -661,17 +661,11 @@ PDFiumEngine::~PDFiumEngine() {
pages_[i]->Unload();
if (doc_) {
- if (form_) {
- FORM_DoDocumentAAction(form_, FPDFDOC_AACTION_WC);
- }
+ FORM_DoDocumentAAction(form_, FPDFDOC_AACTION_WC);
FPDF_CloseDocument(doc_);
- if (form_) {
- FPDFDOC_ExitFormFillEnvironment(form_);
- }
+ FPDFDOC_ExitFormFillEnvironment(form_);
Tom Sepez 2015/05/15 15:06:31 Curious about the ordering here, in that the same
Lei Zhang 2015/05/15 21:23:09 It used to be the other way around, but changed he
}
-
- if (fpdf_availability_)
- FPDFAvail_Destroy(fpdf_availability_);
+ FPDFAvail_Destroy(fpdf_availability_);
STLDeleteElements(&pages_);
}
« 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