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

Unified Diff: chrome/browser/chromeos/drive/file_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/drive/file_cache.cc
diff --git a/chrome/browser/chromeos/drive/file_cache.cc b/chrome/browser/chromeos/drive/file_cache.cc
index 9049eda94020ba56dd6cf21098250f79f3b9cc63..bbdcb563bb2c7d16a0fef35fc35bd5312bb4d543 100644
--- a/chrome/browser/chromeos/drive/file_cache.cc
+++ b/chrome/browser/chromeos/drive/file_cache.cc
@@ -474,7 +474,7 @@ bool FileCache::RecoverFilesFromCacheDirectory(
// Add file number to the file name and move.
const base::FilePath& dest_path = dest_directory.Append(dest_base_name)
.InsertBeforeExtensionASCII(base::StringPrintf("%08d", file_number++));
- if (!file_util::CreateDirectory(dest_directory) ||
+ if (!base::CreateDirectory(dest_directory) ||
!base::Move(current, dest_path)) {
LOG(WARNING) << "Failed to move: " << current.value()
<< " to " << dest_path.value();
« no previous file with comments | « chrome/browser/chromeos/drive/drive_integration_service.cc ('k') | chrome/browser/chromeos/drive/file_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698