commit | 01bda807e1f107f607b767281c62d5f9ddb582b0 | [log] [tgz] |
---|---|---|
author | reillyg <reillyg@chromium.org> | Thu Feb 11 21:38:49 2016 |
committer | Commit bot <commit-bot@chromium.org> | Thu Feb 11 21:40:57 2016 |
tree | a77a19ee7dab5da6cf6cda19818c0222dbe32c13 | |
parent | 22ecae62b23d376aa68675b4de70ad96c62ad44c [diff] |
webusb: Reject the promise if the device is already open. This change adds the necessary plumbing for the USB Mojo service implementation to detect when a device is already open and to report this error so that the WebUSB API can reject the promise returned by USBDevice::open() with an InvalidStateError. BUG=492204 Review URL: https://codereview.chromium.org/1693433003 Cr-Commit-Position: refs/heads/master@{#375003}