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

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: 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
Index: remoting/host/daemon_process_win.cc
diff --git a/remoting/host/daemon_process_win.cc b/remoting/host/daemon_process_win.cc
index 08ffff66818732bf9df84c1f8e06357dbfd9ade0..eab12862b17cdbeaef1089d12abd7afd88b4556f 100644
--- a/remoting/host/daemon_process_win.cc
+++ b/remoting/host/daemon_process_win.cc
@@ -226,8 +226,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(
@@ -238,7 +238,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() {

Powered by Google App Engine
This is Rietveld 408576698