| Index: third_party/WebKit/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp
|
| diff --git a/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp b/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp
|
| index f4f1fa2b06e95aaf4d8dede87d96dface23a4da5..ec9477b681143796c7dde2943039cc89a511887d 100644
|
| --- a/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp
|
| +++ b/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp
|
| @@ -28,7 +28,7 @@ PushSubscriptionCallbacks::~PushSubscriptionCallbacks() {}
|
| void PushSubscriptionCallbacks::onSuccess(
|
| std::unique_ptr<WebPushSubscription> webPushSubscription) {
|
| if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + m_resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
|
|
| m_resolver->resolve(PushSubscription::take(
|
| @@ -38,7 +38,7 @@ void PushSubscriptionCallbacks::onSuccess(
|
|
|
| void PushSubscriptionCallbacks::onError(const WebPushError& error) {
|
| if (!m_resolver->getExecutionContext() ||
|
| - m_resolver->getExecutionContext()->activeDOMObjectsAreStopped())
|
| + m_resolver->getExecutionContext()->isContextDestroyed())
|
| return;
|
| m_resolver->reject(PushError::take(m_resolver.get(), error));
|
| }
|
|
|