DescriptionMove base::WeakPtrFactory's ctor and dtor out-of-line
They already invoke the out-of-line ctor/dtor for WeakReferenceOwner, so
inlining the bit that sets up ptr_ is not a performance improvement and costs
binary size.
Since WeakPtrFactory is a template, move the members into a non-template
base-class with the ctor/dtor out-of-line.
This is expected to reduce the binary size by ~4KB on Android and 24KB on x64 Linux.
BUG=728324
Review-Url: https://codereview.chromium.org/2959203002
Cr-Commit-Position: refs/heads/master@{#483139}
Committed: https://chromium.googlesource.com/chromium/src/+/d2a722f6bd23eaf0f791b19378c639dce6b3c2c0
Patch Set 1 #
Messages
Total messages: 13 (9 generated)
|