Delete group menu button from TabGroupHeader.

The current plan is to use a right-click context menu for the first
pass, which means the current group menu button is no longer necessary.
This also fixes an issue where browser tests could not tear down if a
group was active, because the group menu button didn't have the correct
accessibility settings.

Bug: 905491, 946263
Change-Id: I3f60f3d23686021bd777c45913930158578f2d25
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1621245
Reviewed-by: Taylor Bergquist <tbergquist@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661510}
diff --git a/chrome/browser/ui/browser_browsertest.cc b/chrome/browser/ui/browser_browsertest.cc
index 9db56de..946ccf1 100644
--- a/chrome/browser/ui/browser_browsertest.cc
+++ b/chrome/browser/ui/browser_browsertest.cc
@@ -826,9 +826,6 @@
   // It should have inherited the tab group from the first tab.
   EXPECT_EQ(browser()->tab_strip_model()->GetTabGroupForTab(0),
             browser()->tab_strip_model()->GetTabGroupForTab(1));
-
-  // TODO (946263): Remove this teardown once the crash it prevents is fixed.
-  model->RemoveFromGroup({0, 1});
 }
 
 // BeforeUnloadAtQuitWithTwoWindows is a regression test for
diff --git a/chrome/browser/ui/views/tabs/tab_group_header.cc b/chrome/browser/ui/views/tabs/tab_group_header.cc
index 9e24788..a150b85 100644
--- a/chrome/browser/ui/views/tabs/tab_group_header.cc
+++ b/chrome/browser/ui/views/tabs/tab_group_header.cc
@@ -8,7 +8,6 @@
 #include <utility>
 
 #include "base/strings/utf_string_conversions.h"
-#include "chrome/app/vector_icons/vector_icons.h"
 #include "chrome/browser/ui/layout_constants.h"
 #include "chrome/browser/ui/tabs/tab_group_data.h"
 #include "chrome/browser/ui/tabs/tab_style.h"
@@ -18,8 +17,6 @@
 #include "ui/gfx/canvas.h"
 #include "ui/gfx/geometry/insets.h"
 #include "ui/views/border.h"
-#include "ui/views/controls/button/image_button.h"
-#include "ui/views/controls/button/image_button_factory.h"
 #include "ui/views/controls/label.h"
 #include "ui/views/layout/flex_layout.h"
 #include "ui/views/layout/flex_layout_types.h"
@@ -47,10 +44,6 @@
                          views::FlexSpecification::ForSizeRule(
                              views::MinimumFlexSizeRule::kScaleToZero,
                              views::MaximumFlexSizeRule::kUnbounded));
-
-  auto group_menu_button = views::CreateVectorImageButton(/*listener*/ nullptr);
-  views::SetImageFromVectorIcon(group_menu_button.get(), kBrowserToolsIcon);
-  AddChildView(std::move(group_menu_button));
 }
 
 void TabGroupHeader::OnPaint(gfx::Canvas* canvas) {