| Index: components/usb_service/usb_device_handle_impl.cc
|
| diff --git a/components/usb_service/usb_device_handle_impl.cc b/components/usb_service/usb_device_handle_impl.cc
|
| index 71883177cad6c5c9b525273c8c6ba94edde928f8..73b04b95eb7f260121ce1255951c6998d4a9fcf6 100644
|
| --- a/components/usb_service/usb_device_handle_impl.cc
|
| +++ b/components/usb_service/usb_device_handle_impl.cc
|
| @@ -196,7 +196,7 @@ UsbDeviceHandleImpl::UsbDeviceHandleImpl(
|
| context_(context) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| DCHECK(handle) << "Cannot create device with NULL handle.";
|
| - DCHECK(interfaces_) << "Unable to list interfaces";
|
| + DCHECK(interfaces_.get()) << "Unable to list interfaces";
|
| }
|
|
|
| UsbDeviceHandleImpl::~UsbDeviceHandleImpl() {
|
| @@ -532,7 +532,7 @@ void UsbDeviceHandleImpl::ControlTransfer(
|
| const size_t resized_length = LIBUSB_CONTROL_SETUP_SIZE + length;
|
| scoped_refptr<net::IOBuffer> resized_buffer(
|
| new net::IOBufferWithSize(static_cast<int>(resized_length)));
|
| - if (!resized_buffer) {
|
| + if (!resized_buffer.get()) {
|
| callback.Run(USB_TRANSFER_ERROR, buffer, 0);
|
| return;
|
| }
|
|
|