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

Unified Diff: chrome/browser/chromeos/extensions/external_cache.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: chrome/browser/chromeos/extensions/external_cache.cc
diff --git a/chrome/browser/chromeos/extensions/external_cache.cc b/chrome/browser/chromeos/extensions/external_cache.cc
index 02a115e99a5148b489d3ca28988d0e24c871310f..d56d3018d9ece6076b9fdecb21392c3ba494e626 100644
--- a/chrome/browser/chromeos/extensions/external_cache.cc
+++ b/chrome/browser/chromeos/extensions/external_cache.cc
@@ -290,7 +290,7 @@ void ExternalCache::BackendCheckCacheContentsInternal(
// Start by verifying that the cache_dir exists.
if (!base::DirectoryExists(cache_dir)) {
// Create it now.
- if (!file_util::CreateDirectory(cache_dir)) {
+ if (!base::CreateDirectory(cache_dir)) {
LOG(ERROR) << "Failed to create ExternalCache directory at "
<< cache_dir.value();
}
@@ -492,7 +492,7 @@ void ExternalCache::BackendInstallCacheEntry(
if (!base::DirectoryExists(cache_dir)) {
LOG(ERROR) << "AppPack cache directory does not exist, creating now: "
<< cache_dir.value();
- if (!file_util::CreateDirectory(cache_dir)) {
+ if (!base::CreateDirectory(cache_dir)) {
LOG(ERROR) << "Failed to create the AppPack cache dir!";
base::DeleteFile(path, true /* recursive */);
return;

Powered by Google App Engine
This is Rietveld 408576698