summaryrefslogtreecommitdiffstats
path: root/net/base/upload_data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/upload_data.cc')
-rw-r--r--net/base/upload_data.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/upload_data.cc b/net/base/upload_data.cc
index 198b051..f852d27 100644
--- a/net/base/upload_data.cc
+++ b/net/base/upload_data.cc
@@ -24,6 +24,9 @@ uint64 UploadData::Element::GetContentLength() {
if (type_ == TYPE_BYTES)
return static_cast<uint64>(bytes_.size());
+ else if (type_ == TYPE_BLOB)
+ // The blob reference will be resolved later.
+ return 0;
DCHECK_EQ(TYPE_FILE, type_);
DCHECK(!file_stream_);