12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- --- a/chrome/browser/ui/browser_command_controller.cc
- +++ b/chrome/browser/ui/browser_command_controller.cc
- @@ -1224,7 +1224,8 @@ void BrowserCommandController::InitComma
- command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
- normal_window);
-
- - const bool enable_tab_search_commands = browser_->is_type_normal();
- + const bool enable_tab_search_commands = browser_->is_type_normal() &&
- + !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button");
- command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH,
- enable_tab_search_commands);
- command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE,
- --- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
- +++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
- @@ -4,6 +4,7 @@
-
- #include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
-
- +#include "base/command_line.h"
- #include "base/functional/bind.h"
- #include "base/strings/utf_string_conversions.h"
- #include "build/build_config.h"
- @@ -143,7 +144,8 @@ TabStripRegionView::TabStripRegionView(s
- return;
- }
-
- - if (browser->is_type_normal()) {
- + if (browser->is_type_normal() &&
- + !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
- auto tab_search_button = std::make_unique<TabSearchButton>(tab_strip_);
- tab_search_button->SetTooltipText(
- l10n_util::GetStringUTF16(IDS_TOOLTIP_TAB_SEARCH));
- --- a/chrome/browser/ungoogled_flag_entries.h
- +++ b/chrome/browser/ungoogled_flag_entries.h
- @@ -60,4 +60,8 @@
- "Clear data on exit",
- "Clears all browsing data on exit. ungoogled-chromium flag",
- kOsDesktop, FEATURE_VALUE_TYPE(browsing_data::features::kClearDataOnExit)},
- + {"remove-tabsearch-button",
- + "Remove Tabsearch Button",
- + "Removes the tabsearch button from the tabstrip. ungoogled-chromium flag",
- + kOsDesktop, SINGLE_VALUE_TYPE("remove-tabsearch-button")},
- #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
|