diff options
author | meelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-20 20:03:09 +0000 |
---|---|---|
committer | meelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-20 20:03:09 +0000 |
commit | 449612928531abe451859c41d54c9168755f9d63 (patch) | |
tree | 67e72c86ccee43a0df6c122c9a987e05864a6508 /chrome/browser/profile.cc | |
parent | d0533cb650b6fb7e088a831e6d8cfa11aabbe474 (diff) | |
download | chromium_src-449612928531abe451859c41d54c9168755f9d63.zip chromium_src-449612928531abe451859c41d54c9168755f9d63.tar.gz chromium_src-449612928531abe451859c41d54c9168755f9d63.tar.bz2 |
Write ThumbnailStore's cache to disk on browser shutdown.
Review URL: http://codereview.chromium.org/155729
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r-- | chrome/browser/profile.cc | 6 |
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); |