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

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

Issue 1004093003: Write the predictor state on shutdown on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « chrome/browser/android/chromium_application.cc ('k') | no next file » | 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 3b5275689f683df84809589e442e468b3134506b..730c18ba8fae22d2e96e3b026b12ab2ab8284ab5 100644
--- a/chrome/browser/net/predictor.cc
+++ b/chrome/browser/net/predictor.cc
@@ -868,6 +868,8 @@ void Predictor::SaveDnsPrefetchStateForNextStartupAndTrim(
// Do at least one trim at shutdown, in case the user wasn't running long
// enough to do any regular trimming of referrers.
+ // TODO(lizeb): Should trimming really be done at each shutdown? This could be
+ // a frequent occurrence on Android.
TrimReferrersNow();
SerializeReferrers(referral_list);
« no previous file with comments | « chrome/browser/android/chromium_application.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698