summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 07:44:40 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-29 07:44:40 +0000
commit22dea52cdc3fd2eac4781f1eb2993550ea2b0dba (patch)
tree3fe1542b84e742e62aab2185d2b2eefdac877ce0 /webkit/tools
parent8f8345c550c59f55f9e795bfad503e404b1291e3 (diff)
downloadchromium_src-22dea52cdc3fd2eac4781f1eb2993550ea2b0dba.zip
chromium_src-22dea52cdc3fd2eac4781f1eb2993550ea2b0dba.tar.gz
chromium_src-22dea52cdc3fd2eac4781f1eb2993550ea2b0dba.tar.bz2
Rename FileSystemMountPointProvider::ValidateFileSystemRoot to OpenFileSystem
This patch does: - Rename ValidateFileSystemRoot() to OpenFileSystem() to make it clearer what the method does (as the method is called in response to OpenFileSystem request from the renderer) - Also change boolean 'create' parameter to an enum (OpenFileSystemMode) BUG=243216 R=benjhayden@chromium.org, kinaba@chromium.org, tzik@chromium.org Review URL: https://codereview.chromium.org/16043006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/test_shell/simple_file_system.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/simple_file_system.cc b/webkit/tools/test_shell/simple_file_system.cc
index fc973c7..962c67b 100644
--- a/webkit/tools/test_shell/simple_file_system.cc
+++ b/webkit/tools/test_shell/simple_file_system.cc
@@ -99,9 +99,12 @@ void SimpleFileSystem::OpenFileSystem(
return;
}
+ fileapi::OpenFileSystemMode mode =
+ create ? fileapi::OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT
+ : fileapi::OPEN_FILE_SYSTEM_FAIL_IF_NONEXISTENT;
GURL origin_url(frame->document().securityOrigin().toString());
file_system_context_->OpenFileSystem(
- origin_url, static_cast<fileapi::FileSystemType>(type), create,
+ origin_url, static_cast<fileapi::FileSystemType>(type), mode,
OpenFileSystemHandler(callbacks));
}