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

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
« no previous file with comments | « device/geolocation/location_provider_android.h ('k') | device/geolocation/location_provider_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f95218f0b2724141640c503bd1989c9e6313a844 100644
--- a/device/geolocation/location_provider_android.cc
+++ b/device/geolocation/location_provider_android.cc
@@ -4,6 +4,8 @@
#include "device/geolocation/location_provider_android.h"
+#include <memory>
+
#include "base/memory/ptr_util.h"
#include "base/time/time.h"
#include "device/geolocation/geoposition.h"
@@ -32,12 +34,8 @@ void LocationProviderAndroid::StopProvider() {
AndroidLocationApiAdapter::GetInstance()->Stop();
}
-void LocationProviderAndroid::GetPosition(Geoposition* position) {
- *position = last_position_;
-}
-
-void LocationProviderAndroid::RequestRefresh() {
- // Nothing to do here, android framework will call us back on new position.
+const Geoposition& LocationProviderAndroid::GetPosition() {
+ return last_position_;
}
void LocationProviderAndroid::OnPermissionGranted() {
« no previous file with comments | « device/geolocation/location_provider_android.h ('k') | device/geolocation/location_provider_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698