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

Unified Diff: device/usb/usb_device_impl.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_device_handle_unittest.cc ('k') | device/usb/usb_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_impl.h
diff --git a/device/usb/usb_device_impl.h b/device/usb/usb_device_impl.h
index 4c94485a283676dbc281d00a14123c1f749c8fe8..aea9b54cec1d138cc5d6dc27b57e96a88f1a934f 100644
--- a/device/usb/usb_device_impl.h
+++ b/device/usb/usb_device_impl.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <list>
+#include <memory>
#include <string>
#include <utility>
@@ -63,7 +64,7 @@ class UsbDeviceImpl : public UsbDevice {
}
void set_device_path(const std::string& value) { device_path_ = value; }
void set_webusb_allowed_origins(
- scoped_ptr<WebUsbAllowedOrigins> allowed_origins) {
+ std::unique_ptr<WebUsbAllowedOrigins> allowed_origins) {
webusb_allowed_origins_ = std::move(allowed_origins);
}
void set_webusb_landing_page(const GURL& url) { webusb_landing_page_ = url; }
« no previous file with comments | « device/usb/usb_device_handle_unittest.cc ('k') | device/usb/usb_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698