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

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: rebase 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
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 147753a09b89084367b3aff86a13ba279722b1dc..31045ff60c5fe2fb2d6dc1caa4e4b53671324144 100644
--- a/webkit/blob/blob_url_request_job.cc
+++ b/webkit/blob/blob_url_request_job.cc
@@ -218,7 +218,7 @@ void BlobURLRequestJob::DidCountSize(int error) {
NotifySuccess();
}
-void BlobURLRequestJob::DidGetFileItemLength(size_t index, int result) {
+void BlobURLRequestJob::DidGetFileItemLength(size_t index, int64 result) {
// Do nothing if we have encountered an error.
if (error_)
return;
@@ -239,7 +239,7 @@ void BlobURLRequestJob::DidGetFileItemLength(size_t index, int 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());

Powered by Google App Engine
This is Rietveld 408576698