Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: net/http/http_cache.cc

Issue 10407086: Merge 136172 - Http cache: Don't attempt to doom the same entry multiple times (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1132/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_cache_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.cc
===================================================================
--- net/http/http_cache.cc (revision 138195)
+++ net/http/http_cache.cc (working copy)
@@ -860,6 +860,9 @@
// This is a successful operation in the sense that we want to keep the
// entry.
success = trans->AddTruncatedFlag();
+ // The previous operation may have deleted the entry.
+ if (!trans->entry())
+ return;
}
DoneWritingToEntry(entry, success);
} else {
« no previous file with comments | « no previous file | net/http/http_cache_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698