Chromium Code Reviews| Index: net/http/http_cache.cc |
| =================================================================== |
| --- net/http/http_cache.cc (revision 134667) |
| +++ 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 { |