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

Unified Diff: net/websockets/websocket_handshake_stream_create_helper.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
Index: net/websockets/websocket_handshake_stream_create_helper.cc
diff --git a/net/websockets/websocket_handshake_stream_create_helper.cc b/net/websockets/websocket_handshake_stream_create_helper.cc
index 2bd59a125325d39eda5d909910503c03a253b3d3..e8985a1babc092f9496a3eef0cebc6b427fcd42f 100644
--- a/net/websockets/websocket_handshake_stream_create_helper.cc
+++ b/net/websockets/websocket_handshake_stream_create_helper.cc
@@ -4,6 +4,8 @@
#include "net/websockets/websocket_handshake_stream_create_helper.h"
+#include <utility>
+
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
@@ -35,13 +37,9 @@ WebSocketHandshakeStreamCreateHelper::CreateBasicStream(
// method.
std::vector<std::string> extensions(
1, "permessage-deflate; client_max_window_bits");
- WebSocketBasicHandshakeStream* stream =
- new WebSocketBasicHandshakeStream(connection.Pass(),
- connect_delegate_,
- using_proxy,
- requested_subprotocols_,
- extensions,
- failure_message_);
+ WebSocketBasicHandshakeStream* stream = new WebSocketBasicHandshakeStream(
+ std::move(connection), connect_delegate_, using_proxy,
+ requested_subprotocols_, extensions, failure_message_);
OnStreamCreated(stream);
stream_ = stream;
return stream;
« no previous file with comments | « net/websockets/websocket_frame_parser.cc ('k') | net/websockets/websocket_handshake_stream_create_helper_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698