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

Unified Diff: chrome/browser/ui/views/action_box_menu.cc

Issue 10874040: Activated send-to-mobile and bookmark in action box for Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Answered review comments. Created 8 years, 4 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 | « chrome/browser/ui/toolbar/action_box_menu_model.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/action_box_menu.cc
diff --git a/chrome/browser/ui/views/action_box_menu.cc b/chrome/browser/ui/views/action_box_menu.cc
index 776235c52abc9edcfcf4f049d46e6ad69bac66a9..3909591838d20bff38d89d949bbf43df9eec9dd2 100644
--- a/chrome/browser/ui/views/action_box_menu.cc
+++ b/chrome/browser/ui/views/action_box_menu.cc
@@ -54,6 +54,7 @@ void ActionBoxMenu::RunMenu(views::MenuButton* menu_button) {
}
void ActionBoxMenu::ExecuteCommand(int id) {
+ model_->ExecuteCommand(id);
}
views::Border* ActionBoxMenu::CreateMenuBorder() {
@@ -127,7 +128,7 @@ void ActionBoxMenu::PopulateMenu() {
for (int model_index = 0; model_index < model_->GetItemCount();
++model_index) {
views::MenuItemView* menu_item = root_->AppendMenuItemFromModel(
- model_, model_index, model_index + 1);
+ model_, model_index, model_->GetCommandIdAt(model_index));
if (model_->GetTypeAt(model_index) == ui::MenuModel::TYPE_COMMAND) {
menu_item->SetMargins(0, 0);
if (model_->IsItemExtension(model_index)) {
« no previous file with comments | « chrome/browser/ui/toolbar/action_box_menu_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698