diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 13:15:47 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-09 13:15:47 +0000 |
commit | ad44ddb7598b1864f12861fd95fa4be2c8563a03 (patch) | |
tree | c1b3c0ce23d8f80d4a9ae69ae16545ed79082847 /base/base_paths_win.cc | |
parent | 029e76c402c7e86939afbf81ca6c805bdc342438 (diff) | |
download | chromium_src-ad44ddb7598b1864f12861fd95fa4be2c8563a03.zip chromium_src-ad44ddb7598b1864f12861fd95fa4be2c8563a03.tar.gz chromium_src-ad44ddb7598b1864f12861fd95fa4be2c8563a03.tar.bz2 |
file_util: Get rid of most uses of UpOneDirectory.
(Remaining one usage to be fixed, until we can remove it completly.)
BUG=24672
TEST=trybots
Review URL: http://codereview.chromium.org/2841039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51952 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_paths_win.cc')
-rw-r--r-- | base/base_paths_win.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/base/base_paths_win.cc b/base/base_paths_win.cc index 2b4912e..9b5c150 100644 --- a/base/base_paths_win.cc +++ b/base/base_paths_win.cc @@ -28,7 +28,6 @@ bool PathProviderWin(int key, FilePath* result) { system_buffer[0] = 0; FilePath cur; - std::wstring wstring_path; switch (key) { case base::FILE_EXE: GetModuleFileName(NULL, system_buffer, MAX_PATH); @@ -94,10 +93,7 @@ bool PathProviderWin(int key, FilePath* result) { if (FAILED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, system_buffer))) return false; - wstring_path = system_buffer; - file_util::UpOneDirectory(&wstring_path); - file_util::AppendToPath(&wstring_path, L"LocalLow"); - cur = FilePath(wstring_path); + cur = FilePath(system_buffer).DirName().AppendASCII("LocalLow"); break; case base::DIR_LOCAL_APP_DATA: if (FAILED(SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA, NULL, |