Index: blimp/engine/feature/geolocation/blimp_location_provider.cc |
diff --git a/blimp/engine/feature/geolocation/blimp_location_provider.cc b/blimp/engine/feature/geolocation/blimp_location_provider.cc |
index eed675f8b45460592e693de4fdb6e6407a642466..2809cefdc54dbad5d769df647acfbd54c98bd8c6 100644 |
--- a/blimp/engine/feature/geolocation/blimp_location_provider.cc |
+++ b/blimp/engine/feature/geolocation/blimp_location_provider.cc |
@@ -44,21 +44,17 @@ void BlimpLocationProvider::StopProvider() { |
} |
} |
-void BlimpLocationProvider::GetPosition(device::Geoposition* position) { |
- *position = cached_position_; |
+const device::Geoposition& BlimpLocationProvider::GetPosition() { |
+ return cached_position_; |
} |
-void BlimpLocationProvider::RequestRefresh() { |
+void BlimpLocationProvider::OnPermissionGranted() { |
DCHECK(is_started_); |
if (delegate_) { |
delegate_->RequestRefresh(); |
} |
} |
-void BlimpLocationProvider::OnPermissionGranted() { |
- RequestRefresh(); |
-} |
- |
void BlimpLocationProvider::SetUpdateCallback( |
const LocationProviderUpdateCallback& callback) { |
if (delegate_) { |