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

Unified Diff: base/file_path.cc

Issue 9320059: Define FilePath::NormalizePathSeparators on all platforms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 years, 10 months 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
« no previous file with comments | « base/file_path.h ('k') | base/file_path_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+}
« no previous file with comments | « base/file_path.h ('k') | base/file_path_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698