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

Unified Diff: chrome/browser/net/predictor.cc

Issue 1558983002: [Predictor CleanUp] Remove unused variables from Predictor class APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses mmenke's review inputs. Created 4 years, 11 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/net/predictor.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/predictor.cc
diff --git a/chrome/browser/net/predictor.cc b/chrome/browser/net/predictor.cc
index 799fa1aebf5bdb95e9f90c35a449f6b189e2192b..ee5278cfe57858fb3773ed57bdcf33b9d908088a 100644
--- a/chrome/browser/net/predictor.cc
+++ b/chrome/browser/net/predictor.cc
@@ -188,7 +188,6 @@ void Predictor::RegisterProfilePrefs(
// --------------------- Start UI methods. ------------------------------------
void Predictor::InitNetworkPredictor(PrefService* user_prefs,
- PrefService* local_state,
IOThread* io_thread,
net::URLRequestContextGetter* getter,
ProfileIOData* profile_io_data) {
@@ -198,7 +197,7 @@ void Predictor::InitNetworkPredictor(PrefService* user_prefs,
url_request_context_getter_ = getter;
// Gather the list of hostnames to prefetch on startup.
- UrlList urls = GetPredictedUrlListAtStartup(user_prefs, local_state);
+ UrlList urls = GetPredictedUrlListAtStartup(user_prefs);
base::ListValue* referral_list =
static_cast<base::ListValue*>(user_prefs->GetList(
@@ -314,9 +313,7 @@ void Predictor::PreconnectUrlAndSubresources(const GURL& url,
PredictFrameSubresources(url.GetWithEmptyPath(), first_party_for_cookies);
}
-UrlList Predictor::GetPredictedUrlListAtStartup(
- PrefService* user_prefs,
- PrefService* local_state) {
+UrlList Predictor::GetPredictedUrlListAtStartup(PrefService* user_prefs) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
UrlList urls;
// Recall list of URLs we learned about during last session.
@@ -1299,7 +1296,6 @@ GURL Predictor::CanonicalizeUrl(const GURL& url) {
void SimplePredictor::InitNetworkPredictor(
PrefService* user_prefs,
- PrefService* local_state,
IOThread* io_thread,
net::URLRequestContextGetter* getter,
ProfileIOData* profile_io_data) {
« no previous file with comments | « chrome/browser/net/predictor.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698