| Index: webkit/support/webkit_support.cc
|
| diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
|
| index b80c0af09083dea343074c3968da754008bc8c25..77bff2c278c9845f50802fdc6cf3e7125e36a776 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;
|
| @@ -542,18 +543,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
|
|
|