Index: chrome/browser/ui/views/download_shelf_view.cc |
diff --git a/chrome/browser/ui/views/download_shelf_view.cc b/chrome/browser/ui/views/download_shelf_view.cc |
index 04c713df064dad417d4d5a8b0a160225c275439d..b37804fe63304ea8b09b09447356322c76dd4f37 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); |
} |