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

Unified Diff: remoting/host/win/worker_process_launcher.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/win/worker_process_launcher.cc
diff --git a/remoting/host/win/worker_process_launcher.cc b/remoting/host/win/worker_process_launcher.cc
index 6daf02f8b4889375a3e2c76f61fdec7a3075a7cc..3b2656f73908c0c39a0f14d9180d9315a412b1b0 100644
--- a/remoting/host/win/worker_process_launcher.cc
+++ b/remoting/host/win/worker_process_launcher.cc
@@ -55,7 +55,7 @@ WorkerProcessLauncher::WorkerProcessLauncher(
scoped_ptr<WorkerProcessLauncher::Delegate> launcher_delegate,
WorkerProcessIpcDelegate* ipc_handler)
: ipc_handler_(ipc_handler),
- launcher_delegate_(launcher_delegate.Pass()),
+ launcher_delegate_(std::move(launcher_delegate)),
exit_code_(CONTROL_C_EXIT),
ipc_enabled_(false),
kill_process_timeout_(
@@ -119,7 +119,7 @@ void WorkerProcessLauncher::OnProcessLaunched(
}
ipc_enabled_ = true;
- worker_process_ = worker_process.Pass();
+ worker_process_ = std::move(worker_process);
}
void WorkerProcessLauncher::OnFatalError() {

Powered by Google App Engine
This is Rietveld 408576698