Index: chrome/browser/ui/views/download/download_item_view.cc |
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc |
index a1b609801d36eaadf0b9a1762e2ffdbc1d4f9943..4db589a06c096392ab15f12a7b6bdc812f02f9a9 100644 |
--- a/chrome/browser/ui/views/download/download_item_view.cc |
+++ b/chrome/browser/ui/views/download/download_item_view.cc |
@@ -361,7 +361,7 @@ void DownloadItemView::Layout() { |
} |
} |
-gfx::Size DownloadItemView::GetPreferredSize() { |
+gfx::Size DownloadItemView::GetPreferredSize() const { |
int width, height; |
// First, we set the height to the height of two rows or text plus margins. |
@@ -371,7 +371,7 @@ gfx::Size DownloadItemView::GetPreferredSize() { |
height = std::max<int>(height, DownloadShelf::kSmallProgressIconSize); |
if (IsShowingWarningDialog()) { |
- BodyImageSet* body_image_set = |
+ const BodyImageSet* body_image_set = |
(mode_ == DANGEROUS_MODE) ? &dangerous_mode_body_image_set_ : |
&malicious_mode_body_image_set_; |
width = kLeftPadding + body_image_set->top_left->width(); |
@@ -1204,7 +1204,7 @@ void DownloadItemView::ShowWarningDialog() { |
TooltipTextChanged(); |
} |
-gfx::Size DownloadItemView::GetButtonSize() { |
+gfx::Size DownloadItemView::GetButtonSize() const { |
DCHECK(discard_button_ && (mode_ == MALICIOUS_MODE || save_button_)); |
gfx::Size size; |