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

Side by Side Diff: trunk/src/device/hid/hid_utils_mac.cc

Issue 369923002: Revert 281133 "chrome.hid: enrich model with report IDs" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/device/hid/hid_utils_mac.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « trunk/src/device/hid/hid_utils_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698