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

Unified Diff: webkit/support/webkit_support.cc

Issue 4879001: Extend simple_file_system to use SandboxedFileSystemOperation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 10 years, 1 month 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/fileapi/sandboxed_file_system_operation.cc ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index f6d0b246708eec46c69df8072ce2af8c2d737794..55550decb8200a0162830345598d3e804d69c19e 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -48,6 +48,7 @@
#include "webkit/support/test_webplugin_page_delegate.h"
#include "webkit/support/test_webkit_client.h"
#include "webkit/tools/test_shell/simple_database_system.h"
+#include "webkit/tools/test_shell/simple_file_system.h"
#include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
using WebKit::WebCString;
@@ -543,18 +544,11 @@ WebURL GetDevToolsPathAsURL() {
}
// FileSystem
-void OpenFileSystem(WebFrame*, WebFileSystem::Type type,
- long long, bool, WebFileSystemCallbacks* callbacks) {
- // TODO(kinuko): hook up FileSystemPathManager in a way that the code could
- // be shared with test_shell.
- if (test_environment->webkit_client()->file_system_root().empty()) {
- callbacks->didFail(WebKit::WebFileErrorSecurity);
- } else {
- callbacks->didOpenFileSystem(
- "TestShellFileSystem",
- webkit_glue::FilePathToWebString(
- test_environment->webkit_client()->file_system_root()));
- }
+void OpenFileSystem(WebFrame* frame, WebFileSystem::Type type,
+ long long size, bool create, WebFileSystemCallbacks* callbacks) {
+ SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>(
+ test_environment->webkit_client()->fileSystem());
+ fileSystem->OpenFileSystem(frame, type, size, create, callbacks);
}
} // namespace webkit_support
« no previous file with comments | « webkit/fileapi/sandboxed_file_system_operation.cc ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698