Index: chrome/common/chrome_paths_mac.mm |
diff --git a/chrome/common/chrome_paths_mac.mm b/chrome/common/chrome_paths_mac.mm |
index b87b39788ecd09ae100c4a9eef4fedc03dfdf6bb..0e4e29142548a5f29dc98e8c31682081c1cef104 100644 |
--- a/chrome/common/chrome_paths_mac.mm |
+++ b/chrome/common/chrome_paths_mac.mm |
@@ -64,6 +64,12 @@ FilePath GetVersionedDirectory() { |
FilePath path; |
PathService::Get(base::FILE_EXE, &path); |
+ if (path.DirName().BaseName() != FilePath("MacOS")) { |
+ // Raw test binary. |
Mark Mentovai
2010/11/15 17:50:01
Care to elaborate?
|
+ path = path.DirName().Append( |
+ FilePath::FromWStringHack(kBrowserProcessExecutablePath)); |
+ } |
+ |
// One step up to MacOS, another to Contents. |
path = path.DirName().DirName(); |
DCHECK_EQ(path.BaseName().value(), "Contents"); |