From ee8829a058616ab519740edeec6fd1eaf41e748f Mon Sep 17 00:00:00 2001 From: "joth@chromium.org" Date: Tue, 16 Mar 2010 14:58:41 +0000 Subject: Switch from using custom time / epoch handling code (inherited from gears) to base::Time BUG=http://code.google.com/p/chromium/issues/detail?id=37510 TEST=unit_tests --gtest_filter=geol* Review URL: http://codereview.chromium.org/776001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41722 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/geoposition.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'chrome/common/geoposition.cc') diff --git a/chrome/common/geoposition.cc b/chrome/common/geoposition.cc index d4989ed..f8f087c 100644 --- a/chrome/common/geoposition.cc +++ b/chrome/common/geoposition.cc @@ -25,7 +25,6 @@ Geoposition::Geoposition() altitude_accuracy(kBadAccuracy), heading(kBadHeading), speed(kBadSpeed), - timestamp(kBadTimestamp), error_code(ERROR_CODE_NONE) { } @@ -55,7 +54,7 @@ bool Geoposition::is_valid_speed() const { } bool Geoposition::is_valid_timestamp() const { - return timestamp != kBadTimestamp; + return !timestamp.is_null(); } bool Geoposition::IsValidFix() const { -- cgit v1.1