| Index: blimp/client/core/geolocation/geolocation_feature.cc
|
| diff --git a/blimp/client/core/geolocation/geolocation_feature.cc b/blimp/client/core/geolocation/geolocation_feature.cc
|
| index 201a9a0eca4a9037471cda4692ad8a023a8ed837..012e0fdce8f8c040270bf8b1816249bfd34887e2 100644
|
| --- a/blimp/client/core/geolocation/geolocation_feature.cc
|
| +++ b/blimp/client/core/geolocation/geolocation_feature.cc
|
| @@ -144,9 +144,11 @@ void GeolocationFeature::SendGeolocationErrorMessage(
|
| void GeolocationFeature::OnSendComplete(int result) {
|
| am_sending_message_ = false;
|
| if (need_to_send_message_) {
|
| + device::Geoposition new_position = location_provider_->GetPosition();
|
| + if (new_position.Validate()) {
|
| + OnLocationUpdate(location_provider_.get(), new_position);
|
| + }
|
| need_to_send_message_ = false;
|
| - OnLocationUpdate(location_provider_.get(),
|
| - location_provider_->GetPosition());
|
| }
|
| }
|
|
|
|
|