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

Unified Diff: device/geolocation/location_provider_android.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: Merge branch 'master' into lai 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/location_provider_android.cc
diff --git a/device/geolocation/location_provider_android.cc b/device/geolocation/location_provider_android.cc
index 0f97923dc8900e3894b90fe6e9916e90a10244ea..0c10a7140af8b08894c6f883d5a4362322127f98 100644
--- a/device/geolocation/location_provider_android.cc
+++ b/device/geolocation/location_provider_android.cc
@@ -32,8 +32,8 @@ void LocationProviderAndroid::StopProvider() {
AndroidLocationApiAdapter::GetInstance()->Stop();
}
-void LocationProviderAndroid::GetPosition(Geoposition* position) {
- *position = last_position_;
+const Geoposition& LocationProviderAndroid::GetPosition() {
+ return last_position_;
}
void LocationProviderAndroid::RequestRefresh() {

Powered by Google App Engine
This is Rietveld 408576698