Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2259)

Unified Diff: device/usb/usb_device_handle_impl.cc

Issue 1958823002: Fix implicit access to raw pointer of scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitting out change to scoped_refptr to follow up patch. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/usb/usb_device_handle_impl.cc
diff --git a/device/usb/usb_device_handle_impl.cc b/device/usb/usb_device_handle_impl.cc
index 1ae86092d830ae57d4d6060da5097c6ee9549d67..781d8b67c2ce384684fb193223e1f27ad2133628 100644
--- a/device/usb/usb_device_handle_impl.cc
+++ b/device/usb/usb_device_handle_impl.cc
@@ -862,7 +862,7 @@ void UsbDeviceHandleImpl::ClaimInterfaceComplete(
interface_claimer;
RefreshEndpointMap();
}
- callback.Run(interface_claimer);
+ callback.Run(static_cast<bool>(interface_claimer));
}
void UsbDeviceHandleImpl::SetInterfaceAlternateSettingOnBlockingThread(

Powered by Google App Engine
This is Rietveld 408576698