Index: ui/views/controls/single_split_view.cc |
diff --git a/ui/views/controls/single_split_view.cc b/ui/views/controls/single_split_view.cc |
index 5909ed1a5e182a5a2752dfc33cf2af6d89464ba9..fe50141293ca935f8f35d30e51dcda0c786bebae 100644 |
--- a/ui/views/controls/single_split_view.cc |
+++ b/ui/views/controls/single_split_view.cc |
@@ -65,11 +65,11 @@ void SingleSplitView::GetAccessibleState(ui::AXViewState* state) { |
state->name = accessible_name_; |
} |
-gfx::Size SingleSplitView::GetPreferredSize() { |
+gfx::Size SingleSplitView::GetPreferredSize() const { |
int width = 0; |
int height = 0; |
for (int i = 0; i < 2 && i < child_count(); ++i) { |
- View* view = child_at(i); |
+ const View* view = child_at(i); |
gfx::Size pref = view->GetPreferredSize(); |
if (is_horizontal_) { |
width += pref.width(); |