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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileEntry.cpp

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: handleEvent -> invoke and other review nits Created 4 years, 5 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/modules/filesystem/FileEntry.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/FileEntry.cpp b/third_party/WebKit/Source/modules/filesystem/FileEntry.cpp
index 503fa95eedca336cdcd8938dcd347f3d22dc5aac..ff1f2e22eb8e77f40933d32cd581ddbdc746e8b2 100644
--- a/third_party/WebKit/Source/modules/filesystem/FileEntry.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/FileEntry.cpp
@@ -34,6 +34,7 @@
#include "core/fileapi/File.h"
#include "modules/filesystem/DOMFileSystem.h"
#include "modules/filesystem/ErrorCallback.h"
+#include "modules/filesystem/FileSystemCallbacks.h"
#include "modules/filesystem/FileWriterCallback.h"
namespace blink {
@@ -45,12 +46,12 @@ FileEntry::FileEntry(DOMFileSystemBase* fileSystem, const String& fullPath)
void FileEntry::createWriter(FileWriterCallback* successCallback, ErrorCallback* errorCallback)
{
- filesystem()->createWriter(this, successCallback, errorCallback);
+ filesystem()->createWriter(this, successCallback, ScriptErrorCallback::wrap(errorCallback));
}
void FileEntry::file(BlobCallback* successCallback, ErrorCallback* errorCallback)
{
- filesystem()->createFile(this, successCallback, errorCallback);
+ filesystem()->createFile(this, successCallback, ScriptErrorCallback::wrap(errorCallback));
}
DEFINE_TRACE(FileEntry)

Powered by Google App Engine
This is Rietveld 408576698