Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7708)

Unified Diff: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
index 9e92fe3bb03e109cbc3d11bd54aa509fa1a11535..3d0811c4f5c224cc927639e447372f78e2febbc9 100644
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
@@ -78,7 +78,7 @@ void IconLabelBubbleView::Layout() {
gfx::Size IconLabelBubbleView::GetSizeForLabelWidth(int width) const {
gfx::Size size(GetPreLabelWidth() + width + GetBubbleOuterPadding(), 0);
- size.ClampToMin(background_painter_->GetMinimumSize());
+ size.SetToMax(background_painter_->GetMinimumSize());
return size;
}

Powered by Google App Engine
This is Rietveld 408576698