DescriptionMake WeakContainer safe when weak_nsobject.h is included from ARC code.
Makes base::WeakContainer constructor and destructor non-inline, and
makes the backing variable |object_| unsafe_unretained.
This guarantees that when included from ARC code, the non-ARC version
of implementation for the destructor will be used, and no extra
release calls will be issued.
BUG=None
TEST=None
Review-Url: https://codereview.chromium.org/2943263003
Cr-Commit-Position: refs/heads/master@{#480413}
Committed: https://chromium.googlesource.com/chromium/src/+/18b1184609fbfbe22e773540bc826eb8aa4b5572
Patch Set 1 #
Messages
Total messages: 16 (9 generated)
|