Commit c6af8c76 authored by Thomas Lukaszewicz's avatar Thomas Lukaszewicz Committed by Commit Bot

Tab Search: Prevent Tab Search creation when WebUITabStrip present

Bug: 1099917
Change-Id: If1ccecfb3f379133b24ce68d916c5cedb90fc521
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2421840Reviewed-by: default avatarCollin Baker <collinbaker@chromium.org>
Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809350}
parent 45930023
...@@ -2635,6 +2635,12 @@ const views::Widget* BrowserView::GetWidget() const { ...@@ -2635,6 +2635,12 @@ const views::Widget* BrowserView::GetWidget() const {
} }
void BrowserView::CreateTabSearchBubble() { void BrowserView::CreateTabSearchBubble() {
// Do not spawn the bubble if using the WebUITabStrip.
#if BUILDFLAG(ENABLE_WEBUI_TAB_STRIP)
if (WebUITabStripContainerView::UseTouchableTabStrip(browser_.get()))
return;
#endif // BUILDFLAG(ENABLE_WEBUI_TAB_STRIP)
// If kTabSearchFixedEntrypoint is enabled then the tab search button is // If kTabSearchFixedEntrypoint is enabled then the tab search button is
// defined in the tab strip region view. // defined in the tab strip region view.
// TODO(tluk): Consolidate these once Tab Scrolling successfully moves the // TODO(tluk): Consolidate these once Tab Scrolling successfully moves the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment