Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: chrome/common/chrome_constants.cc

Issue 6976055: More POSIX support for Chromium, consisting mostly of broadening ifdefs. This (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/automated_ui_tests/automated_ui_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "Google Chrome" 13 #define PRODUCT_STRING "Google Chrome"
14 #elif defined(CHROMIUM_BUILD) 14 #elif defined(CHROMIUM_BUILD)
15 #define PRODUCT_STRING "Chromium" 15 #define PRODUCT_STRING "Chromium"
16 #else 16 #else
17 #error Unknown branding 17 #error Unknown branding
18 #endif 18 #endif
19 #endif // OS_MACOSX 19 #endif // OS_MACOSX
20 20
21 namespace chrome { 21 namespace chrome {
22 22
23 const char kChromeVersionEnvVar[] = "CHROME_VERSION"; 23 const char kChromeVersionEnvVar[] = "CHROME_VERSION";
24 24
25 // The following should not be used for UI strings; they are meant 25 // The following should not be used for UI strings; they are meant
26 // for system strings only. UI changes should be made in the GRD. 26 // for system strings only. UI changes should be made in the GRD.
27 #if defined(OS_WIN) 27 #if defined(OS_WIN)
28 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome.exe"); 28 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome.exe");
29 const FilePath::CharType kHelperProcessExecutableName[] = FPL("chrome.exe"); 29 const FilePath::CharType kHelperProcessExecutableName[] = FPL("chrome.exe");
30 #elif defined(OS_LINUX) 30 #elif defined(OS_MACOSX)
31 const FilePath::CharType kBrowserProcessExecutableName[] = FPL(PRODUCT_STRING);
32 const FilePath::CharType kHelperProcessExecutableName[] =
33 FPL(PRODUCT_STRING " Helper");
34 #elif defined(OS_POSIX)
31 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome"); 35 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome");
32 // Helper processes end up with a name of "exe" due to execing via 36 // Helper processes end up with a name of "exe" due to execing via
33 // /proc/self/exe. See bug 22703. 37 // /proc/self/exe. See bug 22703.
34 const FilePath::CharType kHelperProcessExecutableName[] = FPL("exe"); 38 const FilePath::CharType kHelperProcessExecutableName[] = FPL("exe");
35 #elif defined(OS_MACOSX)
36 const FilePath::CharType kBrowserProcessExecutableName[] = FPL(PRODUCT_STRING);
37 const FilePath::CharType kHelperProcessExecutableName[] =
38 FPL(PRODUCT_STRING " Helper");
39 #endif // OS_* 39 #endif // OS_*
40 #if defined(OS_WIN) 40 #if defined(OS_WIN)
41 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome.exe"); 41 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome.exe");
42 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome.exe"); 42 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome.exe");
43 #elif defined(OS_LINUX)
44 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome");
45 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome");
46 #elif defined(OS_MACOSX) 43 #elif defined(OS_MACOSX)
47 const FilePath::CharType kBrowserProcessExecutablePath[] = 44 const FilePath::CharType kBrowserProcessExecutablePath[] =
48 FPL(PRODUCT_STRING ".app/Contents/MacOS/" PRODUCT_STRING); 45 FPL(PRODUCT_STRING ".app/Contents/MacOS/" PRODUCT_STRING);
49 const FilePath::CharType kHelperProcessExecutablePath[] = 46 const FilePath::CharType kHelperProcessExecutablePath[] =
50 FPL(PRODUCT_STRING " Helper.app/Contents/MacOS/" PRODUCT_STRING " Helper"); 47 FPL(PRODUCT_STRING " Helper.app/Contents/MacOS/" PRODUCT_STRING " Helper");
48 #elif defined(OS_POSIX)
49 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome");
50 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome");
51 #endif // OS_* 51 #endif // OS_*
52 #if defined(OS_MACOSX) 52 #if defined(OS_MACOSX)
53 const FilePath::CharType kFrameworkName[] = 53 const FilePath::CharType kFrameworkName[] =
54 FPL(PRODUCT_STRING " Framework.framework"); 54 FPL(PRODUCT_STRING " Framework.framework");
55 #endif // OS_MACOSX 55 #endif // OS_MACOSX
56 const wchar_t kNaClAppName[] = L"nacl64"; 56 const wchar_t kNaClAppName[] = L"nacl64";
57 #if defined(GOOGLE_CHROME_BUILD) 57 #if defined(GOOGLE_CHROME_BUILD)
58 const wchar_t kBrowserAppName[] = L"Chrome"; 58 const wchar_t kBrowserAppName[] = L"Chrome";
59 const char kStatsFilename[] = "ChromeStats2"; 59 const char kStatsFilename[] = "ChromeStats2";
60 #else 60 #else
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 const char* const kUnknownLanguageCode = "und"; 132 const char* const kUnknownLanguageCode = "und";
133 133
134 const int kJavascriptMessageExpectedDelay = 1000; 134 const int kJavascriptMessageExpectedDelay = 1000;
135 135
136 const bool kEnableTouchIcon = false; 136 const bool kEnableTouchIcon = false;
137 137
138 } // namespace chrome 138 } // namespace chrome
139 139
140 #undef FPL 140 #undef FPL
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/automated_ui_tests/automated_ui_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698