Index: third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp |
diff --git a/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp b/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp |
index 861905a9179fcb79b444e963812dbd240deae3d1..34cbe237bc19fe4798a62dfccaaffeb254e3a4e6 100644 |
--- a/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp |
+++ b/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp |
@@ -7,6 +7,7 @@ |
#include "core/dom/DOMException.h" |
#include "core/dom/Document.h" |
#include "core/dom/ExceptionCode.h" |
+#include "core/dom/ExecutionContext.h" |
#include "core/frame/LocalFrame.h" |
#include "core/frame/Navigator.h" |
#include "modules/webshare/ShareData.h" |
@@ -104,7 +105,7 @@ |
ScriptPromise NavigatorShare::share(ScriptState* script_state, |
const ShareData& share_data) { |
String error_message; |
- if (!script_state->GetExecutionContext()->IsSecureContext(error_message)) { |
+ if (!ExecutionContext::From(script_state)->IsSecureContext(error_message)) { |
DOMException* error = DOMException::Create(kSecurityError, error_message); |
return ScriptPromise::RejectWithDOMException(script_state, error); |
} |
@@ -115,7 +116,7 @@ |
return ScriptPromise::RejectWithDOMException(script_state, error); |
} |
- Document* doc = ToDocument(script_state->GetExecutionContext()); |
+ Document* doc = ToDocument(ExecutionContext::From(script_state)); |
DCHECK(doc); |
if (!service_) { |
LocalFrame* frame = doc->GetFrame(); |