Chromium Code Reviews| 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 a13e08209986fc0a8c978713f9a42086457d5878..4b82e7b6f79cd84452d7c3bc37378ba6a64c54d8 100644 |
| --- a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp |
| +++ b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp |
| @@ -23,10 +23,8 @@ |
| namespace blink { |
| RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, ExceptionState& exceptionState) |
| - : opaque(false), isReferrerSet(false) |
| + : opaque(false), areAnyMembersSet(false) |
| { |
| - bool areAnyMembersSet = false; |
| - |
| areAnyMembersSet = DictionaryHelper::get(options, "method", method) || areAnyMembersSet; |
|
Mike West
2015/10/20 07:27:04
Nit: here and elsewhere, `|=` would be clearer.
shiva.jm
2015/10/21 08:34:59
only at these line(30), it holds good,
but for oth
hiroshige
2015/10/30 12:31:30
Anyway, if we want to do that change, I think it i
shiva.jm
2015/11/02 12:06:20
Thanks for more detailed inputs, i misunderstand t
|
| areAnyMembersSet = DictionaryHelper::get(options, "headers", headers) || areAnyMembersSet; |
| if (!headers) { |
| @@ -61,7 +59,6 @@ RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, E |
| referrer = Referrer("about:client", ReferrerPolicyDefault); |
| if (isReferrerStringSet) |
| referrer.referrer = referrerString; |
| - isReferrerSet = true; |
| } |
| if (!isBodySet || v8Body->IsUndefined() || v8Body->IsNull()) |