Chromium Code Reviews| Index: net/http/http_pipelined_stream.cc |
| diff --git a/net/http/http_pipelined_stream.cc b/net/http/http_pipelined_stream.cc |
| index 2183c528fcfbd749c99683af6cc4b20e73ac1b7f..f4b8401d187f3705b268d966e09d94670e1738eb 100644 |
| --- a/net/http/http_pipelined_stream.cc |
| +++ b/net/http/http_pipelined_stream.cc |
| @@ -71,8 +71,11 @@ void HttpPipelinedStream::Close(bool not_reusable) { |
| } |
| HttpStream* HttpPipelinedStream::RenewStreamForAuth() { |
| - // FIXME: What does this mean on a pipeline? Is it for proxies? |
| - return new HttpPipelinedStream(pipeline_, pipeline_id_); |
| + if (pipeline_->usable()) { |
| + return pipeline_->CreateNewStream(); |
| + } else { |
|
mmenke
2011/11/01 14:21:55
nit: It's chrome style not to use else statements
|
| + return NULL; |
| + } |
| } |
| bool HttpPipelinedStream::IsResponseBodyComplete() const { |