Include all dupe types (event when value is zero) in scan stats.
[chromium-blink-merge.git] / storage / browser / fileapi / file_stream_reader.cc
blobcb87ecb939ba4b96a5d6f56a565626b8ece0c47e
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "storage/browser/fileapi/file_stream_reader.h"
7 #include "base/time/time.h"
9 namespace storage {
11 // Verify if the underlying file has not been modified.
12 bool FileStreamReader::VerifySnapshotTime(
13 const base::Time& expected_modification_time,
14 const base::File::Info& file_info) {
15 return expected_modification_time.is_null() ||
16 expected_modification_time.ToTimeT() ==
17 file_info.last_modified.ToTimeT();
20 } // namespace storage