Index: third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp |
diff --git a/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp b/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp |
index 088342232e7cfa1483a8c98b64e8be265f5a6e5e..db5abe99f785dddea7d537f210fffddc322fbe8b 100644 |
--- a/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp |
+++ b/third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp |
@@ -123,7 +123,7 @@ CryptoResultImpl::CryptoResultImpl(ScriptState* script_state) |
: resolver_(Resolver::Create(script_state, this)), |
cancel_(ResultCancel::Create()) { |
// Sync cancellation state. |
- if (ExecutionContext::From(script_state)->IsContextDestroyed()) |
+ if (script_state->GetExecutionContext()->IsContextDestroyed()) |
cancel_->Cancel(); |
} |