Index: net/http/http_stream_factory_impl_job_controller.cc |
diff --git a/net/http/http_stream_factory_impl_job_controller.cc b/net/http/http_stream_factory_impl_job_controller.cc |
index 1e7ea76ade0fcbbf8bf9106caa33ab44ac0352c3..b23470229c3543532a51f1e722091ef68a865467 100644 |
--- a/net/http/http_stream_factory_impl_job_controller.cc |
+++ b/net/http/http_stream_factory_impl_job_controller.cc |
@@ -477,21 +477,19 @@ void HttpStreamFactoryImpl::JobController::OnNewSpdySessionReady( |
MarkRequestComplete(was_alpn_negotiated, negotiated_protocol, using_spdy); |
- std::unique_ptr<HttpStream> stream; |
- std::unique_ptr<BidirectionalStreamImpl> bidirectional_stream_impl; |
- |
if (for_websockets()) { |
// TODO(ricea): Re-instate this code when WebSockets over SPDY is |
// implemented. |
NOTREACHED(); |
} else if (job->stream_type() == HttpStreamRequest::BIDIRECTIONAL_STREAM) { |
- bidirectional_stream_impl = job->ReleaseBidirectionalStream(); |
+ std::unique_ptr<BidirectionalStreamImpl> bidirectional_stream_impl = |
+ job->ReleaseBidirectionalStream(); |
DCHECK(bidirectional_stream_impl); |
delegate_->OnBidirectionalStreamImplReady( |
used_ssl_config, used_proxy_info, |
bidirectional_stream_impl.release()); |
} else { |
- stream = job->ReleaseStream(); |
+ std::unique_ptr<HttpStream> stream = job->ReleaseStream(); |
DCHECK(stream); |
delegate_->OnStreamReady(used_ssl_config, used_proxy_info, |
stream.release()); |