| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_elf/chrome_elf_constants.h" | 5 #include "chrome_elf/chrome_elf_constants.h" |
| 6 | 6 |
| 7 #if defined(GOOGLE_CHROME_BUILD) | |
| 8 // Using PRODUCT_STRING_PATH will make Google Chrome and Canary configurations | |
| 9 // collide. This was deemed to be the best option due to ELF's inability to | |
| 10 // depend on BrowserDistribution. http://crbug.com/577820 | |
| 11 #define PRODUCT_STRING_PATH L"Google\\Chrome" | |
| 12 #elif defined(CHROMIUM_BUILD) | |
| 13 #define PRODUCT_STRING_PATH L"Chromium" | |
| 14 #else | |
| 15 #error Unknown branding | |
| 16 #endif | |
| 17 | |
| 18 namespace blacklist { | 7 namespace blacklist { |
| 19 | 8 |
| 20 const wchar_t kRegistryBeaconPath[] = | 9 const wchar_t kRegistryBeaconKeyName[] = L"\\BLBeacon"; |
| 21 L"SOFTWARE\\" PRODUCT_STRING_PATH L"\\BLBeacon"; | |
| 22 const wchar_t kBeaconVersion[] = L"version"; | 10 const wchar_t kBeaconVersion[] = L"version"; |
| 23 const wchar_t kBeaconState[] = L"state"; | 11 const wchar_t kBeaconState[] = L"state"; |
| 24 const wchar_t kBeaconAttemptCount[] = L"failed_count"; | 12 const wchar_t kBeaconAttemptCount[] = L"failed_count"; |
| 25 | 13 |
| 26 const DWORD kBeaconMaxAttempts = 2; | 14 const DWORD kBeaconMaxAttempts = 2; |
| 27 | 15 |
| 28 } // namespace blacklist | 16 } // namespace blacklist |
| 29 | 17 |
| 30 namespace elf_sec { | 18 namespace elf_sec { |
| 31 | 19 |
| 32 const wchar_t kRegSecurityFinchPath[] = | 20 const wchar_t kRegSecurityFinchKeyName[] = L"\\BrowserSboxFinch"; |
| 33 L"SOFTWARE\\" PRODUCT_STRING_PATH L"\\BrowserSboxFinch"; | |
| 34 const wchar_t kRegSecurityPath[] = | |
| 35 L"SOFTWARE\\" PRODUCT_STRING_PATH L"\\BrowserSec"; | |
| 36 | 21 |
| 37 } // namespace elf_sec | 22 } // namespace elf_sec |
| OLD | NEW |