| Index: extensions/browser/api/usb/usb_api.cc
|
| diff --git a/extensions/browser/api/usb/usb_api.cc b/extensions/browser/api/usb/usb_api.cc
|
| index 44d6f4cd3be6df5bd7078e6a89c2c3526417f417..329287cd2f73536017b478553cc67e8b830a89fc 100644
|
| --- a/extensions/browser/api/usb/usb_api.cc
|
| +++ b/extensions/browser/api/usb/usb_api.cc
|
| @@ -940,7 +940,7 @@ void UsbCloseDeviceFunction::AsyncWorkStart() {
|
| if (!device_handle.get())
|
| return;
|
|
|
| - device_handle->Close();
|
| + // The device handle is closed when the resource is destroyed.
|
| RemoveUsbDeviceResource(parameters_->handle.handle);
|
| AsyncWorkCompleted();
|
| }
|
|
|