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

Unified Diff: remoting/client/jni/chromoting_jni_instance.cc

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
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
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/chromoting_jni_instance.cc
diff --git a/remoting/client/jni/chromoting_jni_instance.cc b/remoting/client/jni/chromoting_jni_instance.cc
index 02a701ff47576c044289a0a9965463b8d40c7d3e..82c34e9fe6b03133f66ce8d2b11d93e7131d2910 100644
--- a/remoting/client/jni/chromoting_jni_instance.cc
+++ b/remoting/client/jni/chromoting_jni_instance.cc
@@ -7,6 +7,8 @@
#include <android/log.h>
#include <stdint.h>
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
#include "jingle/glue/thread_wrapper.h"
@@ -86,7 +88,7 @@ ChromotingJniInstance::ChromotingJniInstance(ChromotingJniRuntime* jni_runtime,
authenticator_.reset(new protocol::NegotiatingClientAuthenticator(
pairing_id, pairing_secret, host_id_,
base::Bind(&ChromotingJniInstance::FetchSecret, this),
- token_fetcher.Pass(), auth_methods));
+ std::move(token_fetcher), auth_methods));
// Post a task to start connection
jni_runtime_->network_task_runner()->PostTask(
@@ -430,10 +432,10 @@ void ChromotingJniInstance::ConnectToHostOnNetworkThread() {
scoped_refptr<protocol::TransportContext> transport_context =
new protocol::TransportContext(
- signaling_.get(), port_allocator_factory.Pass(), network_settings,
+ signaling_.get(), std::move(port_allocator_factory), network_settings,
protocol::TransportRole::CLIENT);
- client_->Start(signaling_.get(), authenticator_.Pass(), transport_context,
+ client_->Start(signaling_.get(), std::move(authenticator_), transport_context,
host_jid_, capabilities_);
}
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698