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

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

Issue 2840193002: fetch: Align RequestInit's |headers| with the spec. (Closed)
Patch Set: Add HeadersInit typedef 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/RequestInit.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
index 78ac1a05990d295901849a6c27d6ae42fa193dfa..7f1731af66b824e08c3e5f1c47f71dda521f85b5 100644
--- a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
+++ b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
@@ -11,7 +11,6 @@
#include "bindings/core/v8/V8Blob.h"
#include "bindings/core/v8/V8FormData.h"
#include "bindings/core/v8/V8URLSearchParams.h"
-#include "bindings/modules/v8/ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders.h"
#include "bindings/modules/v8/V8PasswordCredential.h"
#include "core/dom/URLSearchParams.h"
#include "core/fileapi/Blob.h"
@@ -107,14 +106,9 @@ RequestInit::RequestInit(ExecutionContext* context,
v8::Isolate* isolate = ToIsolate(context);
if (is_header_set) {
- ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders
- headers_init;
V8ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders::toImpl(
- isolate, v8_headers, headers_init,
- UnionTypeConversionMode::kNotNullable, exception_state);
- if (exception_state.HadException())
- return;
- headers = Headers::Create(headers_init, exception_state);
+ isolate, v8_headers, headers, UnionTypeConversionMode::kNotNullable,
+ exception_state);
if (exception_state.HadException())
return;
}

Powered by Google App Engine
This is Rietveld 408576698