diff options
author | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 07:33:39 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 07:33:39 +0000 |
commit | 7d95aae72e11aabaffd68d8b1f7864729713dd43 (patch) | |
tree | ce67574fe2c9e393ac933242217a95137b6b2e3b /base/file_util_win.cc | |
parent | 08f669c629934824bbe4ac0b43443c40cdd3cb48 (diff) | |
download | chromium_src-7d95aae72e11aabaffd68d8b1f7864729713dd43.zip chromium_src-7d95aae72e11aabaffd68d8b1f7864729713dd43.tar.gz chromium_src-7d95aae72e11aabaffd68d8b1f7864729713dd43.tar.bz2 |
Fixes a bug that .crx can not be installed by "Could not create
directory for unzipping." in the case that the environment variable
TMP is set to a root directory of a drive such as "C:\"
TEST=Add new tests to base_unittest
BUG=23911
Review URL: http://codereview.chromium.org/257061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28529 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r-- | base/file_util_win.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc index 0acaf5f..972a7b8 100644 --- a/base/file_util_win.cc +++ b/base/file_util_win.cc @@ -428,9 +428,7 @@ bool GetTempDir(FilePath* path) { // 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(); return true; } |