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

Unified Diff: remoting/protocol/fake_datagram_socket.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/fake_datagram_socket.cc
diff --git a/remoting/protocol/fake_datagram_socket.cc b/remoting/protocol/fake_datagram_socket.cc
index 0e52d7c395e43d0f5856ea85011c842047b472ef..a5b194d9840a46c6c905dca44593a1b959202d2f 100644
--- a/remoting/protocol/fake_datagram_socket.cc
+++ b/remoting/protocol/fake_datagram_socket.cc
@@ -175,7 +175,7 @@ void FakeDatagramChannelFactory::CreateChannel(
weak_factory_.GetWeakPtr(), base::Passed(&channel),
name, callback));
} else {
- NotifyChannelCreated(channel.Pass(), name, callback);
+ NotifyChannelCreated(std::move(channel), name, callback);
}
}
@@ -184,7 +184,7 @@ void FakeDatagramChannelFactory::NotifyChannelCreated(
const std::string& name,
const ChannelCreatedCallback& callback) {
if (channels_.find(name) != channels_.end())
- callback.Run(owned_socket.Pass());
+ callback.Run(std::move(owned_socket));
}
void FakeDatagramChannelFactory::CancelChannelCreation(

Powered by Google App Engine
This is Rietveld 408576698