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 52d27bcbfc8c2ff6cc981e0acb0f8924b10d342f..f2060377d4ba309441deade750eb080629e9dad4 100644 |
--- a/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp |
+++ b/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp |
@@ -5,7 +5,6 @@ |
#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" |
@@ -43,7 +42,7 @@ const char* WorkerNavigatorNetworkInformation::SupplementName() { |
NetworkInformation* WorkerNavigatorNetworkInformation::connection( |
ScriptState* script_state, |
WorkerNavigator& navigator) { |
- ExecutionContext* context = ExecutionContext::From(script_state); |
+ ExecutionContext* context = script_state->GetExecutionContext(); |
return WorkerNavigatorNetworkInformation::From(navigator, context) |
.connection(context); |
} |