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

Issue 2262473002: Introduce pdfium::FakeUniquePtr for keys to sets of unique ptrs. (Closed)

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

Description

Introduce pdfium::FakeUniquePtr for keys to sets of unique ptrs. Committed: https://pdfium.googlesource.com/pdfium/+/a752edfd2ddc4913aeffd31b67f6fdb53e4116ae

Patch Set 1 #

Total comments: 3

Patch Set 2 : unordered_set #

Total comments: 6

Patch Set 3 : Rename to NonUniquePtr, fix description #

Patch Set 4 : FakeUniquePtr #

Patch Set 5 : assert breaks gyp build #

Patch Set 6 : Poiner is spelt with a "t" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -11 lines) Patch
M fpdfsdk/javascript/app.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M fpdfsdk/javascript/app.cpp View 1 2 3 4 4 chunks +8 lines, -9 lines 0 comments Download
M third_party/base/stl_util.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
Tom Sepez
CL to see if this compiles everywhere.
4 years, 4 months ago (2016-08-18 19:18:53 UTC) #4
Lei Zhang
lgtm https://codereview.chromium.org/2262473002/diff/1/fpdfsdk/javascript/app.h File fpdfsdk/javascript/app.h (right): https://codereview.chromium.org/2262473002/diff/1/fpdfsdk/javascript/app.h#newcode11 fpdfsdk/javascript/app.h:11: #include <set> Can we go with unordered_set?
4 years, 4 months ago (2016-08-19 05:53:12 UTC) #7
Tom Sepez
@brucedawson - can you think of a reason why this might be evil?
4 years, 4 months ago (2016-08-19 17:17:03 UTC) #8
Tom Sepez
https://codereview.chromium.org/2262473002/diff/1/fpdfsdk/javascript/app.h File fpdfsdk/javascript/app.h (right): https://codereview.chromium.org/2262473002/diff/1/fpdfsdk/javascript/app.h#newcode11 fpdfsdk/javascript/app.h:11: #include <set> On 2016/08/19 05:53:12, Lei Zhang wrote: > ...
4 years, 4 months ago (2016-08-19 17:20:52 UTC) #9
brucedawson
It's a bit tricky, but the trickiness is isolated, so probably fine. https://codereview.chromium.org/2262473002/diff/20001/fpdfsdk/javascript/app.cpp File fpdfsdk/javascript/app.cpp ...
4 years, 4 months ago (2016-08-19 20:59:46 UTC) #10
Tom Sepez
https://codereview.chromium.org/2262473002/diff/20001/fpdfsdk/javascript/app.cpp File fpdfsdk/javascript/app.cpp (right): https://codereview.chromium.org/2262473002/diff/20001/fpdfsdk/javascript/app.cpp#newcode628 fpdfsdk/javascript/app.cpp:628: m_Timers.erase(pdfium::LeakPtr<GlobalTimer>(pTimer)); On 2016/08/19 20:59:46, brucedawson wrote: > Can we ...
4 years, 4 months ago (2016-08-19 21:16:43 UTC) #11
brucedawson
> fake_unique_ptr > non_deleting_unique_ptr > > There's a certain humor to NonUniquePtr(), maybe go with ...
4 years, 4 months ago (2016-08-19 21:24:15 UTC) #14
Tom Sepez
4 years, 4 months ago (2016-08-19 21:29:19 UTC) #15
Tom Sepez
And so it shall be.
4 years, 4 months ago (2016-08-19 21:29:59 UTC) #17
brucedawson
lgtm
4 years, 4 months ago (2016-08-19 21:42:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2262473002/100001
4 years, 4 months ago (2016-08-19 21:44:07 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 21:57:45 UTC) #25
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/a752edfd2ddc4913aeffd31b67f6fdb53e41...

Powered by Google App Engine
This is Rietveld 408576698