[WebMIDI] Using UsbRequest.queue leads a crash on Android.
commitfa97e2ebf432aff3eaa0cb6612ee3e49f040b3f7
authoryhirano@chromium.org <yhirano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 9 May 2014 09:10:59 +0000 (9 09:10 +0000)
committeryhirano@chromium.org <yhirano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 9 May 2014 09:10:59 +0000 (9 09:10 +0000)
tree0239dd74cabe859e27b27f7871f2532a9a69788d
parent1e6f9e28f1a353a64a8f15d9ba983dc2a2b97b56
[WebMIDI] Using UsbRequest.queue leads a crash on Android.

Calling UsbRequest.queue when UsbDeviceConnection.requestWait is called
in another thread leads a crash on Android.
This CL fixes it with UsbEndpoint.bulkTransfer.
This is a workaround. I believe UsbRequest.queue should be thread safe.

BUG=303596

Review URL: https://codereview.chromium.org/253293002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269191 0039d316-1c4b-4281-b951-d872f2087c98
media/base/android/java/src/org/chromium/media/UsbMidiDeviceAndroid.java