Index: base/base_paths_win.cc |
diff --git a/base/base_paths_win.cc b/base/base_paths_win.cc |
index 89c2ff32b29e2e14766a3d1a68f904fc259cb81d..bc8566c6fe03e41272e2e1bf2b6c759fb240f27f 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; |