[BlackBerry] Should not keep recreating GeoTracker in setEnableHighAccuracy()
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2012 21:13:15 +0000 (21:13 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Aug 2012 21:13:15 +0000 (21:13 +0000)
commit73c11ebdc7d6e7ee5236ddc054702332ea3772e4
treee44629b55d5fa0cffc0e8faf7d8db21dd18322a8
parent5577215bfc9d85eb7ea8a998161405aaf1440b62
[BlackBerry] Should not keep recreating GeoTracker in setEnableHighAccuracy()
https://bugs.webkit.org/show_bug.cgi?id=94136

Patch by Yong Li <yoli@rim.com> on 2012-08-15
Reviewed by Rob Buis.
Internally reviewed by Lyon Chen.

PR# 192401.
1. The prototype of GeoTracker::create() has changed.
2. Fix the issue that it could recreate tracker unnecessarily when
   setEnableHighAccuracy() is called but accuracy requirment hasn't
   changed.
3. Fix the issue setEnableHighAccuracy() could start tracking when
   tracker was suspended.

* WebCoreSupport/GeolocationControllerClientBlackBerry.cpp:
(GeolocationControllerClientBlackBerry::startUpdating):
(GeolocationControllerClientBlackBerry::setEnableHighAccuracy):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@125705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/blackberry/ChangeLog
Source/WebKit/blackberry/WebCoreSupport/GeolocationControllerClientBlackBerry.cpp