Reland "[Tab Groups] Only create a tab group if it is the second link."
This reverts commit fe104bae53cec7c6c3a12686ce96e244e99a52b0.
Reason for revert: I believe I've wrongly reverted this CL. My apologies. (In the meantime, I've bisected the failing test to be https://chromium-review.googlesource.com/c/chromium/src/+/2580046)
Original change's description:
> Revert "[Tab Groups] Only create a tab group if it is the second link."
>
> This reverts commit 022f012845c06437d0278b7af30defaf05955985.
>
> Reason for revert: It looks like this is breaking TabStripTabListTest.All in https://ci.chromium.org/p/chromium/builders/ci/Linux%20Tests%20%28dbg%29%281%29
>
> First occurrence: https://ci.chromium.org/p/chromium/builders/ci/Linux%20Tests%20%28dbg%29%281%29/93505
>
> Original change's description:
> > [Tab Groups] Only create a tab group if it is the second link.
> >
> > This is merely a heuristic for whether or not to create a tab group
> > based on the opener of the tab next to the current one.
> >
> > Bug: 1128703
> > Change-Id: Iae0ae8db78be0bbe9be2fdacd143c70e1a0d49bc
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2567818
> > Commit-Queue: Charlene Yan <[email protected]>
> > Reviewed-by: Elly Fong-Jones <[email protected]>
> > Reviewed-by: Connie Wan <[email protected]>
> > Cr-Commit-Position: refs/heads/master@{#834915}
>
> [email protected],[email protected],[email protected],[email protected]
>
> Change-Id: Ib7fae0f0d2bfce4eddd9966923b50b3690e0fe24
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 1128703
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580530
> Reviewed-by: Thiemo Nagel <[email protected]>
> Commit-Queue: Thiemo Nagel <[email protected]>
> Cr-Commit-Position: refs/heads/master@{#835150}
[email protected],[email protected],[email protected],[email protected],[email protected]
# Not skipping CQ checks because this is a reland.
Bug: 1128703
Change-Id: I7d3346cdf4fa0deba24d56134a542f13b5fc985e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2582020
Reviewed-by: Thiemo Nagel <[email protected]>
Commit-Queue: Charlene Yan <[email protected]>
Cr-Commit-Position: refs/heads/master@{#835302}
diff --git a/chrome/browser/ui/browser_tabstrip.h b/chrome/browser/ui/browser_tabstrip.h
index c8a5f2e..b965bac 100644
--- a/chrome/browser/ui/browser_tabstrip.h
+++ b/chrome/browser/ui/browser_tabstrip.h
@@ -58,6 +58,9 @@
// applicable.
void ConfigureTabGroupForNavigation(NavigateParams* nav_params);
+// Decides whether or not to create a new tab group.
+bool ShouldAutoCreateGroupForNavigation(NavigateParams* nav_params);
+
} // namespace chrome
#endif // CHROME_BROWSER_UI_BROWSER_TABSTRIP_H_