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..814153b42cc4ed3491d683240799a921a1d8de90 100644 |
--- a/blimp/engine/feature/geolocation/blimp_location_provider.cc |
+++ b/blimp/engine/feature/geolocation/blimp_location_provider.cc |
@@ -44,8 +44,8 @@ void BlimpLocationProvider::StopProvider() { |
} |
} |
-void BlimpLocationProvider::GetPosition(device::Geoposition* position) { |
- *position = cached_position_; |
+const device::Geoposition& BlimpLocationProvider::GetPosition() { |
+ return cached_position_; |
} |
void BlimpLocationProvider::RequestRefresh() { |
Wez
2016/08/19 01:33:11
Nothing calls this API except OnPermissionGranted,
CJ
2016/08/22 17:41:31
In most cases RequestRefresh() is only called by O
|