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

Unified Diff: content/browser/loader/upload_data_stream_builder.cc

Issue 1108083002: Create blobs from Disk Cache entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased to upstream CL, review this upload Created 5 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
Index: content/browser/loader/upload_data_stream_builder.cc
diff --git a/content/browser/loader/upload_data_stream_builder.cc b/content/browser/loader/upload_data_stream_builder.cc
index c497c16c0a769ea50c20469ba1fc44e47708dc31..a117075b8ca552433aa5c9c5a5a29cfc653d4308 100644
--- a/content/browser/loader/upload_data_stream_builder.cc
+++ b/content/browser/loader/upload_data_stream_builder.cc
@@ -133,8 +133,9 @@ scoped_ptr<net::UploadDataStream> UploadDataStreamBuilder::Build(
case ResourceRequestBody::Element::TYPE_BLOB:
// Blob elements should be resolved beforehand.
// TODO(dmurph): Create blob reader and store the snapshot in there.
- NOTREACHED();
- break;
+ case ResourceRequestBody::Element::TYPE_DISK_CACHE_ENTRY:
+ // Disk cache entries should not be uploaded, instead only requested
jkarlin 2015/05/29 14:59:41 Prefer that you put back the "NOTREACHED()" in eac
gavinp 2015/05/29 18:06:07 Done. Now I understand why it was written the oth
+ // from blink.
case ResourceRequestBody::Element::TYPE_UNKNOWN:
NOTREACHED();
break;

Powered by Google App Engine
This is Rietveld 408576698