fix: explicitly mark unlimited requests as max priority (#23118)

It's done for us implicitly here, but doing it ourselves avoids the DCHECK.
```
if ((load_flags_ & LOAD_IGNORE_LIMITS) != 0)
  SetPriority(MAXIMUM_PRIORITY);
```
Refs: https://source.chromium.org/chromium/chromium/src/+/master:net/url_request/url_request.cc;l=433;drc=0e1e59c69a449885aa58c403e05feb8274a67c3b;bpv=1;bpt=1
This commit is contained in:
loc 2020-04-20 12:16:34 -07:00 committed by GitHub
parent 5f2746c48b
commit 554830b6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -810,6 +810,7 @@ void ProxyingURLLoaderFactory::CreateLoaderAndStart(
network::ResourceRequest request = original_request;
if (ShouldIgnoreConnectionsLimit(request)) {
request.priority = net::RequestPriority::MAXIMUM_PRIORITY;
request.load_flags |= net::LOAD_IGNORE_LIMITS;
}