OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/chrome_constants.h" | 5 #include "chrome/common/chrome_constants.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 | 8 |
9 #define FPL FILE_PATH_LITERAL | 9 #define FPL FILE_PATH_LITERAL |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 const wchar_t kHelperProcessExecutableName[] = L"chrome.exe"; | 29 const wchar_t kHelperProcessExecutableName[] = L"chrome.exe"; |
30 #elif defined(OS_LINUX) | 30 #elif defined(OS_LINUX) |
31 const wchar_t kBrowserProcessExecutableName[] = L"chrome"; | 31 const wchar_t kBrowserProcessExecutableName[] = L"chrome"; |
32 const wchar_t kHelperProcessExecutableName[] = L"chrome"; | 32 const wchar_t kHelperProcessExecutableName[] = L"chrome"; |
33 #elif defined(OS_MACOSX) | 33 #elif defined(OS_MACOSX) |
34 const wchar_t kBrowserProcessExecutableName[] = PRODUCT_STRING_W; | 34 const wchar_t kBrowserProcessExecutableName[] = PRODUCT_STRING_W; |
35 const wchar_t kHelperProcessExecutableName[] = PRODUCT_STRING_W L" Helper"; | 35 const wchar_t kHelperProcessExecutableName[] = PRODUCT_STRING_W L" Helper"; |
36 #endif // OS_* | 36 #endif // OS_* |
37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
38 const wchar_t kBrowserProcessExecutablePath[] = L"chrome.exe"; | 38 const wchar_t kBrowserProcessExecutablePath[] = L"chrome.exe"; |
39 const wchar_t kHelperProcessExecutablePath[] = L"chrome.exe"; | 39 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome.exe"); |
40 #elif defined(OS_LINUX) | 40 #elif defined(OS_LINUX) |
41 const wchar_t kBrowserProcessExecutablePath[] = L"chrome"; | 41 const wchar_t kBrowserProcessExecutablePath[] = L"chrome"; |
42 const wchar_t kHelperProcessExecutablePath[] = L"chrome"; | 42 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome"); |
43 #elif defined(OS_MACOSX) | 43 #elif defined(OS_MACOSX) |
44 const wchar_t kBrowserProcessExecutablePath[] = | 44 const wchar_t kBrowserProcessExecutablePath[] = |
45 PRODUCT_STRING_W L".app/Contents/MacOS/" PRODUCT_STRING_W; | 45 PRODUCT_STRING_W L".app/Contents/MacOS/" PRODUCT_STRING_W; |
46 const wchar_t kHelperProcessExecutablePath[] = | 46 const FilePath::CharType kHelperProcessExecutablePath[] = |
47 PRODUCT_STRING_W L" Helper.app/Contents/MacOS/" PRODUCT_STRING_W L" Helper"; | 47 FPL(PRODUCT_STRING " Helper.app/Contents/MacOS/" PRODUCT_STRING " Helper"); |
48 #endif // OS_* | 48 #endif // OS_* |
49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
50 const FilePath::CharType kFrameworkName[] = | 50 const FilePath::CharType kFrameworkName[] = |
51 PRODUCT_STRING " Framework.framework"; | 51 FPL(PRODUCT_STRING " Framework.framework"); |
52 #endif // OS_MACOSX | 52 #endif // OS_MACOSX |
53 #if defined(CHROME_FRAME_BUILD) | 53 #if defined(CHROME_FRAME_BUILD) |
54 const wchar_t kBrowserAppName[] = L"ChromeFrame"; | 54 const wchar_t kBrowserAppName[] = L"ChromeFrame"; |
55 const char kStatsFilename[] = "ChromeFrameStats2"; | 55 const char kStatsFilename[] = "ChromeFrameStats2"; |
56 #elif defined(GOOGLE_CHROME_BUILD) | 56 #elif defined(GOOGLE_CHROME_BUILD) |
57 const wchar_t kBrowserAppName[] = L"Chrome"; | 57 const wchar_t kBrowserAppName[] = L"Chrome"; |
58 const char kStatsFilename[] = "ChromeStats2"; | 58 const char kStatsFilename[] = "ChromeStats2"; |
59 #else | 59 #else |
60 const wchar_t kBrowserAppName[] = L"Chromium"; | 60 const wchar_t kBrowserAppName[] = L"Chromium"; |
61 const char kStatsFilename[] = "ChromiumStats2"; | 61 const char kStatsFilename[] = "ChromiumStats2"; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // because it is useful for testing and not hazardous by itself. | 113 // because it is useful for testing and not hazardous by itself. |
114 #ifndef NDEBUG | 114 #ifndef NDEBUG |
115 const bool kRecordModeEnabled = true; | 115 const bool kRecordModeEnabled = true; |
116 #else | 116 #else |
117 const bool kRecordModeEnabled = false; | 117 const bool kRecordModeEnabled = false; |
118 #endif | 118 #endif |
119 | 119 |
120 } // namespace chrome | 120 } // namespace chrome |
121 | 121 |
122 #undef FPL | 122 #undef FPL |
OLD | NEW |