Chromium Code Reviews| Index: ui/views/view.cc |
| diff --git a/ui/views/view.cc b/ui/views/view.cc |
| index 04c5f2fae25957c3ca3b706654e263fc8b3c6638..6d1c7f8c66be0e98f3f88a5704741f2a5cc4d165 100644 |
| --- a/ui/views/view.cc |
| +++ b/ui/views/view.cc |
| @@ -298,8 +298,13 @@ void View::RemoveChildView(View* view) { |
| } |
| void View::RemoveAllChildViews(bool delete_children) { |
| - while (!children_.empty()) |
| + while (!children_.empty()) { |
| + const char* class_name = children_.front()->GetClassName(); |
| + LOG(ERROR) << "now removing child " << class_name; |
| DoRemoveChildView(children_.front(), false, false, delete_children, NULL); |
| + LOG(ERROR) << "After removing child " << class_name << " root view is " |
| + << GetWidget()->GetRootView(); |
| + } |
|
sadrul
2017/02/13 20:33:30
Remove these changes?
yiyix
2017/02/13 21:12:23
so sorry, i fixed the changes but i forget to save
|
| UpdateTooltip(); |
| } |