Supplement should have a Member to the corresponding Supplementable object
Currently a lot of Supplement objects are observing ContextLifecycleObservers because they cannot access the corresponding Supplementable object, which is silly. This CL adds a strong reference from a Supplement object to the corresponding Supplementable object. That way we can remove a bunch of ContextLifecycleObservers from Supplement objects in follow-up CLs. MSVC requires to include X.h when inheriting from Supplement<X>. This CL adds the necessary include statements. BUG=610176 Review-Url: https://codereview.chromium.org/2606643002 Cr-Commit-Position: refs/heads/master@{#440733}
Showing
Please register or sign in to comment