Add OnAppRegistryCacheWillBeDestroyed method
This allows cleanly breaking observer-observee reference cycles, regardless of which object is destroyed first. Prior to this commit, the implicit assumption was that the observer was always destroyed first. A follow-up commit will introduce some tests that create and destroy AppRegistryCache objects. BUG=826982 Change-Id: I94966439001ba310b5ee824ff62e72a533887c0d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1629892 Commit-Queue: Nigel Tao <nigeltao@chromium.org> Reviewed-by:Dominick Ng <dominickn@chromium.org> Reviewed-by:
Lucas Tenório <ltenorio@chromium.org> Reviewed-by:
Yury Khmel <khmel@chromium.org> Cr-Commit-Position: refs/heads/master@{#664095}
Showing
Please register or sign in to comment