| Index: device/geolocation/geolocation_service_impl.cc
|
| diff --git a/device/geolocation/geolocation_service_impl.cc b/device/geolocation/geolocation_service_impl.cc
|
| index a56b6d83427325b8cc59bcf0556bcf4dca7b678f..357d9cd9fcf1b2bc383f492ccef6eea16c7349c9 100644
|
| --- a/device/geolocation/geolocation_service_impl.cc
|
| +++ b/device/geolocation/geolocation_service_impl.cc
|
| @@ -60,11 +60,9 @@ void RecordGeopositionErrorCode(Geoposition::ErrorCode error_code) {
|
|
|
| GeolocationServiceImpl::GeolocationServiceImpl(
|
| mojo::InterfaceRequest<GeolocationService> request,
|
| - GeolocationServiceContext* context,
|
| - const base::Closure& update_callback)
|
| + GeolocationServiceContext* context)
|
| : binding_(this, std::move(request)),
|
| context_(context),
|
| - update_callback_(update_callback),
|
| high_accuracy_(false),
|
| has_position_to_report_(false) {
|
| DCHECK(context_);
|
| @@ -160,8 +158,6 @@ void GeolocationServiceImpl::OnLocationUpdate(const Geoposition& position) {
|
| RecordGeopositionErrorCode(position.error_code);
|
| DCHECK(context_);
|
|
|
| - update_callback_.Run();
|
| -
|
| current_position_.valid = position.Validate();
|
| current_position_.latitude = position.latitude;
|
| current_position_.longitude = position.longitude;
|
|
|