Remove extra call to UsbDeviceHandle::Close in chrome.usb.closeDevice.
When chrome.usb.closeDevice is called the device is explicitly closed in the extension function implementation and then closed again when the UsbDeviceResource object is destroyed. Only the latter is necessary as that covers other ways in which the resource can be released. Review URL: https://codereview.chromium.org/881363004 Cr-Commit-Position: refs/heads/master@{#313605}
Showing
Please register or sign in to comment