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

Unified Diff: ui/views/controls/menu/menu_item_view.cc

Issue 14161006: Fix NOTREACHED triggered by MenuItemView::GetAcceleratorText (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_item_view.cc
diff --git a/ui/views/controls/menu/menu_item_view.cc b/ui/views/controls/menu/menu_item_view.cc
index 9093fa7af94cf15cb0c3aa6b9a80f60fa5a249e6..2a603af7cc43420ed3607b36360fc9fa9176fbbb 100644
--- a/ui/views/controls/menu/menu_item_view.cc
+++ b/ui/views/controls/menu/menu_item_view.cc
@@ -1009,7 +1009,7 @@ string16 MenuItemView::GetAcceleratorText() {
return string16();
ui::Accelerator accelerator;
- return (GetDelegate() &&
+ return (GetDelegate() && GetCommand() &&
GetDelegate()->GetAccelerator(GetCommand(), &accelerator)) ?
accelerator.GetShortcutText() : string16();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698