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

Issue 1896303002: Remove CFX_ArrayTemplate from CPDF_LinkExtract (Closed)

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

Description

Remove CFX_ArrayTemplate from CPDF_LinkExtract Use unqiue_ptrs while we're at it, also better ctor. Committed: https://pdfium.googlesource.com/pdfium/+/691411873cb16eb82d5912d0f73b96310f632932

Patch Set 1 #

Patch Set 2 : disentangle from previous cl #

Patch Set 3 : STL includes. #

Patch Set 4 : Inline and remove Append method. #

Total comments: 13

Patch Set 5 : First kill some dead code upon which comments made #

Patch Set 6 : Implement reviewer suggestions. #

Patch Set 7 : No need for new/unique_ptrs #

Patch Set 8 : <memory> no longer required. #

Patch Set 9 : Update API doc and make behaviour match. #

Total comments: 1

Patch Set 10 : Even more verbose comment. #

Patch Set 11 : Old API behaviour; funnel empty sring processing. #

Total comments: 1

Patch Set 12 : No RVO for you. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -207 lines) Patch
M core/fpdftext/fpdf_text_int.cpp View 1 2 3 4 5 6 7 8 9 10 11 13 chunks +44 lines, -140 lines 0 comments Download
M core/fpdftext/fpdf_text_int_unittest.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M core/fpdftext/include/cpdf_linkextract.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -24 lines 0 comments Download
M core/fpdftext/include/cpdf_textpage.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -4 lines 0 comments Download
M fpdfsdk/fpdftext.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +30 lines, -28 lines 0 comments Download
M public/fpdf_text.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +19 lines, -11 lines 0 comments Download

Messages

Total messages: 36 (14 generated)
Tom Sepez
Lei, for review.
4 years, 8 months ago (2016-04-19 23:25:16 UTC) #3
Lei Zhang
lgtm https://codereview.chromium.org/1896303002/diff/60001/core/fpdftext/fpdf_text_int.cpp File core/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1896303002/diff/60001/core/fpdftext/fpdf_text_int.cpp#newcode2491 core/fpdftext/fpdf_text_int.cpp:2491: if (!m_bIsParsed || index < 0 || Helper ...
4 years, 8 months ago (2016-04-19 23:52:07 UTC) #4
dsinclair
https://codereview.chromium.org/1896303002/diff/60001/core/fpdftext/fpdf_text_int.cpp File core/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1896303002/diff/60001/core/fpdftext/fpdf_text_int.cpp#newcode2490 core/fpdftext/fpdf_text_int.cpp:2490: CFX_WideString CPDF_LinkExtract::GetURL(int index) const { Can index be changed ...
4 years, 8 months ago (2016-04-20 13:05:19 UTC) #6
Tom Sepez
Reworked. Let's try again. https://codereview.chromium.org/1896303002/diff/60001/core/fpdftext/fpdf_text_int.cpp File core/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1896303002/diff/60001/core/fpdftext/fpdf_text_int.cpp#newcode2490 core/fpdftext/fpdf_text_int.cpp:2490: CFX_WideString CPDF_LinkExtract::GetURL(int index) const { ...
4 years, 8 months ago (2016-04-20 19:07:40 UTC) #7
dsinclair
lgtm
4 years, 8 months ago (2016-04-20 19:12:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1896303002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1896303002/140001
4 years, 8 months ago (2016-04-20 19:15:40 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_xfa on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/linux_xfa/builds/322)
4 years, 8 months ago (2016-04-20 19:23:51 UTC) #13
Tom Sepez
Ok, re-review required as I've fixed the test diff by 1) Clarifying the public API ...
4 years, 8 months ago (2016-04-20 21:26:57 UTC) #14
Lei Zhang
https://codereview.chromium.org/1896303002/diff/160001/fpdfsdk/fpdftext_embeddertest.cpp File fpdfsdk/fpdftext_embeddertest.cpp (right): https://codereview.chromium.org/1896303002/diff/160001/fpdfsdk/fpdftext_embeddertest.cpp#newcode279 fpdfsdk/fpdftext_embeddertest.cpp:279: // Zero returned for bogus links. Isn't this changing ...
4 years, 8 months ago (2016-04-20 21:36:49 UTC) #15
Tom Sepez
On 2016/04/20 21:36:49, Lei Zhang wrote: > https://codereview.chromium.org/1896303002/diff/160001/fpdfsdk/fpdftext_embeddertest.cpp > File fpdfsdk/fpdftext_embeddertest.cpp (right): > > https://codereview.chromium.org/1896303002/diff/160001/fpdfsdk/fpdftext_embeddertest.cpp#newcode279 ...
4 years, 8 months ago (2016-04-20 22:58:23 UTC) #16
Tom Sepez
On 2016/04/20 22:58:23, Tom Sepez wrote: > On 2016/04/20 21:36:49, Lei Zhang wrote: > > ...
4 years, 8 months ago (2016-04-20 23:05:24 UTC) #17
Tom Sepez
Ok, time for re-review.
4 years, 8 months ago (2016-04-20 23:38:47 UTC) #18
Lei Zhang
lgtm https://codereview.chromium.org/1896303002/diff/200001/core/fpdftext/fpdf_text_int.cpp File core/fpdftext/fpdf_text_int.cpp (right): https://codereview.chromium.org/1896303002/diff/200001/core/fpdftext/fpdf_text_int.cpp#newcode265 core/fpdftext/fpdf_text_int.cpp:265: CFX_RectArray* rectArray) const { BTW, I have a ...
4 years, 8 months ago (2016-04-20 23:59:14 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1896303002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1896303002/200001
4 years, 8 months ago (2016-04-21 00:10:28 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_no_v8 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/win_no_v8/builds/328)
4 years, 8 months ago (2016-04-21 01:59:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1896303002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1896303002/200001
4 years, 8 months ago (2016-04-21 13:11:17 UTC) #26
dsinclair
On 2016/04/21 13:11:17, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 8 months ago (2016-04-21 14:51:36 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_no_v8 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/win_no_v8/builds/331)
4 years, 8 months ago (2016-04-21 15:29:40 UTC) #29
Tom Sepez
On 2016/04/21 15:29:40, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 8 months ago (2016-04-21 16:25:50 UTC) #30
Tom Sepez
On 2016/04/21 16:25:50, Tom Sepez wrote: > On 2016/04/21 15:29:40, commit-bot: I haz the power ...
4 years, 8 months ago (2016-04-21 16:35:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1896303002/160002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1896303002/160002
4 years, 8 months ago (2016-04-21 17:40:25 UTC) #34
commit-bot: I haz the power
4 years, 8 months ago (2016-04-21 17:43:42 UTC) #36
Message was sent while issue was closed.
Committed patchset #12 (id:160002) as
https://pdfium.googlesource.com/pdfium/+/691411873cb16eb82d5912d0f73b96310f63...

Powered by Google App Engine
This is Rietveld 408576698