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

Unified Diff: remoting/protocol/pairing_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/pairing_authenticator_base.cc
diff --git a/remoting/protocol/pairing_authenticator_base.cc b/remoting/protocol/pairing_authenticator_base.cc
index 4375e6557a7e42734a9360e7559b07b9a2120912..d063dc3b17c51858087e892b18032b6fb05cbdeb 100644
--- a/remoting/protocol/pairing_authenticator_base.cc
+++ b/remoting/protocol/pairing_authenticator_base.cc
@@ -91,7 +91,7 @@ scoped_ptr<buzz::XmlElement> PairingAuthenticatorBase::GetNextMessage() {
scoped_ptr<buzz::XmlElement> result = v2_authenticator_->GetNextMessage();
AddPairingElements(result.get());
MaybeAddErrorMessage(result.get());
- return result.Pass();
+ return result;
}
const std::string& PairingAuthenticatorBase::GetAuthKey() const {
@@ -153,7 +153,7 @@ void PairingAuthenticatorBase::SetAuthenticatorAndProcessMessage(
DCHECK(!v2_authenticator_);
DCHECK(authenticator);
waiting_for_authenticator_ = false;
- v2_authenticator_ = authenticator.Pass();
+ v2_authenticator_ = std::move(authenticator);
if (message) {
ProcessMessage(message, resume_callback);
} else {

Powered by Google App Engine
This is Rietveld 408576698