summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/entry_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/entry_impl.cc')
-rw-r--r--net/disk_cache/entry_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc
index 75fb92e5..334eb76 100644
--- a/net/disk_cache/entry_impl.cc
+++ b/net/disk_cache/entry_impl.cc
@@ -616,11 +616,11 @@ void EntryImpl::DeleteData(Addr address, int index) {
if (files_[index])
files_[index] = NULL; // Releases the object.
- if (!DeleteCacheFile(backend_->GetFileName(address))) {
- CACHE_UMA(COUNTS, "DeleteFailed", 0, 1);
+ int failure = DeleteCacheFile(backend_->GetFileName(address)) ? 0 : 1;
+ CACHE_UMA(COUNTS, "DeleteFailed", 0, failure);
+ if (failure)
LOG(ERROR) << "Failed to delete " << backend_->GetFileName(address) <<
" from the cache.";
- }
} else {
backend_->DeleteBlock(address, true);
}