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

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

Issue 2821443002: Revert of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: Revert 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 a0df1f30b47a01bfe3d4f314a57cf259f4a71293..064ca77f6fc9d46be41fcadaf19854aa6685c8a3 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.cpp
@@ -9,7 +9,6 @@
#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"
@@ -47,7 +46,7 @@ PresentationReceiver* PresentationReceiver::From(Document& document) {
ScriptPromise PresentationReceiver::connectionList(ScriptState* script_state) {
if (!connection_list_property_)
connection_list_property_ =
- new ConnectionListProperty(ExecutionContext::From(script_state), this,
+ new ConnectionListProperty(script_state->GetExecutionContext(), this,
ConnectionListProperty::kReady);
if (!connection_list_->IsEmpty() && connection_list_property_->GetState() ==

Powered by Google App Engine
This is Rietveld 408576698