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

Unified Diff: third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp

Issue 2656343002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Few more 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
Index: third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp b/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp
index 3e99a22634af4dd2c1c5062e4c23ab79e2afde0c..e18e01821f90ae83f4acb841236639844bc812be 100644
--- a/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp
+++ b/third_party/WebKit/Source/core/fileapi/URLFileAPI.cpp
@@ -5,6 +5,7 @@
#include "core/fileapi/URLFileAPI.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/dom/DOMURL.h"
#include "core/dom/ExecutionContext.h"
#include "core/fileapi/Blob.h"
@@ -14,10 +15,11 @@
namespace blink {
// static
-String URLFileAPI::createObjectURL(ExecutionContext* executionContext,
+String URLFileAPI::createObjectURL(ScriptState* scriptState,
Blob* blob,
ExceptionState& exceptionState) {
DCHECK(blob);
+ ExecutionContext* executionContext = scriptState->getExecutionContext();
DCHECK(executionContext);
if (blob->isClosed()) {
@@ -34,8 +36,9 @@ String URLFileAPI::createObjectURL(ExecutionContext* executionContext,
}
// static
-void URLFileAPI::revokeObjectURL(ExecutionContext* executionContext,
+void URLFileAPI::revokeObjectURL(ScriptState* scriptState,
const String& urlString) {
+ ExecutionContext* executionContext = scriptState->getExecutionContext();
DCHECK(executionContext);
KURL url(KURL(), urlString);
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/URLFileAPI.h ('k') | third_party/WebKit/Source/core/fileapi/URLFileAPI.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698