• tapted's avatar
    Observe chrome::NOTIFICATION_APP_TERMINATING in Chrome's AppListViewDelegate · ffbd8b95
    tapted authored
    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
    
    Review URL: https://codereview.chromium.org/559823002
    
    Cr-Commit-Position: refs/heads/master@{#295194}
    ffbd8b95
signin_manager_factory.cc 4.98 KB