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

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

Issue 5968008: Update file version info/memory details/process utils to use string16.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/common/chrome_constants.h ('k') | chrome/common/chrome_version_info.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) 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 "Google Chrome" 13 #define PRODUCT_STRING "Google Chrome"
14 #define PRODUCT_STRING_W L"Google Chrome"
15 #elif defined(CHROMIUM_BUILD) 14 #elif defined(CHROMIUM_BUILD)
16 #define PRODUCT_STRING "Chromium" 15 #define PRODUCT_STRING "Chromium"
17 #define PRODUCT_STRING_W L"Chromium"
18 #else 16 #else
19 #error Unknown branding 17 #error Unknown branding
20 #endif 18 #endif
21 #endif // OS_MACOSX 19 #endif // OS_MACOSX
22 20
23 namespace chrome { 21 namespace chrome {
24 22
25 const char kChromeVersionEnvVar[] = "CHROME_VERSION"; 23 const char kChromeVersionEnvVar[] = "CHROME_VERSION";
26 24
27 // 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
28 // 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.
29 #if defined(OS_WIN) 27 #if defined(OS_WIN)
30 const wchar_t kBrowserProcessExecutableName[] = L"chrome.exe"; 28 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome.exe");
31 const wchar_t kHelperProcessExecutableName[] = L"chrome.exe"; 29 const FilePath::CharType kHelperProcessExecutableName[] = FPL("chrome.exe");
32 #elif defined(OS_LINUX) 30 #elif defined(OS_LINUX)
33 const wchar_t kBrowserProcessExecutableName[] = L"chrome"; 31 const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome");
34 // Helper processes end up with a name of "exe" due to execing via 32 // Helper processes end up with a name of "exe" due to execing via
35 // /proc/self/exe. See bug 22703. 33 // /proc/self/exe. See bug 22703.
36 const wchar_t kHelperProcessExecutableName[] = L"exe"; 34 const FilePath::CharType kHelperProcessExecutableName[] = FPL("exe");
37 #elif defined(OS_MACOSX) 35 #elif defined(OS_MACOSX)
38 const wchar_t kBrowserProcessExecutableName[] = PRODUCT_STRING_W; 36 const FilePath::CharType kBrowserProcessExecutableName[] = FPL(PRODUCT_STRING);
39 const wchar_t kHelperProcessExecutableName[] = PRODUCT_STRING_W L" Helper"; 37 const FilePath::CharType kHelperProcessExecutableName[] =
38 FPL(PRODUCT_STRING " Helper");
40 #endif // OS_* 39 #endif // OS_*
41 #if defined(OS_WIN) 40 #if defined(OS_WIN)
42 const wchar_t kBrowserProcessExecutablePath[] = L"chrome.exe"; 41 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome.exe");
43 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome.exe"); 42 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome.exe");
44 #elif defined(OS_LINUX) 43 #elif defined(OS_LINUX)
45 const wchar_t kBrowserProcessExecutablePath[] = L"chrome"; 44 const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome");
46 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome"); 45 const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome");
47 #elif defined(OS_MACOSX) 46 #elif defined(OS_MACOSX)
48 const wchar_t kBrowserProcessExecutablePath[] = 47 const FilePath::CharType kBrowserProcessExecutablePath[] =
49 PRODUCT_STRING_W L".app/Contents/MacOS/" PRODUCT_STRING_W; 48 FPL(PRODUCT_STRING ".app/Contents/MacOS/" PRODUCT_STRING);
50 const FilePath::CharType kHelperProcessExecutablePath[] = 49 const FilePath::CharType kHelperProcessExecutablePath[] =
51 FPL(PRODUCT_STRING " Helper.app/Contents/MacOS/" PRODUCT_STRING " Helper"); 50 FPL(PRODUCT_STRING " Helper.app/Contents/MacOS/" PRODUCT_STRING " Helper");
52 #endif // OS_* 51 #endif // OS_*
53 #if defined(OS_MACOSX) 52 #if defined(OS_MACOSX)
54 const FilePath::CharType kFrameworkName[] = 53 const FilePath::CharType kFrameworkName[] =
55 FPL(PRODUCT_STRING " Framework.framework"); 54 FPL(PRODUCT_STRING " Framework.framework");
56 #endif // OS_MACOSX 55 #endif // OS_MACOSX
57 const wchar_t kNaClAppName[] = L"nacl64"; 56 const wchar_t kNaClAppName[] = L"nacl64";
58 #if defined(GOOGLE_CHROME_BUILD) 57 #if defined(GOOGLE_CHROME_BUILD)
59 const wchar_t kBrowserAppName[] = L"Chrome"; 58 const wchar_t kBrowserAppName[] = L"Chrome";
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 133
135 const int kHistogramSynchronizerReservedSequenceNumber = 0; 134 const int kHistogramSynchronizerReservedSequenceNumber = 0;
136 135
137 const int kMaxSessionHistoryEntries = 50; 136 const int kMaxSessionHistoryEntries = 50;
138 137
139 const char* const kUnknownLanguageCode = "und"; 138 const char* const kUnknownLanguageCode = "und";
140 139
141 } // namespace chrome 140 } // namespace chrome
142 141
143 #undef FPL 142 #undef FPL
OLDNEW
« no previous file with comments | « chrome/common/chrome_constants.h ('k') | chrome/common/chrome_version_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698