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

Unified Diff: net/socket/unix_domain_listen_socket_posix.cc

Issue 657013003: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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: net/socket/unix_domain_listen_socket_posix.cc
diff --git a/net/socket/unix_domain_listen_socket_posix.cc b/net/socket/unix_domain_listen_socket_posix.cc
index dc7c19c9663863a1f9fdd43bdfaed1be3a49bfbf..3e46439c8b5304abe1345738eafdc25eb286ceff 100644
--- a/net/socket/unix_domain_listen_socket_posix.cc
+++ b/net/socket/unix_domain_listen_socket_posix.cc
@@ -124,7 +124,7 @@ void UnixDomainListenSocket::Accept() {
new UnixDomainListenSocket(conn, socket_delegate_, auth_callback_));
// It's up to the delegate to AddRef if it wants to keep it around.
sock->WatchSocket(WAITING_READ);
- socket_delegate_->DidAccept(this, sock.PassAs<StreamListenSocket>());
+ socket_delegate_->DidAccept(this, sock.Pass());
}
UnixDomainListenSocketFactory::UnixDomainListenSocketFactory(
@@ -138,7 +138,7 @@ UnixDomainListenSocketFactory::~UnixDomainListenSocketFactory() {}
scoped_ptr<StreamListenSocket> UnixDomainListenSocketFactory::CreateAndListen(
StreamListenSocket::Delegate* delegate) const {
return UnixDomainListenSocket::CreateAndListen(
- path_, delegate, auth_callback_).PassAs<StreamListenSocket>();
+ path_, delegate, auth_callback_).Pass();
}
#if defined(SOCKET_ABSTRACT_NAMESPACE_SUPPORTED)
@@ -158,8 +158,7 @@ scoped_ptr<StreamListenSocket>
UnixDomainListenSocketWithAbstractNamespaceFactory::CreateAndListen(
StreamListenSocket::Delegate* delegate) const {
return UnixDomainListenSocket::CreateAndListenWithAbstractNamespace(
- path_, fallback_path_, delegate, auth_callback_)
- .PassAs<StreamListenSocket>();
+ path_, fallback_path_, delegate, auth_callback_);
}
#endif
« no previous file with comments | « net/socket/transport_client_socket_pool_test_util.cc ('k') | net/test/embedded_test_server/embedded_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698