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

Unified Diff: net/http/http_cache_transaction.cc

Issue 8633001: Http Cache: Make sure that we don't switch to mode NONE when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_transaction.cc
===================================================================
--- net/http/http_cache_transaction.cc (revision 110737)
+++ net/http/http_cache_transaction.cc (working copy)
@@ -370,7 +370,8 @@
// entry how it is (it will be marked as truncated at destruction), and let
// the next piece of code that executes know that we are now reading directly
// from the net.
- if (cache_ && entry_ && (mode_ & WRITE))
+ if (cache_ && entry_ && (mode_ & WRITE) && network_trans_.get() &&
+ !is_sparse_ && !range_requested_)
gavinp 2011/11/22 18:24:39 So this is OK because downloads are never range_re
rvargas (doing something else) 2011/11/22 18:35:03 Yes we will. 22900 is an optimization, so in this
mode_ = NONE;
}
« no previous file with comments | « no previous file | net/http/http_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698