OLD | NEW |
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" |
| 6 |
5 #include "build/build_config.h" | 7 #include "build/build_config.h" |
6 #include "chrome/common/chrome_constants.h" | |
7 #include "chrome/common/chrome_version.h" | 8 #include "chrome/common/chrome_version.h" |
8 | 9 |
9 #define FPL FILE_PATH_LITERAL | 10 #define FPL FILE_PATH_LITERAL |
10 | 11 |
11 #if defined(OS_MACOSX) | 12 #if defined(OS_MACOSX) |
12 #define CHROMIUM_PRODUCT_STRING "Chromium" | 13 #define CHROMIUM_PRODUCT_STRING "Chromium" |
13 #if defined(GOOGLE_CHROME_BUILD) | 14 #if defined(GOOGLE_CHROME_BUILD) |
14 #define PRODUCT_STRING "Google Chrome" | 15 #define PRODUCT_STRING "Google Chrome" |
15 #elif defined(CHROMIUM_BUILD) | 16 #elif defined(CHROMIUM_BUILD) |
16 #define PRODUCT_STRING "Chromium" | 17 #define PRODUCT_STRING "Chromium" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 #if defined(OS_LINUX) | 197 #if defined(OS_LINUX) |
197 const int kLowestRendererOomScore = 300; | 198 const int kLowestRendererOomScore = 300; |
198 const int kHighestRendererOomScore = 1000; | 199 const int kHighestRendererOomScore = 1000; |
199 #endif | 200 #endif |
200 | 201 |
201 #if defined(OS_WIN) | 202 #if defined(OS_WIN) |
202 const wchar_t kMetroNavigationAndSearchMessage[] = | 203 const wchar_t kMetroNavigationAndSearchMessage[] = |
203 L"CHROME_METRO_NAV_SEARCH_REQUEST"; | 204 L"CHROME_METRO_NAV_SEARCH_REQUEST"; |
204 const wchar_t kMetroGetCurrentTabInfoMessage[] = | 205 const wchar_t kMetroGetCurrentTabInfoMessage[] = |
205 L"CHROME_METRO_GET_CURRENT_TAB_INFO"; | 206 L"CHROME_METRO_GET_CURRENT_TAB_INFO"; |
206 // This is used by breakpad and the metrics reporting. | |
207 const wchar_t kBrowserCrashDumpAttemptsRegistryPath[] = | |
208 L"Software\\" PRODUCT_STRING_PATH L"\\BrowserCrashDumpAttempts"; | |
209 const wchar_t kBrowserCrashDumpAttemptsRegistryPathSxS[] = | |
210 L"Software\\" PRODUCT_STRING_PATH L"\\BrowserCrashDumpAttemptsSxS"; | |
211 // This is used by browser exit code metrics reporting. | |
212 const wchar_t kBrowserExitCodesRegistryPath[] = | |
213 L"Software\\" PRODUCT_STRING_PATH L"\\BrowserExitCodes"; | |
214 #endif | 207 #endif |
215 | 208 |
216 #if defined(OS_CHROMEOS) | 209 #if defined(OS_CHROMEOS) |
217 const char kProfileDirPrefix[] = "u-"; | 210 const char kProfileDirPrefix[] = "u-"; |
218 const char kLegacyProfileDir[] = "user"; | 211 const char kLegacyProfileDir[] = "user"; |
219 const char kTestUserProfileDir[] = "test-user"; | 212 const char kTestUserProfileDir[] = "test-user"; |
220 #endif | 213 #endif |
221 | 214 |
222 // This GUID is associated with any 'don't ask me again' settings that the | 215 // This GUID is associated with any 'don't ask me again' settings that the |
223 // user can select for different file types. | 216 // user can select for different file types. |
224 // {2676A9A2-D919-4FEE-9187-152100393AB2} | 217 // {2676A9A2-D919-4FEE-9187-152100393AB2} |
225 const char kApplicationClientIDStringForAVScanning[] = | 218 const char kApplicationClientIDStringForAVScanning[] = |
226 "2676A9A2-D919-4FEE-9187-152100393AB2"; | 219 "2676A9A2-D919-4FEE-9187-152100393AB2"; |
227 | 220 |
228 const size_t kMaxMetaTagAttributeLength = 2000; | 221 const size_t kMaxMetaTagAttributeLength = 2000; |
229 | 222 |
230 } // namespace chrome | 223 } // namespace chrome |
231 | 224 |
232 #undef FPL | 225 #undef FPL |
OLD | NEW |