Pass full Mojo USB DeviceInfo object with removal notifications.
commit9321ddbbec0c37f7a55b0923977aef92b1a80db4
authorreillyg <reillyg@chromium.org>
Tue, 15 Sep 2015 21:17:53 +0000 (15 14:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 15 Sep 2015 21:18:29 +0000 (15 21:18 +0000)
tree9e28bf146256389ed8d4beb2a4d56453ab415596
parent6038fd1576b306d247757610a838a1b1053560d7
Pass full Mojo USB DeviceInfo object with removal notifications.

This change provides callers of GetDeviceChanges with the full
DeviceInfo structure for the removed USB device. This makes it possible
to make decisions about how to handle the removal event without caching
information about devices if more than just the GUID is needed.

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

Cr-Commit-Position: refs/heads/master@{#348998}
device/devices_app/usb/device_manager_impl.cc
device/devices_app/usb/device_manager_impl.h
device/devices_app/usb/device_manager_impl_unittest.cc
device/devices_app/usb/public/interfaces/device_manager.mojom