| 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 // This file defines a class that contains various method related to branding. | 5 // This file defines a class that contains various method related to branding. |
| 6 | 6 |
| 7 #include "chrome/installer/util/google_chrome_binaries_distribution.h" | 7 #include "chrome/installer/util/google_chrome_binaries_distribution.h" |
| 8 | 8 |
| 9 #include "chrome/installer/util/google_update_constants.h" | 9 #include "chrome/installer/util/google_update_constants.h" |
| 10 #include "chrome/installer/util/google_update_settings.h" | 10 #include "chrome/installer/util/google_update_settings.h" |
| 11 #include "chrome/installer/util/install_util.h" | 11 #include "chrome/installer/util/install_util.h" |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 const wchar_t kChromeBinariesGuid[] = L"{4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}"; | 15 const wchar_t kChromeBinariesGuid[] = L"{4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}"; |
| 16 const wchar_t kChromeBinariesName[] = L"Google Chrome binaries"; | 16 const wchar_t kChromeBinariesName[] = L"Google Chrome binaries"; |
| 17 | 17 |
| 18 } // namespace | 18 } // namespace |
| 19 | 19 |
| 20 GoogleChromeBinariesDistribution::GoogleChromeBinariesDistribution() | 20 GoogleChromeBinariesDistribution::GoogleChromeBinariesDistribution() |
| 21 : ChromiumBinariesDistribution() { | 21 : ChromiumBinariesDistribution() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 string16 GoogleChromeBinariesDistribution::GetAppGuid() { | 24 base::string16 GoogleChromeBinariesDistribution::GetAppGuid() { |
| 25 return kChromeBinariesGuid; | 25 return kChromeBinariesGuid; |
| 26 } | 26 } |
| 27 | 27 |
| 28 string16 GoogleChromeBinariesDistribution::GetDisplayName() { | 28 base::string16 GoogleChromeBinariesDistribution::GetDisplayName() { |
| 29 return kChromeBinariesName; | 29 return kChromeBinariesName; |
| 30 } | 30 } |
| 31 | 31 |
| 32 string16 GoogleChromeBinariesDistribution::GetShortcutName( | 32 base::string16 GoogleChromeBinariesDistribution::GetShortcutName( |
| 33 ShortcutType shortcut_type) { | 33 ShortcutType shortcut_type) { |
| 34 NOTREACHED(); | 34 NOTREACHED(); |
| 35 return string16(); | 35 return base::string16(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 string16 GoogleChromeBinariesDistribution::GetStateKey() { | 38 base::string16 GoogleChromeBinariesDistribution::GetStateKey() { |
| 39 return string16(google_update::kRegPathClientState) | 39 return base::string16(google_update::kRegPathClientState) |
| 40 .append(1, L'\\') | 40 .append(1, L'\\') |
| 41 .append(kChromeBinariesGuid); | 41 .append(kChromeBinariesGuid); |
| 42 } | 42 } |
| 43 | 43 |
| 44 string16 GoogleChromeBinariesDistribution::GetStateMediumKey() { | 44 base::string16 GoogleChromeBinariesDistribution::GetStateMediumKey() { |
| 45 return string16(google_update::kRegPathClientStateMedium) | 45 return base::string16(google_update::kRegPathClientStateMedium) |
| 46 .append(1, L'\\') | 46 .append(1, L'\\') |
| 47 .append(kChromeBinariesGuid); | 47 .append(kChromeBinariesGuid); |
| 48 } | 48 } |
| 49 | 49 |
| 50 string16 GoogleChromeBinariesDistribution::GetVersionKey() { | 50 base::string16 GoogleChromeBinariesDistribution::GetVersionKey() { |
| 51 return string16(google_update::kRegPathClients) | 51 return base::string16(google_update::kRegPathClients) |
| 52 .append(1, L'\\') | 52 .append(1, L'\\') |
| 53 .append(kChromeBinariesGuid); | 53 .append(kChromeBinariesGuid); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void GoogleChromeBinariesDistribution::UpdateInstallStatus(bool system_install, | 56 void GoogleChromeBinariesDistribution::UpdateInstallStatus(bool system_install, |
| 57 installer::ArchiveType archive_type, | 57 installer::ArchiveType archive_type, |
| 58 installer::InstallStatus install_status) { | 58 installer::InstallStatus install_status) { |
| 59 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 59 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
| 60 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 60 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
| 61 kChromeBinariesGuid); | 61 kChromeBinariesGuid); |
| 62 } | 62 } |
| OLD | NEW |