Index: base/file_util.cc |
diff --git a/base/file_util.cc b/base/file_util.cc |
index 8bcf1a46c64246634a90f29deb045ddafc1fbe77..1575a079d6b781bfd43d4e706176e7c9984db55c 100644 |
--- a/base/file_util.cc |
+++ b/base/file_util.cc |
@@ -129,7 +129,7 @@ bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2) { |
bool ReadFileToString(const FilePath& path, std::string* contents) { |
if (path.ReferencesParent()) |
return false; |
- FILE* file = file_util::OpenFile(path, "rb"); |
+ FILE* file = OpenFile(path, "rb"); |
if (!file) { |
return false; |
} |
@@ -140,7 +140,7 @@ bool ReadFileToString(const FilePath& path, std::string* contents) { |
if (contents) |
contents->append(buf, len); |
} |
- file_util::CloseFile(file); |
+ CloseFile(file); |
return true; |
} |
@@ -194,16 +194,6 @@ bool TouchFile(const FilePath& path, |
return false; |
} |
-} // namespace base |
- |
-// ----------------------------------------------------------------------------- |
- |
-namespace file_util { |
- |
-using base::FileEnumerator; |
-using base::FilePath; |
-using base::kMaxUniqueFiles; |
- |
bool CloseFile(FILE* file) { |
if (file == NULL) |
return true; |
@@ -228,6 +218,15 @@ bool TruncateFile(FILE* file) { |
return true; |
} |
+} // namespace base |
+ |
+// ----------------------------------------------------------------------------- |
+ |
+namespace file_util { |
+ |
+using base::FilePath; |
+using base::kMaxUniqueFiles; |
+ |
int GetUniquePathNumber( |
const FilePath& path, |
const FilePath::StringType& suffix) { |