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

Unified Diff: remoting/protocol/ice_transport_channel.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/ice_transport_channel.cc
diff --git a/remoting/protocol/ice_transport_channel.cc b/remoting/protocol/ice_transport_channel.cc
index 1ef4d7dcbe6004f733be441649036ef524ef27f4..61d626fe03f4921f4fef2173db00e8460416861d 100644
--- a/remoting/protocol/ice_transport_channel.cc
+++ b/remoting/protocol/ice_transport_channel.cc
@@ -91,7 +91,7 @@ void IceTransportChannel::OnPortAllocatorCreated(
scoped_ptr<cricket::PortAllocator> port_allocator){
DCHECK(!channel_.get());
- port_allocator_ = port_allocator.Pass();
+ port_allocator_ = std::move(port_allocator);
// Create P2PTransportChannel, attach signal handlers and connect it.
// TODO(sergeyu): Specify correct component ID for the channel.
@@ -144,7 +144,7 @@ void IceTransportChannel::NotifyConnected() {
new TransportChannelSocketAdapter(channel_.get()));
socket->SetOnDestroyedCallback(base::Bind(
&IceTransportChannel::OnChannelDestroyed, base::Unretained(this)));
- base::ResetAndReturn(&callback_).Run(socket.Pass());
+ base::ResetAndReturn(&callback_).Run(std::move(socket));
}
void IceTransportChannel::SetRemoteCredentials(const std::string& ufrag,

Powered by Google App Engine
This is Rietveld 408576698