Index: base/file_path.cc |
diff --git a/base/file_path.cc b/base/file_path.cc |
index 3666ff2e82a4c465d86f6319ddefe7d4f428053b..6f286543bc50cc502bb24f4d5b2d9da127d860b7 100644 |
--- a/base/file_path.cc |
+++ b/base/file_path.cc |
@@ -1210,12 +1210,14 @@ void FilePath::StripTrailingSeparatorsInternal() { |
} |
} |
+FilePath FilePath::NormalizePathSeparators() const { |
#if defined(FILE_PATH_USES_WIN_SEPARATORS) |
-FilePath FilePath::NormalizeWindowsPathSeparators() const { |
StringType copy = path_; |
for (size_t i = 1; i < arraysize(kSeparators); ++i) { |
std::replace(copy.begin(), copy.end(), kSeparators[i], kSeparators[0]); |
} |
return FilePath(copy); |
-} |
+#else |
+ return *this; |
#endif |
+} |