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 |
11 #if defined(OS_MACOSX) | 11 #if defined(OS_MACOSX) |
12 #if defined(GOOGLE_CHROME_BUILD) | 12 #if defined(GOOGLE_CHROME_BUILD) |
13 #define PRODUCT_STRING L"Google Chrome" | 13 #define PRODUCT_STRING L"Google Chrome" |
14 #else | 14 #else |
15 #define PRODUCT_STRING L"Chromium" | 15 #define PRODUCT_STRING L"Chromium" |
16 #endif | 16 #endif |
17 #endif // OS_MACOSX | 17 #endif // OS_MACOSX |
18 | 18 |
19 namespace chrome { | 19 namespace chrome { |
20 | 20 |
21 // The following should not be used for UI strings; they are meant | 21 // The following should not be used for UI strings; they are meant |
22 // for system strings only. UI changes should be made in the GRD. | 22 // for system strings only. UI changes should be made in the GRD. |
23 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
24 const wchar_t kBrowserProcessExecutableName[] = L"chrome.exe"; | 24 const wchar_t kBrowserProcessExecutableName[] = L"chrome.exe"; |
25 const wchar_t kHelperProcessExecutableName[] = L"chrome.exe"; | 25 const wchar_t kHelperProcessExecutableName[] = L"chrome.exe"; |
26 #elif defined(OS_LINUX) | 26 #elif defined(OS_LINUX) || defined(OS_FREEBSD) |
27 const wchar_t kBrowserProcessExecutableName[] = L"chrome"; | 27 const wchar_t kBrowserProcessExecutableName[] = L"chrome"; |
28 const wchar_t kHelperProcessExecutableName[] = L"chrome"; | 28 const wchar_t kHelperProcessExecutableName[] = L"chrome"; |
29 #elif defined(OS_MACOSX) | 29 #elif defined(OS_MACOSX) |
30 const wchar_t kBrowserProcessExecutableName[] = PRODUCT_STRING; | 30 const wchar_t kBrowserProcessExecutableName[] = PRODUCT_STRING; |
31 const wchar_t kHelperProcessExecutableName[] = PRODUCT_STRING L" Helper"; | 31 const wchar_t kHelperProcessExecutableName[] = PRODUCT_STRING L" Helper"; |
32 #endif // OS_* | 32 #endif // OS_* |
33 #if defined(OS_WIN) | 33 #if defined(OS_WIN) |
34 const wchar_t kBrowserProcessExecutablePath[] = L"chrome.exe"; | 34 const wchar_t kBrowserProcessExecutablePath[] = L"chrome.exe"; |
35 const wchar_t kHelperProcessExecutablePath[] = L"chrome.exe"; | 35 const wchar_t kHelperProcessExecutablePath[] = L"chrome.exe"; |
36 #elif defined(OS_LINUX) | 36 #elif defined(OS_LINUX) || defined(OS_FREEBSD) |
37 const wchar_t kBrowserProcessExecutablePath[] = L"chrome"; | 37 const wchar_t kBrowserProcessExecutablePath[] = L"chrome"; |
38 const wchar_t kHelperProcessExecutablePath[] = L"chrome"; | 38 const wchar_t kHelperProcessExecutablePath[] = L"chrome"; |
39 #elif defined(OS_MACOSX) | 39 #elif defined(OS_MACOSX) |
40 const wchar_t kBrowserProcessExecutablePath[] = | 40 const wchar_t kBrowserProcessExecutablePath[] = |
41 PRODUCT_STRING L".app/Contents/MacOS/" PRODUCT_STRING; | 41 PRODUCT_STRING L".app/Contents/MacOS/" PRODUCT_STRING; |
42 const wchar_t kHelperProcessExecutablePath[] = | 42 const wchar_t kHelperProcessExecutablePath[] = |
43 PRODUCT_STRING L".app/Contents/Resources/" | 43 PRODUCT_STRING L".app/Contents/Resources/" |
44 PRODUCT_STRING L" Helper.app/Contents/MacOS/" PRODUCT_STRING L" Helper"; | 44 PRODUCT_STRING L" Helper.app/Contents/MacOS/" PRODUCT_STRING L" Helper"; |
45 #endif // OS_* | 45 #endif // OS_* |
46 #if defined(GOOGLE_CHROME_BUILD) | 46 #if defined(GOOGLE_CHROME_BUILD) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // because it is useful for testing and not hazardous by itself. | 103 // because it is useful for testing and not hazardous by itself. |
104 #ifndef NDEBUG | 104 #ifndef NDEBUG |
105 const bool kRecordModeEnabled = true; | 105 const bool kRecordModeEnabled = true; |
106 #else | 106 #else |
107 const bool kRecordModeEnabled = false; | 107 const bool kRecordModeEnabled = false; |
108 #endif | 108 #endif |
109 | 109 |
110 } // namespace chrome | 110 } // namespace chrome |
111 | 111 |
112 #undef FPL | 112 #undef FPL |
OLD | NEW |