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

Unified Diff: remoting/protocol/secure_channel_factory.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/secure_channel_factory.cc
diff --git a/remoting/protocol/secure_channel_factory.cc b/remoting/protocol/secure_channel_factory.cc
index abfd178343034b617b5112ab66543fbe7ffdb235..a07279596887c0936a3b428df3d16c634680e9f3 100644
--- a/remoting/protocol/secure_channel_factory.cc
+++ b/remoting/protocol/secure_channel_factory.cc
@@ -59,7 +59,7 @@ void SecureChannelFactory::OnBaseChannelCreated(
authenticator_->CreateChannelAuthenticator().release();
channel_authenticators_[name] = channel_authenticator;
channel_authenticator->SecureAndAuthenticate(
- socket.Pass(),
+ std::move(socket),
base::Bind(&SecureChannelFactory::OnSecureChannelCreated,
base::Unretained(this), name, callback));
}
@@ -76,7 +76,7 @@ void SecureChannelFactory::OnSecureChannelCreated(
delete it->second;
channel_authenticators_.erase(it);
- callback.Run(socket.Pass());
+ callback.Run(std::move(socket));
}
} // namespace protocol

Powered by Google App Engine
This is Rietveld 408576698