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

Unified Diff: third_party/WebKit/Source/modules/beacon/NavigatorBeacon.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/beacon/NavigatorBeacon.cpp
diff --git a/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp b/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp
index 74dbda37b5d216e237ed8f79428bf9e04954986b..109f564f554200016ca0c21c6801e9d727af0d63 100644
--- a/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp
+++ b/third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp
@@ -5,6 +5,7 @@
#include "modules/beacon/NavigatorBeacon.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ScriptState.h"
#include "bindings/modules/v8/ArrayBufferViewOrBlobOrStringOrFormData.h"
#include "core/dom/DOMArrayBufferView.h"
#include "core/dom/ExceptionCode.h"
@@ -94,13 +95,14 @@ void NavigatorBeacon::addTransmittedBytes(int sentBytes) {
}
bool NavigatorBeacon::sendBeacon(
- ExecutionContext* context,
+ ScriptState* scriptState,
Navigator& navigator,
const String& urlstring,
const ArrayBufferViewOrBlobOrStringOrFormData& data,
ExceptionState& exceptionState) {
NavigatorBeacon& impl = NavigatorBeacon::from(navigator);
+ ExecutionContext* context = scriptState->getExecutionContext();
KURL url = context->completeURL(urlstring);
if (!impl.canSendBeacon(context, url, exceptionState))
return false;

Powered by Google App Engine
This is Rietveld 408576698