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

Issue 2267173005: Removing CPDF_Parser::CloseParser. (Closed)

Created:
4 years, 4 months ago by dsinclair
Modified:
4 years, 4 months ago
Reviewers:
Tom Sepez, Lei Zhang, Wei Li
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Removing CPDF_Parser::CloseParser. Currently the only calls to CloseParser() happend in the destructor or the start*Parse methods. The Start*Parse methods are currently only called on freshly constructed parsers in fpdf_dataavail and fpdfview. This CL removes the CloseParser() method and puts the contents in the destructor. We then add an ASSERT that we don't re-enter the parser after it has already completed the parse. Committed: https://pdfium.googlesource.com/pdfium/+/156de02596e91490bf2432686d0d3c91a5c1a26e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -63 lines) Patch
M core/fpdfapi/fpdf_parser/cpdf_parser.cpp View 5 chunks +27 lines, -39 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_parser.h View 4 chunks +27 lines, -23 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (6 generated)
dsinclair
PTAL.
4 years, 4 months ago (2016-08-24 18:47:32 UTC) #4
Tom Sepez
lgtm
4 years, 4 months ago (2016-08-24 18:56:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2267173005/1
4 years, 4 months ago (2016-08-24 18:58:00 UTC) #8
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 18:58:27 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/156de02596e91490bf2432686d0d3c91a5c1...

Powered by Google App Engine
This is Rietveld 408576698