Index: third_party/WebKit/Source/modules/filesystem/DirectoryEntry.cpp |
diff --git a/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.cpp b/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.cpp |
index b3a274d2dbe87edf3a84552e6425c8f563e0acec..983474c3be2f29f99c4e30e6c2ad6fa2b9dadd1d 100644 |
--- a/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.cpp |
+++ b/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.cpp |
@@ -35,6 +35,7 @@ |
#include "modules/filesystem/DirectoryReader.h" |
#include "modules/filesystem/EntryCallback.h" |
#include "modules/filesystem/ErrorCallback.h" |
+#include "modules/filesystem/FileSystemCallbacks.h" |
#include "modules/filesystem/FileSystemFlags.h" |
namespace blink { |
@@ -51,17 +52,17 @@ DirectoryReader* DirectoryEntry::createReader() |
void DirectoryEntry::getFile(const String& path, const FileSystemFlags& options, EntryCallback* successCallback, ErrorCallback* errorCallback) |
{ |
- m_fileSystem->getFile(this, path, options, successCallback, errorCallback); |
+ m_fileSystem->getFile(this, path, options, successCallback, ScriptErrorCallback::wrap(errorCallback)); |
} |
void DirectoryEntry::getDirectory(const String& path, const FileSystemFlags& options, EntryCallback* successCallback, ErrorCallback* errorCallback) |
{ |
- m_fileSystem->getDirectory(this, path, options, successCallback, errorCallback); |
+ m_fileSystem->getDirectory(this, path, options, successCallback, ScriptErrorCallback::wrap(errorCallback)); |
} |
void DirectoryEntry::removeRecursively(VoidCallback* successCallback, ErrorCallback* errorCallback) const |
{ |
- m_fileSystem->removeRecursively(this, successCallback, errorCallback); |
+ m_fileSystem->removeRecursively(this, successCallback, ScriptErrorCallback::wrap(errorCallback)); |
} |
DEFINE_TRACE(DirectoryEntry) |