summaryrefslogtreecommitdiffstats
path: root/content/browser/geolocation/network_location_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/geolocation/network_location_provider.cc')
-rw-r--r--content/browser/geolocation/network_location_provider.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/content/browser/geolocation/network_location_provider.cc b/content/browser/geolocation/network_location_provider.cc
index 5312aaf..2e37ede 100644
--- a/content/browser/geolocation/network_location_provider.cc
+++ b/content/browser/geolocation/network_location_provider.cc
@@ -10,6 +10,7 @@
#include "content/public/browser/access_token_store.h"
using content::AccessTokenStore;
+using content::Geoposition;
namespace {
// The maximum period of time we'll wait for a complete set of device data
@@ -178,7 +179,7 @@ void NetworkLocationProvider::LocationResponseAvailable(
DCHECK(CalledOnValidThread());
// Record the position and update our cache.
position_ = position;
- if (position.IsValidFix()) {
+ if (position.Validate()) {
position_cache_->CachePosition(wifi_data, position);
}
@@ -243,7 +244,7 @@ void NetworkLocationProvider::RequestPosition() {
DCHECK(!device_data_updated_timestamp_.is_null()) <<
"Timestamp must be set before looking up position";
if (cached_position) {
- DCHECK(cached_position->IsValidFix());
+ DCHECK(cached_position->Validate());
// Record the position and update its timestamp.
position_ = *cached_position;
// The timestamp of a position fix is determined by the timestamp