Chromium Code Reviews| Index: base/file_util_win.cc |
| =================================================================== |
| --- base/file_util_win.cc (revision 28515) |
| +++ base/file_util_win.cc (working copy) |
| @@ -428,9 +428,7 @@ |
| // TODO(evanm): the old behavior of this function was to always strip the |
| // trailing slash. We duplicate this here, but it shouldn't be necessary |
| // when everyone is using the appropriate FilePath APIs. |
| - std::wstring path_str(temp_path); |
| - TrimTrailingSeparator(&path_str); |
| - *path = FilePath(path_str); |
| + *path = FilePath(temp_path).StripTrailingSeparators(); |
|
Erik does not do reviews
2009/10/09 14:16:33
If this changes anything for your test case, then
Mark Mentovai
2009/10/09 14:31:16
I agree. It looks like file_util::TrimTrailingSep
tkent
2009/10/09 15:09:34
You're right. As Mark wrote, TrimTrailingSeprator
|
| return true; |
| } |