From c64f60a1da41afc0f989870366e539ed848368e8 Mon Sep 17 00:00:00 2001 From: Blaise Date: Wed, 3 Jan 2024 15:20:27 -0600 Subject: [PATCH] Remove side panel entry in All Bookmarks --- .../ungoogled-chromium/remove-uneeded-ui.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch b/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch index 55f52a066b..6044886a0b 100644 --- a/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch +++ b/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch @@ -18,6 +18,7 @@ # Safety Check entry on the side menu on the settings page # the (?) learn more button on many settings pages # the 'Vist Chrome Web Store' entry in the extensions section of the main menu +# the side panel entry in All Bookmarks # unneeded elements from the profile menu # the 'Learn more' link on crashed tabs # disable LiveCaption flag by default, this also removes non-functional Live Caption checkbox from media controls @@ -336,6 +337,22 @@ } } +--- a/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc ++++ b/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc +@@ -637,13 +637,6 @@ void BookmarkMenuDelegate::BuildMenu(con + kBookmarksSidePanelIcon, ui::kColorMenuIcon, + ui::SimpleMenuModel::kDefaultIconSize) + : ui::ImageModel(); +- menu->AppendMenuItem( +- IDC_SHOW_BOOKMARK_SIDE_PANEL, +- l10n_util::GetStringUTF16(IDS_BOOKMARKS_ALL_BOOKMARKS_OPEN_SIDE_PANEL), +- bookmarks_side_panel_icon); +- if (!parent->children().empty()) { +- menu->AppendSeparator(); +- } + } + const ui::ImageModel folder_icon = chrome::GetBookmarkFolderIcon( + chrome::BookmarkFolderIconType::kNormal, ui::kColorMenuIcon); --- a/chrome/browser/ui/views/profiles/profile_menu_view.cc +++ b/chrome/browser/ui/views/profiles/profile_menu_view.cc @@ -172,6 +172,7 @@ void ProfileMenuView::BuildMenu() {