Wrap PaymentInstrument in a GarbageCollected class before passing to WTF::Bind
If you pass a placement only object to WTF::Bind, the Trace method will not be called. It can result in the on-heap objects referenced from the object, collected prematurely. In this case the backing for PaymentInstrument::icons_ had this problem. In this CL we wrap the PaymentInstrument in a GarbageCollected class so we can use a Persistent on it. Bug: 869887 Change-Id: I2ae75c3652f52a898dac422c2c867c388d170f88 Reviewed-on: https://chromium-review.googlesource.com/1158668 Commit-Queue: Keishi Hattori <keishi@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Reviewed-by:
Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#580435}
Showing
Please register or sign in to comment