| Index: third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| diff --git a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| index 634e878327c79059024b94374b9c1dae5838115e..19d50a7ceb1dc26c0b62679286cdf473ec3b4d67 100644
|
| --- a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| +++ b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| @@ -112,7 +112,7 @@ DEFINE_TRACE(Geolocation)
|
|
|
| Document* Geolocation::document() const
|
| {
|
| - return toDocument(executionContext());
|
| + return toDocument(getExecutionContext());
|
| }
|
|
|
| LocalFrame* Geolocation::frame() const
|
| @@ -187,7 +187,7 @@ int Geolocation::watchPosition(PositionCallback* successCallback, PositionErrorC
|
| int watchID;
|
| // Keep asking for the next id until we're given one that we don't already have.
|
| do {
|
| - watchID = executionContext()->circularSequentialID();
|
| + watchID = getExecutionContext()->circularSequentialID();
|
| } while (!m_watchers.add(watchID, notifier));
|
| return watchID;
|
| }
|
| @@ -196,7 +196,7 @@ void Geolocation::startRequest(GeoNotifier *notifier)
|
| {
|
| recordOriginTypeAccess();
|
| String errorMessage;
|
| - if (!frame()->settings()->allowGeolocationOnInsecureOrigins() && !executionContext()->isSecureContext(errorMessage)) {
|
| + if (!frame()->settings()->allowGeolocationOnInsecureOrigins() && !getExecutionContext()->isSecureContext(errorMessage)) {
|
| notifier->setFatalError(PositionError::create(PositionError::PERMISSION_DENIED, errorMessage));
|
| return;
|
| }
|
|
|