Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: third_party/WebKit/Source/modules/crypto/CryptoResultImpl.cpp

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698