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

Unified Diff: Source/platform/FileMetadata.cpp

Issue 884393002: Upgrade Blink to milliseconds-based last modified filetimes, part 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sof-fileinfo-modtime-in-ms-1
Patch Set: Stop using time_t over getFileModificationTime(); not sound 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 | « Source/platform/FileMetadata.h ('k') | Source/platform/exported/WebFileSystemCallbacks.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/FileMetadata.cpp
diff --git a/Source/platform/FileMetadata.cpp b/Source/platform/FileMetadata.cpp
index 6a9048a9959bfe2a3dbf4703f14b2d6c5f7d5594..beaef6d1dccb63b0f27367ee79a878f124097f92 100644
--- a/Source/platform/FileMetadata.cpp
+++ b/Source/platform/FileMetadata.cpp
@@ -46,12 +46,12 @@ bool getFileSize(const String& path, long long& result)
return true;
}
-bool getFileModificationTime(const String& path, time_t& result)
+bool getFileModificationTime(const String& path, double& result)
{
FileMetadata metadata;
if (!getFileMetadata(path, metadata))
return false;
- result = metadata.modificationTime;
+ result = metadata.modificationTimeMS;
return true;
}
@@ -60,7 +60,7 @@ bool getFileMetadata(const String& path, FileMetadata& metadata)
WebFileInfo webFileInfo;
if (!Platform::current()->fileUtilities()->getFileInfo(path, webFileInfo))
return false;
- metadata.modificationTime = webFileInfo.modificationTime;
+ metadata.modificationTimeMS = webFileInfo.modificationTimeMS;
metadata.length = webFileInfo.length;
metadata.type = static_cast<FileMetadata::Type>(webFileInfo.type);
return true;
« no previous file with comments | « Source/platform/FileMetadata.h ('k') | Source/platform/exported/WebFileSystemCallbacks.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698