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

Unified Diff: chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.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 | « chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
diff --git a/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc b/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
index 3ec83bc8718fc80835e0b9a2b13efe2accb3a1a6..990f7742987c84366fffed6d0c2acc32c760b867 100644
--- a/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
+++ b/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.cc
@@ -67,12 +67,13 @@ MTPFileStreamReader::MTPFileStreamReader(
fileapi::FileSystemContext* file_system_context,
const fileapi::FileSystemURL& url,
int64 initial_offset,
- const base::Time& expected_modification_time)
+ const base::Time& expected_modification_time,
+ bool do_media_header_validation)
: file_system_context_(file_system_context),
url_(url),
current_offset_(initial_offset),
expected_modification_time_(expected_modification_time),
- media_header_validated_(false),
+ media_header_validated_(!do_media_header_validation),
weak_factory_(this) {
}
« no previous file with comments | « chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698