Index: chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc |
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 773e13d3768b50b5a17db374bfbe083241ce5fb5..27a01a21a1c2c4b431aed8b92b18f56471189495 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); |
} |