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

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

Issue 648813002: PlzNavigate: Add first version of NavigationURLLoader. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plz-navigate-prepare
Patch Set: rebase, rework Core ownership story Created 6 years, 2 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 6419ead79631a1d9ccb3919f671be5200a5f9c5a..2151c59e7d2fd8dfd976cf4f6ef2e21995c7767c 100644
--- a/content/browser/loader/upload_data_stream_builder.cc
+++ b/content/browser/loader/upload_data_stream_builder.cc
@@ -115,6 +115,9 @@ scoped_ptr<net::UploadDataStream> UploadDataStreamBuilder::Build(
new FileElementReader(body, file_task_runner, element));
break;
case ResourceRequestBody::Element::TYPE_FILE_FILESYSTEM:
+ // If |body| contains any filesystem URLs, the caller should have
+ // supplied a FileSystemContext.
+ CHECK(file_system_context);
mmenke 2014/10/22 15:32:59 Any reason for this not to just be a DCHECK?
davidben 2014/10/22 20:58:04 Dug up the long comment here: https://codereview.c
element_readers.push_back(
new content::UploadFileSystemFileElementReader(
file_system_context,

Powered by Google App Engine
This is Rietveld 408576698