| Index: content/browser/loader/resource_scheduler.cc
|
| diff --git a/content/browser/loader/resource_scheduler.cc b/content/browser/loader/resource_scheduler.cc
|
| index cda8a6c787bf5e679b9242456898468373ac750f..c3500fa980310b2d30c474dd4ca1846ba53abaa6 100644
|
| --- a/content/browser/loader/resource_scheduler.cc
|
| +++ b/content/browser/loader/resource_scheduler.cc
|
| @@ -504,11 +504,11 @@ class ResourceScheduler::Client {
|
| // Resources below the non_delayable_threshold that are being requested
|
| // from a server that does not support native prioritization are
|
| // considered delayable.
|
| - net::HostPortPair host_port_pair =
|
| - net::HostPortPair::FromURL(request->url_request()->url());
|
| + url::SchemeHostPort scheme_host_port =
|
| + url::SchemeHostPort(request->url_request()->url());
|
| net::HttpServerProperties& http_server_properties =
|
| *request->url_request()->context()->http_server_properties();
|
| - if (!http_server_properties.SupportsRequestPriority(host_port_pair))
|
| + if (!http_server_properties.SupportsRequestPriority(scheme_host_port))
|
| attributes |= kAttributeDelayable;
|
| }
|
|
|
| @@ -597,13 +597,15 @@ class ResourceScheduler::Client {
|
|
|
| net::HostPortPair host_port_pair =
|
| net::HostPortPair::FromURL(url_request.url());
|
| + url::SchemeHostPort scheme_host_port =
|
| + url::SchemeHostPort(url_request.url());
|
| net::HttpServerProperties& http_server_properties =
|
| *url_request.context()->http_server_properties();
|
|
|
| // TODO(willchan): We should really improve this algorithm as described in
|
| // crbug.com/164101. Also, theoretically we should not count a
|
| // request-priority capable request against the delayable requests limit.
|
| - if (http_server_properties.SupportsRequestPriority(host_port_pair))
|
| + if (http_server_properties.SupportsRequestPriority(scheme_host_port))
|
| return START_REQUEST;
|
|
|
| // Non-delayable requests.
|
|
|