Index: chrome/browser/browser_shutdown.cc |
=================================================================== |
--- chrome/browser/browser_shutdown.cc (revision 97464) |
+++ chrome/browser/browser_shutdown.cc (working copy) |
@@ -38,6 +38,7 @@ |
#include "content/browser/renderer_host/render_process_host.h" |
#include "content/browser/renderer_host/render_view_host.h" |
#include "content/browser/renderer_host/render_widget_host.h" |
+#include "net/predictor_api.h" |
#include "ui/base/resource/resource_bundle.h" |
#if defined(OS_WIN) |
@@ -139,7 +140,11 @@ |
// time to get here. If you have something that *must* happen on end session, |
// consider putting it in BrowserProcessImpl::EndSession. |
PrefService* prefs = g_browser_process->local_state(); |
+ ProfileManager* profile_manager = g_browser_process->profile_manager(); |
+ PrefService* user_prefs = profile_manager->GetDefaultProfile()->GetPrefs(); |
+ chrome_browser_net::SavePredictorStateForNextStartupAndTrim(user_prefs); |
+ |
MetricsService* metrics = g_browser_process->metrics_service(); |
if (metrics) |
metrics->RecordCompletedSessionEnd(); |