summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-22 23:08:20 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-22 23:08:20 +0000
commit9f67dd0edac097ff862e9f92e988da2f5cb19348 (patch)
treeab88ef343a2b5faca69c3c012ad6560e828850bc /net/disk_cache
parenta7f3568e1e8421fd6a489a87894e779eeec03dfa (diff)
downloadchromium_src-9f67dd0edac097ff862e9f92e988da2f5cb19348.zip
chromium_src-9f67dd0edac097ff862e9f92e988da2f5cb19348.tar.gz
chromium_src-9f67dd0edac097ff862e9f92e988da2f5cb19348.tar.bz2
Changes to reinitialize the appcache system if/when DiskCache initialization fails.
Older versions would attempt to delete the existing data on disk, and disable the appcache system until browser restart, and then have a clean slate. With these changes, we no longer wait for a browser restart get going again. Also fixes a bug with the older behavior, it was racy and could *fail* to delete the old data. BUG=258191,95101 R=kinuko@chromium.org, rvargas@chromium.org Review URL: https://codereview.chromium.org/25955002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230246 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r--net/disk_cache/cache_creator.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/disk_cache/cache_creator.cc b/net/disk_cache/cache_creator.cc
index 857d171..ccdab1f 100644
--- a/net/disk_cache/cache_creator.cc
+++ b/net/disk_cache/cache_creator.cc
@@ -113,6 +113,7 @@ void CacheCreator::DoCallback(int result) {
#endif
} else {
LOG(ERROR) << "Unable to create cache";
+ created_cache_.reset();
}
callback_.Run(result);
delete this;