DescriptionAdd a UsbService::Observer function for cleanup actions.
This patch adds an additional function to the UsbService::Observer
interface that should be used to perform cleanup operations when a USB
device is disconnected. This is separate from the OnDeviceRemoved
function so that implementations of that function, which may depend on
other subsystems' knowledge of a connected device, can run before any
cleanup actions have taken place.
A browsertest for the chrome.usb.getUserSelectedDevices is included
which demonstrates the need for this 2-phase event handling.
BUG=452298
Committed: https://crrev.com/dd6141829c1ad86297b0a2e7faea037ff110956b
Cr-Commit-Position: refs/heads/master@{#314973}
Patch Set 1 #
Messages
Total messages: 9 (2 generated)
|