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

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: Created 4 years, 11 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) 15 #if defined(OS_WIN)
16 // Do not use this, instead use BrowserDistribution's methods which will ensure 16 #include "base/strings/string16.h"
17 // Google Chrome and Canary installs don't collide. http://crbug.com/577820 17 #endif // OS_WIN
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 18
27 namespace chrome { 19 namespace chrome {
28 20
29 extern const char kChromeVersion[]; 21 extern const char kChromeVersion[];
30 22
31 #if defined(OS_WIN) 23 #if defined(OS_WIN)
32 extern const char kChromeVersionEnvVar[]; 24 extern const char kChromeVersionEnvVar[];
33 #endif 25 #endif
34 26
35 extern const base::FilePath::CharType kBrowserProcessExecutableName[]; 27 extern const base::FilePath::CharType kBrowserProcessExecutableName[];
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // (oom_score_adj) used by the OomPriority Manager. 104 // (oom_score_adj) used by the OomPriority Manager.
113 extern const int kLowestRendererOomScore; 105 extern const int kLowestRendererOomScore;
114 extern const int kHighestRendererOomScore; 106 extern const int kHighestRendererOomScore;
115 #endif 107 #endif
116 108
117 #if defined(OS_WIN) 109 #if defined(OS_WIN)
118 // Used by Metro Chrome to initiate navigation and search requests. 110 // Used by Metro Chrome to initiate navigation and search requests.
119 extern const wchar_t kMetroNavigationAndSearchMessage[]; 111 extern const wchar_t kMetroNavigationAndSearchMessage[];
120 // Used by Metro Chrome to get information about the current tab. 112 // Used by Metro Chrome to get information about the current tab.
121 extern const wchar_t kMetroGetCurrentTabInfoMessage[]; 113 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 114 #endif
131 115
132 #if defined(OS_CHROMEOS) 116 #if defined(OS_CHROMEOS)
133 // Chrome OS profile directories have custom prefix. 117 // Chrome OS profile directories have custom prefix.
134 // Profile path format: [user_data_dir]/u-[$hash] 118 // Profile path format: [user_data_dir]/u-[$hash]
135 // Ex.: /home/chronos/u-0123456789 119 // Ex.: /home/chronos/u-0123456789
136 extern const char kProfileDirPrefix[]; 120 extern const char kProfileDirPrefix[];
137 121
138 // Legacy profile dir that was used when only one cryptohome has been mounted. 122 // Legacy profile dir that was used when only one cryptohome has been mounted.
139 extern const char kLegacyProfileDir[]; 123 extern const char kLegacyProfileDir[];
140 124
141 // This must be kept in sync with TestingProfile::kTestUserProfileDir. 125 // This must be kept in sync with TestingProfile::kTestUserProfileDir.
142 extern const char kTestUserProfileDir[]; 126 extern const char kTestUserProfileDir[];
143 #endif 127 #endif
144 128
145 // Used to identify the application to the system AV function in Windows. 129 // Used to identify the application to the system AV function in Windows.
146 extern const char kApplicationClientIDStringForAVScanning[]; 130 extern const char kApplicationClientIDStringForAVScanning[];
147 131
148 // The largest reasonable length we'd assume for a meta tag attribute. 132 // The largest reasonable length we'd assume for a meta tag attribute.
149 extern const size_t kMaxMetaTagAttributeLength; 133 extern const size_t kMaxMetaTagAttributeLength;
150 134
135 #if defined(OS_WIN)
136 // Returns the registry path where crash dump attempts are stored for this
137 // product. This is used by breakpad and the metrics reporting.
138 base::string16 GetBrowserCrashDumpAttemptsRegistryPath();
grt (UTC plus 2) 2016/01/25 21:18:20 is there a better place than a *_constants.{cc,h}
gab 2016/01/26 02:55:05 How about chrome_constants_util_win.{cc,h} ?
grt (UTC plus 2) 2016/01/26 16:13:04 WDYT about chrome/common/chrome_paths_win.cc? A re
gab 2016/01/26 18:23:29 I prefer "constants_util", _paths is already used
139
140 // Returns the registry path where exit code are stored for this product. This
141 // is used by browser exit code metrics reporting.
142 base::string16 GetBrowserExitCodesRegistryPath();
143 #endif // OS_WIN
144
151 } // namespace chrome 145 } // namespace chrome
152 146
153 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_ 147 #endif // CHROME_COMMON_CHROME_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698