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

Unified Diff: chrome/browser/prefetch/prefetch.cc

Issue 1777833003: Unbundle link rel=prefetch from privacy settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed expectations in PrefetchBrowserTestPrediction.PreferenceWorks Created 4 years, 9 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 | chrome/browser/prefetch/prefetch_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefetch/prefetch.cc
diff --git a/chrome/browser/prefetch/prefetch.cc b/chrome/browser/prefetch/prefetch.cc
index a26233b8d6ba5ed7eefd12c381128a5b605d0549..2c07cc9560ba0c4cee58478d4f8f1f13460afc39 100644
--- a/chrome/browser/prefetch/prefetch.cc
+++ b/chrome/browser/prefetch/prefetch.cc
@@ -18,10 +18,7 @@ namespace prefetch {
bool IsPrefetchEnabled(content::ResourceContext* resource_context) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
- ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
- return chrome_browser_net::CanPrefetchAndPrerenderIO(io_data) ==
- chrome_browser_net::NetworkPredictionStatus::ENABLED &&
- !DisableForFieldTrial();
+ return !DisableForFieldTrial();
}
} // namespace prefetch
« no previous file with comments | « no previous file | chrome/browser/prefetch/prefetch_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698