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

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

Issue 2085643002: Don't clear the net predictors prefs on startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dont clear prefs on startup Created 4 years, 6 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
Index: chrome/browser/net/predictor.h
diff --git a/chrome/browser/net/predictor.h b/chrome/browser/net/predictor.h
index a0dbec34f9f0359b18e3bb5ec7f3c9cc0cbbd72b..8a9933ffb36d4dd2cc44c4b109b829041a59e4e4 100644
--- a/chrome/browser/net/predictor.h
+++ b/chrome/browser/net/predictor.h
@@ -174,6 +174,10 @@ class Predictor {
// (cache hits etc.).
void DiscardAllResults();
+ // Clears the preferences used by the predictor. Must be called on the UI
+ // thread.
+ void ClearPrefsOnUIThread();
+
// Add hostname(s) to the queue for processing.
void ResolveList(const std::vector<GURL>& urls,
UrlInfo::ResolutionMotivation motivation);
@@ -213,13 +217,11 @@ class Predictor {
// values into the current referrer list.
void DeserializeReferrers(const base::ListValue& referral_list);
- void DeserializeReferrersThenDelete(base::ListValue* referral_list);
-
void DiscardInitialNavigationHistory();
void FinalizeInitializationOnIOThread(
const std::vector<GURL>& urls_to_prefetch,
- base::ListValue* referral_list,
+ const base::ListValue* referral_list,
IOThread* io_thread,
ProfileIOData* profile_io_data);

Powered by Google App Engine
This is Rietveld 408576698