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

Unified Diff: third_party/WebKit/Source/core/html/FormData.cpp

Issue 2616923002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Fix errors Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/html/FormData.h ('k') | third_party/WebKit/Source/core/html/FormData.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/FormData.h ('k') | third_party/WebKit/Source/core/html/FormData.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698