Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc

Issue 1272823003: Update SplitString calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/ozone/evdev/event_device_test_util.cc ('k') | ui/gfx/font_fallback_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]));
}
« no previous file with comments | « ui/events/ozone/evdev/event_device_test_util.cc ('k') | ui/gfx/font_fallback_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698