| Index: third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| index 0f1f3e2b1e04908370e381d934549ad0cfdc9908..7efc1f2e437a06776cafce0347a541e23a38aa7d 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/NavigatorServiceWorker.cpp
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "bindings/core/v8/ScriptState.h"
|
| #include "core/dom/Document.h"
|
| +#include "core/dom/ExecutionContext.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Navigator.h"
|
| @@ -54,7 +55,7 @@
|
| ScriptState* script_state,
|
| Navigator& navigator,
|
| ExceptionState& exception_state) {
|
| - ExecutionContext* execution_context = script_state->GetExecutionContext();
|
| + ExecutionContext* execution_context = ExecutionContext::From(script_state);
|
| DCHECK(!navigator.GetFrame() ||
|
| execution_context->GetSecurityOrigin()->CanAccess(
|
| navigator.GetFrame()->GetSecurityContext()->GetSecurityOrigin()));
|
| @@ -66,7 +67,7 @@
|
| ScriptState* script_state,
|
| Navigator& navigator,
|
| String& error_message) {
|
| - ExecutionContext* execution_context = script_state->GetExecutionContext();
|
| + ExecutionContext* execution_context = ExecutionContext::From(script_state);
|
| DCHECK(!navigator.GetFrame() ||
|
| execution_context->GetSecurityOrigin()->CanAccess(
|
| navigator.GetFrame()->GetSecurityContext()->GetSecurityOrigin()));
|
|
|