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

Unified Diff: third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp

Issue 2610903002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Created 3 years, 11 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/netinfo/WorkerNavigatorNetworkInformation.cpp
diff --git a/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp b/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp
index 9424e32364f34707fad6798269040f76585607ca..8806925f5fedb1cdeec7042f6eb8a115aa69efea 100644
--- a/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp
+++ b/third_party/WebKit/Source/modules/netinfo/WorkerNavigatorNetworkInformation.cpp
@@ -38,8 +38,9 @@ const char* WorkerNavigatorNetworkInformation::supplementName() {
}
NetworkInformation* WorkerNavigatorNetworkInformation::connection(
- ExecutionContext* context,
+ ScriptState* scriptState,
WorkerNavigator& navigator) {
+ ExecutionContext* context = scriptState->getExecutionContext();
return WorkerNavigatorNetworkInformation::from(navigator, context)
.connection(context);
}

Powered by Google App Engine
This is Rietveld 408576698