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>2012-03-12 18:00:42 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-12 18:00:42 +0000
commit417567fa2a277c8af860d2ffb82f8f26d1226c00 (patch)
treecf2ba92677b29c72dc92d0aac3cfb1a525841502 /net/disk_cache/entry_impl.cc
parent74ce911d60a9d013cdbd93a244c7f7639956ab13 (diff)
downloadchromium_src-417567fa2a277c8af860d2ffb82f8f26d1226c00.zip
chromium_src-417567fa2a277c8af860d2ffb82f8f26d1226c00.tar.gz
chromium_src-417567fa2a277c8af860d2ffb82f8f26d1226c00.tar.bz2
Disk Cache: Make sure that chaining an entry to the current head works
for read_only caches. BUG=117598 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/9668027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126169 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/entry_impl.cc')
-rw-r--r--net/disk_cache/entry_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc
index 5996912..1718370 100644
--- a/net/disk_cache/entry_impl.cc
+++ b/net/disk_cache/entry_impl.cc
@@ -930,7 +930,7 @@ EntryImpl::~EntryImpl() {
int current_id = backend_->GetCurrentEntryId();
node_.Data()->dirty = current_id == 1 ? -1 : current_id - 1;
node_.Store();
- } else if (node_.HasData() && !dirty_) {
+ } else if (node_.HasData() && !dirty_ && node_.Data()->dirty) {
node_.Data()->dirty = 0;
node_.Store();
}