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

Unified Diff: net/socket/client_socket_factory.cc

Issue 1545233002: Convert Pass()→std::move() in //net (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
« no previous file with comments | « net/server/web_socket_encoder.cc ('k') | net/socket/client_socket_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/client_socket_factory.cc
diff --git a/net/socket/client_socket_factory.cc b/net/socket/client_socket_factory.cc
index e0bc81d5e3430ad2253fbacd6389192edfbd4858..cc2a243c91aa2494a33337010b2c98a8c02d4ebc 100644
--- a/net/socket/client_socket_factory.cc
+++ b/net/socket/client_socket_factory.cc
@@ -4,6 +4,8 @@
#include "net/socket/client_socket_factory.h"
+#include <utility>
+
#include "base/lazy_instance.h"
#include "build/build_config.h"
#include "net/cert/cert_database.h"
@@ -70,9 +72,8 @@ class DefaultClientSocketFactory : public ClientSocketFactory,
const SSLConfig& ssl_config,
const SSLClientSocketContext& context) override {
#if defined(USE_OPENSSL)
- return scoped_ptr<SSLClientSocket>(
- new SSLClientSocketOpenSSL(transport_socket.Pass(), host_and_port,
- ssl_config, context));
+ return scoped_ptr<SSLClientSocket>(new SSLClientSocketOpenSSL(
+ std::move(transport_socket), host_and_port, ssl_config, context));
#else
return scoped_ptr<SSLClientSocket>(new SSLClientSocketNSS(
transport_socket.Pass(), host_and_port, ssl_config, context));
« no previous file with comments | « net/server/web_socket_encoder.cc ('k') | net/socket/client_socket_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698