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

Unified Diff: third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h

Issue 2811863002: Move ScriptState::GetExecutionContext (Part 4) (Closed)
Patch Set: Fix Document.cpp 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/core/streams/UnderlyingSourceBase.h
diff --git a/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h b/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h
index ccdd413eda91d3692e7f81d4c9dc30077cc86b2a..d04c18858bafdfa39b0f140592981c65680b219b 100644
--- a/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h
+++ b/third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h
@@ -12,6 +12,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
#include "core/dom/ContextLifecycleObserver.h"
+#include "core/dom/ExecutionContext.h"
#include "platform/heap/GarbageCollected.h"
#include "platform/heap/Handle.h"
@@ -50,7 +51,7 @@ class CORE_EXPORT UnderlyingSourceBase
protected:
explicit UnderlyingSourceBase(ScriptState* script_state)
- : ContextLifecycleObserver(script_state->GetExecutionContext()) {}
+ : ContextLifecycleObserver(ExecutionContext::From(script_state)) {}
ReadableStreamController* Controller() const { return controller_; }

Powered by Google App Engine
This is Rietveld 408576698