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

Unified Diff: webkit/tools/test_shell/simple_file_system.cc

Issue 13891009: FileSystem mods: Remove some dead snapshot creation code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 | « webkit/tools/test_shell/simple_file_system.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_file_system.cc
===================================================================
--- webkit/tools/test_shell/simple_file_system.cc (revision 194203)
+++ webkit/tools/test_shell/simple_file_system.cc (working copy)
@@ -254,20 +254,6 @@
url, SnapshotFileHandler(callbacks));
}
-// DEPRECATED
-void SimpleFileSystem::createSnapshotFileAndReadMetadata(
- const WebURL& blobURL,
- const WebURL& path,
- WebFileSystemCallbacks* callbacks) {
- FileSystemURL url(file_system_context()->CrackURL(path));
- if (!HasFilePermission(url, fileapi::kReadFilePermissions)) {
- callbacks->didFail(WebKit::WebFileErrorSecurity);
- return;
- }
- GetNewOperation(url)->CreateSnapshotFile(
- url, SnapshotFileHandler_Deprecated(blobURL, callbacks));
-}
-
// static
void SimpleFileSystem::InitializeOnIOThread(
webkit_blob::BlobStorageController* blob_storage_controller) {
@@ -336,14 +322,6 @@
AsWeakPtr(), base::Unretained(callbacks));
}
-FileSystemOperation::SnapshotFileCallback
-SimpleFileSystem::SnapshotFileHandler_Deprecated(
- const GURL& blob_url,
- WebFileSystemCallbacks* callbacks) {
- return base::Bind(&SimpleFileSystem::DidCreateSnapshotFile_Deprecated,
- AsWeakPtr(), blob_url, base::Unretained(callbacks));
-}
-
void SimpleFileSystem::DidFinish(WebFileSystemCallbacks* callbacks,
base::PlatformFileError result) {
if (result == base::PLATFORM_FILE_OK)
@@ -433,19 +411,3 @@
callbacks->didFail(fileapi::PlatformFileErrorToWebFileError(result));
}
}
-
-void SimpleFileSystem::DidCreateSnapshotFile_Deprecated(
- const GURL& blob_url,
- WebFileSystemCallbacks* callbacks,
- base::PlatformFileError result,
- const base::PlatformFileInfo& info,
- const base::FilePath& platform_path,
- const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref) {
- DCHECK(g_io_thread);
- if (result == base::PLATFORM_FILE_OK) {
- g_io_thread->PostTask(
- FROM_HERE,
- base::Bind(&RegisterBlob, blob_url, platform_path));
- }
- DidGetMetadata(callbacks, result, info, platform_path);
-}
« no previous file with comments | « webkit/tools/test_shell/simple_file_system.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698