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

Unified Diff: chrome/browser/predictors/resource_prefetcher.cc

Issue 2692093006: predictors: Downgrade net priority of prefetch requests. (Closed)
Patch Set: Change priority to IDLE. Created 3 years, 10 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/predictors/resource_prefetcher.cc
diff --git a/chrome/browser/predictors/resource_prefetcher.cc b/chrome/browser/predictors/resource_prefetcher.cc
index cc1d46616c556a1b415b8653e90a315283dd5634..69607a6e2f488d3920a8eae691f348b7d3f0259b 100644
--- a/chrome/browser/predictors/resource_prefetcher.cc
+++ b/chrome/browser/predictors/resource_prefetcher.cc
@@ -140,7 +140,7 @@ void ResourcePrefetcher::TryToLaunchPrefetchRequests() {
void ResourcePrefetcher::SendRequest(const GURL& url) {
std::unique_ptr<net::URLRequest> url_request =
- delegate_->GetURLRequestContext()->CreateRequest(url, net::LOW, this);
+ delegate_->GetURLRequestContext()->CreateRequest(url, net::IDLE, this);
host_inflight_counts_[url.host()] += 1;
url_request->set_method("GET");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698