| Index: third_party/WebKit/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp
|
| diff --git a/third_party/WebKit/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp b/third_party/WebKit/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp
|
| index 0a39eb0af32a52854e02a25e62059526e519380a..f0b4d0100297572e5c7da42305a7ed08746cd634 100644
|
| --- a/third_party/WebKit/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp
|
| +++ b/third_party/WebKit/Source/modules/navigatorconnect/AcceptConnectionObserver.cpp
|
| @@ -76,7 +76,7 @@ void AcceptConnectionObserver::contextDestroyed()
|
|
|
| void AcceptConnectionObserver::didDispatchEvent()
|
| {
|
| - ASSERT(executionContext());
|
| + ASSERT(getExecutionContext());
|
| if (m_state != Initial)
|
| return;
|
| responseWasRejected();
|
| @@ -99,7 +99,7 @@ ScriptPromise AcceptConnectionObserver::respondWith(ScriptState* scriptState, Sc
|
|
|
| void AcceptConnectionObserver::responseWasRejected()
|
| {
|
| - ASSERT(executionContext());
|
| + ASSERT(getExecutionContext());
|
| if (m_resolver)
|
| m_resolver->reject(DOMException::create(AbortError));
|
| m_callbacks->onError();
|
| @@ -108,9 +108,9 @@ void AcceptConnectionObserver::responseWasRejected()
|
|
|
| void AcceptConnectionObserver::responseWasResolved(const ScriptValue& value)
|
| {
|
| - ASSERT(executionContext());
|
| + ASSERT(getExecutionContext());
|
|
|
| - ScriptState* scriptState = m_resolver->scriptState();
|
| + ScriptState* scriptState = m_resolver->getScriptState();
|
| ExceptionState exceptionState(ExceptionState::UnknownContext, nullptr, nullptr, scriptState->context()->Global(), scriptState->isolate());
|
| ServicePortConnectResponse response = ScriptValue::to<ServicePortConnectResponse>(scriptState->isolate(), value, exceptionState);
|
| if (exceptionState.hadException()) {
|
| @@ -145,7 +145,7 @@ void AcceptConnectionObserver::responseWasResolved(const ScriptValue& value)
|
| }
|
|
|
| AcceptConnectionObserver::AcceptConnectionObserver(ServicePortCollection* collection, PassOwnPtr<WebServicePortConnectEventCallbacks> callbacks, WebServicePortID portID, const KURL& targetURL)
|
| - : ContextLifecycleObserver(collection->executionContext())
|
| + : ContextLifecycleObserver(collection->getExecutionContext())
|
| , m_callbacks(callbacks)
|
| , m_collection(collection)
|
| , m_portID(portID)
|
|
|