diff options
Diffstat (limited to 'chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc')
-rw-r--r-- | chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc b/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc index 773e13d..27a01a2 100644 --- a/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc +++ b/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc @@ -13,7 +13,8 @@ namespace chromeos { MTPFileSystemBackendDelegate::MTPFileSystemBackendDelegate( const base::FilePath& storage_partition_path) : device_media_async_file_util_( - DeviceMediaAsyncFileUtil::Create(storage_partition_path)) { + DeviceMediaAsyncFileUtil::Create(storage_partition_path, + NO_MEDIA_FILE_VALIDATION)) { } MTPFileSystemBackendDelegate::~MTPFileSystemBackendDelegate() { @@ -34,10 +35,6 @@ MTPFileSystemBackendDelegate::CreateFileStreamReader( fileapi::FileSystemContext* context) { DCHECK_EQ(fileapi::kFileSystemTypeDeviceMediaAsFileStorage, url.type()); - // TODO(kinaba): Returned MediaFileStreamReader verifies file header and - // stops reading if the stream does not represent a media file. We might - // want to remove the verification here since we want to mount MTP devices - // as normal file storage in Chrome OS file manager. return device_media_async_file_util_->GetFileStreamReader( url, offset, expected_modification_time, context); } |