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

Unified Diff: webkit/browser/appcache/appcache_database.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
Index: webkit/browser/appcache/appcache_database.cc
diff --git a/webkit/browser/appcache/appcache_database.cc b/webkit/browser/appcache/appcache_database.cc
index 68738d1dbeeabcef443e7e05b72d135b5463b28b..a3dadd9eaf5515cc1f90381f636c5de6e645bfba 100644
--- a/webkit/browser/appcache/appcache_database.cc
+++ b/webkit/browser/appcache/appcache_database.cc
@@ -1011,7 +1011,7 @@ bool AppCacheDatabase::LazyOpen(bool create_if_needed) {
bool opened = false;
if (use_in_memory_db) {
opened = db_->OpenInMemory();
- } else if (!file_util::CreateDirectory(db_file_path_.DirName())) {
+ } else if (!base::CreateDirectory(db_file_path_.DirName())) {
LOG(ERROR) << "Failed to create appcache directory.";
} else {
opened = db_->Open(db_file_path_);
@@ -1196,7 +1196,7 @@ bool AppCacheDatabase::DeleteExistingAndCreateNewDatabase() {
// This also deletes the disk cache data.
base::FilePath directory = db_file_path_.DirName();
if (!base::DeleteFile(directory, true) ||
- !file_util::CreateDirectory(directory)) {
+ !base::CreateDirectory(directory)) {
return false;
}
« no previous file with comments | « ui/surface/accelerated_surface_transformer_win_unittest.cc ('k') | webkit/browser/appcache/appcache_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698