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

Unified Diff: chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc

Issue 251723004: No media-file validation mode for DeviceMediaAsyncUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review #2 Created 6 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
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/device_media_async_file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/device_media_async_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698