Index: ui/aura/window_event_dispatcher_unittest.cc |
diff --git a/ui/aura/window_event_dispatcher_unittest.cc b/ui/aura/window_event_dispatcher_unittest.cc |
index b20b90ab5faadabb91f5555ce5ba26c49ebfb67f..c14ab34d8b4b0f9860b446ffb419604fa9ebf080 100644 |
--- a/ui/aura/window_event_dispatcher_unittest.cc |
+++ b/ui/aura/window_event_dispatcher_unittest.cc |
@@ -14,6 +14,7 @@ |
#include "base/message_loop/message_loop.h" |
#include "base/run_loop.h" |
#include "base/single_thread_task_runner.h" |
+#include "base/stl_util.h" |
#include "base/test/histogram_tester.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "build/build_config.h" |
@@ -548,7 +549,7 @@ class EventFilterRecorder : public ui::EventHandler { |
} |
bool HasReceivedEvent(ui::EventType type) { |
- return std::find(events_.begin(), events_.end(), type) != events_.end(); |
+ return base::ContainsValue(events_, type); |
} |
bool LastTouchMayCauseScrolling() const { |