Commit 451cb97a authored by Charlene Yan's avatar Charlene Yan Committed by Commit Bot

[Tab Groups] Disallow stacked tabs with tab groups.

Bug: 1047750
Change-Id: Id526464fe3dc5062105e969ac0885b62549eaa72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2062904
Commit-Queue: Charlene Yan <cyan@chromium.org>
Reviewed-by: default avatarPeter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#742376}
parent 3b8d2c09
......@@ -3334,7 +3334,14 @@ Tab* TabStrip::FindTabHitByPoint(const gfx::Point& point) {
}
void TabStrip::SwapLayoutIfNecessary() {
bool needs_touch = NeedsTouchLayout();
// TODO(crbug.com/1053707): Tab groups is disabled with stacked tabs to
// prevent crashes during development. This will not impact users unless tab
// groups are manually enabled.
// Tab groups should only be rolled out on devices where
// features::kWebUITabStrip is enabled which is mutually exclusive with
// stacked tabs.
bool needs_touch =
NeedsTouchLayout() && !base::FeatureList::IsEnabled(features::kTabGroups);
bool using_touch = touch_layout_ != nullptr;
if (needs_touch == using_touch)
return;
......
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