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

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

Issue 2640963002: LocalFileSystem::deleteFileSystem() is no longer used. (Closed)
Patch Set: remove more Created 3 years, 11 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 | « third_party/WebKit/Source/modules/filesystem/LocalFileSystem.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp b/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp
index 4a5f2686031ff935a67b58df45cf7058e3801497..094898ea4b7f41b93682400142578ba2540849c6 100644
--- a/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp
@@ -105,24 +105,6 @@ void LocalFileSystem::requestFileSystem(
wrapPersistent(wrapper)));
}
-void LocalFileSystem::deleteFileSystem(
- ExecutionContext* context,
- FileSystemType type,
- std::unique_ptr<AsyncFileSystemCallbacks> callbacks) {
- ASSERT(context);
- SECURITY_DCHECK(context->isDocument());
-
- CallbackWrapper* wrapper = new CallbackWrapper(std::move(callbacks));
- requestFileSystemAccessInternal(
- context,
- WTF::bind(&LocalFileSystem::deleteFileSystemInternal,
- wrapCrossThreadPersistent(this), wrapPersistent(context), type,
- wrapPersistent(wrapper)),
- WTF::bind(&LocalFileSystem::fileSystemNotAllowedInternal,
- wrapCrossThreadPersistent(this), wrapPersistent(context),
- wrapPersistent(wrapper)));
-}
-
WebFileSystem* LocalFileSystem::getFileSystem() const {
Platform* platform = Platform::current();
if (!platform)
@@ -194,21 +176,6 @@ void LocalFileSystem::resolveURLInternal(ExecutionContext* context,
fileSystem->resolveURL(fileSystemURL, callbacks->release());
}
-void LocalFileSystem::deleteFileSystemInternal(ExecutionContext* context,
- FileSystemType type,
- CallbackWrapper* callbacks) {
- WebFileSystem* fileSystem = getFileSystem();
- if (!fileSystem) {
- fileSystemNotAvailable(context, callbacks);
- return;
- }
- KURL storagePartition =
- KURL(KURL(), context->getSecurityOrigin()->toString());
- fileSystem->deleteFileSystem(storagePartition,
- static_cast<WebFileSystemType>(type),
- callbacks->release());
-}
-
LocalFileSystem::LocalFileSystem(LocalFrame& frame,
std::unique_ptr<FileSystemClient> client)
: Supplement<LocalFrame>(frame), m_client(std::move(client)) {}
« no previous file with comments | « third_party/WebKit/Source/modules/filesystem/LocalFileSystem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698