Index: device/geolocation/network_location_provider.cc |
diff --git a/device/geolocation/network_location_provider.cc b/device/geolocation/network_location_provider.cc |
index 46206a158fb0018e47dfd75d64245e5681dc8f0e..c8626eff5240b07bdbb640f41b69e7d39bd5356e 100644 |
--- a/device/geolocation/network_location_provider.cc |
+++ b/device/geolocation/network_location_provider.cc |
@@ -128,9 +128,8 @@ NetworkLocationProvider::~NetworkLocationProvider() { |
} |
// LocationProvider implementation |
-void NetworkLocationProvider::GetPosition(Geoposition* position) { |
- DCHECK(position); |
- *position = position_; |
+const Geoposition& NetworkLocationProvider::GetPosition() { |
+ return position_; |
} |
void NetworkLocationProvider::RequestRefresh() { |