Chromium Code Reviews
DescriptionMake Supplement and Supplementable live and die together
Conceptually a Supplement object and a Supplementable object are one object.
Hence the two objects should live and die together.
However, currently Supplement can die before Supplementable dies.
This is because Supplement doesn't have a strong reference to Supplementable.
This CL adds the strong reference.
The real intention of this CL is to introduce Supplement::host().
This is necessary to deprecate LocalFrameLifecycleObserver.
(To deprecate LocalFrameLifecycleObserver, Supplement<LocalFrame> needs to provide
a method that returns a host frame instead of LocalFrameLifecycleObserver.)
BUG=
Patch Set 1 #
Total comments: 3
Messages
Total messages: 6 (1 generated)
|
|||||||||||||||||||