summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r--chrome/browser/profile.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index 72bf157..36517c4 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -604,6 +604,12 @@ ProfileImpl::~ProfileImpl() {
// The theme provider provides bitmaps to whoever wants them.
theme_provider_ = NULL;
+ // The ThumbnailStore saves thumbnails used by the NTP. Call Shutdown to
+ // save any new thumbnails to disk and release its reference to the
+ // HistoryService.
+ if (thumbnail_store_.get())
+ thumbnail_store_->Shutdown();
+
// Remove pref observers.
PrefService* prefs = GetPrefs();
prefs->RemovePrefObserver(prefs::kSpellCheckDictionary, this);