Index: content/renderer/usb/web_usb_client_impl.cc |
diff --git a/content/renderer/usb/web_usb_client_impl.cc b/content/renderer/usb/web_usb_client_impl.cc |
index ed9246a0aefc0b5baf37c44c442576d23e3cefbb..cf30b9d9f4e60f648626c38d33d3d4721271c3a3 100644 |
--- a/content/renderer/usb/web_usb_client_impl.cc |
+++ b/content/renderer/usb/web_usb_client_impl.cc |
@@ -161,11 +161,8 @@ void WebUSBClientImpl::OnDeviceChangeNotification( |
for (size_t i = 0; i < notification->devices_removed.size(); ++i) { |
const device::usb::DeviceInfoPtr& device_info = |
notification->devices_removed[i]; |
- device::usb::DevicePtr device; |
- device_manager_->GetDevice(device_info->guid, mojo::GetProxy(&device)); |
observer_->onDeviceDisconnected(blink::adoptWebPtr(new WebUSBDeviceImpl( |
- std::move(device), |
- mojo::ConvertTo<blink::WebUSBDeviceInfo>(device_info)))); |
+ nullptr, mojo::ConvertTo<blink::WebUSBDeviceInfo>(device_info)))); |
} |
} |