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>2009-04-09 17:31:35 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 17:31:35 +0000
commit80bdee7b36af8131d5c10db1462ba925c4d212ee (patch)
treec512044ac1a2641aaa74e90abd66c909810d03fe /net/disk_cache/entry_impl.cc
parentddbab02846a8ffda0b54d7c5c877383869b6261e (diff)
downloadchromium_src-80bdee7b36af8131d5c10db1462ba925c4d212ee.zip
chromium_src-80bdee7b36af8131d5c10db1462ba925c4d212ee.tar.gz
chromium_src-80bdee7b36af8131d5c10db1462ba925c4d212ee.tar.bz2
Disk cache: fix broken UMA reports.
Review URL: http://codereview.chromium.org/62176 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13431 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, 3 insertions, 0 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc
index 8ff7b21..a000785 100644
--- a/net/disk_cache/entry_impl.cc
+++ b/net/disk_cache/entry_impl.cc
@@ -539,6 +539,9 @@ EntryImpl* EntryImpl::Update(EntryImpl* entry) {
bool EntryImpl::IsDirty(int32 current_id) {
DCHECK(node_.HasData());
+ // We are checking if the entry is valid or not. If there is a pointer here,
+ // |dirty| has to be the id of the cache that is using the entry (the one
+ // that created the pointer), 0 is not a valid id.
if (node_.Data()->pointer && !node_.Data()->dirty)
return true;