summaryrefslogtreecommitdiff
path: root/chromium/services/device/hid/hid_service_mac.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/services/device/hid/hid_service_mac.cc')
-rw-r--r--chromium/services/device/hid/hid_service_mac.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/services/device/hid/hid_service_mac.cc b/chromium/services/device/hid/hid_service_mac.cc
index 3e70fa7aba6..45bd75d1397 100644
--- a/chromium/services/device/hid/hid_service_mac.cc
+++ b/chromium/services/device/hid/hid_service_mac.cc
@@ -80,7 +80,8 @@ scoped_refptr<HidDeviceInfo> CreateDeviceInfo(
}
int32_t location_id = GetIntProperty(service, CFSTR(kIOHIDLocationIDKey));
- std::string physical_device_id = base::NumberToString(location_id);
+ std::string physical_device_id =
+ location_id == 0 ? "" : base::NumberToString(location_id);
return new HidDeviceInfo(
entry_id, physical_device_id,