diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-22 23:08:20 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-22 23:08:20 +0000 |
commit | 9f67dd0edac097ff862e9f92e988da2f5cb19348 (patch) | |
tree | ab88ef343a2b5faca69c3c012ad6560e828850bc /net/disk_cache | |
parent | a7f3568e1e8421fd6a489a87894e779eeec03dfa (diff) | |
download | chromium_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.cc | 1 |
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; |