diff options
author | joth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 14:58:41 +0000 |
---|---|---|
committer | joth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-16 14:58:41 +0000 |
commit | ee8829a058616ab519740edeec6fd1eaf41e748f (patch) | |
tree | 437d9da2f64a19bbdfa9e7d8a6c6cac282e0e485 /chrome/common/geoposition.cc | |
parent | facf2f049458b5875398cf26cd78a59365484911 (diff) | |
download | chromium_src-ee8829a058616ab519740edeec6fd1eaf41e748f.zip chromium_src-ee8829a058616ab519740edeec6fd1eaf41e748f.tar.gz chromium_src-ee8829a058616ab519740edeec6fd1eaf41e748f.tar.bz2 |
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
Diffstat (limited to 'chrome/common/geoposition.cc')
-rw-r--r-- | chrome/common/geoposition.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |