summaryrefslogtreecommitdiffstats
path: root/base/base.xcodeproj
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-22 21:24:42 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-22 21:24:42 +0000
commit70fe7d516ef0a16bf97a6e2f0143ea6cf5ef6060 (patch)
treef756a3059b6d227d3c8dd7281c20e0f0b2d53d48 /base/base.xcodeproj
parentc9349d08ebc302d91d695f7abef4750d64a5dc31 (diff)
downloadchromium_src-70fe7d516ef0a16bf97a6e2f0143ea6cf5ef6060.zip
chromium_src-70fe7d516ef0a16bf97a6e2f0143ea6cf5ef6060.tar.gz
chromium_src-70fe7d516ef0a16bf97a6e2f0143ea6cf5ef6060.tar.bz2
Disk cache: Delete all files from the cache folder, instead of only the
files created by the cache. I changed the code that deletes the cache files from the unit tests to use the same code used by the cache itself to discard old caches. However, said code performs a selective deletion of files, and leave anything that it doesn't know about on the folder, and then attempts to remove the folder (knowing that it will fail if there are extra files or directories there). That causes a problem with the unit tests, because some of the tests create an extra file in that folder, so the folder cannot be deleted. As a result, we start accumulating extra folders until we reach our pre-defined limit, and at that time the tests start to fail. We could modify the code to also delete this extra file, but given that the whole cache lives under a hidden folder, it makes sense to simplify the code and just delete every file when we want to discard an old file. So this means that if a user decides to write a file to that folder, we will delete it whenever we update the cache version, or when the user chooses to "Clear browsing data/ cache". Note that if the foreign object is a directory, we won't delete it and it will be moved aside. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1244 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base.xcodeproj')
0 files changed, 0 insertions, 0 deletions