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

Unified Diff: device/hid/input_service_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/input_service_linux.h ('k') | device/media_transfer_protocol/media_transfer_protocol_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/input_service_linux.cc
diff --git a/device/hid/input_service_linux.cc b/device/hid/input_service_linux.cc
index 05b2cec500819e74af81e13f762f664384cf7904..d8053028fb67d847a0e3fdf8c1193f5fc927315f 100644
--- a/device/hid/input_service_linux.cc
+++ b/device/hid/input_service_linux.cc
@@ -4,6 +4,8 @@
#include "device/hid/input_service_linux.h"
+#include <memory>
+
#include "base/bind.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
@@ -33,7 +35,7 @@ const char kIdInputTouchpad[] = "ID_INPUT_TOUCHPAD";
const char kIdInputTouchscreen[] = "ID_INPUT_TOUCHSCREEN";
// The instance will be reset when message loop destroys.
-base::LazyInstance<scoped_ptr<InputServiceLinux> >::Leaky
+base::LazyInstance<std::unique_ptr<InputServiceLinux>>::Leaky
g_input_service_linux_ptr = LAZY_INSTANCE_INITIALIZER;
bool GetBoolProperty(udev_device* device, const char* key) {
« no previous file with comments | « device/hid/input_service_linux.h ('k') | device/media_transfer_protocol/media_transfer_protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698