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

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: 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/desktop_session_agent.cc ('k') | remoting/host/desktop_session_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_proxy.cc
diff --git a/remoting/host/desktop_session_proxy.cc b/remoting/host/desktop_session_proxy.cc
index 19b5eb904c1c9c95eea2211a8e7e9acb8cfd3a25..1cedfd5d43332f42a440e50d8cc0002d4d2c2df9 100644
--- a/remoting/host/desktop_session_proxy.cc
+++ b/remoting/host/desktop_session_proxy.cc
@@ -6,6 +6,8 @@
#include <stddef.h>
+#include <utility>
+
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/macros.h"
@@ -229,7 +231,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
@@ -403,7 +405,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(
@@ -522,7 +524,7 @@ void DesktopSessionProxy::OnCaptureCompleted(
}
--pending_capture_frame_requests_;
- PostCaptureCompleted(frame.Pass());
+ PostCaptureCompleted(std::move(frame));
}
void DesktopSessionProxy::OnMouseCursor(
« no previous file with comments | « remoting/host/desktop_session_agent.cc ('k') | remoting/host/desktop_session_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698