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

Unified Diff: content/browser/cache_storage/cache_storage_cache.cc

Issue 2785123002: Make no-location redirect response to be "opaque redirect" when redirect mode is manual. (Closed)
Patch Set: Created 3 years, 9 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: content/browser/cache_storage/cache_storage_cache.cc
diff --git a/content/browser/cache_storage/cache_storage_cache.cc b/content/browser/cache_storage/cache_storage_cache.cc
index 0216276f842073ab6a5b398f8b038f69c02fb617..f2df157d32479a6e6317c51c884ab9df45bb6e40 100644
--- a/content/browser/cache_storage/cache_storage_cache.cc
+++ b/content/browser/cache_storage/cache_storage_cache.cc
@@ -1019,10 +1019,6 @@ void CacheStorageCache::Put(const CacheStorageBatchOperation& operation,
// We don't support streaming for cache.
DCHECK(operation.response.stream_url.is_empty());
- // We don't support the body of redirect response.
- DCHECK(!(operation.response.response_type ==
- blink::WebServiceWorkerResponseTypeOpaqueRedirect &&
- operation.response.blob_size));
std::unique_ptr<ServiceWorkerResponse> response =
base::MakeUnique<ServiceWorkerResponse>(operation.response);

Powered by Google App Engine
This is Rietveld 408576698