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

Issue 1053613004: Make CFX_WideString::LockBuffer() completely unused. (Closed)

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

Description

Make CFX_WideString::LockBuffer() completely unused. Then remove CFX_{Wide,Byte}String::LockBuffer(). Prelude to a vast simplification. There's an additional copy now in one place, so shoot me. BUG=pdfium:144 R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/ee7412f5aef353e5c6f1a64d0e1708ed926869d9 Committed: https://pdfium.googlesource.com/pdfium/+/5a256ad29483eb2b13e6e2c89fe0f77a9103f68f Committed: https://pdfium.googlesource.com/pdfium/+/4fc0d991a47ba92c1d8657b326d2752951ca791a

Patch Set 1 #

Patch Set 2 : Avoid VS compiler issue. #

Total comments: 2

Patch Set 3 : Zerlen #

Patch Set 4 : Reland #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -28 lines) Patch
M core/include/fxcrt/fx_string.h View 2 chunks +0 lines, -4 lines 0 comments Download
M core/src/fpdfdoc/doc_bookmark.cpp View 1 2 2 chunks +13 lines, -6 lines 0 comments Download
M core/src/fxcrt/fx_basic_bstring.cpp View 1 chunk +0 lines, -9 lines 0 comments Download
M core/src/fxcrt/fx_basic_wstring.cpp View 1 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
Tom Sepez
Lei, for review. (Right CL this time).
5 years, 8 months ago (2015-04-24 17:38:04 UTC) #1
Tom Sepez
Actually adding Lei. Lei, for review (Right CL this time).
5 years, 8 months ago (2015-04-24 17:38:40 UTC) #3
Lei Zhang
lgtm
5 years, 7 months ago (2015-04-27 21:59:04 UTC) #4
Tom Sepez
Committed patchset #1 (id:1) manually as ee7412f5aef353e5c6f1a64d0e1708ed926869d9 (presubmit successful).
5 years, 7 months ago (2015-04-27 22:00:09 UTC) #5
Tom Sepez
And its reverted ...
5 years, 7 months ago (2015-04-27 22:12:42 UTC) #6
Tom Sepez
Lei, please re-review, with a nod to the lengths I'll go to ...to avoid saying ...
5 years, 7 months ago (2015-04-27 22:34:18 UTC) #7
Lei Zhang
https://codereview.chromium.org/1053613004/diff/20001/core/src/fpdfdoc/doc_bookmark.cpp File core/src/fpdfdoc/doc_bookmark.cpp (right): https://codereview.chromium.org/1053613004/diff/20001/core/src/fpdfdoc/doc_bookmark.cpp#newcode65 core/src/fpdfdoc/doc_bookmark.cpp:65: FX_WCHAR* buf = &vec->front(); Can we first check |len| ...
5 years, 7 months ago (2015-04-27 22:50:46 UTC) #8
Tom Sepez
Good catch. https://codereview.chromium.org/1053613004/diff/20001/core/src/fpdfdoc/doc_bookmark.cpp File core/src/fpdfdoc/doc_bookmark.cpp (right): https://codereview.chromium.org/1053613004/diff/20001/core/src/fpdfdoc/doc_bookmark.cpp#newcode65 core/src/fpdfdoc/doc_bookmark.cpp:65: FX_WCHAR* buf = &vec->front(); On 2015/04/27 22:50:46, ...
5 years, 7 months ago (2015-04-28 19:02:20 UTC) #9
Lei Zhang
lgtm
5 years, 7 months ago (2015-04-28 19:14:44 UTC) #10
Tom Sepez
Committed patchset #3 (id:40001) manually as 5a256ad29483eb2b13e6e2c89fe0f77a9103f68f (presubmit successful).
5 years, 7 months ago (2015-04-28 19:25:42 UTC) #11
Tom Sepez
Sheesh ... failed JS tests.
5 years, 7 months ago (2015-04-28 19:38:14 UTC) #12
Tom Sepez
5 years, 7 months ago (2015-04-28 21:10:34 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
4fc0d991a47ba92c1d8657b326d2752951ca791a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698