diff options
author | Steve Block <steveblock@google.com> | 2012-05-25 18:37:59 +0100 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2012-05-29 10:24:01 +0100 |
commit | 220650036961eecb29c06c23b010d31afde3641f (patch) | |
tree | 339b26915a191381a80ec3502f73450d1fd5add0 /Source/WebKit/android/WebCoreSupport | |
parent | d09ecffa71debc80cfd0f2d6086c62a555f7aa96 (diff) | |
download | external_webkit-220650036961eecb29c06c23b010d31afde3641f.zip external_webkit-220650036961eecb29c06c23b010d31afde3641f.tar.gz external_webkit-220650036961eecb29c06c23b010d31afde3641f.tar.bz2 |
Make sure we don't use GPS when not required
This makes sure that we disable the GPS if a single page makes requests with
enableHighAccuracy enabled, followed by requests with enableHighAccuracy
disabled.
Bug: 6511338
Change-Id: I4d67b84d5eed04822c05f70c2dce47a5a696c2fc
Diffstat (limited to 'Source/WebKit/android/WebCoreSupport')
-rw-r--r-- | Source/WebKit/android/WebCoreSupport/GeolocationClientImpl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/GeolocationClientImpl.cpp b/Source/WebKit/android/WebCoreSupport/GeolocationClientImpl.cpp index 4e53d08..6291b7d 100644 --- a/Source/WebKit/android/WebCoreSupport/GeolocationClientImpl.cpp +++ b/Source/WebKit/android/WebCoreSupport/GeolocationClientImpl.cpp @@ -122,6 +122,7 @@ void GeolocationClientImpl::stopUpdating() { // TODO: It would be good to re-use the Java bridge object. m_javaBridge.clear(); + m_useGps = false; // Reset last position and error to make sure that we always try to get a // new position from the client when a request is first made. m_lastPosition = 0; |