| Index: third_party/WebKit/Source/core/html/FormData.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/FormData.cpp b/third_party/WebKit/Source/core/html/FormData.cpp
|
| index d20d2984d9a97e5030933f0e0c3809af66b9a7af..a64afadf9d63c06b15aa549e4dc5c226bf60677d 100644
|
| --- a/third_party/WebKit/Source/core/html/FormData.cpp
|
| +++ b/third_party/WebKit/Source/core/html/FormData.cpp
|
| @@ -30,6 +30,7 @@
|
|
|
| #include "core/html/FormData.h"
|
|
|
| +#include "bindings/core/v8/ScriptState.h"
|
| #include "core/fileapi/Blob.h"
|
| #include "core/fileapi/File.h"
|
| #include "core/frame/UseCounter.h"
|
| @@ -100,12 +101,14 @@ void FormData::append(const String& name, const String& value) {
|
| new Entry(encodeAndNormalize(name), encodeAndNormalize(value)));
|
| }
|
|
|
| -void FormData::append(ExecutionContext* context,
|
| +void FormData::append(ScriptState* scriptState,
|
| const String& name,
|
| Blob* blob,
|
| const String& filename) {
|
| - if (!blob)
|
| - UseCounter::count(context, UseCounter::FormDataAppendNull);
|
| + if (!blob) {
|
| + UseCounter::count(scriptState->getExecutionContext(),
|
| + UseCounter::FormDataAppendNull);
|
| + }
|
| append(name, blob, filename);
|
| }
|
|
|
|
|