| 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 specific implementation of BrowserDistribution class for | 5 // This file defines a specific implementation of BrowserDistribution class for |
| 6 // Chrome App Host. It overrides the bare minimum of methods necessary to get a | 6 // Chrome App Host. It overrides the bare minimum of methods necessary to get a |
| 7 // Chrome App Host installer that does not interact with Google Chrome or | 7 // Chrome App Host installer that does not interact with Google Chrome or |
| 8 // Chromium installations. | 8 // Chromium installations. |
| 9 | 9 |
| 10 #include "chrome/installer/util/chrome_app_host_distribution.h" | 10 #include "chrome/installer/util/chrome_app_host_distribution.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 base::string16 key(google_update::kRegPathClientStateMedium); | 101 base::string16 key(google_update::kRegPathClientStateMedium); |
| 102 key.append(L"\\"); | 102 key.append(L"\\"); |
| 103 key.append(kChromeAppHostGuid); | 103 key.append(kChromeAppHostGuid); |
| 104 return key; | 104 return key; |
| 105 } | 105 } |
| 106 | 106 |
| 107 std::string ChromeAppHostDistribution::GetNetworkStatsServer() const { | 107 std::string ChromeAppHostDistribution::GetNetworkStatsServer() const { |
| 108 return chrome_common_net::kEchoTestServerLocation; | 108 return chrome_common_net::kEchoTestServerLocation; |
| 109 } | 109 } |
| 110 | 110 |
| 111 std::string ChromeAppHostDistribution::GetHttpPipeliningTestServer() const { | |
| 112 return chrome_common_net::kPipelineTestServerBaseUrl; | |
| 113 } | |
| 114 | |
| 115 base::string16 ChromeAppHostDistribution::GetUninstallLinkName() { | 111 base::string16 ChromeAppHostDistribution::GetUninstallLinkName() { |
| 116 const base::string16& link_name = | 112 const base::string16& link_name = |
| 117 installer::GetLocalizedString(IDS_UNINSTALL_APP_LAUNCHER_BASE); | 113 installer::GetLocalizedString(IDS_UNINSTALL_APP_LAUNCHER_BASE); |
| 118 return link_name; | 114 return link_name; |
| 119 } | 115 } |
| 120 | 116 |
| 121 base::string16 ChromeAppHostDistribution::GetUninstallRegPath() { | 117 base::string16 ChromeAppHostDistribution::GetUninstallRegPath() { |
| 122 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" | 118 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" |
| 123 L"Google Chrome App Launcher"; | 119 L"Google Chrome App Launcher"; |
| 124 } | 120 } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 150 | 146 |
| 151 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, | 147 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, |
| 152 installer::ArchiveType archive_type, | 148 installer::ArchiveType archive_type, |
| 153 installer::InstallStatus install_status) { | 149 installer::InstallStatus install_status) { |
| 154 #if defined(GOOGLE_CHROME_BUILD) | 150 #if defined(GOOGLE_CHROME_BUILD) |
| 155 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 151 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
| 156 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 152 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
| 157 kChromeAppHostGuid); | 153 kChromeAppHostGuid); |
| 158 #endif | 154 #endif |
| 159 } | 155 } |
| OLD | NEW |