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

Unified Diff: device/usb/usb_device_handle_impl.h

Issue 835313003: UsbDeviceHandleImpl must hold a scoped_refptr to UsbDeviceImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_handle_impl.h
diff --git a/device/usb/usb_device_handle_impl.h b/device/usb/usb_device_handle_impl.h
index 4e619d250191b08cdcf850e156eace24ff657e0d..688f8b9cf8db090b15be22aae83bfb32d293bb6c 100644
--- a/device/usb/usb_device_handle_impl.h
+++ b/device/usb/usb_device_handle_impl.h
@@ -86,7 +86,7 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
// This constructor is called by UsbDevice.
UsbDeviceHandleImpl(scoped_refptr<UsbContext> context,
- UsbDeviceImpl* device,
+ scoped_refptr<UsbDeviceImpl> device,
PlatformUsbDeviceHandle handle);
~UsbDeviceHandleImpl() override;
@@ -126,7 +126,7 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
// Informs the object to drop internal references.
void InternalClose();
- UsbDeviceImpl* device_;
+ scoped_refptr<UsbDeviceImpl> device_;
PlatformUsbDeviceHandle handle_;
« no previous file with comments | « no previous file | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698