Index: ui/message_center/views/message_center_bubble.cc |
diff --git a/ui/message_center/views/message_center_bubble.cc b/ui/message_center/views/message_center_bubble.cc |
index cc9345ff99b1135e843e113a86dce1ebc857d291..7189d2749005db82ec521658dfb9d44254ac0795 100644 |
--- a/ui/message_center/views/message_center_bubble.cc |
+++ b/ui/message_center/views/message_center_bubble.cc |
@@ -20,7 +20,7 @@ class ContentsView : public views::View { |
virtual ~ContentsView(); |
// Overridden from views::View: |
- virtual int GetHeightForWidth(int width) OVERRIDE; |
+ virtual int GetHeightForWidth(int width) const OVERRIDE; |
protected: |
// Overridden from views::View: |
@@ -41,7 +41,7 @@ ContentsView::ContentsView(MessageCenterBubble* bubble, views::View* contents) |
ContentsView::~ContentsView() { |
} |
-int ContentsView::GetHeightForWidth(int width) { |
+int ContentsView::GetHeightForWidth(int width) const { |
DCHECK_EQ(1, child_count()); |
int contents_width = std::max(width - GetInsets().width(), 0); |
int contents_height = child_at(0)->GetHeightForWidth(contents_width); |