Index: third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp |
diff --git a/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp b/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp |
index f2060377d4ba309441deade750eb080629e9dad4..52d27bcbfc8c2ff6cc981e0acb0f8924b10d342f 100644 |
--- a/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp |
+++ b/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp |
@@ -5,6 +5,7 @@ |
#include "modules/netinfo/WorkerNavigatorNetworkInformation.h" |
#include "bindings/core/v8/ScriptState.h" |
+#include "core/dom/ExecutionContext.h" |
#include "core/workers/WorkerNavigator.h" |
#include "modules/netinfo/NetworkInformation.h" |
@@ -42,7 +43,7 @@ |
NetworkInformation* WorkerNavigatorNetworkInformation::connection( |
ScriptState* script_state, |
WorkerNavigator& navigator) { |
- ExecutionContext* context = script_state->GetExecutionContext(); |
+ ExecutionContext* context = ExecutionContext::From(script_state); |
return WorkerNavigatorNetworkInformation::From(navigator, context) |
.connection(context); |
} |