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/installer/mini_installer/mini_installer_constants.h" | 5 #include "chrome/installer/mini_installer/mini_installer_constants.h" |
| 6 | 6 |
| 7 namespace mini_installer { | 7 namespace mini_installer { |
| 8 | 8 |
| 9 // Various filenames and prefixes. | 9 // Various filenames and prefixes. |
| 10 // The target name of the installer extracted from resources. | 10 // The target name of the installer extracted from resources. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 // Registry value names. | 43 // Registry value names. |
| 44 // The name of an app's Client State registry value that holds its tag/channel. | 44 // The name of an app's Client State registry value that holds its tag/channel. |
| 45 const wchar_t kApRegistryValue[] = L"ap"; | 45 const wchar_t kApRegistryValue[] = L"ap"; |
| 46 // The name of the value in kCleanupRegistryKey that tells the installer not to | 46 // The name of the value in kCleanupRegistryKey that tells the installer not to |
| 47 // delete extracted files. | 47 // delete extracted files. |
| 48 const wchar_t kCleanupRegistryValue[] = L"ChromeInstallerCleanup"; | 48 const wchar_t kCleanupRegistryValue[] = L"ChromeInstallerCleanup"; |
| 49 // These values provide installer result codes to Omaha. | 49 // These values provide installer result codes to Omaha. |
| 50 const wchar_t kInstallerErrorRegistryValue[] = L"InstallerError"; | 50 const wchar_t kInstallerErrorRegistryValue[] = L"InstallerError"; |
| 51 const wchar_t kInstallerExtraCode1RegistryValue[] = L"InstallerExtraCode1"; | 51 const wchar_t kInstallerExtraCode1RegistryValue[] = L"InstallerExtraCode1"; |
| 52 const wchar_t kInstallerResultRegistryValue[] = L"InstallerResult"; | 52 const wchar_t kInstallerResultRegistryValue[] = L"InstallerResult"; |
| 53 const wchar_t kPvRegistryValue[] = L"pv"; | |
| 54 const wchar_t kUninstallArgumentsRegistryValue[] = L"UninstallArguments"; | |
| 53 // The name of an app's Client State registry value that holds the path to its | 55 // The name of an app's Client State registry value that holds the path to its |
| 54 // uninstaller. | 56 // uninstaller. |
| 55 const wchar_t kUninstallRegistryValue[] = L"UninstallString"; | 57 const wchar_t kUninstallRegistryValue[] = L"UninstallString"; |
| 56 | 58 |
| 57 // Registry key paths. | 59 // Registry key paths. |
| 58 #if defined(GOOGLE_CHROME_BUILD) | 60 #if defined(GOOGLE_CHROME_BUILD) |
| 61 // The path to the key containing each app's Clients registry key. | |
| 62 const wchar_t kClientsKeyBase[] = L"Software\\Google\\Update\\Clients\\"; | |
|
huangs
2017/01/31 17:40:04
NIT: Mention that the terminating "\\" is importan
grt (UTC plus 2)
2017/02/02 08:17:16
Done.
| |
| 59 // The path to the key containing each app's Client State registry key. | 63 // The path to the key containing each app's Client State registry key. |
| 60 const wchar_t kClientStateKeyBase[] = | 64 const wchar_t kClientStateKeyBase[] = |
| 61 L"Software\\Google\\Update\\ClientState\\"; | 65 L"Software\\Google\\Update\\ClientState\\"; |
| 62 // The path to the key in which kCleanupRegistryValue is found. | 66 // The path to the key in which kCleanupRegistryValue is found. |
| 63 const wchar_t kCleanupRegistryKey[] = | 67 const wchar_t kCleanupRegistryKey[] = |
| 64 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome"; | 68 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome"; |
| 65 #else | 69 #else |
| 70 // The path to the key containing each app's Clients registry key. | |
| 71 // No trailing slash on this one because the app's GUID is not appended. | |
| 72 const wchar_t kClientsKeyBase[] = L"Software\\Chromium"; | |
| 66 // The path to the key containing each app's Client State registry key. | 73 // The path to the key containing each app's Client State registry key. |
| 67 // No trailing slash on this one because the app's GUID is not appended. | 74 // No trailing slash on this one because the app's GUID is not appended. |
| 68 const wchar_t kClientStateKeyBase[] = L"Software\\Chromium"; | 75 const wchar_t kClientStateKeyBase[] = L"Software\\Chromium"; |
| 69 // The path to the key in which kCleanupRegistryValue is found. | 76 // The path to the key in which kCleanupRegistryValue is found. |
| 70 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium"; | 77 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium"; |
| 71 #endif | 78 #endif |
| 72 | 79 |
| 73 } // namespace mini_installer | 80 } // namespace mini_installer |
| OLD | NEW |