Index: chrome/browser/bookmarks/bookmark_context_menu_controller.cc |
diff --git a/chrome/browser/bookmarks/bookmark_context_menu_controller.cc b/chrome/browser/bookmarks/bookmark_context_menu_controller.cc |
index 52145bdffb9ec7473b245fb718dd9f9f82a292c1..32dba7440d560dfa8002ed98fcc67b94061b2661 100644 |
--- a/chrome/browser/bookmarks/bookmark_context_menu_controller.cc |
+++ b/chrome/browser/bookmarks/bookmark_context_menu_controller.cc |
@@ -269,7 +269,7 @@ bool BookmarkContextMenuController::IsCommandIdEnabled(int command_id) const { |
case IDC_COPY: |
case IDC_CUT: |
- return selection_.size() > 0 && !is_root_node; |
+ return !selection_.empty() && !is_root_node; |
case IDC_PASTE: |
// Paste to selection from the Bookmark Bar, to parent_ everywhere else |