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

Unified Diff: device/hid/device_monitor_linux.cc

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/device_monitor_linux.h ('k') | device/hid/hid_connection_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/device_monitor_linux.cc
diff --git a/device/hid/device_monitor_linux.cc b/device/hid/device_monitor_linux.cc
index da78ca5be60e8dea1bbef4f7946402be64b2642b..9c900228fd6c45da961f88dab99b45393bdb750e 100644
--- a/device/hid/device_monitor_linux.cc
+++ b/device/hid/device_monitor_linux.cc
@@ -4,6 +4,8 @@
#include "device/hid/device_monitor_linux.h"
+#include <memory>
+
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/threading/thread_restrictions.h"
@@ -18,7 +20,7 @@ const char kUdevActionAdd[] = "add";
const char kUdevActionRemove[] = "remove";
// The instance will be reset when message loop destroys.
-base::LazyInstance<scoped_ptr<DeviceMonitorLinux> >::Leaky
+base::LazyInstance<std::unique_ptr<DeviceMonitorLinux>>::Leaky
g_device_monitor_linux_ptr = LAZY_INSTANCE_INITIALIZER;
} // namespace
« no previous file with comments | « device/hid/device_monitor_linux.h ('k') | device/hid/hid_connection_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698