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

Unified Diff: chrome/browser/ui/app_list/app_context_menu.cc

Issue 359493005: Extend contextMenus API to support browser/page actions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed AppendExtensionItemsImpl, minor cleanup, comments Created 6 years, 5 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
Index: chrome/browser/ui/app_list/app_context_menu.cc
diff --git a/chrome/browser/ui/app_list/app_context_menu.cc b/chrome/browser/ui/app_list/app_context_menu.cc
index 5c454e26a82bbafe693d3979618c79298868aca8..f47ca617106270e11b28d285a7e1bccd99da8fee 100644
--- a/chrome/browser/ui/app_list/app_context_menu.cc
+++ b/chrome/browser/ui/app_list/app_context_menu.cc
@@ -153,7 +153,10 @@ ui::MenuModel* AppContextMenu::GetMenuModel() {
// Assign unique IDs to commands added by the app itself.
int index = USE_LAUNCH_TYPE_COMMAND_END;
extension_menu_items_->AppendExtensionItems(
- extensions::MenuItem::ExtensionKey(app_id_), base::string16(), &index);
+ extensions::MenuItem::ExtensionKey(app_id_),
+ base::string16(),
+ &index,
+ true); // include_icons
Yoyo Zhou 2014/07/15 23:35:00 ditto
gpdavis 2014/07/16 01:11:10 Done.
// If at least 1 item was added, add another separator after the list.
if (index > USE_LAUNCH_TYPE_COMMAND_END)

Powered by Google App Engine
This is Rietveld 408576698