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

Issue 2062113002: Cleanup ownership in CXFA_ScriptContext. (Closed)

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

Description

Cleanup ownership in CXFA_ScriptContext. This Cl substitutes some unique_ptrs for various bits of manual memory management in CXFA_ScriptContext. Committed: https://pdfium.googlesource.com/pdfium/+/ee2abec93f22bd10522181dc0362f24d389fc66b

Patch Set 1 : fix #

Total comments: 9

Patch Set 2 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -90 lines) Patch
M xfa/fxfa/parser/xfa_object_imp.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.h View 1 4 chunks +9 lines, -7 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.cpp View 1 16 chunks +62 lines, -82 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
dsinclair
PTAL. https://codereview.chromium.org/2062113002/diff/20001/xfa/fxfa/parser/xfa_script_imp.cpp File xfa/fxfa/parser/xfa_script_imp.cpp (right): https://codereview.chromium.org/2062113002/diff/20001/xfa/fxfa/parser/xfa_script_imp.cpp#newcode102 xfa/fxfa/parser/xfa_script_imp.cpp:102: delete ToThisProxy(pVariableContext->GetGlobalObject().get(), nullptr); Don't think we can easily ...
4 years, 6 months ago (2016-06-14 19:01:35 UTC) #3
Lei Zhang
https://codereview.chromium.org/2062113002/diff/20001/xfa/fxfa/parser/xfa_script_imp.cpp File xfa/fxfa/parser/xfa_script_imp.cpp (right): https://codereview.chromium.org/2062113002/diff/20001/xfa/fxfa/parser/xfa_script_imp.cpp#newcode84 xfa/fxfa/parser/xfa_script_imp.cpp:84: m_JsContext(nullptr), No need to initialize an unique_ptr. Ditto below. ...
4 years, 6 months ago (2016-06-14 19:29:13 UTC) #5
dsinclair
https://codereview.chromium.org/2062113002/diff/20001/xfa/fxfa/parser/xfa_script_imp.cpp File xfa/fxfa/parser/xfa_script_imp.cpp (right): https://codereview.chromium.org/2062113002/diff/20001/xfa/fxfa/parser/xfa_script_imp.cpp#newcode84 xfa/fxfa/parser/xfa_script_imp.cpp:84: m_JsContext(nullptr), On 2016/06/14 19:29:12, Lei Zhang wrote: > No ...
4 years, 6 months ago (2016-06-14 20:19:43 UTC) #6
Lei Zhang
lgtm
4 years, 6 months ago (2016-06-14 20:24:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062113002/40001
4 years, 6 months ago (2016-06-14 20:26:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062113002/40001
4 years, 6 months ago (2016-06-14 21:07:26 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 21:36:56 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/ee2abec93f22bd10522181dc0362f24d389f...

Powered by Google App Engine
This is Rietveld 408576698