| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "device/hid/hid_utils_mac.h" | 5 #include "device/hid/hid_utils_mac.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 9 | 9 |
| 10 namespace device { | 10 namespace device { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 CFStringRef ref = base::mac::CFCast<CFStringRef>( | 36 CFStringRef ref = base::mac::CFCast<CFStringRef>( |
| 37 IOHIDDeviceGetProperty(device, key)); | 37 IOHIDDeviceGetProperty(device, key)); |
| 38 if (!ref) { | 38 if (!ref) { |
| 39 return false; | 39 return false; |
| 40 } | 40 } |
| 41 *result = base::SysCFStringRefToUTF8(ref); | 41 *result = base::SysCFStringRefToUTF8(ref); |
| 42 return true; | 42 return true; |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace device | 45 } // namespace device |
| OLD | NEW |