Index: ui/events/platform/x11/x11_hotplug_event_handler.cc |
diff --git a/ui/events/platform/x11/x11_hotplug_event_handler.cc b/ui/events/platform/x11/x11_hotplug_event_handler.cc |
index 5ae436aa304d8031b176b9c3199368f921a152e4..ccf8fa7c476865dbee97d1d9d4b47e2d075fa872 100644 |
--- a/ui/events/platform/x11/x11_hotplug_event_handler.cc |
+++ b/ui/events/platform/x11/x11_hotplug_event_handler.cc |
@@ -299,9 +299,7 @@ void HandleTouchscreenDevicesInWorker( |
// Touchscreens should have absolute X and Y axes, and be direct touch |
// devices. |
if (max_x > 0.0 && max_y > 0.0 && is_direct_touch) { |
- InputDeviceType type = IsTouchscreenInternal(device_info.path) |
- ? InputDeviceType::INPUT_DEVICE_INTERNAL |
- : InputDeviceType::INPUT_DEVICE_EXTERNAL; |
+ InputDeviceType type = GetInputDeviceTypeFromPath(device_info.path); |
// |max_x| and |max_y| are inclusive values, so we need to add 1 to get |
// the size. |
devices.push_back(TouchscreenDevice( |