Commit 85ee7102 authored by bnc's avatar bnc Committed by Commit bot

Remove CanPredictNetworkActionsUI from prediction_options.cc.

BUG=406586

Review URL: https://codereview.chromium.org/518973002

Cr-Commit-Position: refs/heads/master@{#292940}
parent 7918b253
...@@ -81,10 +81,6 @@ bool CanPrefetchAndPrerenderUI(PrefService* prefs) { ...@@ -81,10 +81,6 @@ bool CanPrefetchAndPrerenderUI(PrefService* prefs) {
prefs->GetInteger(prefs::kNetworkPredictionOptions)); prefs->GetInteger(prefs::kNetworkPredictionOptions));
} }
bool CanPredictNetworkActionsUI(PrefService* prefs) {
return CanPrefetchAndPrerenderUI(prefs);
}
bool CanPreresolveAndPreconnectIO(ProfileIOData* profile_io_data) { bool CanPreresolveAndPreconnectIO(ProfileIOData* profile_io_data) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO));
DCHECK(profile_io_data); DCHECK(profile_io_data);
......
...@@ -40,10 +40,6 @@ bool CanPrefetchAndPrerenderIO(ProfileIOData* profile_io_data); ...@@ -40,10 +40,6 @@ bool CanPrefetchAndPrerenderIO(ProfileIOData* profile_io_data);
// To be executed on the UI thread only. // To be executed on the UI thread only.
bool CanPrefetchAndPrerenderUI(PrefService* prefs); bool CanPrefetchAndPrerenderUI(PrefService* prefs);
// TODO(bnc): remove the following function as soon as Android Chrome is
// modified to use CanPrefetchAndPrerenderUI instead.
bool CanPredictNetworkActionsUI(PrefService* prefs);
// The following two global functions determine whether TCP preconnect // The following two global functions determine whether TCP preconnect
// and DNS preresolution are enabled, based on preferences. // and DNS preresolution are enabled, based on preferences.
......
...@@ -517,11 +517,11 @@ class Predictor { ...@@ -517,11 +517,11 @@ class Predictor {
const bool predictor_enabled_; const bool predictor_enabled_;
// This is set by InitNetworkPredictor and used for calling // This is set by InitNetworkPredictor and used for calling
// chrome_browser_net::CanPredictNetworkActionsUI. // CanPrefetchAndPrerenderUI and CanPreresolveAndPreconnectUI.
PrefService* user_prefs_; PrefService* user_prefs_;
// This is set by InitNetworkPredictor and used for calling // This is set by InitNetworkPredictor and used for calling
// chrome_browser_net::CanPredictNetworkActionsIO. // CanPrefetchAndPrerenderIO and CanPreresolveAndPreconnectIO.
ProfileIOData* profile_io_data_; ProfileIOData* profile_io_data_;
// work_queue_ holds a list of names we need to look up. // work_queue_ holds a list of names we need to look up.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment