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

Unified Diff: Source/core/fileapi/File.cpp

Issue 882343002: Upgrade Blink to milliseconds-based last modified filetimes, part 5. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sof-fileinfo-modtime-in-ms-3
Patch Set: rebased Created 5 years, 10 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 | Source/core/html/forms/FileInputTypeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/File.cpp
diff --git a/Source/core/fileapi/File.cpp b/Source/core/fileapi/File.cpp
index f96efd7968419de1a057dfe17f8cb6f55786a65c..753dc32eb98ba5afea447f7a8740ed6fc96eab6e 100644
--- a/Source/core/fileapi/File.cpp
+++ b/Source/core/fileapi/File.cpp
@@ -74,7 +74,7 @@ static PassOwnPtr<BlobData> createBlobDataForFileWithMetadata(const String& file
{
OwnPtr<BlobData> blobData = BlobData::create();
blobData->setContentType(getContentTypeFromFileName(fileSystemName, File::WellKnownContentTypes));
- blobData->appendFile(metadata.platformPath, 0, metadata.length, metadata.modificationTimeMS / msPerSecond);
+ blobData->appendFile(metadata.platformPath, 0, metadata.length, metadata.modificationTime / msPerSecond);
return blobData.release();
}
@@ -82,7 +82,7 @@ static PassOwnPtr<BlobData> createBlobDataForFileSystemURL(const KURL& fileSyste
{
OwnPtr<BlobData> blobData = BlobData::create();
blobData->setContentType(getContentTypeFromFileName(fileSystemURL.path(), File::WellKnownContentTypes));
- blobData->appendFileSystemURL(fileSystemURL, 0, metadata.length, metadata.modificationTimeMS / msPerSecond);
+ blobData->appendFileSystemURL(fileSystemURL, 0, metadata.length, metadata.modificationTime / msPerSecond);
return blobData.release();
}
@@ -144,7 +144,7 @@ File::File(const String& name, const FileMetadata& metadata, UserVisibility user
, m_path(metadata.platformPath)
, m_name(name)
, m_snapshotSize(metadata.length)
- , m_snapshotModificationTimeMS(metadata.modificationTimeMS)
+ , m_snapshotModificationTimeMS(metadata.modificationTime)
{
}
@@ -155,7 +155,7 @@ File::File(const KURL& fileSystemURL, const FileMetadata& metadata, UserVisibili
, m_name(decodeURLEscapeSequences(fileSystemURL.lastPathComponent()))
, m_fileSystemURL(fileSystemURL)
, m_snapshotSize(metadata.length)
- , m_snapshotModificationTimeMS(metadata.modificationTimeMS)
+ , m_snapshotModificationTimeMS(metadata.modificationTime)
{
}
@@ -277,7 +277,7 @@ void File::captureSnapshot(long long& snapshotSize, double& snapshotModification
}
snapshotSize = metadata.length;
- snapshotModificationTimeMS = metadata.modificationTimeMS;
+ snapshotModificationTimeMS = metadata.modificationTime;
}
void File::close(ExecutionContext* executionContext, ExceptionState& exceptionState)
« no previous file with comments | « no previous file | Source/core/html/forms/FileInputTypeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698