Skip to content

Instantly share code, notes, and snippets.

@gg7
Last active August 16, 2022 12:26
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save gg7/8172378 to your computer and use it in GitHub Desktop.
Save gg7/8172378 to your computer and use it in GitHub Desktop.
Increase the number of recently shown folders (5) in chromium when adding/modifying a bookmark
diff --git a/chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc b/chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc
index 88df062..5adbc2e 100644
--- a/chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc
+++ b/chrome/browser/ui/bookmarks/recently_used_folders_combo_model.cc
@@ -14,7 +14,7 @@
namespace {
// Max number of most recently used folders.
-const size_t kMaxMRUFolders = 5;
+const size_t kMaxMRUFolders = 20;
} // namespace
@Qkhahh
Copy link

Qkhahh commented Apr 22, 2018

I now know that "github" works since I asked about this some time ago. :)
Years!
Casual user, how would I use this? Additionally my original question was also about 'pinning' chosen bookmarks of the now increased "bookmark(s) added" feature. You know, the most used ones stay available not to be moved down and away by a large series of "new folder" bookmarks created.
Think this could also be coded?

Thanks for your reply and your fix.

@varenc
Copy link

varenc commented Aug 3, 2022

Casual user, how would I use this?

Sadly this really isn't for the casual user. Instructions here. I wish the constant was configurable but it's hard coded. To make this one tiny change you have to re-compile all of Chromium. And the result will be a custom version of "Chromium" not "Google Chrome". Chromium lacks a few special things like support for viewing WideVine DRM content which is necessary to use any streaming service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment