summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/android/GeolocationServiceAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/android/GeolocationServiceAndroid.cpp')
-rw-r--r--WebCore/platform/android/GeolocationServiceAndroid.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/platform/android/GeolocationServiceAndroid.cpp b/WebCore/platform/android/GeolocationServiceAndroid.cpp
index 64f68f1..0f07722 100644
--- a/WebCore/platform/android/GeolocationServiceAndroid.cpp
+++ b/WebCore/platform/android/GeolocationServiceAndroid.cpp
@@ -196,9 +196,9 @@ bool GeolocationServiceAndroid::isPositionMoreAccurate(Geoposition* position1, G
bool GeolocationServiceAndroid::isPositionMoreTimely(Geoposition* position1, Geoposition* position2)
{
ASSERT(position1 && position2);
- DOMTimeStamp currentTimeMillis = WTF::currentTime() * 1000.0;
- DOMTimeStamp maximumAgeMillis = 10 * 60 * 1000; // 10 minutes
- return currentTimeMillis - position1->timestamp() > maximumAgeMillis;
+ DOMTimeStamp currentTime = convertSecondsToDOMTimeStamp(WTF::currentTime());
+ DOMTimeStamp maximumAge = convertSecondsToDOMTimeStamp(10 * 60); // 10 minutes
+ return currentTime - position1->timestamp() > maximumAge;
}
} // namespace WebCore