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

Issue 2384883003: Remove CPDF_Object::Release() in favor of direct delete (Closed)

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

Description

Remove CPDF_Object::Release() in favor of direct delete Follow-on once we prove Release always deletes in previous CL. Committed: https://pdfium.googlesource.com/pdfium/+/4de3d095c9d9e961f93750cf1ebd489fd515be12

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove ScopedArray typedefs and friends #

Patch Set 3 : Remove ScopedDict typedefs #

Total comments: 6

Patch Set 4 : Rebase #

Patch Set 5 : blown merge #

Patch Set 6 : Rebase #

Patch Set 7 : nits #

Total comments: 1

Patch Set 8 : Rename ReleaseIndirectObject to DeleteIndirectObject #

Patch Set 9 : rebase, fix tests #

Patch Set 10 : Rebase, fix compilation. #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -274 lines) Patch
M core/fpdfapi/edit/cpdf_creator.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/edit/fpdf_edit_create.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +7 lines, -7 lines 0 comments Download
M core/fpdfapi/font/fpdf_font.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -5 lines 0 comments Download
M core/fpdfapi/page/cpdf_contentmark.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M core/fpdfapi/page/cpdf_contentmarkitem.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -4 lines 0 comments Download
M core/fpdfapi/page/cpdf_contentmarkitem.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_image.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M core/fpdfapi/page/cpdf_image.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -8 lines 0 comments Download
M core/fpdfapi/page/cpdf_streamcontentparser.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_streamcontentparser.cpp View 1 2 3 4 5 6 7 8 9 10 9 chunks +19 lines, -24 lines 0 comments Download
M core/fpdfapi/page/fpdf_page_parser_old.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +6 lines, -10 lines 0 comments Download
M core/fpdfapi/parser/cfdf_document.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/parser/cpdf_array.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -5 lines 0 comments Download
M core/fpdfapi/parser/cpdf_array.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -8 lines 0 comments Download
M core/fpdfapi/parser/cpdf_array_unittest.cpp View 1 2 3 4 5 8 chunks +10 lines, -16 lines 0 comments Download
M core/fpdfapi/parser/cpdf_data_avail.cpp View 1 2 3 4 5 6 7 8 9 10 15 chunks +27 lines, -34 lines 0 comments Download
M core/fpdfapi/parser/cpdf_dictionary.h View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -7 lines 0 comments Download
M core/fpdfapi/parser/cpdf_dictionary.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +4 lines, -4 lines 0 comments Download
M core/fpdfapi/parser/cpdf_document.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/parser/cpdf_document_unittest.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -3 lines 0 comments Download
M core/fpdfapi/parser/cpdf_indirect_object_holder.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/parser/cpdf_indirect_object_holder.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/parser/cpdf_object.h View 1 2 3 4 5 6 7 8 9 4 chunks +2 lines, -6 lines 0 comments Download
M core/fpdfapi/parser/cpdf_object.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -5 lines 0 comments Download
M core/fpdfapi/parser/cpdf_object_unittest.cpp View 1 2 3 4 5 6 7 8 27 chunks +36 lines, -40 lines 0 comments Download
M core/fpdfapi/parser/cpdf_parser.cpp View 1 2 3 4 5 6 7 8 9 10 14 chunks +20 lines, -34 lines 0 comments Download
M core/fpdfapi/parser/cpdf_stream.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -6 lines 0 comments Download
M core/fpdfapi/parser/cpdf_stream.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/parser/cpdf_string.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -2 lines 0 comments Download
M core/fpdfapi/parser/cpdf_syntax_parser.cpp View 1 2 3 4 5 6 7 8 9 10 7 chunks +7 lines, -10 lines 0 comments Download
M core/fpdfdoc/cpdf_annot.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfdoc/cpdf_filespec_unittest.cpp View 1 2 3 4 5 6 chunks +5 lines, -12 lines 0 comments Download
M core/fpdfdoc/cpdf_formfield.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M core/fxge/dib/fx_dib_engine_unittest.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M fpdfsdk/fpdfdoc_unittest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdfppo.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 45 (28 generated)
Tom Sepez
This is where we want to go if the prior CL proves safety.
4 years, 2 months ago (2016-10-01 01:45:46 UTC) #4
Lei Zhang
Yep, I figured and I'd like this to happen. There's probably more opportunities to use ...
4 years, 2 months ago (2016-10-01 01:50:37 UTC) #5
Tom Sepez
On 2016/10/01 01:50:37, Lei Zhang wrote: > Yep, I figured and I'd like this to ...
4 years, 2 months ago (2016-10-03 16:03:32 UTC) #8
Tom Sepez
On 2016/10/03 16:03:32, Tom Sepez wrote: > On 2016/10/01 01:50:37, Lei Zhang wrote: > > ...
4 years, 2 months ago (2016-10-03 16:44:23 UTC) #9
Lei Zhang
https://codereview.chromium.org/2384883003/diff/1/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp File core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp (right): https://codereview.chromium.org/2384883003/diff/1/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp#newcode25 core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp:25: using ScopedArray = std::unique_ptr<CPDF_Array>; We can also just get ...
4 years, 2 months ago (2016-10-03 21:18:31 UTC) #10
Tom Sepez
https://codereview.chromium.org/2384883003/diff/1/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp File core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp (right): https://codereview.chromium.org/2384883003/diff/1/core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp#newcode25 core/fpdfapi/fpdf_parser/cpdf_object_unittest.cpp:25: using ScopedArray = std::unique_ptr<CPDF_Array>; On 2016/10/03 21:18:30, Lei Zhang ...
4 years, 2 months ago (2016-10-03 21:41:31 UTC) #13
Lei Zhang
lgtm https://codereview.chromium.org/2384883003/diff/40001/core/fpdfapi/fpdf_page/cpdf_image.cpp File core/fpdfapi/fpdf_page/cpdf_image.cpp (right): https://codereview.chromium.org/2384883003/diff/40001/core/fpdfapi/fpdf_page/cpdf_image.cpp#newcode289 core/fpdfapi/fpdf_page/cpdf_image.cpp:289: if (pDict) { no if? https://codereview.chromium.org/2384883003/diff/40001/core/fpdfapi/fpdf_parser/cpdf_parser.cpp File core/fpdfapi/fpdf_parser/cpdf_parser.cpp ...
4 years, 2 months ago (2016-10-03 21:50:47 UTC) #14
Tom Sepez
https://codereview.chromium.org/2384883003/diff/40001/core/fpdfapi/fpdf_page/cpdf_image.cpp File core/fpdfapi/fpdf_page/cpdf_image.cpp (right): https://codereview.chromium.org/2384883003/diff/40001/core/fpdfapi/fpdf_page/cpdf_image.cpp#newcode289 core/fpdfapi/fpdf_page/cpdf_image.cpp:289: if (pDict) { On 2016/10/03 21:50:47, Lei Zhang wrote: ...
4 years, 2 months ago (2016-10-05 21:03:03 UTC) #21
Tom Sepez
Need to let the previous CL bake a bit to ensure check(0) doesn't trip on ...
4 years, 2 months ago (2016-10-05 21:03:43 UTC) #24
Lei Zhang
lgtm https://codereview.chromium.org/2384883003/diff/120001/core/fpdfapi/parser/cpdf_data_avail.cpp File core/fpdfapi/parser/cpdf_data_avail.cpp (right): https://codereview.chromium.org/2384883003/diff/120001/core/fpdfapi/parser/cpdf_data_avail.cpp#newcode1439 core/fpdfapi/parser/cpdf_data_avail.cpp:1439: CPDF_Object* pPages = GetObject(m_PagesObjNum, pHints, &bExist); For later: ...
4 years, 2 months ago (2016-10-05 21:09:25 UTC) #25
Tom Sepez
(Keeping this CL alive for now, CHECK() has hit dev, wait a day or so).
4 years, 1 month ago (2016-10-28 21:08:26 UTC) #30
Tom Sepez
Lei, permission to land?
4 years, 1 month ago (2016-11-03 20:21:32 UTC) #35
Tom Sepez
On 2016/11/03 20:21:32, Tom Sepez wrote: > Lei, permission to land? (e.g. no faith in ...
4 years, 1 month ago (2016-11-03 20:39:07 UTC) #38
Lei Zhang
Let's give it a go.
4 years, 1 month ago (2016-11-04 00:03:22 UTC) #39
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/2384883003/200001
4 years, 1 month ago (2016-11-04 00:04:48 UTC) #42
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://pdfium.googlesource.com/pdfium/+/4de3d095c9d9e961f93750cf1ebd489fd515be12
4 years, 1 month ago (2016-11-04 00:05:12 UTC) #44
dsinclair
4 years, 1 month ago (2016-11-04 15:25:08 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.chromium.org/2478253002/ by dsinclair@chromium.org.

The reason for reverting is: Looks like it's blocking the roll.

https://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium....

Powered by Google App Engine
This is Rietveld 408576698