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

Unified Diff: remoting/host/chromoting_host.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/chromeos/skia_bitmap_desktop_frame.cc ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 0b18314112dde87defa676e40c59c42958d6b3b4..3fdfaaa20e658462119dca9d2a80affa80a34bc0 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <algorithm>
+#include <utility>
#include "base/bind.h"
#include "base/callback.h"
@@ -71,7 +72,7 @@ ChromotingHost::ChromotingHost(
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner)
: desktop_environment_factory_(desktop_environment_factory),
- session_manager_(session_manager.Pass()),
+ session_manager_(std::move(session_manager)),
audio_task_runner_(audio_task_runner),
input_task_runner_(input_task_runner),
video_capture_task_runner_(video_capture_task_runner),
@@ -134,7 +135,7 @@ void ChromotingHost::AddExtension(scoped_ptr<HostExtension> extension) {
void ChromotingHost::SetAuthenticatorFactory(
scoped_ptr<protocol::AuthenticatorFactory> authenticator_factory) {
DCHECK(CalledOnValidThread());
- session_manager_->set_authenticator_factory(authenticator_factory.Pass());
+ session_manager_->set_authenticator_factory(std::move(authenticator_factory));
}
void ChromotingHost::SetEnableCurtaining(bool enable) {
@@ -283,8 +284,8 @@ void ChromotingHost::OnIncomingSession(
ClientSession* client = new ClientSession(
this, audio_task_runner_, input_task_runner_, video_capture_task_runner_,
video_encode_task_runner_, network_task_runner_, ui_task_runner_,
- connection.Pass(), desktop_environment_factory_, max_session_duration_,
- pairing_registry_, extensions_.get());
+ std::move(connection), desktop_environment_factory_,
+ max_session_duration_, pairing_registry_, extensions_.get());
clients_.push_back(client);
}
« no previous file with comments | « remoting/host/chromeos/skia_bitmap_desktop_frame.cc ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698