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

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

Issue 42306: Make startup_tests build and work on Mac. (Closed)
Patch Set: add app dependency Created 11 years, 9 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
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/test/startup/startup_test.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 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
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
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/test/startup/startup_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698