Chromium Code Reviews| Index: ui/wm/core/window_animations.cc |
| diff --git a/ui/wm/core/window_animations.cc b/ui/wm/core/window_animations.cc |
| index 129cfda8b22facd180dd5bd77c0993fe2729b057..8b60e556618a2914e9e4c158001b1f5c987a53c3 100644 |
| --- a/ui/wm/core/window_animations.cc |
| +++ b/ui/wm/core/window_animations.cc |
| @@ -95,9 +95,7 @@ class HidingWindowAnimationObserverBase : public aura::WindowObserver { |
| DCHECK(iter != window_->parent()->children().end()); |
| aura::Window* topmost_transient_child = NULL; |
| for (++iter; iter != window_->parent()->children().end(); ++iter) { |
| - if (std::find(transient_children.begin(), |
| - transient_children.end(), |
| - *iter) != transient_children.end()) { |
| + if (ContainsValue(transient_children, *iter)) { |
|
sky
2015/12/01 22:08:31
nit: nuke {}
tfarina
2015/12/02 20:31:41
Done.
|
| topmost_transient_child = *iter; |
| } |
| } |