summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/page_capture
diff options
context:
space:
mode:
authorreillyg <reillyg@chromium.org>2015-06-15 14:47:19 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-15 21:48:02 +0000
commit91fa99545857ef7fe11c573c98be90bd640b5eeb (patch)
treec10a59680220e9933c42c5bc6b32378431990da8 /chrome/browser/extensions/api/page_capture
parente989c09f64fd1be30a630852420ca172408718d7 (diff)
downloadchromium_src-91fa99545857ef7fe11c573c98be90bd640b5eeb.zip
chromium_src-91fa99545857ef7fe11c573c98be90bd640b5eeb.tar.gz
chromium_src-91fa99545857ef7fe11c573c98be90bd640b5eeb.tar.bz2
Fetch USB device strings asynchronously to avoid libusb race conditions.
libusb offers both synchronous and asynchronous APIs however it is dangerous to mix them as this can result in races between the thread running the libusb I/O loop and the thread making the synchronous request. This patch ditches calls to libusb_get_string_descriptor for a brand new asynchronous path using the existing I/O methods available in UsbDeviceHandle. BUG=439594 Review URL: https://codereview.chromium.org/1181773004 Cr-Commit-Position: refs/heads/master@{#334466}
Diffstat (limited to 'chrome/browser/extensions/api/page_capture')
0 files changed, 0 insertions, 0 deletions