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

Unified Diff: ui/wm/core/window_animations.cc

Issue 1485093003: ui: use base's ContainsValue helper function instead of std::find (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review + view.cc fix Created 5 years 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/view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9ef09cd13f51ced90517709d11203a2bab2bb59b 100644
--- a/ui/wm/core/window_animations.cc
+++ b/ui/wm/core/window_animations.cc
@@ -95,11 +95,8 @@ 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))
topmost_transient_child = *iter;
- }
}
if (topmost_transient_child) {
window_->parent()->layer()->StackAbove(
« no previous file with comments | « ui/views/view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698