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/thumbnail_store_unittest.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/thumbnail_store_unittest.cc')
-rw-r--r-- | chrome/browser/thumbnail_store_unittest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/thumbnail_store_unittest.cc b/chrome/browser/thumbnail_store_unittest.cc index 483cdf1..331d5df 100644 --- a/chrome/browser/thumbnail_store_unittest.cc +++ b/chrome/browser/thumbnail_store_unittest.cc @@ -181,7 +181,8 @@ TEST_F(ThumbnailStoreTest, RetrieveFromDisk) { // Write the thumbnail to disk and retrieve it. store_->InitializeFromDB(db_name_, NULL); - store_->CommitCacheToDB(NULL); // Write to the DB (dirty bit sould be set) + // Write to the DB (dirty bit sould be set) + store_->CommitCacheToDB(NULL, new ThumbnailStore::Cache(*store_->cache_)); store_->cache_->clear(); // Clear it from the cache. // Read from the DB. |