|
@@ -0,0 +1,24 @@
|
|
|
+## This patch removes the tab search button from the tab strip.
|
|
|
+
|
|
|
+--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
|
|
++++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
|
|
|
+@@ -258,19 +258,6 @@ TabStripRegionView::TabStripRegionView(s
|
|
|
+ tip_marquee_view_->SetProperty(views::kCrossAxisAlignmentKey,
|
|
|
+ views::LayoutAlignment::kCenter);
|
|
|
+ tip_marquee_view_->SetProperty(views::kMarginsKey, control_padding);
|
|
|
+-
|
|
|
+- const Browser* browser = tab_strip_->controller()->GetBrowser();
|
|
|
+- if (browser && browser->is_type_normal()) {
|
|
|
+- auto tab_search_button = std::make_unique<TabSearchButton>(tab_strip_);
|
|
|
+- tab_search_button->SetTooltipText(
|
|
|
+- l10n_util::GetStringUTF16(IDS_TOOLTIP_TAB_SEARCH));
|
|
|
+- tab_search_button->SetAccessibleName(
|
|
|
+- l10n_util::GetStringUTF16(IDS_ACCNAME_TAB_SEARCH));
|
|
|
+- tab_search_button->SetProperty(views::kCrossAxisAlignmentKey,
|
|
|
+- views::LayoutAlignment::kCenter);
|
|
|
+- tab_search_button_ = AddChildView(std::move(tab_search_button));
|
|
|
+- tab_search_button_->SetProperty(views::kMarginsKey, control_padding);
|
|
|
+- }
|
|
|
+ }
|
|
|
+
|
|
|
+ TabStripRegionView::~TabStripRegionView() = default;
|