summaryrefslogtreecommitdiffstats
path: root/device/hid
diff options
context:
space:
mode:
authorreillyg <reillyg@chromium.org>2015-09-28 15:44:44 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-28 22:46:44 +0000
commit7015dfbf9a232ef20022454986d3bd251b12b824 (patch)
treeb8dc29723714caa41ee426afd9e328031cad6ac4 /device/hid
parentea566c8cf38dfcf6564ac0c8994b832736e99a8a (diff)
downloadchromium_src-7015dfbf9a232ef20022454986d3bd251b12b824.zip
chromium_src-7015dfbf9a232ef20022454986d3bd251b12b824.tar.gz
chromium_src-7015dfbf9a232ef20022454986d3bd251b12b824.tar.bz2
HID report descriptors not available before OS X 10.8.
On OS X Snow Leopard and Lion (currently supported by Chrome) the kIOHIDReportDescriptorKey is not available as it is in later versions of the operating system. Since we are also unable to get the device's report descriptor on Windows it seems okay to just ignore the failure. BUG=479210 Review URL: https://codereview.chromium.org/1373923003 Cr-Commit-Position: refs/heads/master@{#351183}
Diffstat (limited to 'device/hid')
-rw-r--r--device/hid/hid_service_mac.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/device/hid/hid_service_mac.cc b/device/hid/hid_service_mac.cc
index babb91f..3dd8019 100644
--- a/device/hid/hid_service_mac.cc
+++ b/device/hid/hid_service_mac.cc
@@ -254,8 +254,7 @@ scoped_refptr<HidDeviceInfo> HidServiceMac::CreateDeviceInfo(
std::vector<uint8> report_descriptor;
if (!TryGetHidDataProperty(hid_device, CFSTR(kIOHIDReportDescriptorKey),
&report_descriptor)) {
- HID_LOG(EVENT) << "Unable to get report descriptor for new device.";
- return nullptr;
+ HID_LOG(DEBUG) << "Device report descriptor not available.";
}
return new HidDeviceInfo(