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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 L"Google Chrome App Launcher"; | 113 L"Google Chrome App Launcher"; |
114 } | 114 } |
115 | 115 |
116 string16 ChromeAppHostDistribution::GetVersionKey() { | 116 string16 ChromeAppHostDistribution::GetVersionKey() { |
117 string16 key(google_update::kRegPathClients); | 117 string16 key(google_update::kRegPathClients); |
118 key.append(L"\\"); | 118 key.append(L"\\"); |
119 key.append(kChromeAppHostGuid); | 119 key.append(kChromeAppHostGuid); |
120 return key; | 120 return key; |
121 } | 121 } |
122 | 122 |
| 123 bool ChromeAppHostDistribution::IsSetAsDefaultSupported() { |
| 124 return false; |
| 125 } |
| 126 |
123 bool ChromeAppHostDistribution::CanSetAsDefault() { | 127 bool ChromeAppHostDistribution::CanSetAsDefault() { |
124 return false; | 128 return false; |
125 } | 129 } |
126 | 130 |
127 bool ChromeAppHostDistribution::CanCreateDesktopShortcuts() { | 131 bool ChromeAppHostDistribution::CanCreateDesktopShortcuts() { |
128 return true; | 132 return true; |
129 } | 133 } |
130 | 134 |
131 string16 ChromeAppHostDistribution::GetIconFilename() { | 135 string16 ChromeAppHostDistribution::GetIconFilename() { |
132 return installer::kChromeAppHostExe; | 136 return installer::kChromeAppHostExe; |
133 } | 137 } |
134 | 138 |
| 139 bool ChromeAppHostDistribution::GetCommandExecuteImplClsidString( |
| 140 string16* handler_class_uuid) { |
| 141 return false; |
| 142 } |
| 143 |
135 bool ChromeAppHostDistribution::GetCommandExecuteImplClsid( | 144 bool ChromeAppHostDistribution::GetCommandExecuteImplClsid( |
136 string16* handler_class_uuid) { | 145 CLSID* handler_class_uuid) { |
137 return false; | 146 return false; |
138 } | 147 } |
139 | 148 |
140 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, | 149 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, |
141 installer::ArchiveType archive_type, | 150 installer::ArchiveType archive_type, |
142 installer::InstallStatus install_status) { | 151 installer::InstallStatus install_status) { |
143 #if defined(GOOGLE_CHROME_BUILD) | 152 #if defined(GOOGLE_CHROME_BUILD) |
144 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 153 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
145 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 154 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
146 kChromeAppHostGuid); | 155 kChromeAppHostGuid); |
147 #endif | 156 #endif |
148 } | 157 } |
OLD | NEW |