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

Unified Diff: Source/modules/filesystem/DirectoryEntrySync.cpp

Issue 23704004: Make WebFileSystemCallbacks not self-destruct, deprecate AsyncFileSystem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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: Source/modules/filesystem/DirectoryEntrySync.cpp
diff --git a/Source/modules/filesystem/DirectoryEntrySync.cpp b/Source/modules/filesystem/DirectoryEntrySync.cpp
index 5efe5915919c1efaa9be0ebc62e29e773c1420e9..42be3cc5430903115771c4601f8a7f431ba08027 100644
--- a/Source/modules/filesystem/DirectoryEntrySync.cpp
+++ b/Source/modules/filesystem/DirectoryEntrySync.cpp
@@ -55,7 +55,7 @@ PassRefPtr<DirectoryReaderSync> DirectoryEntrySync::createReader()
PassRefPtr<FileEntrySync> DirectoryEntrySync::getFile(const String& path, const Dictionary& options, ExceptionState& es)
{
FileSystemFlags flags(options);
- EntrySyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
+ EntrySyncCallbackHelper helper;
if (!m_fileSystem->getFile(this, path, flags, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("getFile", "DirectoryEntrySync"));
return 0;
@@ -66,7 +66,7 @@ PassRefPtr<FileEntrySync> DirectoryEntrySync::getFile(const String& path, const
PassRefPtr<DirectoryEntrySync> DirectoryEntrySync::getDirectory(const String& path, const Dictionary& options, ExceptionState& es)
{
FileSystemFlags flags(options);
- EntrySyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
+ EntrySyncCallbackHelper helper;
if (!m_fileSystem->getDirectory(this, path, flags, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("getDirectory", "DirectoryEntrySync"));
return 0;
@@ -76,7 +76,7 @@ PassRefPtr<DirectoryEntrySync> DirectoryEntrySync::getDirectory(const String& pa
void DirectoryEntrySync::removeRecursively(ExceptionState& es)
{
- VoidSyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
+ VoidSyncCallbackHelper helper;
if (!m_fileSystem->removeRecursively(this, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("removeRecursively", "DirectoryEntrySync"));
return;
« no previous file with comments | « Source/modules/filesystem/DataTransferItemFileSystem.cpp ('k') | Source/modules/filesystem/DirectoryReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698