| Index: ui/views/debug_utils.cc
|
| diff --git a/ui/views/debug_utils.cc b/ui/views/debug_utils.cc
|
| index ad00563c1ff4f2e518babbd2eb35ece8cd8b3eb6..8259d6212eb6734da2dc4da0141f584ebfcefb65 100644
|
| --- a/ui/views/debug_utils.cc
|
| +++ b/ui/views/debug_utils.cc
|
| @@ -12,10 +12,9 @@
|
| #include <iostream>
|
| #endif
|
|
|
| -namespace views {
|
| -
|
| #ifndef NDEBUG
|
|
|
| +namespace views {
|
| namespace {
|
| void PrintViewHierarchyImp(const View* view, int indent) {
|
| std::wostringstream buf;
|
| @@ -35,7 +34,7 @@ void PrintViewHierarchyImp(const View* view, int indent) {
|
| std::cout << buf.str() << std::endl;
|
|
|
| for (int i = 0, count = view->child_count(); i < count; ++i)
|
| - PrintViewHierarchyImp(view->GetChildViewAt(i), indent + 2);
|
| + PrintViewHierarchyImp(view->child_at(i), indent + 2);
|
| }
|
|
|
| void PrintFocusHierarchyImp(const View* view, int indent) {
|
| @@ -55,7 +54,7 @@ void PrintFocusHierarchyImp(const View* view, int indent) {
|
| std::cout << buf.str() << std::endl;
|
|
|
| if (view->child_count() > 0)
|
| - PrintFocusHierarchyImp(view->GetChildViewAt(0), indent + 2);
|
| + PrintFocusHierarchyImp(view->child_at(0), indent + 2);
|
|
|
| const View* next_focusable = view->GetNextFocusableView();
|
| if (next_focusable)
|
|
|