Index: device/hid/hid_connection.cc |
diff --git a/device/hid/hid_connection.cc b/device/hid/hid_connection.cc |
index 9d5ee20f20bc0ec81f2e6b81f4337e9f9a32fc97..8c503a4d99d35cd943977adbdd5cc83894494de2 100644 |
--- a/device/hid/hid_connection.cc |
+++ b/device/hid/hid_connection.cc |
@@ -6,6 +6,7 @@ |
#include <algorithm> |
+#include "base/stl_util.h" |
#include "components/device_event_log/device_event_log.h" |
namespace device { |
@@ -24,9 +25,7 @@ struct CollectionHasReportId { |
if (report_id_ == HidConnection::kAnyReportId) |
return true; |
- return std::find(info.report_ids.begin(), |
- info.report_ids.end(), |
- report_id_) != info.report_ids.end(); |
+ return base::ContainsValue(info.report_ids, report_id_); |
} |
private: |