Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: trunk/src/content/browser/loader/resource_scheduler.cc

Issue 47563006: Revert 232802 "[Net] Assert that URLRequests with LOAD_IGNORE_LI..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/content/browser/loader/resource_dispatcher_host_impl.cc ('k') | trunk/src/net/ocsp/nss_ocsp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/browser/loader/resource_scheduler.cc
===================================================================
--- trunk/src/content/browser/loader/resource_scheduler.cc (revision 232831)
+++ trunk/src/content/browser/loader/resource_scheduler.cc (working copy)
@@ -273,12 +273,6 @@
void ResourceScheduler::ReprioritizeRequest(ScheduledResourceRequest* request,
net::RequestPriority new_priority) {
- if (request->url_request()->load_flags() & net::LOAD_IGNORE_LIMITS) {
- // We should not be re-prioritizing requests with the
- // IGNORE_LIMITS flag.
- NOTREACHED();
- return;
- }
net::RequestPriority old_priority = request->url_request()->priority();
DCHECK_NE(new_priority, old_priority);
request->url_request()->SetPriority(new_priority);
@@ -296,8 +290,7 @@
}
client->pending_requests.Erase(request);
- client->pending_requests.Insert(request,
- request->url_request()->priority());
+ client->pending_requests.Insert(request, request->url_request()->priority());
if (new_priority > old_priority) {
// Check if this request is now able to load at its new priority.
« no previous file with comments | « trunk/src/content/browser/loader/resource_dispatcher_host_impl.cc ('k') | trunk/src/net/ocsp/nss_ocsp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698