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

Issue 2420743002: Make CPDF_Image() constructors saner. (Closed)

Created:
4 years, 2 months ago by Tom Sepez
Modified:
4 years, 2 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Make CPDF_Image() constructors saner. Introduce the UniqueDictionary typedef and friends, to allow moving to unique_ptrs before the Release() deleter issue is fully resolved. This will go away down the road. Committed: https://pdfium.googlesource.com/pdfium/+/4e4d1a662b09d9ee1dc93dd8ee37694d3c4eb519

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Fix red bots #

Patch Set 4 : typo #

Total comments: 2

Patch Set 5 : Fix leak #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -63 lines) Patch
M core/fpdfapi/page/cpdf_docpagedata.cpp View 1 chunk +6 lines, -5 lines 0 comments Download
M core/fpdfapi/page/cpdf_image.h View 4 chunks +17 lines, -15 lines 0 comments Download
M core/fpdfapi/page/cpdf_image.cpp View 1 2 3 2 chunks +41 lines, -40 lines 0 comments Download
M core/fpdfapi/page/cpdf_streamcontentparser.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M core/fpdfapi/parser/cpdf_array.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M core/fpdfapi/parser/cpdf_dictionary.h View 1 2 3 4 3 chunks +12 lines, -0 lines 2 comments Download
M core/fpdfapi/parser/cpdf_object.h View 1 chunk +2 lines, -0 lines 0 comments Download
M core/fpdfapi/parser/cpdf_stream.h View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 26 (19 generated)
Tom Sepez
Lei, for review.
4 years, 2 months ago (2016-10-13 20:50:17 UTC) #4
Lei Zhang
https://codereview.chromium.org/2420743002/diff/60001/core/fpdfapi/parser/cpdf_dictionary.h File core/fpdfapi/parser/cpdf_dictionary.h (right): https://codereview.chromium.org/2420743002/diff/60001/core/fpdfapi/parser/cpdf_dictionary.h#newcode114 core/fpdfapi/parser/cpdf_dictionary.h:114: return UniqueDictionary(ToDictionary(obj.release())); If |obj| is not a dictionary, then ...
4 years, 2 months ago (2016-10-13 22:35:01 UTC) #16
Tom Sepez
https://codereview.chromium.org/2420743002/diff/60001/core/fpdfapi/parser/cpdf_dictionary.h File core/fpdfapi/parser/cpdf_dictionary.h (right): https://codereview.chromium.org/2420743002/diff/60001/core/fpdfapi/parser/cpdf_dictionary.h#newcode114 core/fpdfapi/parser/cpdf_dictionary.h:114: return UniqueDictionary(ToDictionary(obj.release())); On 2016/10/13 22:35:01, Lei Zhang wrote: > ...
4 years, 2 months ago (2016-10-13 22:46:30 UTC) #19
Lei Zhang
lgtm https://codereview.chromium.org/2420743002/diff/80001/core/fpdfapi/parser/cpdf_dictionary.h File core/fpdfapi/parser/cpdf_dictionary.h (right): https://codereview.chromium.org/2420743002/diff/80001/core/fpdfapi/parser/cpdf_dictionary.h#newcode113 core/fpdfapi/parser/cpdf_dictionary.h:113: inline UniqueDictionary ToDictionary(UniqueObject obj) { Do we still ...
4 years, 2 months ago (2016-10-13 22:52:38 UTC) #20
Tom Sepez
https://codereview.chromium.org/2420743002/diff/80001/core/fpdfapi/parser/cpdf_dictionary.h File core/fpdfapi/parser/cpdf_dictionary.h (right): https://codereview.chromium.org/2420743002/diff/80001/core/fpdfapi/parser/cpdf_dictionary.h#newcode113 core/fpdfapi/parser/cpdf_dictionary.h:113: inline UniqueDictionary ToDictionary(UniqueObject obj) { On 2016/10/13 22:52:38, Lei ...
4 years, 2 months ago (2016-10-13 22:56:04 UTC) #21
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/2420743002/80001
4 years, 2 months ago (2016-10-13 22:56:36 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 22:56:58 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/4e4d1a662b09d9ee1dc93dd8ee37694d3c4e...

Powered by Google App Engine
This is Rietveld 408576698