Index: ash/shelf/shelf_view.cc |
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc |
index 5e4f00255c028296401e34233c241e8af1e0803f..60267d9c189d69761fca75872ff6b0cdea7ac8d6 100644 |
--- a/ash/shelf/shelf_view.cc |
+++ b/ash/shelf/shelf_view.cc |
@@ -1719,8 +1719,10 @@ bool ShelfView::ShowListMenuForView(const ShelfItem& item, |
// Make sure we have a menu and it has at least two items in addition to the |
// application title and the 3 spacing separators. |
- if (!list_menu_model_.get() || list_menu_model_->GetItemCount() <= 5) |
+ if (!list_menu_model_.get() || list_menu_model_->GetItemCount() <= 5) { |
+ list_menu_model_.reset(); |
return false; |
+ } |
ShowMenu(list_menu_model_.get(), |
source, |