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

Unified Diff: Source/web/LocalFileSystemClient.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/web/AsyncFileSystemChromium.cpp ('k') | Source/web/WebFileSystemCallbacksImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/LocalFileSystemClient.cpp
diff --git a/Source/web/LocalFileSystemClient.cpp b/Source/web/LocalFileSystemClient.cpp
index ad0b17cb4c86b2f28bcda27f776babe9c5c1490b..f9d6e7133213e2164967c9c6a76056996ef8c4c4 100644
--- a/Source/web/LocalFileSystemClient.cpp
+++ b/Source/web/LocalFileSystemClient.cpp
@@ -31,7 +31,6 @@
#include "config.h"
#include "LocalFileSystemClient.h"
-#include "WebFileSystemCallbacksImpl.h"
#include "WebFrameImpl.h"
#include "WebViewImpl.h"
#include "core/dom/Document.h"
@@ -70,15 +69,13 @@ bool LocalFileSystemClient::allowFileSystem(ScriptExecutionContext* context)
void LocalFileSystemClient::openFileSystem(ScriptExecutionContext* context, WebCore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks, long long size, OpenFileSystemMode openMode)
{
KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString());
- // FIXME: fix this callbacks raw pointer.
- WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition, static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent, new WebKit::WebFileSystemCallbacksImpl(callbacks));
+ WebKit::Platform::current()->fileSystem()->openFileSystem(storagePartition, static_cast<WebFileSystemType>(type), openMode == CreateFileSystemIfNotPresent, callbacks);
}
void LocalFileSystemClient::deleteFileSystem(ScriptExecutionContext* context, WebCore::FileSystemType type, PassOwnPtr<AsyncFileSystemCallbacks> callbacks)
{
KURL storagePartition = KURL(KURL(), context->securityOrigin()->toString());
- // FIXME: fix this callbacks raw pointer.
- WebKit::Platform::current()->fileSystem()->deleteFileSystem(storagePartition, static_cast<WebFileSystemType>(type), new WebFileSystemCallbacksImpl(callbacks));
+ WebKit::Platform::current()->fileSystem()->deleteFileSystem(storagePartition, static_cast<WebFileSystemType>(type), callbacks);
}
« no previous file with comments | « Source/web/AsyncFileSystemChromium.cpp ('k') | Source/web/WebFileSystemCallbacksImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698