| Index: chrome/renderer/geolocation_dispatcher.cc
|
| diff --git a/chrome/renderer/geolocation_dispatcher.cc b/chrome/renderer/geolocation_dispatcher.cc
|
| index e944673f7fe01874ba8893dba5b82e6c47ec8c45..aefc346c16154cfe81ff31aca596135afe345a37 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(
|
|
|