Chromium Code Reviews| 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 Frame. It overrides the bare minimum of methods necessary to get a | 6 // Chrome Frame. It overrides the bare minimum of methods necessary to get a |
| 7 // Chrome Frame installer that does not interact with Google Chrome or | 7 // Chrome Frame installer that does not interact with Google Chrome or |
| 8 // Chromium installations. | 8 // Chromium installations. |
| 9 | 9 |
| 10 #include "chrome/installer/util/chrome_frame_distribution.h" | 10 #include "chrome/installer/util/chrome_frame_distribution.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 L"Google Chrome Frame"; | 105 L"Google Chrome Frame"; |
| 106 } | 106 } |
| 107 | 107 |
| 108 string16 ChromeFrameDistribution::GetVersionKey() { | 108 string16 ChromeFrameDistribution::GetVersionKey() { |
| 109 string16 key(google_update::kRegPathClients); | 109 string16 key(google_update::kRegPathClients); |
| 110 key.append(L"\\"); | 110 key.append(L"\\"); |
| 111 key.append(kChromeFrameGuid); | 111 key.append(kChromeFrameGuid); |
| 112 return key; | 112 return key; |
| 113 } | 113 } |
| 114 | 114 |
| 115 string16 ChromeFrameDistribution::GetIconFile() { | |
| 116 return installer::kChromeExe; | |
| 117 } | |
| 118 | |
| 119 int ChromeFrameDistribution::GetIconIndex() { | |
| 120 return 0; | |
|
gab
2012/11/14 18:47:32
Why does chrome_frame override this to 0 (the defa
huangs
2012/11/14 20:35:55
GoogleChromeSxSDistribution uses non-0. I was exp
| |
| 121 } | |
| 122 | |
| 115 bool ChromeFrameDistribution::CanSetAsDefault() { | 123 bool ChromeFrameDistribution::CanSetAsDefault() { |
| 116 return false; | 124 return false; |
| 117 } | 125 } |
| 118 | 126 |
| 119 bool ChromeFrameDistribution::CanCreateDesktopShortcuts() { | 127 bool ChromeFrameDistribution::CanCreateDesktopShortcuts() { |
| 120 return false; | 128 return false; |
| 121 } | 129 } |
| 122 | 130 |
| 123 bool ChromeFrameDistribution::GetCommandExecuteImplClsid( | 131 bool ChromeFrameDistribution::GetCommandExecuteImplClsid( |
| 124 string16* handler_class_uuid) { | 132 string16* handler_class_uuid) { |
| 125 return false; | 133 return false; |
| 126 } | 134 } |
| 127 | 135 |
| 128 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, | 136 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, |
| 129 installer::ArchiveType archive_type, | 137 installer::ArchiveType archive_type, |
| 130 installer::InstallStatus install_status) { | 138 installer::InstallStatus install_status) { |
| 131 #if defined(GOOGLE_CHROME_BUILD) | 139 #if defined(GOOGLE_CHROME_BUILD) |
| 132 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 140 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
| 133 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 141 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
| 134 kChromeFrameGuid); | 142 kChromeFrameGuid); |
| 135 #endif | 143 #endif |
| 136 } | 144 } |
| OLD | NEW |