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

Unified Diff: ui/events/ozone/device/udev/device_manager_udev.cc

Issue 1242023005: Remove legacy StartsWithASCII function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: y Created 5 years, 5 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
Index: ui/events/ozone/device/udev/device_manager_udev.cc
diff --git a/ui/events/ozone/device/udev/device_manager_udev.cc b/ui/events/ozone/device/udev/device_manager_udev.cc
index ca7daa26ad6c43f802d66f495b0007275bec558c..f05695b7fdf3d4ddd08df6fe15d09bea84fa1a5c 100644
--- a/ui/events/ozone/device/udev/device_manager_udev.cc
+++ b/ui/events/ozone/device/udev/device_manager_udev.cc
@@ -162,10 +162,11 @@ scoped_ptr<DeviceEvent> DeviceManagerUdev::ProcessMessage(udev_device* device) {
DeviceEvent::DeviceType device_type;
if (!strcmp(subsystem, "input") &&
- base::StartsWithASCII(path, "/dev/input/event", true))
+ base::StartsWith(path, "/dev/input/event", base::CompareCase::SENSITIVE))
device_type = DeviceEvent::INPUT;
else if (!strcmp(subsystem, "drm") &&
- base::StartsWithASCII(path, "/dev/dri/card", true))
+ base::StartsWith(path, "/dev/dri/card",
+ base::CompareCase::SENSITIVE))
device_type = DeviceEvent::DISPLAY;
else
return nullptr;
« no previous file with comments | « ui/events/devices/device_util_linux.cc ('k') | ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698