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 specific implementation of BrowserDistribution class for | 5 // This file defines specific implementation of BrowserDistribution class for |
6 // Google Chrome. | 6 // Google Chrome. |
7 | 7 |
8 #include "chrome/installer/util/google_chrome_distribution.h" | 8 #include "chrome/installer/util/google_chrome_distribution.h" |
9 | 9 |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 return installer::kChromeExe; | 249 return installer::kChromeExe; |
250 } | 250 } |
251 | 251 |
252 bool GoogleChromeDistribution::GetCommandExecuteImplClsid( | 252 bool GoogleChromeDistribution::GetCommandExecuteImplClsid( |
253 base::string16* handler_class_uuid) { | 253 base::string16* handler_class_uuid) { |
254 if (handler_class_uuid) | 254 if (handler_class_uuid) |
255 *handler_class_uuid = kCommandExecuteImplUuid; | 255 *handler_class_uuid = kCommandExecuteImplUuid; |
256 return true; | 256 return true; |
257 } | 257 } |
258 | 258 |
259 bool GoogleChromeDistribution::AppHostIsSupported() { | |
260 return true; | |
261 } | |
262 | |
263 // This method checks if we need to change "ap" key in Google Update to try | 259 // This method checks if we need to change "ap" key in Google Update to try |
264 // full installer as fall back method in case incremental installer fails. | 260 // full installer as fall back method in case incremental installer fails. |
265 // - If incremental installer fails we append a magic string ("-full"), if | 261 // - If incremental installer fails we append a magic string ("-full"), if |
266 // it is not present already, so that Google Update server next time will send | 262 // it is not present already, so that Google Update server next time will send |
267 // full installer to update Chrome on the local machine | 263 // full installer to update Chrome on the local machine |
268 // - If we are currently running full installer, we remove this magic | 264 // - If we are currently running full installer, we remove this magic |
269 // string (if it is present) regardless of whether installer failed or not. | 265 // string (if it is present) regardless of whether installer failed or not. |
270 // There is no fall-back for full installer :) | 266 // There is no fall-back for full installer :) |
271 void GoogleChromeDistribution::UpdateInstallStatus(bool system_install, | 267 void GoogleChromeDistribution::UpdateInstallStatus(bool system_install, |
272 installer::ArchiveType archive_type, | 268 installer::ArchiveType archive_type, |
273 installer::InstallStatus install_status) { | 269 installer::InstallStatus install_status) { |
274 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 270 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
275 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 271 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
276 GetAppGuid()); | 272 GetAppGuid()); |
277 } | 273 } |
278 | 274 |
279 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { | 275 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { |
280 return true; | 276 return true; |
281 } | 277 } |
282 | 278 |
283 bool GoogleChromeDistribution::HasUserExperiments() { | 279 bool GoogleChromeDistribution::HasUserExperiments() { |
284 return true; | 280 return true; |
285 } | 281 } |
OLD | NEW |