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

Unified Diff: base/file_util_win.cc

Issue 257061: Fixes a bug that .crx can not be installed by "Could not create... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« base/file_util_unittest.cc ('K') | « base/file_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« base/file_util_unittest.cc ('K') | « base/file_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698