diff options
-rw-r--r-- | chrome/renderer/geolocation_dispatcher.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/renderer/geolocation_dispatcher.cc b/chrome/renderer/geolocation_dispatcher.cc index e944673..aefc346 100644 --- a/chrome/renderer/geolocation_dispatcher.cc +++ b/chrome/renderer/geolocation_dispatcher.cc @@ -113,7 +113,11 @@ void GeolocationDispatcher::OnGeolocationPermissionSet( // We have an updated geolocation position or error code. void GeolocationDispatcher::OnGeolocationPositionUpdated( const Geoposition& geoposition) { - DCHECK(updating_); + // It is possible for the browser process to have queued an update message + // before receiving the stop updating message. + if (!updating_) + return; + DCHECK(geoposition.IsInitialized()); if (geoposition.IsValidFix()) { controller_->positionChanged( |