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

Unified Diff: remoting/protocol/fake_stream_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_stream_socket.cc
diff --git a/remoting/protocol/fake_stream_socket.cc b/remoting/protocol/fake_stream_socket.cc
index 1c84ee5f395b5c701dd2d8b3e7629795a12dbe12..aaa687df5d898087d1a538310b0fec3d9b23fab4 100644
--- a/remoting/protocol/fake_stream_socket.cc
+++ b/remoting/protocol/fake_stream_socket.cc
@@ -186,7 +186,7 @@ void FakeStreamChannelFactory::CreateChannel(
&FakeStreamChannelFactory::NotifyChannelCreated,
weak_factory_.GetWeakPtr(), base::Passed(&channel), name, callback));
} else {
- NotifyChannelCreated(channel.Pass(), name, callback);
+ NotifyChannelCreated(std::move(channel), name, callback);
}
}
@@ -195,7 +195,7 @@ void FakeStreamChannelFactory::NotifyChannelCreated(
const std::string& name,
const ChannelCreatedCallback& callback) {
if (channels_.find(name) != channels_.end())
- callback.Run(owned_channel.Pass());
+ callback.Run(std::move(owned_channel));
}
void FakeStreamChannelFactory::CancelChannelCreation(const std::string& name) {

Powered by Google App Engine
This is Rietveld 408576698