Index: ui/events/ozone/evdev/event_device_test_util.cc |
diff --git a/ui/events/ozone/evdev/event_device_test_util.cc b/ui/events/ozone/evdev/event_device_test_util.cc |
index 218d30919cd504b53571b0b88893f811f09a9e3f..f9feb047eb75a326e2b786fa45e8d69cafe9cbcc 100644 |
--- a/ui/events/ozone/evdev/event_device_test_util.cc |
+++ b/ui/events/ozone/evdev/event_device_test_util.cc |
@@ -43,13 +43,13 @@ std::string SerializeBitfield(unsigned long* bitmap, int max) { |
bool ParseBitfield(const std::string& bitfield, |
size_t max_bits, |
std::vector<unsigned long>* out) { |
- std::vector<std::string> groups; |
- base::SplitString(bitfield, ' ', &groups); |
+ std::vector<std::string> groups = base::SplitString( |
+ bitfield, " ", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
out->resize(EVDEV_BITS_TO_LONGS(max_bits)); |
// Convert big endian 64-bit groups to little endian EVDEV_LONG_BIT groups. |
- for (unsigned int i = 0; i < groups.size(); ++i) { |
+ for (size_t i = 0; i < groups.size(); ++i) { |
int off = groups.size() - 1 - i; |
uint64_t val; |