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

Unified Diff: chrome/browser/prerender/prerender_manager.cc

Issue 443413002: Enable TCP preconnect and DNS preresolve on cellular. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert removing predictor_enabled check. Created 6 years, 4 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 | « chrome/browser/prefetch/prefetch.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_manager.cc
diff --git a/chrome/browser/prerender/prerender_manager.cc b/chrome/browser/prerender/prerender_manager.cc
index 38f8f160be615138987a2b48fd9206cca119c8c8..ea4bba111536acb9d665c6cc904640be56e7e3c8 100644
--- a/chrome/browser/prerender/prerender_manager.cc
+++ b/chrome/browser/prerender/prerender_manager.cc
@@ -1866,7 +1866,7 @@ bool PrerenderManager::IsEnabled() const {
if (profile_ && profile_->GetPrefs() &&
profile_->GetPrefs()->GetInteger(prefs::kNetworkPredictionOptions) !=
chrome_browser_net::NETWORK_PREDICTION_UNSET) {
- return chrome_browser_net::CanPredictNetworkActionsUI(profile_->GetPrefs());
+ return chrome_browser_net::CanPrefetchAndPrerenderUI(profile_->GetPrefs());
}
// TODO(bnc): remove rest of method as per crbug.com/334602.
if (!enabled_)
« no previous file with comments | « chrome/browser/prefetch/prefetch.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698