DescriptionUpdate GeolocationController to call startUpdating() / stopUpdating() only if needed
Update GeolocationController to call startUpdating() / stopUpdating() only if needed
as some clients (e.g. the geolocation mock client) do not accept consecutive calls
to either of these methods.
This was done by introducing startUpdatingIfNeeded() / stopUpdatingIfNeeded() private
methods which update a boolean flag to avoid useless calls.
This fixes a possible assertion hit in Debug.
R=jochen
BUG=310326
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160480
Patch Set 1 #Patch Set 2 : No change #Patch Set 3 : Unskip test #
Messages
Total messages: 15 (0 generated)
|