Index: base/file_util.cc |
diff --git a/base/file_util.cc b/base/file_util.cc |
index 87b9afb9946a31d486a162b67d4064f3e6a33558..c1bf50abc45f720bca415d1bc56d5fb9bf35abda 100644 |
--- a/base/file_util.cc |
+++ b/base/file_util.cc |
@@ -236,18 +236,8 @@ 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) { |
+int GetUniquePathNumber(const FilePath& path, |
+ const FilePath::StringType& suffix) { |
bool have_suffix = !suffix.empty(); |
if (!PathExists(path) && |
(!have_suffix || !PathExists(FilePath(path.value() + suffix)))) { |
@@ -256,8 +246,7 @@ int GetUniquePathNumber( |
FilePath new_path; |
for (int count = 1; count <= kMaxUniqueFiles; ++count) { |
- new_path = |
- path.InsertBeforeExtensionASCII(base::StringPrintf(" (%d)", count)); |
+ new_path = path.InsertBeforeExtensionASCII(StringPrintf(" (%d)", count)); |
if (!PathExists(new_path) && |
(!have_suffix || !PathExists(FilePath(new_path.value() + suffix)))) { |
return count; |
@@ -267,4 +256,4 @@ int GetUniquePathNumber( |
return -1; |
} |
-} // namespace file_util |
+} // namespace base |