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

Unified Diff: device/serial/serial_device_enumerator.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/serial/serial_connection_unittest.cc ('k') | device/serial/serial_device_enumerator_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_device_enumerator.h
diff --git a/device/serial/serial_device_enumerator.h b/device/serial/serial_device_enumerator.h
index 77e2ae5d6c85dd846af4afb26a022fccf77195aa..836ba8b9afde3a3407ae884441289a8f15fa51de 100644
--- a/device/serial/serial_device_enumerator.h
+++ b/device/serial/serial_device_enumerator.h
@@ -5,7 +5,8 @@
#ifndef DEVICE_SERIAL_SERIAL_DEVICE_ENUMERATOR_H_
#define DEVICE_SERIAL_SERIAL_DEVICE_ENUMERATOR_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "device/serial/serial.mojom.h"
#include "mojo/public/cpp/bindings/array.h"
@@ -14,7 +15,7 @@ namespace device {
// Discovers and enumerates serial devices available to the host.
class SerialDeviceEnumerator {
public:
- static scoped_ptr<SerialDeviceEnumerator> Create();
+ static std::unique_ptr<SerialDeviceEnumerator> Create();
SerialDeviceEnumerator();
virtual ~SerialDeviceEnumerator();
« no previous file with comments | « device/serial/serial_connection_unittest.cc ('k') | device/serial/serial_device_enumerator_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698