| Index: ui/events/devices/x11/touch_factory_x11.cc
|
| diff --git a/ui/events/devices/x11/touch_factory_x11.cc b/ui/events/devices/x11/touch_factory_x11.cc
|
| index bd7b15714b347899ef7856d469ac04e0891c866f..216c7db7640d8acb3958924e2f8260d28f5e1213 100644
|
| --- a/ui/events/devices/x11/touch_factory_x11.cc
|
| +++ b/ui/events/devices/x11/touch_factory_x11.cc
|
| @@ -62,10 +62,10 @@ void TouchFactory::SetTouchDeviceListFromCommandLine() {
|
| switches::kTouchDevices);
|
|
|
| if (!touch_devices.empty()) {
|
| - std::vector<std::string> devs;
|
| + std::vector<std::string> devs = base::SplitString(
|
| + touch_devices, ",", base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY);
|
| std::vector<int> device_ids;
|
| int devid;
|
| - base::SplitString(touch_devices, ',', &devs);
|
| for (std::vector<std::string>::iterator iter = devs.begin();
|
| iter != devs.end(); ++iter) {
|
| if (base::StringToInt(*iter, reinterpret_cast<int*>(&devid)))
|
|
|