• Peter Boström's avatar
    Add extensions container to ToolbarButtonProvider · 236f912c
    Peter Boström authored
    Replaces GetToolbarActionViewForId with GetExtensionsToolbarContainer to
    be used directly (with GetViewForId). This is intended to be used to pop
    out and show bubbles which cannot be added to the ExtensionsContainer
    interface as it is defined outside of Views.
    
    This also implements GetDefaultExtensionDialogAnchorView inside
    WebAppFrameToolbarView and updates BrowserView::GetExtensionsContainer
    to work with ToolbarButtonProvider.
    
    These two combined fix a crash when uninstalling an extension inside a
    web-app window.
    
    Bug: chromium:1021905
    Change-Id: I9b9d23adca85600212846fa0fdb8db9d43dcf6ba
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1986305Reviewed-by: default avatarCharlene Yan <cyan@chromium.org>
    Commit-Queue: Peter Boström <pbos@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#728281}
    236f912c
browser_view.cc 122 KB