Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: ui/views/debug_utils.cc

Issue 10736061: Enable debug logging for views::View (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile glitch in release Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/debug_utils.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « ui/views/debug_utils.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698