Index: device/hid/hid_service_linux.cc |
diff --git a/device/hid/hid_service_linux.cc b/device/hid/hid_service_linux.cc |
index 713b4474c2a2efc13f3c8477b9b93f45a1060cce..7d1e26b1c3ca04667d6e6252dbb92b838ebc47f1 100644 |
--- a/device/hid/hid_service_linux.cc |
+++ b/device/hid/hid_service_linux.cc |
@@ -112,8 +112,8 @@ class HidServiceLinux::FileThreadHelper |
return; |
} |
- std::vector<std::string> parts; |
- base::SplitString(hid_id, ':', &parts); |
+ std::vector<std::string> parts = base::SplitString( |
+ hid_id, ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
if (parts.size() != 3) { |
return; |
} |