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

Unified Diff: views/controls/menu/native_menu_x.cc

Issue 5697005: Change SimpleMenuModel on OSX to support dynamic icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved background page badge fix to another CL. Created 10 years 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: views/controls/menu/native_menu_x.cc
diff --git a/views/controls/menu/native_menu_x.cc b/views/controls/menu/native_menu_x.cc
index db47f7e273ace1a43de50e03c9d4465334d9d516..50265b71b975b4b4299f046ab10656c2fe183d57 100644
--- a/views/controls/menu/native_menu_x.cc
+++ b/views/controls/menu/native_menu_x.cc
@@ -136,7 +136,7 @@ void NativeMenuX::UpdateMenuFromModel(SubmenuView* menu,
MenuItemView* mitem = menu->GetMenuItemAt(index - sep);
mitem->SetVisible(model->IsVisibleAt(index));
mitem->SetEnabled(model->IsEnabledAt(index));
- if (model->IsLabelDynamicAt(index)) {
+ if (model->IsItemDynamicAt(index)) {
mitem->SetTitle(UTF16ToWide(model->GetLabelAt(index)));
}
« chrome/browser/ui/cocoa/menu_controller_unittest.mm ('K') | « views/controls/menu/native_menu_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698