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

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

Issue 558713002: Make PRODUCT_STRING_PATH accessible via chrome_constants.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_exit_beacon
Patch Set: Rebase. Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/files/file_path.h" 7 #include "base/files/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 #define CHROMIUM_PRODUCT_STRING "Chromium" 12 #define CHROMIUM_PRODUCT_STRING "Chromium"
13 #if defined(GOOGLE_CHROME_BUILD) 13 #if defined(GOOGLE_CHROME_BUILD)
14 #define PRODUCT_STRING "Google Chrome" 14 #define PRODUCT_STRING "Google Chrome"
15 #elif defined(CHROMIUM_BUILD) 15 #elif defined(CHROMIUM_BUILD)
16 #define PRODUCT_STRING "Chromium" 16 #define PRODUCT_STRING "Chromium"
17 #else 17 #else
18 #error Unknown branding 18 #error Unknown branding
19 #endif 19 #endif
20 #endif // defined(OS_MACOSX) 20 #endif // defined(OS_MACOSX)
21 21
22 #if defined(OS_WIN)
23 #if defined(GOOGLE_CHROME_BUILD)
24 #define PRODUCT_STRING_PATH L"Google\\Chrome"
25 #elif defined(CHROMIUM_BUILD)
26 #define PRODUCT_STRING_PATH L"Chromium"
27 #else
28 #error Unknown branding
29 #endif
30 #endif // defined(OS_WIN)
31
32 namespace chrome { 22 namespace chrome {
33 23
34 const char kChromeVersionEnvVar[] = "CHROME_VERSION"; 24 const char kChromeVersionEnvVar[] = "CHROME_VERSION";
35 25
36 // The following should not be used for UI strings; they are meant 26 // The following should not be used for UI strings; they are meant
37 // for system strings only. UI changes should be made in the GRD. 27 // for system strings only. UI changes should be made in the GRD.
38 // 28 //
39 // There are four constants used to locate the executable name and path: 29 // There are four constants used to locate the executable name and path:
40 // 30 //
41 // kBrowserProcessExecutableName 31 // kBrowserProcessExecutableName
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 const char kApplicationClientIDStringForAVScanning[] = 256 const char kApplicationClientIDStringForAVScanning[] =
267 "2676A9A2-D919-4FEE-9187-152100393AB2"; 257 "2676A9A2-D919-4FEE-9187-152100393AB2";
268 258
269 #if defined(OS_ANDROID) 259 #if defined(OS_ANDROID)
270 const size_t kMaxMetaTagAttributeLength = 2000; 260 const size_t kMaxMetaTagAttributeLength = 2000;
271 #endif 261 #endif
272 262
273 } // namespace chrome 263 } // namespace chrome
274 264
275 #undef FPL 265 #undef FPL
OLDNEW
« no previous file with comments | « chrome/common/chrome_constants.h ('k') | chrome/common/terminate_on_heap_corruption_experiment_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698