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

Unified Diff: webkit/support/webkit_support.cc

Issue 12212107: Layout tests expect the time to be relative to the unix epoch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index ebde513c0bc0ff294b4677fba0e0232032bfd7d5..4f16414a0d9ee466edf267d120edd805114810b4 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -740,8 +740,9 @@ ScopedTempDirectory* CreateScopedTempDirectory() {
}
int64 GetCurrentTimeInMillisecond() {
- return base::TimeTicks::Now().ToInternalValue()
- / base::Time::kMicrosecondsPerMillisecond;
+ return base::TimeDelta(base::Time::Now() -
+ base::Time::UnixEpoch()).ToInternalValue() /
+ base::Time::kMicrosecondsPerMillisecond;
}
std::string EscapePath(const std::string& path) {
« 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