Commit 1597bafc authored by jknotten@chromium.org's avatar jknotten@chromium.org

Discard geolocation update if dispatcher is not updating.

BUG=69258
TEST=None

Review URL: http://codereview.chromium.org/6196004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71317 0039d316-1c4b-4281-b951-d872f2087c98
parent aa1e4c32
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment