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

Issue 1876203002: Pass CFX_ByteStrings rather than raw ptrs to JS_GlobalData. (Closed)

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

Description

Pass CFX_ByteStrings rather than raw ptrs to JS_GlobalData. Helps to avoid re-allocating strings when the caller already has one allocated. Committed: https://pdfium.googlesource.com/pdfium/+/24a48881c5407651a58cfd6547ac9b6a9823a63e

Patch Set 1 #

Total comments: 4

Patch Set 2 : Pass by const ref #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -43 lines) Patch
M fpdfsdk/javascript/JS_GlobalData.h View 1 2 chunks +10 lines, -11 lines 0 comments Download
M fpdfsdk/javascript/JS_GlobalData.cpp View 1 11 chunks +27 lines, -30 lines 0 comments Download
M fpdfsdk/javascript/global.h View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/global.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
Tom Sepez
Lei, for review. https://codereview.chromium.org/1876203002/diff/1/fpdfsdk/javascript/JS_GlobalData.cpp File fpdfsdk/javascript/JS_GlobalData.cpp (right): https://codereview.chromium.org/1876203002/diff/1/fpdfsdk/javascript/JS_GlobalData.cpp#newcode98 fpdfsdk/javascript/JS_GlobalData.cpp:98: sPropName->TrimLeft(); Note: these are now no-touch ...
4 years, 8 months ago (2016-04-11 17:51:06 UTC) #2
Lei Zhang
https://codereview.chromium.org/1876203002/diff/1/fpdfsdk/javascript/JS_GlobalData.h File fpdfsdk/javascript/JS_GlobalData.h (right): https://codereview.chromium.org/1876203002/diff/1/fpdfsdk/javascript/JS_GlobalData.h#newcode67 fpdfsdk/javascript/JS_GlobalData.h:67: void SetGlobalVariableNumber(CFX_ByteString propname, double dData); On 2016/04/11 17:51:06, Tom ...
4 years, 8 months ago (2016-04-11 19:27:48 UTC) #3
Tom Sepez
https://codereview.chromium.org/1876203002/diff/1/fpdfsdk/javascript/JS_GlobalData.h File fpdfsdk/javascript/JS_GlobalData.h (right): https://codereview.chromium.org/1876203002/diff/1/fpdfsdk/javascript/JS_GlobalData.h#newcode67 fpdfsdk/javascript/JS_GlobalData.h:67: void SetGlobalVariableNumber(CFX_ByteString propname, double dData); On 2016/04/11 19:27:48, Lei ...
4 years, 8 months ago (2016-04-11 20:29:54 UTC) #4
Lei Zhang
lgtm
4 years, 8 months ago (2016-04-11 21:41:50 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876203002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876203002/20001
4 years, 8 months ago (2016-04-11 21:48:38 UTC) #7
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 22:18:45 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/24a48881c5407651a58cfd6547ac9b6a9823...

Powered by Google App Engine
This is Rietveld 408576698