DescriptionObserve chrome::NOTIFICATION_APP_TERMINATING in Chrome's AppListViewDelegate
This allows custom launcher pages to be torn down in response to this
notification in the same way that regular packaged app windows are.
Currently these WebContents are torn down later, by
Widget::CloseAllSecondaryWidgets(), but this relies on the WebContents
lifetime being tied to a Widget.
Observing NOTIFICATION_APP_TERMINATING also allows us to explore
decoupling the AppListViewDelegate from the AppListView lifetime, and
remove some special code on Mac to deal with updating the profile
switcher (since the AppListViewDelegate is owned by a leaky singleton
there).
BUG=403647
Committed: https://crrev.com/ffbd8b951add65d1d610b25df7611861fd133cb2
Cr-Commit-Position: refs/heads/master@{#295194}
Patch Set 1 #Patch Set 2 : Keep SigninManagerFactory non-Leaky #Patch Set 3 : clear scoped observer too #
Total comments: 5
Patch Set 4 : Update comment #
Messages
Total messages: 16 (5 generated)
|