| Index: ash/frame/caption_buttons/frame_caption_button_container_view.cc
|
| diff --git a/ash/frame/caption_buttons/frame_caption_button_container_view.cc b/ash/frame/caption_buttons/frame_caption_button_container_view.cc
|
| index 06103f46bd77d6fef7711c8dd5c33ea8e01d93f7..12bbb71a35cadd9e0fa774f31add9541abfec4ba 100644
|
| --- a/ash/frame/caption_buttons/frame_caption_button_container_view.cc
|
| +++ b/ash/frame/caption_buttons/frame_caption_button_container_view.cc
|
| @@ -131,10 +131,10 @@ void FrameCaptionButtonContainerView::UpdateSizeButtonVisibility(
|
| !force_hidden && frame_->widget_delegate()->CanMaximize());
|
| }
|
|
|
| -gfx::Size FrameCaptionButtonContainerView::GetPreferredSize() {
|
| +gfx::Size FrameCaptionButtonContainerView::GetPreferredSize() const {
|
| int width = 0;
|
| for (int i = 0; i < child_count(); ++i) {
|
| - views::View* child = child_at(i);
|
| + const views::View* child = child_at(i);
|
| if (child->visible())
|
| width += child_at(i)->GetPreferredSize().width();
|
| }
|
|
|