Chromium Code Reviews| 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) | 7 #if defined(GOOGLE_CHROME_BUILD) |
| 8 // Using PRODUCT_STRING_PATH is wrong as it makes Google Chrome and Canary | |
|
robertshield
2016/01/25 22:21:03
Suggest "Using PRODUCT_STRING_PATH will make Googl
gab
2016/01/26 02:14:55
Done.
| |
| 9 // configurations collide but this was still deemed the best option for Chrome | |
| 10 // ELF per inability to depend on BrowserDistribution. http://crbug.com/577820 | |
| 8 #define PRODUCT_STRING_PATH L"Google\\Chrome" | 11 #define PRODUCT_STRING_PATH L"Google\\Chrome" |
| 9 #elif defined(CHROMIUM_BUILD) | 12 #elif defined(CHROMIUM_BUILD) |
| 10 #define PRODUCT_STRING_PATH L"Chromium" | 13 #define PRODUCT_STRING_PATH L"Chromium" |
| 11 #else | 14 #else |
| 12 #error Unknown branding | 15 #error Unknown branding |
| 13 #endif | 16 #endif |
| 14 | 17 |
| 15 namespace blacklist { | 18 namespace blacklist { |
| 16 | 19 |
| 17 const wchar_t kRegistryBeaconPath[] = | 20 const wchar_t kRegistryBeaconPath[] = |
| 18 L"SOFTWARE\\" PRODUCT_STRING_PATH L"\\BLBeacon"; | 21 L"SOFTWARE\\" PRODUCT_STRING_PATH L"\\BLBeacon"; |
| 19 const wchar_t kRegistryFinchListPath[] = | 22 const wchar_t kRegistryFinchListPath[] = |
| 20 L"SOFTWARE\\" PRODUCT_STRING_PATH L"\\BLFinchList"; | 23 L"SOFTWARE\\" PRODUCT_STRING_PATH L"\\BLFinchList"; |
| 21 const wchar_t kBeaconVersion[] = L"version"; | 24 const wchar_t kBeaconVersion[] = L"version"; |
| 22 const wchar_t kBeaconState[] = L"state"; | 25 const wchar_t kBeaconState[] = L"state"; |
| 23 const wchar_t kBeaconAttemptCount[] = L"failed_count"; | 26 const wchar_t kBeaconAttemptCount[] = L"failed_count"; |
| 24 | 27 |
| 25 const DWORD kBeaconMaxAttempts = 2; | 28 const DWORD kBeaconMaxAttempts = 2; |
| 26 | 29 |
| 27 } // namespace blacklist | 30 } // namespace blacklist |
| OLD | NEW |