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

Unified Diff: device/geolocation/location_provider_android.cc

Issue 2298013002: Gets rid of LocationProviderBase. (Closed)
Patch Set: Typo. Created 4 years, 3 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 f95218f0b2724141640c503bd1989c9e6313a844..b1b20b4f57f94a8ee8c2531a0183528966aeb465 100644
--- a/device/geolocation/location_provider_android.cc
+++ b/device/geolocation/location_provider_android.cc
@@ -23,7 +23,13 @@ LocationProviderAndroid::~LocationProviderAndroid() {
void LocationProviderAndroid::NotifyNewGeoposition(
const Geoposition& position) {
last_position_ = position;
- NotifyCallback(last_position_);
+ if (!callback_.is_null())
+ callback_.Run(this, position);
+}
+
+void LocationProviderAndroid::SetUpdateCallback(
+ const LocationProviderUpdateCallback& callback) {
+ callback_ = callback;
}
bool LocationProviderAndroid::StartProvider(bool high_accuracy) {
« 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