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

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: 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
« ui/views/view.cc ('K') | « 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..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;
}
}
« ui/views/view.cc ('K') | « ui/views/view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698