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

Unified Diff: remoting/protocol/third_party_authenticator_base.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/protocol/third_party_authenticator_base.cc
diff --git a/remoting/protocol/third_party_authenticator_base.cc b/remoting/protocol/third_party_authenticator_base.cc
index 15de95c6e9d82037c07bafbe5e3b849e5aa5dd82..ec5490e8972fc81cac3171960dafed3cad8fc755 100644
--- a/remoting/protocol/third_party_authenticator_base.cc
+++ b/remoting/protocol/third_party_authenticator_base.cc
@@ -74,7 +74,7 @@ scoped_ptr<buzz::XmlElement> ThirdPartyAuthenticatorBase::GetNextMessage() {
scoped_ptr<buzz::XmlElement> message;
if (underlying_ && underlying_->state() == MESSAGE_READY) {
- message = underlying_->GetNextMessage().Pass();
+ message = underlying_->GetNextMessage();
} else {
message = CreateEmptyAuthenticatorMessage();
}
@@ -83,7 +83,7 @@ scoped_ptr<buzz::XmlElement> ThirdPartyAuthenticatorBase::GetNextMessage() {
AddTokenElements(message.get());
started_ = true;
}
- return message.Pass();
+ return message;
}
const std::string& ThirdPartyAuthenticatorBase::GetAuthKey() const {

Powered by Google App Engine
This is Rietveld 408576698