Index: ui/message_center/views/toast_contents_view.cc |
diff --git a/ui/message_center/views/toast_contents_view.cc b/ui/message_center/views/toast_contents_view.cc |
index d004e57f2ad3de379b7592496982efb3c1e1b4a6..7c9b7aaab165c7f37019f34d978e597c48af980c 100644 |
--- a/ui/message_center/views/toast_contents_view.cc |
+++ b/ui/message_center/views/toast_contents_view.cc |
@@ -40,7 +40,7 @@ const int kFadeInOutDuration = 200; |
} // namespace. |
// static |
-gfx::Size ToastContentsView::GetToastSizeForView(views::View* view) { |
+gfx::Size ToastContentsView::GetToastSizeForView(const views::View* view) { |
int width = kNotificationWidth + view->GetInsets().width(); |
return gfx::Size(width, view->GetHeightForWidth(width)); |
} |
@@ -282,7 +282,7 @@ void ToastContentsView::Layout() { |
} |
} |
-gfx::Size ToastContentsView::GetPreferredSize() { |
+gfx::Size ToastContentsView::GetPreferredSize() const { |
return child_count() ? GetToastSizeForView(child_at(0)) : gfx::Size(); |
} |