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

Unified Diff: remoting/host/daemon_process_win.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
Patch Set: include <utility> Created 5 years 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/client_session_unittest.cc ('k') | remoting/host/desktop_capturer_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/daemon_process_win.cc
diff --git a/remoting/host/daemon_process_win.cc b/remoting/host/daemon_process_win.cc
index e290857cbcba5fad16663b48fa9b4dae44c1dddb..6d651ac321328aa0bf44ba42b394de83c27ce066 100644
--- a/remoting/host/daemon_process_win.cc
+++ b/remoting/host/daemon_process_win.cc
@@ -6,6 +6,8 @@
#include <stdint.h>
+#include <utility>
+
#include "base/base_switches.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -229,8 +231,8 @@ void DaemonProcessWin::LaunchNetworkProcess() {
kCopiedSwitchNames, arraysize(kCopiedSwitchNames));
scoped_ptr<UnprivilegedProcessDelegate> delegate(
- new UnprivilegedProcessDelegate(io_task_runner(), target.Pass()));
- network_launcher_.reset(new WorkerProcessLauncher(delegate.Pass(), this));
+ new UnprivilegedProcessDelegate(io_task_runner(), std::move(target)));
+ network_launcher_.reset(new WorkerProcessLauncher(std::move(delegate), this));
}
scoped_ptr<DaemonProcess> DaemonProcess::Create(
@@ -241,7 +243,7 @@ scoped_ptr<DaemonProcess> DaemonProcess::Create(
new DaemonProcessWin(caller_task_runner, io_task_runner,
stopped_callback));
daemon_process->Initialize();
- return daemon_process.Pass();
+ return std::move(daemon_process);
}
void DaemonProcessWin::DisableAutoStart() {
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/desktop_capturer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698