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

Issue 2013483003: Remove CFX_PrivateData from CPDF_ModuleMgr (Closed)

Created:
4 years, 7 months ago by Tom Sepez
Modified:
4 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
Project:
pdfium
Visibility:
Public.

Description

Remove CFX_PrivateData from CPDF_ModuleMgr Its only used to store one object, so replace it with a unique_ptr to a class with a virtual dtor. Rename the prototypical class with virtual dtor from CFX_DestructObject to CFX_Deletable. Rename the fx_basic_module.cpp to cfx_modulemgr.cpp to match the one class in it. Committed: https://pdfium.googlesource.com/pdfium/+/ddffb57cf9763e2612e9f6f5730f334691adb692

Patch Set 1 #

Total comments: 6

Patch Set 2 : Pass unique ptr, fix sort order. #

Total comments: 3

Patch Set 3 : Re-order two lines in .gyp file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -121 lines) Patch
M BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
A + core/fpdfapi/cpdf_modulemgr.cpp View 1 chunk +0 lines, -10 lines 0 comments Download
D core/fpdfapi/fpdf_basic_module.cpp View 1 chunk +0 lines, -71 lines 0 comments Download
M core/fpdfapi/include/cpdf_modulemgr.h View 1 3 chunks +9 lines, -10 lines 0 comments Download
M core/fxcodec/codec/fx_codec_jbig.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M core/fxcrt/fx_basic_util.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M core/fxcrt/include/fx_basic.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fxcrt/include/fx_memory.h View 1 chunk +2 lines, -2 lines 0 comments Download
M fpdfsdk/fpdf_ext.cpp View 1 4 chunks +7 lines, -14 lines 0 comments Download
M pdfium.gyp View 1 2 4 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
Tom Sepez
Lei, for review.
4 years, 7 months ago (2016-05-24 21:25:42 UTC) #2
Lei Zhang
https://codereview.chromium.org/2013483003/diff/1/core/fpdfapi/include/cpdf_modulemgr.h File core/fpdfapi/include/cpdf_modulemgr.h (right): https://codereview.chromium.org/2013483003/diff/1/core/fpdfapi/include/cpdf_modulemgr.h#newcode36 core/fpdfapi/include/cpdf_modulemgr.h:36: // Takes ownership of |pAdapter|. There's only 1 caller ...
4 years, 7 months ago (2016-05-24 21:34:58 UTC) #4
Tom Sepez
https://codereview.chromium.org/2013483003/diff/1/core/fpdfapi/include/cpdf_modulemgr.h File core/fpdfapi/include/cpdf_modulemgr.h (right): https://codereview.chromium.org/2013483003/diff/1/core/fpdfapi/include/cpdf_modulemgr.h#newcode36 core/fpdfapi/include/cpdf_modulemgr.h:36: // Takes ownership of |pAdapter|. On 2016/05/24 21:34:58, Lei ...
4 years, 7 months ago (2016-05-24 21:56:56 UTC) #5
Lei Zhang
https://codereview.chromium.org/2013483003/diff/20001/pdfium.gyp File pdfium.gyp (left): https://codereview.chromium.org/2013483003/diff/20001/pdfium.gyp#oldcode385 pdfium.gyp:385: "core/fpdfapi/fpdf_page/cpdf_pagemodule.cpp", Doh. https://codereview.chromium.org/2013483003/diff/20001/pdfium.gyp File pdfium.gyp (right): https://codereview.chromium.org/2013483003/diff/20001/pdfium.gyp#newcode312 pdfium.gyp:312: 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp', ...
4 years, 7 months ago (2016-05-24 22:07:50 UTC) #6
Lei Zhang
Otherwise lgtm
4 years, 7 months ago (2016-05-24 22:08:13 UTC) #7
Tom Sepez
https://codereview.chromium.org/2013483003/diff/20001/pdfium.gyp File pdfium.gyp (right): https://codereview.chromium.org/2013483003/diff/20001/pdfium.gyp#newcode312 pdfium.gyp:312: 'core/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp', On 2016/05/24 22:07:50, Lei Zhang wrote: > Not ...
4 years, 7 months ago (2016-05-24 23:08:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2013483003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2013483003/40001
4 years, 7 months ago (2016-05-24 23:10:16 UTC) #11
Lei Zhang
On 2016/05/24 23:08:58, Tom Sepez wrote: > https://codereview.chromium.org/2013483003/diff/20001/pdfium.gyp > File pdfium.gyp (right): > > https://codereview.chromium.org/2013483003/diff/20001/pdfium.gyp#newcode312 ...
4 years, 7 months ago (2016-05-24 23:16:03 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 23:20:36 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/ddffb57cf9763e2612e9f6f5730f334691ad...

Powered by Google App Engine
This is Rietveld 408576698