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

Unified Diff: net/http/http_cache_transaction.cc

Issue 1080673004: Remove network load flags not used in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: net/http/http_cache_transaction.cc
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index cebecda47aa14c2c20ff5671e65b20e660933274..28b2160b162cd12f9fcaf95c9e266ce21f115132 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -1123,11 +1123,6 @@ int HttpCache::Transaction::DoSendRequestComplete(int result) {
if (mode_ == READ_WRITE && entry_ && !partial_) {
RecordOfflineStatus(effective_load_flags_,
OFFLINE_STATUS_DATA_AVAILABLE_OFFLINE);
- if (effective_load_flags_ & LOAD_FROM_CACHE_IF_OFFLINE) {
- UpdateTransactionPattern(PATTERN_NOT_COVERED);
- response_.server_data_unavailable = true;
- return SetupEntryForRead();
- }
} else {
RecordOfflineStatus(effective_load_flags_,
OFFLINE_STATUS_DATA_UNAVAILABLE_OFFLINE);
« AUTHORS ('K') | « net/base/load_flags_list.h ('k') | net/http/http_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698