commit | a0f301ad19908c1320f0b00d87f0469b6009b5a6 | [log] [tgz] |
---|---|---|
author | Donna Wu <donna.wu@intel.com> | Wed Sep 12 07:16:20 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Sep 12 07:16:20 2018 |
tree | a73658bd6df39df1d1d4f31060e2e5d981da304e | |
parent | dc958253ea2fd3227ed0422aaa1928733199fb79 [diff] |
Listen to UsbDeviceManager instead of UsbService in UsbChooserContext. For UsbService::Observer, "OnDeviceRemovedCleanup" needs to be handled after "OnDeviceRemoved". But for mojom interface UsbDeviceManager, there is no way to provide such dependency among listeners. As all users will be converted from UsbService to UsbDeviceManager, to avoid the potential race condition, WebUsbServiceImpl is made listen to UsbChooserContext in this CL. Bug: 699790 Change-Id: I1e3b45196552e987b7422b127651e1fb01e1618b Reviewed-on: https://chromium-review.googlesource.com/1210386 Commit-Queue: Donna Wu <donna.wu@intel.com> Reviewed-by: Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#590609}
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 .