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

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

Issue 1630923002: Remove PRODUCT_STRING_PATH from chrome_constants.h on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@c2_rm_PSP_profile_resetter
Patch Set: nit Created 4 years, 8 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 // A handful of resource-like constants related to the Chrome application. 5 // A handful of resource-like constants related to the Chrome application.
6 6
7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_ 7 #ifndef CHROME_COMMON_CHROME_CONSTANTS_H_
8 #define CHROME_COMMON_CHROME_CONSTANTS_H_ 8 #define CHROME_COMMON_CHROME_CONSTANTS_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 14
15 #if defined(OS_WIN)
16 // Do not use this, instead use BrowserDistribution's methods which will ensure
17 // Google Chrome and Canary installs don't collide. http://crbug.com/577820
18 #if defined(GOOGLE_CHROME_BUILD)
19 #define PRODUCT_STRING_PATH L"Google\\Chrome"
20 #elif defined(CHROMIUM_BUILD)
21 #define PRODUCT_STRING_PATH L"Chromium"
22 #else
23 #error Unknown branding
24 #endif
25 #endif // defined(OS_WIN)
26
27 namespace chrome { 15 namespace chrome {
28 16
29 extern const char kChromeVersion[]; 17 extern const char kChromeVersion[];
30 extern const base::FilePath::CharType kBrowserProcessExecutableName[]; 18 extern const base::FilePath::CharType kBrowserProcessExecutableName[];
31 extern const base::FilePath::CharType kHelperProcessExecutableName[]; 19 extern const base::FilePath::CharType kHelperProcessExecutableName[];
32 extern const base::FilePath::CharType kBrowserProcessExecutablePath[]; 20 extern const base::FilePath::CharType kBrowserProcessExecutablePath[];
33 extern const base::FilePath::CharType kHelperProcessExecutablePath[]; 21 extern const base::FilePath::CharType kHelperProcessExecutablePath[];
34 extern const base::FilePath::CharType kBrowserProcessExecutableNameChromium[]; 22 extern const base::FilePath::CharType kBrowserProcessExecutableNameChromium[];
35 extern const base::FilePath::CharType kHelperProcessExecutableNameChromium[]; 23 extern const base::FilePath::CharType kHelperProcessExecutableNameChromium[];
36 extern const base::FilePath::CharType kBrowserProcessExecutablePathChromium[]; 24 extern const base::FilePath::CharType kBrowserProcessExecutablePathChromium[];
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // (oom_score_adj) used by the OomPriority Manager. 95 // (oom_score_adj) used by the OomPriority Manager.
108 extern const int kLowestRendererOomScore; 96 extern const int kLowestRendererOomScore;
109 extern const int kHighestRendererOomScore; 97 extern const int kHighestRendererOomScore;
110 #endif 98 #endif
111 99
112 #if defined(OS_WIN) 100 #if defined(OS_WIN)
113 // Used by Metro Chrome to initiate navigation and search requests. 101 // Used by Metro Chrome to initiate navigation and search requests.
114 extern const wchar_t kMetroNavigationAndSearchMessage[]; 102 extern const wchar_t kMetroNavigationAndSearchMessage[];
115 // Used by Metro Chrome to get information about the current tab. 103 // Used by Metro Chrome to get information about the current tab.
116 extern const wchar_t kMetroGetCurrentTabInfoMessage[]; 104 extern const wchar_t kMetroGetCurrentTabInfoMessage[];
117 // Used to store crash report metrics using
118 // content/browser_watcher/crash_reporting_metrics_win.h.
119 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPath[];
120 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPathSxS[];
121 // Registry location where the browser watcher stores browser exit codes.
122 // This is picked up and stored in histograms by the browser on the subsequent
123 // launch.
124 extern const wchar_t kBrowserExitCodesRegistryPath[];
125 #endif 105 #endif
126 106
127 #if defined(OS_CHROMEOS) 107 #if defined(OS_CHROMEOS)
128 // Chrome OS profile directories have custom prefix. 108 // Chrome OS profile directories have custom prefix.
129 // Profile path format: [user_data_dir]/u-[$hash] 109 // Profile path format: [user_data_dir]/u-[$hash]
130 // Ex.: /home/chronos/u-0123456789 110 // Ex.: /home/chronos/u-0123456789
131 extern const char kProfileDirPrefix[]; 111 extern const char kProfileDirPrefix[];
132 112
133 // Legacy profile dir that was used when only one cryptohome has been mounted. 113 // Legacy profile dir that was used when only one cryptohome has been mounted.
134 extern const char kLegacyProfileDir[]; 114 extern const char kLegacyProfileDir[];
135 115
136 // This must be kept in sync with TestingProfile::kTestUserProfileDir. 116 // This must be kept in sync with TestingProfile::kTestUserProfileDir.
137 extern const char kTestUserProfileDir[]; 117 extern const char kTestUserProfileDir[];
138 #endif 118 #endif
139 119
140 // Used to identify the application to the system AV function in Windows. 120 // Used to identify the application to the system AV function in Windows.
141 extern const char kApplicationClientIDStringForAVScanning[]; 121 extern const char kApplicationClientIDStringForAVScanning[];
142 122
143 // The largest reasonable length we'd assume for a meta tag attribute. 123 // The largest reasonable length we'd assume for a meta tag attribute.
144 extern const size_t kMaxMetaTagAttributeLength; 124 extern const size_t kMaxMetaTagAttributeLength;
145 125
146 } // namespace chrome 126 } // namespace chrome
147 127
148 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ 128 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698