Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1531)

Unified Diff: chrome/common/chrome_paths_mac.mm

Issue 4947002: Mac: Let browser_tests run in bundled mode for their whole lifetime. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/mac_util.mm ('k') | chrome/common/pepper_plugin_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « base/mac_util.mm ('k') | chrome/common/pepper_plugin_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698