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

Unified Diff: remoting/host/desktop_session_proxy.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/desktop_session_proxy.cc
diff --git a/remoting/host/desktop_session_proxy.cc b/remoting/host/desktop_session_proxy.cc
index 6166d20aa5af2a0103411ab7ba2d89a85fa8a036..caeb7486647329e8daa383d0939279b295d6ad38 100644
--- a/remoting/host/desktop_session_proxy.cc
+++ b/remoting/host/desktop_session_proxy.cc
@@ -225,7 +225,7 @@ bool DesktopSessionProxy::AttachToDesktop(
if (!client_session_control_.get())
return false;
- desktop_process_ = desktop_process.Pass();
+ desktop_process_ = std::move(desktop_process);
#if defined(OS_WIN)
// On Windows: |desktop_process| is a valid handle, but |desktop_pipe| needs
@@ -399,7 +399,7 @@ void DesktopSessionProxy::StartInputInjector(
scoped_ptr<protocol::ClipboardStub> client_clipboard) {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
- client_clipboard_ = client_clipboard.Pass();
+ client_clipboard_ = std::move(client_clipboard);
}
void DesktopSessionProxy::SetScreenResolution(
@@ -518,7 +518,7 @@ void DesktopSessionProxy::OnCaptureCompleted(
}
--pending_capture_frame_requests_;
- PostCaptureCompleted(frame.Pass());
+ PostCaptureCompleted(std::move(frame));
}
void DesktopSessionProxy::OnMouseCursor(

Powered by Google App Engine
This is Rietveld 408576698