| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "webkit/fileapi/file_system_file_util_base.h" |
| 6 #include "webkit/fileapi/file_system_operation_context.h" |
| 7 |
| 8 #include "base/file_util.h" |
| 9 |
| 10 namespace fileapi { |
| 11 |
| 12 bool ObfuscatedFileUtil::CreateDirectory( |
| 13 const FileSystemOperationContext& fs_context, |
| 14 const FilePath& full_path) { |
| 15 PlatformFileError error = base::PLATFORM_FILE_OK; |
| 16 // Take information about virtual/real path from fs_context. |
| 17 |
| 18 if (!file_util::CreateDirectory(full_path)) { |
| 19 error = base::PLATFORM_FILE_ERROR_FAILED; |
| 20 obfuscator.RollBack(); |
| 21 return; |
| 22 } |
| 23 |
| 24 // Store result/error in fs_context. |
| 25 // e.g. fs_context.SetObfuscationError(error); |
| 26 } |
| 27 |
| 28 } // namespace fileapi |
| OLD | NEW |