summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/entry_impl.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 20:36:21 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 20:36:21 +0000
commita88d601f7f632a21afe88359d503559fa20d9e40 (patch)
tree23f4bd0f2492463cb6fadec07c845b5c0ca8e5e0 /net/disk_cache/entry_impl.cc
parent5e40e26d39ea8bf3f6eb879e09e4e5b1f335b9ad (diff)
downloadchromium_src-a88d601f7f632a21afe88359d503559fa20d9e40.zip
chromium_src-a88d601f7f632a21afe88359d503559fa20d9e40.tar.gz
chromium_src-a88d601f7f632a21afe88359d503559fa20d9e40.tar.bz2
Second pass move the os dependent code apart on the disk cache.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@960 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/entry_impl.cc')
-rw-r--r--net/disk_cache/entry_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc
index 3d3ada2..4baa869 100644
--- a/net/disk_cache/entry_impl.cc
+++ b/net/disk_cache/entry_impl.cc
@@ -34,6 +34,7 @@
#include "base/string_util.h"
#include "net/base/net_errors.h"
#include "net/disk_cache/backend_impl.h"
+#include "net/disk_cache/cache_util.h"
namespace {
@@ -574,7 +575,7 @@ void EntryImpl::DeleteData(Addr address, int index) {
if (files_[index])
files_[index] = NULL; // Releases the object.
- if (!DeleteFile(backend_->GetFileName(address).c_str()))
+ if (!DeleteCacheFile(backend_->GetFileName(address)))
LOG(ERROR) << "Failed to delete " << backend_->GetFileName(address) <<
" from the cache.";
} else {