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

Unified Diff: third_party/WebKit/Source/modules/fetch/ResponseTest.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/fetch/ResponseTest.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp b/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp
index d99ef016ddbc9e8e2a939bba8b06591d1b362054..857d9741448edd00f234ff7b6f57c549463420d3 100644
--- a/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp
+++ b/third_party/WebKit/Source/modules/fetch/ResponseTest.cpp
@@ -9,7 +9,6 @@
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/V8BindingForTesting.h"
#include "core/dom/Document.h"
-#include "core/dom/ExecutionContext.h"
#include "core/frame/Frame.h"
#include "core/testing/DummyPageHolder.h"
#include "modules/fetch/BodyStreamBuffer.h"
@@ -219,7 +218,7 @@ BodyStreamBuffer* CreateHelloWorldBuffer(ScriptState* script_state) {
using Command = BytesConsumerTestUtil::Command;
BytesConsumerTestUtil::ReplayingBytesConsumer* src =
new BytesConsumerTestUtil::ReplayingBytesConsumer(
- ExecutionContext::From(script_state));
+ script_state->GetExecutionContext());
src->Add(Command(Command::kData, "Hello, "));
src->Add(Command(Command::kData, "world"));
src->Add(Command(Command::kDone));

Powered by Google App Engine
This is Rietveld 408576698