| Index: ui/wm/core/transient_window_manager.cc
|
| diff --git a/ui/wm/core/transient_window_manager.cc b/ui/wm/core/transient_window_manager.cc
|
| index f9d723fb0af05f4b1281eef11532ce655e0f5d9c..e5f6232d4929aebc25dfac18268441b9126ce6ad 100644
|
| --- a/ui/wm/core/transient_window_manager.cc
|
| +++ b/ui/wm/core/transient_window_manager.cc
|
| @@ -165,15 +165,9 @@ void TransientWindowManager::OnWindowVisibilityChanged(Window* window,
|
| // visiblity as well.
|
| // WindowTracker is used because child window
|
| // could be deleted inside UpdateTransientChildVisibility call.
|
| - aura::WindowTracker tracker;
|
| - for (Window* child : transient_children_)
|
| - tracker.Add(child);
|
| -
|
| - while (!tracker.windows().empty()) {
|
| - Window* window = *(tracker.windows().begin());
|
| - Get(window)->UpdateTransientChildVisibility(visible);
|
| - tracker.Remove(window);
|
| - }
|
| + aura::WindowTracker tracker(transient_children_);
|
| + while (tracker.has_windows())
|
| + Get(tracker.Pop())->UpdateTransientChildVisibility(visible);
|
|
|
| // Remember the show request in |show_on_parent_visible_| and hide it again
|
| // if the following conditions are met
|
|
|