From a4a0bd9562e38ffff8aaf58031bdde0878ebfea4 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Wed, 18 Mar 2009 19:08:32 +0000 Subject: Make startup_tests build and work on Mac. Also ensure that Chromium.app quits properly between the tests. http://crbug.com/8391 Review URL: http://codereview.chromium.org/42306 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11998 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/chrome_constants.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'chrome/common') diff --git a/chrome/common/chrome_constants.cc b/chrome/common/chrome_constants.cc index 9c248cd..e0d53be 100644 --- a/chrome/common/chrome_constants.cc +++ b/chrome/common/chrome_constants.cc @@ -16,7 +16,16 @@ namespace chrome { const wchar_t kBrowserProcessExecutableName[] = L"chrome.exe"; #elif defined(OS_LINUX) const wchar_t kBrowserProcessExecutableName[] = L"chrome"; +#elif defined(OS_MACOSX) +const wchar_t kBrowserProcessExecutableName[] = +// TODO(thomasvl): Un-hardcode path inside the bundle in case we want to use +// this constant for something other than test code. +#if defined(GOOGLE_CHROME_BUILD) + L"Chrome.app/Contents/MacOS/Chrome"; +#else + L"Chromium.app/Contents/MacOS/Chromium"; #endif +#endif // defined(MACOSX) #if defined(GOOGLE_CHROME_BUILD) const wchar_t kBrowserAppName[] = L"Chrome"; const char kStatsFilename[] = "ChromeStats2"; -- cgit v1.1