Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1086)

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_model.h

Issue 1005873012: Makes bookmark menu lazily create menus and removes limits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/wrench_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/wrench_menu_model.h
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.h b/chrome/browser/ui/toolbar/wrench_menu_model.h
index da4c431dd556b5c5bbd219f2fd6971a21da23625..3d7490932d5c6299b7d751d6dde32df07c971e2f 100644
--- a/chrome/browser/ui/toolbar/wrench_menu_model.h
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.h
@@ -130,8 +130,11 @@ class WrenchMenuModel : public ui::SimpleMenuModel,
public:
// Range of command ID's to use for the items representing bookmarks in the
// bookmark menu, must not overlap with that for recent tabs submenu.
- static const int kMinBookmarkCommandId = 1;
- static const int kMaxBookmarkCommandId = 1000;
+ // NOTE: this starts at 0xF000 as Chrome does not assign any ids in that
+ // range. ids >= 0xF000 are problematic if exposed to Windows, but these
+ // ids aren't exposed to the system.
Peter Kasting 2015/03/25 21:31:29 Is it possible to define these values in chrome/ap
sky 2015/03/30 20:46:35 Done.
+ static const int kMinBookmarkCommandId = 0xF000;
+ static const int kMaxBookmarkCommandId = 0xF000 + 10000;
Peter Kasting 2015/03/25 21:31:29 Can this use kMinBookmarkCommandId instead of repe
sky 2015/03/30 20:46:35 I've nuked the defines here entirely.
// Range of command ID's to use for the items in the recent tabs submenu, must
// not overlap with that for bookmarks.
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/wrench_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698