Index: chrome/browser/browser_shutdown.cc |
diff --git a/chrome/browser/browser_shutdown.cc b/chrome/browser/browser_shutdown.cc |
index c18d22f53461876788f5d12aecf1fd6eb80bf6f9..92683fef66a44c354c632c43d61d18ff8fa0cd43 100644 |
--- a/chrome/browser/browser_shutdown.cc |
+++ b/chrome/browser/browser_shutdown.cc |
@@ -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,6 +140,10 @@ void Shutdown() { |
// 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) |