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

Unified Diff: remoting/host/register_support_host_request.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/policy_watcher.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/register_support_host_request.cc
diff --git a/remoting/host/register_support_host_request.cc b/remoting/host/register_support_host_request.cc
index 33d931abf598f4faf8cc3ab80d4a13814f4d7bce..01955a6900c83fc14f652596d7ba6288463a2b1b 100644
--- a/remoting/host/register_support_host_request.cc
+++ b/remoting/host/register_support_host_request.cc
@@ -65,7 +65,7 @@ void RegisterSupportHostRequest::OnSignalStrategyStateChange(
request_ = iq_sender_->SendIq(
buzz::STR_SET, directory_bot_jid_,
- CreateRegistrationRequest(signal_strategy_->GetLocalJid()).Pass(),
+ CreateRegistrationRequest(signal_strategy_->GetLocalJid()),
base::Bind(&RegisterSupportHostRequest::ProcessResponse,
base::Unretained(this)));
} else if (state == SignalStrategy::DISCONNECTED) {
@@ -90,7 +90,7 @@ scoped_ptr<XmlElement> RegisterSupportHostRequest::CreateRegistrationRequest(
public_key->AddText(key_pair_->GetPublicKey());
query->AddElement(public_key);
query->AddElement(CreateSignature(jid).release());
- return query.Pass();
+ return query;
}
scoped_ptr<XmlElement> RegisterSupportHostRequest::CreateSignature(
@@ -107,7 +107,7 @@ scoped_ptr<XmlElement> RegisterSupportHostRequest::CreateSignature(
std::string signature(key_pair_->SignMessage(message));
signature_tag->AddText(signature);
- return signature_tag.Pass();
+ return signature_tag;
}
void RegisterSupportHostRequest::ParseResponse(const XmlElement* response,
« no previous file with comments | « remoting/host/policy_watcher.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698