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

Unified Diff: webkit/fileapi/sandboxed_file_system_operation.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.h ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/sandboxed_file_system_operation.cc
diff --git a/webkit/fileapi/sandboxed_file_system_operation.cc b/webkit/fileapi/sandboxed_file_system_operation.cc
index fc77ce319a6a00182cb14adbce171a72ff396fa7..dfc2884f677e1745c9fd9dda54de14dfa5d02c4f 100644
--- a/webkit/fileapi/sandboxed_file_system_operation.cc
+++ b/webkit/fileapi/sandboxed_file_system_operation.cc
@@ -115,9 +115,10 @@ void SandboxedFileSystemOperation::Truncate(
FileSystemOperation::Truncate(path, length);
}
-void SandboxedFileSystemOperation::TouchFile(const FilePath& path,
- const base::Time& last_access_time,
- const base::Time& last_modified_time) {
+void SandboxedFileSystemOperation::TouchFile(
+ const FilePath& path,
+ const base::Time& last_access_time,
+ const base::Time& last_modified_time) {
if (!VerifyFileSystemPathForWrite(path, true /* create */, 0))
return;
FileSystemOperation::TouchFile(path, last_access_time, last_modified_time);
@@ -171,14 +172,4 @@ bool SandboxedFileSystemOperation::VerifyFileSystemPathForWrite(
return true;
}
-bool SandboxedFileSystemOperation::CheckIfFilePathIsSafe(
- const FilePath& path) {
- if (file_system_context_->path_manager()->IsRestrictedFileName(
- path.BaseName())) {
- dispatcher()->DidFail(base::PLATFORM_FILE_ERROR_SECURITY);
- return false;
- }
- return true;
-}
-
} // namespace fileapi
« no previous file with comments | « webkit/fileapi/sandboxed_file_system_operation.h ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698