| 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 namespace chrome { | 11 namespace chrome { |
| 12 | 12 |
| 13 // The following should not be used for UI strings; they are meant | 13 // The following should not be used for UI strings; they are meant |
| 14 // for system strings only. UI changes should be made in the GRD. | 14 // for system strings only. UI changes should be made in the GRD. |
| 15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
| 16 const wchar_t kBrowserProcessExecutableName[] = L"chrome.exe"; | 16 const wchar_t kBrowserProcessExecutableName[] = L"chrome.exe"; |
| 17 #elif defined(OS_LINUX) | 17 #elif defined(OS_LINUX) |
| 18 const wchar_t kBrowserProcessExecutableName[] = L"chrome"; | 18 const wchar_t kBrowserProcessExecutableName[] = L"chrome"; |
| 19 #elif defined(OS_MACOSX) |
| 20 const wchar_t kBrowserProcessExecutableName[] = |
| 21 // TODO(thomasvl): Un-hardcode path inside the bundle in case we want to use |
| 22 // this constant for something other than test code. |
| 23 #if defined(GOOGLE_CHROME_BUILD) |
| 24 L"Chrome.app/Contents/MacOS/Chrome"; |
| 25 #else |
| 26 L"Chromium.app/Contents/MacOS/Chromium"; |
| 19 #endif | 27 #endif |
| 28 #endif // defined(MACOSX) |
| 20 #if defined(GOOGLE_CHROME_BUILD) | 29 #if defined(GOOGLE_CHROME_BUILD) |
| 21 const wchar_t kBrowserAppName[] = L"Chrome"; | 30 const wchar_t kBrowserAppName[] = L"Chrome"; |
| 22 const char kStatsFilename[] = "ChromeStats2"; | 31 const char kStatsFilename[] = "ChromeStats2"; |
| 23 #else | 32 #else |
| 24 const wchar_t kBrowserAppName[] = L"Chromium"; | 33 const wchar_t kBrowserAppName[] = L"Chromium"; |
| 25 const char kStatsFilename[] = "ChromiumStats2"; | 34 const char kStatsFilename[] = "ChromiumStats2"; |
| 26 #endif | 35 #endif |
| 27 const wchar_t kExternalTabWindowClass[] = L"Chrome_ExternalTabContainer"; | 36 const wchar_t kExternalTabWindowClass[] = L"Chrome_ExternalTabContainer"; |
| 28 const wchar_t kMessageWindowClass[] = L"Chrome_MessageWindow"; | 37 const wchar_t kMessageWindowClass[] = L"Chrome_MessageWindow"; |
| 29 const wchar_t kCrashReportLog[] = L"Reported Crashes.txt"; | 38 const wchar_t kCrashReportLog[] = L"Reported Crashes.txt"; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // potentially be tricked into running a product in record mode without | 73 // potentially be tricked into running a product in record mode without |
| 65 // knowing it. Enable in debug builds. Playback mode is allowed always, | 74 // knowing it. Enable in debug builds. Playback mode is allowed always, |
| 66 // because it is useful for testing and not hazardous by itself. | 75 // because it is useful for testing and not hazardous by itself. |
| 67 #ifndef NDEBUG | 76 #ifndef NDEBUG |
| 68 const bool kRecordModeEnabled = true; | 77 const bool kRecordModeEnabled = true; |
| 69 #else | 78 #else |
| 70 const bool kRecordModeEnabled = false; | 79 const bool kRecordModeEnabled = false; |
| 71 #endif | 80 #endif |
| 72 | 81 |
| 73 } // namespace chrome | 82 } // namespace chrome |
| OLD | NEW |