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

Issue 2583093003: Add CFX_RetainPtr Leak() and Unleak() methods (Closed)

Created:
4 years ago by Tom Sepez
Modified:
3 years, 11 months ago
Reviewers:
Lei Zhang, dsinclair, Wei Li, npm
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Add CFX_RetainPtr Leak() and Unleak() methods Required to pass pointers across C-APIs. Need this to clean up CPDFXFA_Page and retain ptrs. Review-Url: https://codereview.chromium.org/2583093003 Committed: https://pdfium.googlesource.com/pdfium/+/4741b291f462c0c4a5de4abf1653c3b3c87b613a

Patch Set 1 #

Patch Set 2 : virtualize CFX_Observable::Observer #

Patch Set 3 : Pass this to OnDestroy #

Patch Set 4 : Reduce scope of change #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M core/fxcrt/cfx_retain_ptr.h View 1 1 chunk +4 lines, -0 lines 1 comment Download
M core/fxcrt/cfx_retain_ptr_unittest.cpp View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
Tom Sepez
Anyone around?
4 years ago (2016-12-20 00:23:46 UTC) #10
Wei Li
https://codereview.chromium.org/2583093003/diff/60001/core/fxcrt/cfx_retain_ptr.h File core/fxcrt/cfx_retain_ptr.h (right): https://codereview.chromium.org/2583093003/diff/60001/core/fxcrt/cfx_retain_ptr.h#newcode42 core/fxcrt/cfx_retain_ptr.h:42: void Unleak(T* ptr) { m_pObj.reset(ptr); } I don't quite ...
3 years, 11 months ago (2016-12-28 19:35:05 UTC) #14
Tom Sepez
On 2016/12/28 19:35:05, Wei Li wrote: > https://codereview.chromium.org/2583093003/diff/60001/core/fxcrt/cfx_retain_ptr.h > File core/fxcrt/cfx_retain_ptr.h (right): > > https://codereview.chromium.org/2583093003/diff/60001/core/fxcrt/cfx_retain_ptr.h#newcode42 ...
3 years, 11 months ago (2017-01-03 20:13:24 UTC) #15
Wei Li
lgtm for temp references
3 years, 11 months ago (2017-01-03 23:08:59 UTC) #16
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/2583093003/60001
3 years, 11 months ago (2017-01-03 23:39:39 UTC) #18
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 23:58:37 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/4741b291f462c0c4a5de4abf1653c3b3c87b...

Powered by Google App Engine
This is Rietveld 408576698