| 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 53f5c5bdf84b9d3d41904b007c2b5460ca9ad67e..bce71902bbace116d51dd1103a4be103636b8e6d 100644
|
| --- a/extensions/browser/api/usb/usb_api.cc
|
| +++ b/extensions/browser/api/usb/usb_api.cc
|
| @@ -694,7 +694,7 @@ void UsbRequestAccessFunction::AsyncWorkStart() {
|
| #if defined(OS_CHROMEOS)
|
| scoped_refptr<UsbDevice> device =
|
| GetDeviceOrCompleteWithError(parameters_->device);
|
| - if (!device)
|
| + if (!device.get())
|
| return;
|
|
|
| device->RequestUsbAccess(
|
|
|