summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_cache.cc')
-rw-r--r--net/http/http_cache.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index eca95ef..d4a869f 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -601,11 +601,10 @@ HttpCache::ActiveEntry* HttpCache::FindActiveEntry(const std::string& key) {
}
HttpCache::ActiveEntry* HttpCache::ActivateEntry(
- const std::string& key,
disk_cache::Entry* disk_entry) {
- DCHECK(!FindActiveEntry(key));
+ DCHECK(!FindActiveEntry(disk_entry->GetKey()));
ActiveEntry* entry = new ActiveEntry(disk_entry);
- active_entries_[key] = entry;
+ active_entries_[disk_entry->GetKey()] = entry;
return entry;
}
@@ -990,7 +989,7 @@ void HttpCache::OnIOComplete(int result, PendingOp* pending_op) {
fail_requests = true;
} else if (item->IsValid()) {
key = pending_op->disk_entry->GetKey();
- entry = ActivateEntry(key, pending_op->disk_entry);
+ entry = ActivateEntry(pending_op->disk_entry);
} else {
// The writer transaction is gone.
if (op == WI_CREATE_ENTRY)