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

Unified Diff: Source/web/WebFileChooserCompletionImpl.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/exported/WebFileSystemCallbacks.cpp ('k') | public/web/WebFileChooserCompletion.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFileChooserCompletionImpl.cpp
diff --git a/Source/web/WebFileChooserCompletionImpl.cpp b/Source/web/WebFileChooserCompletionImpl.cpp
index 3a1f4b3743133a522f5bd50315ba949eb2a4ebc3..49948fafd426deb391f3f558f5abbde785ffe289 100644
--- a/Source/web/WebFileChooserCompletionImpl.cpp
+++ b/Source/web/WebFileChooserCompletionImpl.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "web/WebFileChooserCompletionImpl.h"
#include "platform/FileMetadata.h"
+#include "wtf/DateMath.h"
namespace blink {
@@ -61,7 +62,7 @@ void WebFileChooserCompletionImpl::didChooseFile(const WebVector<SelectedFileInf
fileInfo.append(FileChooserFileInfo(files[i].path, files[i].displayName));
} else {
FileMetadata metadata;
- metadata.modificationTime = files[i].modificationTime;
+ metadata.modificationTimeMS = files[i].modificationTime * msPerSecond;
metadata.length = files[i].length;
metadata.type = files[i].isDirectory ? FileMetadata::TypeDirectory : FileMetadata::TypeFile;
fileInfo.append(FileChooserFileInfo(files[i].fileSystemURL, metadata));
« no previous file with comments | « Source/platform/exported/WebFileSystemCallbacks.cpp ('k') | public/web/WebFileChooserCompletion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698