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

Unified Diff: third_party/WebKit/Source/modules/fetch/Request.cpp

Issue 2392823002: Remove create[Done|UnexpectedError]DataConsumerHandle (Closed)
Patch Set: fix Created 4 years, 2 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/Request.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Request.cpp b/third_party/WebKit/Source/modules/fetch/Request.cpp
index e6c28e3c5586ac107adefd142ae1ebbed524f23e..c32b14bcf7bdeb03aa898c2d2558664b349f58d2 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -407,9 +407,8 @@ Request* Request::createRequestWithRequestOrString(
// non-null, run these substeps:"
if (inputRequest && inputRequest->bodyBuffer()) {
// "Let |dummyStream| be an empty ReadableStream object."
- auto dummyStream = new BodyStreamBuffer(
- scriptState, createFetchDataConsumerHandleFromWebHandle(
- createDoneDataConsumerHandle()));
+ auto dummyStream =
+ new BodyStreamBuffer(scriptState, BytesConsumer::createClosed());
// "Set |input|'s request's body to a new body whose stream is
// |dummyStream|."
inputRequest->m_request->setBuffer(dummyStream);
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp ('k') | third_party/WebKit/Source/modules/fetch/ResponseTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698