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

Unified Diff: remoting/protocol/fake_stream_socket.cc

Issue 609923004: Cleanup usage of scoped_ptr<> in remoting for C++11 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 58f11a09b719ff84eda4876e5c122772b32e50e4..57ce4f6ba279c9222be40894a4629e222ab9e8b4 100644
--- a/remoting/protocol/fake_stream_socket.cc
+++ b/remoting/protocol/fake_stream_socket.cc
@@ -266,7 +266,7 @@ void FakeStreamChannelFactory::NotifyChannelCreated(
const std::string& name,
const ChannelCreatedCallback& callback) {
if (channels_.find(name) != channels_.end())
- callback.Run(owned_channel.PassAs<net::StreamSocket>());
+ callback.Run(owned_channel.Pass());
}
void FakeStreamChannelFactory::CancelChannelCreation(const std::string& name) {

Powered by Google App Engine
This is Rietveld 408576698