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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchRequestData.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/FetchRequestData.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp b/third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp
index fb0f7ad766f8d02776ccb059e32c4328afb58cac..18b8ecfade9693ff0a2646f35f85ff633b3a37cd 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp
@@ -11,6 +11,7 @@
#include "modules/credentialmanager/PasswordCredential.h"
#include "modules/fetch/BlobBytesConsumer.h"
#include "modules/fetch/BodyStreamBuffer.h"
+#include "modules/fetch/BytesConsumer.h"
#include "modules/fetch/DataConsumerHandleUtil.h"
#include "modules/fetch/FetchHeaderList.h"
#include "platform/HTTPNames.h"
@@ -84,9 +85,7 @@ FetchRequestData* FetchRequestData::pass(ScriptState* scriptState) {
FetchRequestData* request = FetchRequestData::cloneExceptBody();
if (m_buffer) {
request->m_buffer = m_buffer;
- m_buffer = new BodyStreamBuffer(scriptState,
- createFetchDataConsumerHandleFromWebHandle(
- createDoneDataConsumerHandle()));
+ m_buffer = new BodyStreamBuffer(scriptState, BytesConsumer::createClosed());
m_buffer->closeAndLockAndDisturb();
}
return request;
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchManager.cpp ('k') | third_party/WebKit/Source/modules/fetch/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698