| Index: net/disk_cache/entry_impl.cc
|
| ===================================================================
|
| --- net/disk_cache/entry_impl.cc (revision 21550)
|
| +++ net/disk_cache/entry_impl.cc (working copy)
|
| @@ -616,11 +616,11 @@
|
| 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);
|
| }
|
|
|