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

Unified Diff: device/usb/usb_device.h

Issue 1874313002: Convert device to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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_descriptors_unittest.cc ('k') | device/usb/usb_device_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device.h
diff --git a/device/usb/usb_device.h b/device/usb/usb_device.h
index 64509843bc2edef7732a76978bb55a2d36a53faa..2d773ddd60ad747d60b3f2ff834de2159c86f930 100644
--- a/device/usb/usb_device.h
+++ b/device/usb/usb_device.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
@@ -108,7 +109,7 @@ class UsbDevice : public base::RefCountedThreadSafe<UsbDevice> {
base::string16 manufacturer_string_;
base::string16 product_string_;
base::string16 serial_number_;
- scoped_ptr<WebUsbAllowedOrigins> webusb_allowed_origins_;
+ std::unique_ptr<WebUsbAllowedOrigins> webusb_allowed_origins_;
GURL webusb_landing_page_;
// All of the device's configuration descriptors.
« no previous file with comments | « device/usb/usb_descriptors_unittest.cc ('k') | device/usb/usb_device_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698