Index: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc |
diff --git a/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc b/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc |
index 64e0696d72479ae40b3be7c6045f0dd0c022f17d..1e7ef06ff7838f2d633197585fabbc67d2bb610c 100644 |
--- a/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc |
+++ b/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc |
@@ -766,8 +766,8 @@ MatchUSBID::MatchUSBID(const std::string& arg) : MatchCriteria(arg) { |
LOG(ERROR) << "Invalid USB ID: " << args_[i]; |
continue; |
} |
- std::vector<std::string> tokens; |
- base::SplitString(args_[i], ':', &tokens); |
+ std::vector<std::string> tokens = base::SplitString( |
+ args_[i], ":", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); |
vid_patterns_.push_back(base::StringToLowerASCII(tokens[0])); |
pid_patterns_.push_back(base::StringToLowerASCII(tokens[1])); |
} |