summaryrefslogtreecommitdiffstats
path: root/webkit/support/webkit_support.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/support/webkit_support.cc')
-rw-r--r--webkit/support/webkit_support.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index 153deb3..357c94c 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -749,8 +749,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) {