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

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

Issue 2697723003: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Window.{focus|close} both take ExecutionContext. Created 3 years, 9 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/File.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/File.cpp b/third_party/WebKit/Source/core/fileapi/File.cpp
index 5ca1b94385feb6f04a5fa68a49858400638e3bb6..03604b9b4ace6defc3383537906f0b4d455763dc 100644
--- a/third_party/WebKit/Source/core/fileapi/File.cpp
+++ b/third_party/WebKit/Source/core/fileapi/File.cpp
@@ -25,7 +25,9 @@
#include "core/fileapi/File.h"
+#include <memory>
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/dom/ExceptionCode.h"
#include "core/fileapi/FilePropertyBag.h"
#include "core/frame/UseCounter.h"
@@ -36,7 +38,6 @@
#include "public/platform/WebFileUtilities.h"
#include "wtf/CurrentTime.h"
#include "wtf/DateMath.h"
-#include <memory>
namespace blink {
@@ -349,8 +350,7 @@ void File::captureSnapshot(long long& snapshotSize,
snapshotModificationTimeMS = metadata.modificationTime;
}
-void File::close(ExecutionContext* executionContext,
- ExceptionState& exceptionState) {
+void File::close(ScriptState* scriptState, ExceptionState& exceptionState) {
if (isClosed()) {
exceptionState.throwDOMException(InvalidStateError,
"Blob has been closed.");
@@ -365,7 +365,7 @@ void File::close(ExecutionContext* executionContext,
m_fileSystemURL = KURL();
invalidateSnapshotMetadata();
m_relativePath = String();
- Blob::close(executionContext, exceptionState);
+ Blob::close(scriptState, exceptionState);
}
void File::appendTo(BlobData& blobData) const {
« no previous file with comments | « third_party/WebKit/Source/core/fileapi/File.h ('k') | third_party/WebKit/Source/modules/notifications/Notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698