Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Unified Diff: content/browser/geolocation/network_location_provider.cc

Issue 10316007: Make the Geoposition helper class public (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix forward-declaration of struct as class. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/geolocation/network_location_provider.cc
diff --git a/content/browser/geolocation/network_location_provider.cc b/content/browser/geolocation/network_location_provider.cc
index 5312aafe7c41b51619797f6a821f7a1a92f9130d..2e37ede60ee85d840d5097dbc15a99a9c7cfcbb4 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

Powered by Google App Engine
This is Rietveld 408576698