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

Unified Diff: webkit/tools/test_shell/test_webview_delegate.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
Index: webkit/tools/test_shell/test_webview_delegate.cc
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index 3a423826f264afdf0e00c9c679283a9ea9703d44..4cfd9a1249fe0072b8974f70d405062add1bc91d 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -70,6 +70,7 @@
#include "webkit/tools/test_shell/mock_spellcheck.h"
#include "webkit/tools/test_shell/notification_presenter.h"
#include "webkit/tools/test_shell/simple_appcache_system.h"
+#include "webkit/tools/test_shell/simple_file_system.h"
#include "webkit/tools/test_shell/test_geolocation_service.h"
#include "webkit/tools/test_shell/test_navigation_controller.h"
#include "webkit/tools/test_shell/test_shell.h"
@@ -1125,15 +1126,9 @@ bool TestWebViewDelegate::allowScript(WebFrame* frame,
void TestWebViewDelegate::openFileSystem(
WebFrame* frame, WebFileSystem::Type type, long long size, bool create,
WebFileSystemCallbacks* callbacks) {
- if (shell_->file_system_root().empty()) {
- // The FileSystem temp directory was not initialized successfully.
- callbacks->didFail(WebKit::WebFileErrorSecurity);
- } else {
- // TODO(michaeln): need to put origin/type in the path.
- callbacks->didOpenFileSystem(
- "TestShellFileSystem",
- webkit_glue::FilePathToWebString(shell_->file_system_root()));
- }
+ SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>(
+ WebKit::webKitClient()->fileSystem());
+ fileSystem->OpenFileSystem(frame, type, size, create, callbacks);
}
// WebPluginPageDelegate -----------------------------------------------------
« webkit/tools/test_shell/simple_file_system.cc ('K') | « webkit/tools/test_shell/test_shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698