| Index: base/file_util_win.cc
|
| ===================================================================
|
| --- base/file_util_win.cc (revision 28937)
|
| +++ base/file_util_win.cc (working copy)
|
| @@ -28,8 +28,7 @@
|
| std::wstring::size_type length =
|
| file_ptr ? file_ptr - path_buffer : path.length();
|
| std::wstring directory(path, 0, length);
|
| - TrimTrailingSeparator(&directory);
|
| - return directory;
|
| + return FilePath(directory).StripTrailingSeparators().value();
|
| }
|
|
|
| bool AbsolutePath(FilePath* path) {
|
| @@ -648,8 +647,7 @@
|
| // trailing slash. We duplicate this here, but it shouldn't be necessary
|
| // when everyone is using the appropriate FilePath APIs.
|
| std::wstring dir_str(system_buffer);
|
| - file_util::TrimTrailingSeparator(&dir_str);
|
| - *dir = FilePath(dir_str);
|
| + *dir = FilePath(dir_str).StripTrailingSeparators();
|
| return true;
|
| }
|
|
|
|
|