Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc |
index 162cf3c49a34bd69a1a5e604d015d51ae7aa9116..5fcfbc52709980cca3a797e77762b80060a15250 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc |
@@ -68,11 +68,9 @@ class WMStateWaiter : public X11PropertyChangeWaiter { |
bool ShouldKeepOnWaiting(const ui::PlatformEvent& event) override { |
std::vector<Atom> hints; |
if (ui::GetAtomArrayProperty(xwindow(), "_NET_WM_STATE", &hints)) { |
- std::vector<Atom>::iterator it = std::find( |
- hints.begin(), |
- hints.end(), |
- atom_cache_->GetAtom(hint_)); |
- bool hint_set = (it != hints.end()); |
+ auto it = std::find(hints.cbegin(), hints.cend(), |
+ atom_cache_->GetAtom(hint_)); |
+ bool hint_set = (it != hints.cend()); |
return hint_set != wait_till_set_; |
} |
return true; |