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

Unified Diff: webkit/browser/fileapi/obfuscated_file_util.cc

Issue 100573002: Move directory creation functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/browser/fileapi/native_file_util.cc ('k') | webkit/browser/fileapi/sandbox_directory_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/obfuscated_file_util.cc
diff --git a/webkit/browser/fileapi/obfuscated_file_util.cc b/webkit/browser/fileapi/obfuscated_file_util.cc
index 1e6b3bc5b9c421d5f99f066c34bbe72172a2d5f9..9b28d57a28a6ed08a425131bf4ffb2bd1aa5e0ef 100644
--- a/webkit/browser/fileapi/obfuscated_file_util.cc
+++ b/webkit/browser/fileapi/obfuscated_file_util.cc
@@ -852,7 +852,7 @@ base::FilePath ObfuscatedFileUtil::GetDirectoryForOriginAndType(
base::FilePath path = origin_dir.AppendASCII(type_string);
base::PlatformFileError error = base::PLATFORM_FILE_OK;
if (!base::DirectoryExists(path) &&
- (!create || !file_util::CreateDirectory(path))) {
+ (!create || !base::CreateDirectory(path))) {
error = create ?
base::PLATFORM_FILE_ERROR_FAILED :
base::PLATFORM_FILE_ERROR_NOT_FOUND;
@@ -1210,7 +1210,7 @@ base::FilePath ObfuscatedFileUtil::GetDirectoryForOrigin(
}
if (!exists_in_fs) {
- if (!create || !file_util::CreateDirectory(path)) {
+ if (!create || !base::CreateDirectory(path)) {
if (error_code)
*error_code = create ?
base::PLATFORM_FILE_ERROR_FAILED :
@@ -1262,7 +1262,7 @@ bool ObfuscatedFileUtil::InitOriginDatabase(const GURL& origin_hint,
if (!create && !base::DirectoryExists(file_system_directory_))
return false;
- if (!file_util::CreateDirectory(file_system_directory_)) {
+ if (!base::CreateDirectory(file_system_directory_)) {
LOG(WARNING) << "Failed to create FileSystem directory: " <<
file_system_directory_.value();
return false;
« no previous file with comments | « webkit/browser/fileapi/native_file_util.cc ('k') | webkit/browser/fileapi/sandbox_directory_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698