Chromium Code Reviews| Index: net/http/http_stream_factory_impl_job.cc |
| diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc |
| index 375a71b9d3c5d208a7f573674fb410f542ac1141..5b3c5cd8515c86acdf02881cd12bd8fee48ad2ae 100644 |
| --- a/net/http/http_stream_factory_impl_job.cc |
| +++ b/net/http/http_stream_factory_impl_job.cc |
| @@ -318,8 +318,12 @@ void HttpStreamFactoryImpl::Job::Orphan() { |
| void HttpStreamFactoryImpl::Job::SetPriority(RequestPriority priority) { |
| priority_ = priority; |
| - // TODO(akalin): Propagate this to |connection_| and maybe the |
| - // preconnect state. |
| + // connection_ is moved to be owned by the newly created stream |
|
mmenke
2017/01/03 22:51:22
"connection_ is moved to be owned by the newly cre
mmenke
2017/01/03 22:51:22
Also, would it make more sense to put the TODO abo
Randy Smith (Not in Mondays)
2017/01/05 03:47:18
Huh; I had thought the PostTask() went to an objec
Randy Smith (Not in Mondays)
2017/01/05 03:47:18
Done.
|
| + // (or equivalent) in DoCreateStream(), and the consumer not notified |
| + // until after a PostTask, so this call may occur when connection_ is null. |
| + if (connection_) |
| + connection_->SetPriority(priority); |
| + // TODO(akalin): Maybe Propagate this to the preconnect state. |
| } |
| bool HttpStreamFactoryImpl::Job::was_alpn_negotiated() const { |