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

Unified Diff: webkit/browser/blob/blob_url_request_job.cc

Issue 470323003: [fsp] Improve performance for reading small chunks of data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a dcheck. Created 6 years, 4 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/browser/blob/blob_url_request_job.cc
diff --git a/webkit/browser/blob/blob_url_request_job.cc b/webkit/browser/blob/blob_url_request_job.cc
index f1040f5dc651486ccae0428bbe8a9cc4d536fc1f..ba78a6fb18b0ed1324446de56692a6ec006c13f9 100644
--- a/webkit/browser/blob/blob_url_request_job.cc
+++ b/webkit/browser/blob/blob_url_request_job.cc
@@ -573,10 +573,13 @@ void BlobURLRequestJob::CreateFileStreamReader(size_t index,
break;
case BlobData::Item::TYPE_FILE_FILESYSTEM:
reader = file_system_context_->CreateFileStreamReader(
- fileapi::FileSystemURL(
- file_system_context_->CrackURL(item.filesystem_url())),
- item.offset() + additional_offset,
- item.expected_modification_time()).release();
+ fileapi::FileSystemURL(
+ file_system_context_->CrackURL(
+ item.filesystem_url())),
+ item.offset() + additional_offset,
+ item.length() - additional_offset,
hashimoto 2014/08/22 06:53:42 BlobData::Item is typedef-ed to DataElement and Da
mtomasz 2014/08/25 03:32:31 This is a good point. However, int64 are used all
hashimoto 2014/09/01 11:01:01 Then could you fix crbug.com/406967 first, or impl
+ item.expected_modification_time())
+ .release();
break;
default:
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698