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

Unified Diff: content/child/file_info_util.cc

Issue 862203003: Upgrade Blink to milliseconds-based last modified filetimes, part 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sof-fileinfo-modtime-in-ms-2
Patch Set: Created 5 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/file_info_util.cc
diff --git a/content/child/file_info_util.cc b/content/child/file_info_util.cc
index 9d616c0427f349f9770ec9cde8daeb2cac945116..1afced31bdffd41ca9e9490b3e1954b9c38ea963 100644
--- a/content/child/file_info_util.cc
+++ b/content/child/file_info_util.cc
@@ -12,13 +12,13 @@ namespace content {
void FileInfoToWebFileInfo(const base::File::Info& file_info,
blink::WebFileInfo* web_file_info) {
DCHECK(web_file_info);
- // WebKit now expects NaN as uninitialized/null Date.
+ // Blink now expects NaN as uninitialized/null Date.
if (file_info.last_modified.is_null()) {
web_file_info->modificationTime = std::numeric_limits<double>::quiet_NaN();
web_file_info->modificationTimeMS =
std::numeric_limits<double>::quiet_NaN();
} else {
- web_file_info->modificationTime = file_info.last_modified.ToDoubleT();
+ web_file_info->modificationTime = file_info.last_modified.ToJsTime();
web_file_info->modificationTimeMS = file_info.last_modified.ToJsTime();
}
web_file_info->length = file_info.size;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698