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

Unified Diff: Source/modules/filesystem/EntrySync.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
« no previous file with comments | « Source/modules/filesystem/EntryBase.cpp ('k') | Source/modules/filesystem/FileSystemCallbacks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/EntrySync.cpp
diff --git a/Source/modules/filesystem/EntrySync.cpp b/Source/modules/filesystem/EntrySync.cpp
index 8a9bc73f97e25c84734b685debf239de9132d95e..fdf3c6cd2162d6f426f98ab075dca8df42c883d4 100644
--- a/Source/modules/filesystem/EntrySync.cpp
+++ b/Source/modules/filesystem/EntrySync.cpp
@@ -53,7 +53,7 @@ PassRefPtr<EntrySync> EntrySync::create(EntryBase* entry)
PassRefPtr<Metadata> EntrySync::getMetadata(ExceptionState& es)
{
- MetadataSyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
+ MetadataSyncCallbackHelper helper;
if (!m_fileSystem->getMetadata(this, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("getMetadata", "EntrySync"));
return 0;
@@ -63,7 +63,7 @@ PassRefPtr<Metadata> EntrySync::getMetadata(ExceptionState& es)
PassRefPtr<EntrySync> EntrySync::moveTo(PassRefPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& es) const
{
- EntrySyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
+ EntrySyncCallbackHelper helper;
if (!m_fileSystem->move(this, parent.get(), name, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("moveTo", "EntrySync"));
return 0;
@@ -73,7 +73,7 @@ PassRefPtr<EntrySync> EntrySync::moveTo(PassRefPtr<DirectoryEntrySync> parent, c
PassRefPtr<EntrySync> EntrySync::copyTo(PassRefPtr<DirectoryEntrySync> parent, const String& name, ExceptionState& es) const
{
- EntrySyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
+ EntrySyncCallbackHelper helper;
if (!m_fileSystem->copy(this, parent.get(), name, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("copyTo", "EntrySync"));
return 0;
@@ -83,7 +83,7 @@ PassRefPtr<EntrySync> EntrySync::copyTo(PassRefPtr<DirectoryEntrySync> parent, c
void EntrySync::remove(ExceptionState& es) const
{
- VoidSyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
+ VoidSyncCallbackHelper helper;
if (!m_fileSystem->remove(this, helper.successCallback(), helper.errorCallback(), DOMFileSystemBase::Synchronous)) {
es.throwDOMException(InvalidModificationError, ExceptionMessages::failedToExecute("remove", "EntrySync"));
return;
« no previous file with comments | « Source/modules/filesystem/EntryBase.cpp ('k') | Source/modules/filesystem/FileSystemCallbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698