Browse Source

Remove side panel entry in All Bookmarks

Blaise 3 months ago
parent
commit
c64f60a1da
1 changed files with 17 additions and 0 deletions
  1. 17 0
      patches/extra/ungoogled-chromium/remove-uneeded-ui.patch

+ 17 - 0
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() {