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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchManager.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/fetch/FetchManager.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
index 71687d44bf140593c721fa0db4503c36524f6cad..6e415324d38b1336a661443afb9436f33c4a32f1 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
@@ -11,6 +11,7 @@
#include "bindings/core/v8/V8ThrowException.h"
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/Document.h"
+#include "core/dom/ExecutionContext.h"
#include "core/fileapi/Blob.h"
#include "core/frame/Frame.h"
#include "core/frame/SubresourceIntegrity.h"
@@ -425,7 +426,7 @@
response_data = FetchResponseData::CreateWithBuffer(new BodyStreamBuffer(
script_state,
new BytesConsumerForDataConsumerHandle(
- script_state->GetExecutionContext(), std::move(handle))));
+ ExecutionContext::From(script_state), std::move(handle))));
} else {
sri_consumer = new SRIBytesConsumer();
response_data = FetchResponseData::CreateWithBuffer(

Powered by Google App Engine
This is Rietveld 408576698