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

Unified Diff: device/hid/hid_service.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/hid/hid_connection_unittest.cc ('k') | device/hid/hid_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_service.h
diff --git a/device/hid/hid_service.h b/device/hid/hid_service.h
index f143fad26bc7993de6333e8ebfa4e85bf2d21854..bcff953411cd831ca66f00a594b0dc88458165c4 100644
--- a/device/hid/hid_service.h
+++ b/device/hid/hid_service.h
@@ -6,13 +6,13 @@
#define DEVICE_HID_HID_SERVICE_H_
#include <map>
+#include <memory>
#include <string>
#include <vector>
#include "base/bind_helpers.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_checker.h"
@@ -47,7 +47,7 @@ class HidService {
// This function should be called on a thread with a MessageLoopForUI and be
// passed the task runner for a thread with a MessageLoopForIO.
- static scoped_ptr<HidService> Create(
+ static std::unique_ptr<HidService> Create(
scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
virtual ~HidService();
« no previous file with comments | « device/hid/hid_connection_unittest.cc ('k') | device/hid/hid_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698