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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Created 3 years, 8 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/presentation/PresentationReceiver.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
index 064ca77f6fc9d46be41fcadaf19854aa6685c8a3..a0df1f30b47a01bfe3d4f314a57cf259f4a71293 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
@@ -9,6 +9,7 @@
#include "core/dom/DOMException.h"
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
+#include "core/dom/ExecutionContext.h"
#include "core/frame/LocalDOMWindow.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/Navigator.h"
@@ -46,7 +47,7 @@
ScriptPromise PresentationReceiver::connectionList(ScriptState* script_state) {
if (!connection_list_property_)
connection_list_property_ =
- new ConnectionListProperty(script_state->GetExecutionContext(), this,
+ new ConnectionListProperty(ExecutionContext::From(script_state), this,
ConnectionListProperty::kReady);
if (!connection_list_->IsEmpty() && connection_list_property_->GetState() ==

Powered by Google App Engine
This is Rietveld 408576698