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

Unified Diff: device/usb/usb_device.cc

Issue 2690383002: Add device path enumeration to the new Windows USB backend. (Closed)
Patch Set: Fix a comment. Created 3 years, 10 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 | « device/usb/usb_device.h ('k') | device/usb/usb_device_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device.cc
diff --git a/device/usb/usb_device.cc b/device/usb/usb_device.cc
index c7ffa73c9cd89cdbc9e5ec88e5c36b2132d07ed4..b6198d021e64fb4ae3cd2d96c72b99d27222c9f1 100644
--- a/device/usb/usb_device.cc
+++ b/device/usb/usb_device.cc
@@ -14,6 +14,8 @@ UsbDevice::Observer::~Observer() {}
void UsbDevice::Observer::OnDeviceRemoved(scoped_refptr<UsbDevice> device) {}
+UsbDevice::UsbDevice() : guid_(base::GenerateGUID()) {}
+
UsbDevice::UsbDevice(const UsbDeviceDescriptor& descriptor,
const base::string16& manufacturer_string,
const base::string16& product_string,
@@ -47,8 +49,7 @@ UsbDevice::UsbDevice(uint16_t usb_version,
descriptor_.device_version = device_version;
}
-UsbDevice::~UsbDevice() {
-}
+UsbDevice::~UsbDevice() {}
void UsbDevice::CheckUsbAccess(const ResultCallback& callback) {
// By default assume that access to the device is allowed. This is implemented
« no previous file with comments | « device/usb/usb_device.h ('k') | device/usb/usb_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698