| Index: third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
|
| diff --git a/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp b/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
|
| index e6522021aa0d96d8f4fe711562661881b70db2a5..88a65026da54ed47d54371c8f79176708f583de0 100644
|
| --- a/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
|
| +++ b/third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp
|
| @@ -90,7 +90,7 @@ void GeolocationController::addObserver(Geolocation* observer, bool enableHighAc
|
| if (m_client) {
|
| if (enableHighAccuracy)
|
| m_client->setEnableHighAccuracy(true);
|
| - if (wasEmpty && page() && page()->visibilityState() == PageVisibilityStateVisible)
|
| + if (wasEmpty && page() && page()->isPageVisible())
|
| startUpdatingIfNeeded();
|
| }
|
| }
|
| @@ -170,7 +170,7 @@ void GeolocationController::pageVisibilityChanged()
|
| if (m_observers.isEmpty() || !m_client)
|
| return;
|
|
|
| - if (page() && page()->visibilityState() == PageVisibilityStateVisible)
|
| + if (page() && page()->isPageVisible())
|
| startUpdatingIfNeeded();
|
| else
|
| stopUpdatingIfNeeded();
|
|
|