Chromium Code Reviews| Index: ui/views/test/widget_test_aura.cc |
| diff --git a/ui/views/test/widget_test_aura.cc b/ui/views/test/widget_test_aura.cc |
| index 8cabaf5cf256a5634350549cb3f7e8ccdf606520..53af04557b2b0743e37927e8208e277471f65074 100644 |
| --- a/ui/views/test/widget_test_aura.cc |
| +++ b/ui/views/test/widget_test_aura.cc |
| @@ -163,10 +163,10 @@ bool WidgetTest::IsNativeWindowTransparent(gfx::NativeWindow window) { |
| // static |
| Widget::Widgets WidgetTest::GetAllWidgets() { |
| - std::vector<aura::Window*> toplevel = GetAllTopLeveLWindows(); |
| + std::vector<aura::Window*> toplevels = GetAllTopLeveLWindows(); |
|
sky
2017/02/06 17:29:47
optional: don't bother with local, change for to:
sky
2017/02/06 17:29:47
How about fixing the capitalization here, e.g. "Le
tapted
2017/02/06 22:50:49
Ach - thanks. Done.
tapted
2017/02/06 22:50:49
Done.
|
| Widget::Widgets all_widgets; |
| - for (aura::Window* root : toplevel) |
| - Widget::GetAllChildWidgets(root, &all_widgets); |
| + for (aura::Window* window : toplevels) |
| + Widget::GetAllChildWidgets(window->GetRootWindow(), &all_widgets); |
| return all_widgets; |
| } |