summaryrefslogtreecommitdiffstats
path: root/views/window/client_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/window/client_view.cc')
-rw-r--r--views/window/client_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/window/client_view.cc b/views/window/client_view.cc
index 312424c..de198ed 100644
--- a/views/window/client_view.cc
+++ b/views/window/client_view.cc
@@ -52,7 +52,7 @@ void ClientView::ViewHierarchyChanged(bool is_add, View* parent, View* child) {
DCHECK(contents_view_); // |contents_view_| must be valid now!
// Insert |contents_view_| at index 0 so it is first in the focus chain.
// (the OK/Cancel buttons are inserted before contents_view_)
- AddChildView(0, contents_view_);
+ AddChildViewAt(contents_view_, 0);
}
}