diff options
Diffstat (limited to 'chrome/browser/ui/views')
-rw-r--r-- | chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ui/views/download_shelf_view.cc | 2 |
2 files changed, 2 insertions, 2 deletions
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 1a5eadb..84bc69d 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 diff --git a/chrome/browser/ui/views/download_shelf_view.cc b/chrome/browser/ui/views/download_shelf_view.cc index 04c713d..b37804f 100644 --- a/chrome/browser/ui/views/download_shelf_view.cc +++ b/chrome/browser/ui/views/download_shelf_view.cc @@ -211,7 +211,7 @@ gfx::Size DownloadShelfView::GetPreferredSize() { AdjustSize(close_button_, &prefsize); AdjustSize(show_all_view_, &prefsize); // Add one download view to the preferred size. - if (download_views_.size() > 0) { + if (!download_views_.empty()) { AdjustSize(*download_views_.begin(), &prefsize); prefsize.Enlarge(kDownloadPadding, 0); } |