Index: chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.cc |
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.cc b/chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.cc |
index 1a5eadba1787c46f79ee2d72e53d2376f33f262e..84bc69df818009f7b0090131a1c28bb9c1b78527 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.cc |
@@ -256,7 +256,7 @@ bool BookmarkContextMenuControllerViews::IsCommandEnabled(int 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 |