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

Unified Diff: remoting/host/local_input_monitor_x11.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/host/local_input_monitor_win.cc ('k') | remoting/host/mac/me2me_preference_pane.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/local_input_monitor_x11.cc
diff --git a/remoting/host/local_input_monitor_x11.cc b/remoting/host/local_input_monitor_x11.cc
index 060e38287a9046709e9d5046a4d6663f94c391a1..32d5eb59034ef10cd2386aa8a4c3043a25764b67 100644
--- a/remoting/host/local_input_monitor_x11.cc
+++ b/remoting/host/local_input_monitor_x11.cc
@@ -6,6 +6,8 @@
#include <sys/select.h>
#include <unistd.h>
+
+#include "base/memory/ptr_util.h"
#define XK_MISCELLANY
#include <X11/keysymdef.h>
@@ -317,12 +319,12 @@ void LocalInputMonitorX11::Core::ProcessReply(XPointer self,
} // namespace
-scoped_ptr<LocalInputMonitor> LocalInputMonitor::Create(
+std::unique_ptr<LocalInputMonitor> LocalInputMonitor::Create(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
base::WeakPtr<ClientSessionControl> client_session_control) {
- return make_scoped_ptr(new LocalInputMonitorX11(
+ return base::WrapUnique(new LocalInputMonitorX11(
caller_task_runner, input_task_runner, client_session_control));
}
« no previous file with comments | « remoting/host/local_input_monitor_win.cc ('k') | remoting/host/mac/me2me_preference_pane.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698