summaryrefslogtreecommitdiffstats
path: root/base/base_paths_win.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 22:54:41 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 22:54:41 +0000
commitab926d553d2fbab7f170826afa811a253a8a65c8 (patch)
tree76c577b278544269f2ee04412b9661528d57856e /base/base_paths_win.cc
parent02e60209512e8013f962d33c0916613b796cad84 (diff)
downloadchromium_src-ab926d553d2fbab7f170826afa811a253a8a65c8.zip
chromium_src-ab926d553d2fbab7f170826afa811a253a8a65c8.tar.gz
chromium_src-ab926d553d2fbab7f170826afa811a253a8a65c8.tar.bz2
Deprecate PathService::Get(..., wstring*) and use FilePath instead.
I tried fixing all the Windows code but there's a *ton* of it. This change will at least prevent people from adding new code that uses the deprecated version (as that won't compile on Lin/Mac). BUG=24672 Review URL: http://codereview.chromium.org/293013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29472 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_paths_win.cc')
-rw-r--r--base/base_paths_win.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/base/base_paths_win.cc b/base/base_paths_win.cc
index 89c2ff3..bc8566c 100644
--- a/base/base_paths_win.cc
+++ b/base/base_paths_win.cc
@@ -102,10 +102,8 @@ bool PathProviderWin(int key, FilePath* result) {
case base::DIR_SOURCE_ROOT:
// On Windows, unit tests execute two levels deep from the source root.
// For example: chrome/{Debug|Release}/ui_tests.exe
- PathService::Get(base::DIR_EXE, &wstring_path);
- file_util::UpOneDirectory(&wstring_path);
- file_util::UpOneDirectory(&wstring_path);
- cur = FilePath(wstring_path);
+ PathService::Get(base::DIR_EXE, &cur);
+ cur = cur.DirName().DirName();
break;
default:
return false;