summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_constants.cc
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-08 20:03:54 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-08 20:03:54 +0000
commit6a271dbaace85b14f566eba159b620de2172913f (patch)
tree6e2331da6d7e5b004383dd3ffaab6132b4e19087 /chrome/common/chrome_constants.cc
parentd9fde8deca892d79f064746e322cf6270d289a18 (diff)
downloadchromium_src-6a271dbaace85b14f566eba159b620de2172913f.zip
chromium_src-6a271dbaace85b14f566eba159b620de2172913f.tar.gz
chromium_src-6a271dbaace85b14f566eba159b620de2172913f.tar.bz2
Get rid of mac_app_names.h. Replace it with real constants from
chrome_constants.h. As a side effect of this change, tests will use the framework in the build directory as their main bundle override for the purposes of resource loading, instead of looking into the framework inside the application bundle. This should be more than sufficient, and is done for simplicity, because a future change will make it more difficult to locate the correct framework inside the application bundle unless the product version number is known. BUG=24220 TEST=product still works and all tests still pass Review URL: http://codereview.chromium.org/266023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28431 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_constants.cc')
-rw-r--r--chrome/common/chrome_constants.cc22
1 files changed, 15 insertions, 7 deletions
diff --git a/chrome/common/chrome_constants.cc b/chrome/common/chrome_constants.cc
index 9c3a298..55ea255 100644
--- a/chrome/common/chrome_constants.cc
+++ b/chrome/common/chrome_constants.cc
@@ -10,9 +10,13 @@
#if defined(OS_MACOSX)
#if defined(GOOGLE_CHROME_BUILD)
-#define PRODUCT_STRING L"Google Chrome"
+#define PRODUCT_STRING "Google Chrome"
+#define PRODUCT_STRING_W L"Google Chrome"
+#elif defined(CHROMIUM_BUILD)
+#define PRODUCT_STRING "Chromium"
+#define PRODUCT_STRING_W L"Chromium"
#else
-#define PRODUCT_STRING L"Chromium"
+#error Unknown branding
#endif
#endif // OS_MACOSX
@@ -27,8 +31,8 @@ const wchar_t kHelperProcessExecutableName[] = L"chrome.exe";
const wchar_t kBrowserProcessExecutableName[] = L"chrome";
const wchar_t kHelperProcessExecutableName[] = L"chrome";
#elif defined(OS_MACOSX)
-const wchar_t kBrowserProcessExecutableName[] = PRODUCT_STRING;
-const wchar_t kHelperProcessExecutableName[] = PRODUCT_STRING L" Helper";
+const wchar_t kBrowserProcessExecutableName[] = PRODUCT_STRING_W;
+const wchar_t kHelperProcessExecutableName[] = PRODUCT_STRING_W L" Helper";
#endif // OS_*
#if defined(OS_WIN)
const wchar_t kBrowserProcessExecutablePath[] = L"chrome.exe";
@@ -38,11 +42,15 @@ const wchar_t kBrowserProcessExecutablePath[] = L"chrome";
const wchar_t kHelperProcessExecutablePath[] = L"chrome";
#elif defined(OS_MACOSX)
const wchar_t kBrowserProcessExecutablePath[] =
- PRODUCT_STRING L".app/Contents/MacOS/" PRODUCT_STRING;
+ PRODUCT_STRING_W L".app/Contents/MacOS/" PRODUCT_STRING_W;
const wchar_t kHelperProcessExecutablePath[] =
- PRODUCT_STRING L".app/Contents/Resources/"
- PRODUCT_STRING L" Helper.app/Contents/MacOS/" PRODUCT_STRING L" Helper";
+ PRODUCT_STRING_W L".app/Contents/Resources/"
+ PRODUCT_STRING_W L" Helper.app/Contents/MacOS/" PRODUCT_STRING_W L" Helper";
#endif // OS_*
+#if defined(OS_MACOSX)
+const FilePath::CharType kFrameworkName[] =
+ PRODUCT_STRING " Framework.framework";
+#endif // OS_MACOSX
#if defined(CHROME_FRAME_BUILD)
const wchar_t kBrowserAppName[] = L"ChromeFrame";
const char kStatsFilename[] = "ChromeFrameStats2";