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 012cc57aadc5923f3e4d61f107e623a17de37d3e..05cc15e4f2ccaf1df41d6e2ebb0feedc2f5ca003 100644 |
--- a/extensions/browser/api/usb/usb_api.cc |
+++ b/extensions/browser/api/usb/usb_api.cc |
@@ -464,7 +464,7 @@ UsbAsyncApiFunction::GetDeviceHandleOrCompleteWithError( |
return NULL; |
} |
- if (!resource->device() || !resource->device()->GetDevice()) { |
+ if (!resource->device().get() || !resource->device()->GetDevice().get()) { |
CompleteWithError(kErrorDisconnect); |
manager_->Remove(extension_->id(), input_device_handle.handle); |
return NULL; |