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

Unified Diff: device/test/usb_test_gadget.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/test/test_device_client.h ('k') | device/test/usb_test_gadget_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/test/usb_test_gadget.h
diff --git a/device/test/usb_test_gadget.h b/device/test/usb_test_gadget.h
index b1a8642c9a5ea6626324e824038293c5cd130bca..f695bf23680413cf884dd8c1fc83935dd7651604 100644
--- a/device/test/usb_test_gadget.h
+++ b/device/test/usb_test_gadget.h
@@ -5,11 +5,11 @@
#ifndef DEVICE_TEST_USB_TEST_GADGET_H_
#define DEVICE_TEST_USB_TEST_GADGET_H_
+#include <memory>
#include <string>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
namespace base {
class SingleThreadTaskRunner;
@@ -32,7 +32,7 @@ class UsbTestGadget {
virtual ~UsbTestGadget() {}
static bool IsTestEnabled();
- static scoped_ptr<UsbTestGadget> Claim(
+ static std::unique_ptr<UsbTestGadget> Claim(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner);
virtual bool Unclaim() = 0;
« no previous file with comments | « device/test/test_device_client.h ('k') | device/test/usb_test_gadget_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698