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

Unified Diff: device/geolocation/network_location_provider.cc

Issue 2226143002: Gets rid of the LocationArbitrator interface, in preference for LocationProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses kmarshall's #41 comments Created 4 years, 4 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: 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() {

Powered by Google App Engine
This is Rietveld 408576698