commit | b81d51e4989097adf1278d6b0ebaebbda919df6c | [log] [tgz] |
---|---|---|
author | Donna Wu <donna.wu@intel.com> | Thu Sep 20 02:41:38 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Sep 20 02:41:38 2018 |
tree | d4377374ddf22b3a053412de65e1bea734a7fd5f | |
parent | 2b31717afec1edae40d64c777b22b2fd62eb8e2e [diff] |
Make client bindings associated for UsbDeviceManager. With separated pipes, there will be a race condition between GetDevices() method and OnDeviceAdded/Removed events. In this case, device list returned from GetDevices() may out of date if a event happened between the request sending out the client getting the device list. This CL made the client bindings associated for UsbDeviceManager interface and implemented it in device::usb::DeviceManagerImpl to eliminate the potential race condition. Bug: 699790 Change-Id: Iad019009fa831f6d2f3ccf9b5c7064f18c416cea Reviewed-on: https://chromium-review.googlesource.com/1223339 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Donna Wu <donna.wu@intel.com> Cr-Commit-Position: refs/heads/master@{#592666}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .