forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Android USB debugging through DevTools.
First, change 13cf2cf introduced a logic error into AndroidUsbDevice::EnumerateOnFileThread that caused enumerations to never complete because the BarrierClosure was not called the correct number of times. Second, this change may have also exposed an issue (investigated before) where a libusb_transfer can be cancelled twice, once in ReleaseInterface and again in CloseInternal. The second cancellation occurs after the interface has been released and so an invalid handle is passed to AbortPipe. A cancelled_ member has been added to Transfer to prevent this from happening. Some conversions to C++11 range loops (added during debugging to make the loops clearer) are preserved in this change. BUG=450007 Review URL: https://codereview.chromium.org/864183002 Cr-Commit-Position: refs/heads/master@{#312796}
- Loading branch information
Showing
3 changed files
with
60 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters