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

Unified Diff: webkit/blob/blob_url_request_job.cc

Issue 10038019: Add FileReader interface and implement FileSystemFileReader (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 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
« no previous file with comments | « no previous file | webkit/blob/file_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/blob_url_request_job.cc
diff --git a/webkit/blob/blob_url_request_job.cc b/webkit/blob/blob_url_request_job.cc
index 49f9b04c19876e8c13671a038f732e06ca89ddba..65f8e0855d944c57366be5491f962560e90d080b 100644
--- a/webkit/blob/blob_url_request_job.cc
+++ b/webkit/blob/blob_url_request_job.cc
@@ -239,7 +239,7 @@ void BlobURLRequestJob::DidGetFileItemLength(size_t index, int64 result) {
// in the real time.
int64 item_length = static_cast<int64>(item.length);
if (item_length == -1)
- item_length = result;
+ item_length = result - item.offset;
// Cache the size and add it to the total size.
DCHECK_LT(index, item_length_list_.size());
« no previous file with comments | « no previous file | webkit/blob/file_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698