| Index: chrome/browser/chromeos/fileapi/file_system_backend.cc
|
| diff --git a/chrome/browser/chromeos/fileapi/file_system_backend.cc b/chrome/browser/chromeos/fileapi/file_system_backend.cc
|
| index 52975e5ece3a58fe9f0af7af981e4f9dbeb57356..c17852ea99ae49e72bf9977639ad5773370d66fe 100644
|
| --- a/chrome/browser/chromeos/fileapi/file_system_backend.cc
|
| +++ b/chrome/browser/chromeos/fileapi/file_system_backend.cc
|
| @@ -319,6 +319,7 @@ bool FileSystemBackend::HasInplaceCopyImplementation(
|
| scoped_ptr<storage::FileStreamReader> FileSystemBackend::CreateFileStreamReader(
|
| const storage::FileSystemURL& url,
|
| int64 offset,
|
| + int64 max_bytes_to_read,
|
| const base::Time& expected_modification_time,
|
| storage::FileSystemContext* context) const {
|
| DCHECK(url.is_valid());
|
| @@ -329,10 +330,10 @@ scoped_ptr<storage::FileStreamReader> FileSystemBackend::CreateFileStreamReader(
|
| switch (url.type()) {
|
| case storage::kFileSystemTypeDrive:
|
| return drive_delegate_->CreateFileStreamReader(
|
| - url, offset, expected_modification_time, context);
|
| + url, offset, max_bytes_to_read, expected_modification_time, context);
|
| case storage::kFileSystemTypeProvided:
|
| return file_system_provider_delegate_->CreateFileStreamReader(
|
| - url, offset, expected_modification_time, context);
|
| + url, offset, max_bytes_to_read, expected_modification_time, context);
|
| case storage::kFileSystemTypeNativeLocal:
|
| case storage::kFileSystemTypeRestrictedNativeLocal:
|
| return scoped_ptr<storage::FileStreamReader>(
|
| @@ -340,7 +341,7 @@ scoped_ptr<storage::FileStreamReader> FileSystemBackend::CreateFileStreamReader(
|
| context, url, offset, expected_modification_time));
|
| case storage::kFileSystemTypeDeviceMediaAsFileStorage:
|
| return mtp_delegate_->CreateFileStreamReader(
|
| - url, offset, expected_modification_time, context);
|
| + url, offset, max_bytes_to_read, expected_modification_time, context);
|
| default:
|
| NOTREACHED();
|
| }
|
|
|