Move 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}
CrOS-Libchrome-Original-Commit: d2a722f6bd23eaf0f791b19378c639dce6b3c2c0
2 files changed