diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 05:33:17 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-25 05:33:17 +0000 |
commit | 7c37377a717a32501b8c07406a6ad8a0b7229240 (patch) | |
tree | 979bf47baa340e6d313210221aedd45ddb063205 /base/file_path.h | |
parent | b058597f786b4d1398bfa0cf4971bf7bb2b75c3b (diff) | |
download | chromium_src-7c37377a717a32501b8c07406a6ad8a0b7229240.zip chromium_src-7c37377a717a32501b8c07406a6ad8a0b7229240.tar.gz chromium_src-7c37377a717a32501b8c07406a6ad8a0b7229240.tar.bz2 |
Add a method for normalizing path separators on Windows.
TEST=new unittests
Review URL: http://codereview.chromium.org/2831029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_path.h')
-rw-r--r-- | base/file_path.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/file_path.h b/base/file_path.h index 61baf8f..0efe1a1 100644 --- a/base/file_path.h +++ b/base/file_path.h @@ -304,6 +304,11 @@ class FilePath { void WriteToPickle(Pickle* pickle); bool ReadFromPickle(Pickle* pickle, void** iter); +#if defined(FILE_PATH_USES_WIN_SEPARATORS) + // Normalize all path separators to backslash. + FilePath NormalizeWindowsPathSeparators() const; +#endif + // Compare two strings in the same way the file system does. // Note that these always ignore case, even on file systems that are case- // sensitive. If case-sensitive comparison is ever needed, add corresponding |