• Bret Sepulveda's avatar
    Add new test ExtensionsMenuViewUnitTest.PinnedExtensionAppearsInToolbar. · 0a7f4e29
    Bret Sepulveda authored
    This patch adds a test that pins an extension and verifies it appears in
    the toolbar. In order to call IsActionVisibleOnToolbar, the visibility
    of ExtensionsContainer overrides on ExtensionsToolbarContainer are moved
    to public to match the superclass.
    
    This patch also changes ExtensionsMenuViewUnitTest from a
    BrowserWithTestWindowTest to a TestWithBrowserView. The pin button
    requires the bubble to have a Widget before it can be clicked on, and
    the most straightforward way to accomplish this is to have a
    BrowserView to wire everything up correctly.
    
    Bug: 984654
    Change-Id: I5f81fd66567d09634a8c54a1cba26d9c963ec6d7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1917238
    Commit-Queue: Bret Sepulveda <bsep@chromium.org>
    Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#716953}
    0a7f4e29
extensions_toolbar_container.h 7.44 KB