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

Unified Diff: net/http/http_network_transaction.cc

Issue 2895613002: Return Request as unique_ptr from JobController::Start(). (Closed)
Patch Set: Created 3 years, 7 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/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index e29b01d43e23a9c2f99c2bf647a483e891c25022..41ecfc44e5686d801e148657867af13d69cc99b0 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -840,17 +840,17 @@ int HttpNetworkTransaction::DoCreateStream() {
if (!enable_ip_based_pooling_)
DCHECK(!enable_alternative_services_);
if (ForWebSocketHandshake()) {
- stream_request_.reset(
+ stream_request_ =
session_->http_stream_factory_for_websocket()
->RequestWebSocketHandshakeStream(
*request_, priority_, server_ssl_config_, proxy_ssl_config_,
this, websocket_handshake_stream_base_create_helper_,
enable_ip_based_pooling_, enable_alternative_services_,
- net_log_));
+ net_log_);
} else {
- stream_request_.reset(session_->http_stream_factory()->RequestStream(
+ stream_request_ = session_->http_stream_factory()->RequestStream(
*request_, priority_, server_ssl_config_, proxy_ssl_config_, this,
- enable_ip_based_pooling_, enable_alternative_services_, net_log_));
+ enable_ip_based_pooling_, enable_alternative_services_, net_log_);
}
DCHECK(stream_request_.get());
return ERR_IO_PENDING;

Powered by Google App Engine
This is Rietveld 408576698