Index: chrome/browser/ui/views/infobars/infobar_view.cc |
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc |
index bd70505b71c9b8fee9580a172535a2a42e7a27a5..cd5da729fc2dd5f3a44d56c1e75a7e5fa3da9f37 100644 |
--- a/chrome/browser/ui/views/infobars/infobar_view.cc |
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc |
@@ -304,7 +304,7 @@ void InfoBarView::ButtonPressed(views::Button* sender, |
} |
} |
-int InfoBarView::ContentMinimumWidth() { |
+int InfoBarView::ContentMinimumWidth() const { |
return 0; |
} |
@@ -403,7 +403,7 @@ void InfoBarView::GetAccessibleState(ui::AXViewState* state) { |
state->keyboard_shortcut = base::ASCIIToUTF16("Alt+Shift+A"); |
} |
-gfx::Size InfoBarView::GetPreferredSize() { |
+gfx::Size InfoBarView::GetPreferredSize() const { |
return gfx::Size( |
kEdgeItemPadding + (icon_ ? (icon_->width() + kIconToLabelSpacing) : 0) + |
ContentMinimumWidth() + kBeforeCloseButtonSpacing + |