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

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: rebase on r373339 and rm unused install_util.h include Created 4 years, 10 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 18
31 #if defined(OS_WIN) 19 #if defined(OS_WIN)
32 extern const char kChromeVersionEnvVar[]; 20 extern const char kChromeVersionEnvVar[];
33 #endif 21 #endif
34 22
35 extern const base::FilePath::CharType kBrowserProcessExecutableName[]; 23 extern const base::FilePath::CharType kBrowserProcessExecutableName[];
36 extern const base::FilePath::CharType kHelperProcessExecutableName[]; 24 extern const base::FilePath::CharType kHelperProcessExecutableName[];
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // (oom_score_adj) used by the OomPriority Manager. 100 // (oom_score_adj) used by the OomPriority Manager.
113 extern const int kLowestRendererOomScore; 101 extern const int kLowestRendererOomScore;
114 extern const int kHighestRendererOomScore; 102 extern const int kHighestRendererOomScore;
115 #endif 103 #endif
116 104
117 #if defined(OS_WIN) 105 #if defined(OS_WIN)
118 // Used by Metro Chrome to initiate navigation and search requests. 106 // Used by Metro Chrome to initiate navigation and search requests.
119 extern const wchar_t kMetroNavigationAndSearchMessage[]; 107 extern const wchar_t kMetroNavigationAndSearchMessage[];
120 // Used by Metro Chrome to get information about the current tab. 108 // Used by Metro Chrome to get information about the current tab.
121 extern const wchar_t kMetroGetCurrentTabInfoMessage[]; 109 extern const wchar_t kMetroGetCurrentTabInfoMessage[];
122 // Used to store crash report metrics using
123 // content/browser_watcher/crash_reporting_metrics_win.h.
124 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPath[];
125 extern const wchar_t kBrowserCrashDumpAttemptsRegistryPathSxS[];
126 // Registry location where the browser watcher stores browser exit codes.
127 // This is picked up and stored in histograms by the browser on the subsequent
128 // launch.
129 extern const wchar_t kBrowserExitCodesRegistryPath[];
130 #endif 110 #endif
131 111
132 #if defined(OS_CHROMEOS) 112 #if defined(OS_CHROMEOS)
133 // Chrome OS profile directories have custom prefix. 113 // Chrome OS profile directories have custom prefix.
134 // Profile path format: [user_data_dir]/u-[$hash] 114 // Profile path format: [user_data_dir]/u-[$hash]
135 // Ex.: /home/chronos/u-0123456789 115 // Ex.: /home/chronos/u-0123456789
136 extern const char kProfileDirPrefix[]; 116 extern const char kProfileDirPrefix[];
137 117
138 // Legacy profile dir that was used when only one cryptohome has been mounted. 118 // Legacy profile dir that was used when only one cryptohome has been mounted.
139 extern const char kLegacyProfileDir[]; 119 extern const char kLegacyProfileDir[];
140 120
141 // This must be kept in sync with TestingProfile::kTestUserProfileDir. 121 // This must be kept in sync with TestingProfile::kTestUserProfileDir.
142 extern const char kTestUserProfileDir[]; 122 extern const char kTestUserProfileDir[];
143 #endif 123 #endif
144 124
145 // Used to identify the application to the system AV function in Windows. 125 // Used to identify the application to the system AV function in Windows.
146 extern const char kApplicationClientIDStringForAVScanning[]; 126 extern const char kApplicationClientIDStringForAVScanning[];
147 127
148 // The largest reasonable length we'd assume for a meta tag attribute. 128 // The largest reasonable length we'd assume for a meta tag attribute.
149 extern const size_t kMaxMetaTagAttributeLength; 129 extern const size_t kMaxMetaTagAttributeLength;
150 130
151 } // namespace chrome 131 } // namespace chrome
152 132
153 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ 133 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698