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

Unified Diff: remoting/host/ipc_desktop_environment.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/ipc_desktop_environment.cc
diff --git a/remoting/host/ipc_desktop_environment.cc b/remoting/host/ipc_desktop_environment.cc
index cc6417e6761c0405473498bfdbdd16212b95deae..1a961145390d361016c828b83c0091f1a4082c99 100644
--- a/remoting/host/ipc_desktop_environment.cc
+++ b/remoting/host/ipc_desktop_environment.cc
@@ -199,7 +199,7 @@ void IpcDesktopEnvironmentFactory::OnDesktopSessionAgentAttached(
ActiveConnectionsList::iterator i = active_connections_.find(terminal_id);
if (i != active_connections_.end()) {
i->second->DetachFromDesktop();
- i->second->AttachToDesktop(desktop_process.Pass(), desktop_pipe);
+ i->second->AttachToDesktop(std::move(desktop_process), desktop_pipe);
} else {
#if defined(OS_POSIX)
DCHECK(desktop_pipe.auto_close);

Powered by Google App Engine
This is Rietveld 408576698