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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
114 int ChromeFrameDistribution::GetIconIndex(ShortcutType shortcut_type) { | 114 int ChromeFrameDistribution::GetIconIndex(ShortcutType shortcut_type) { |
115 switch (shortcut_type) { | 115 switch (shortcut_type) { |
116 case SHORTCUT_CHROME: | 116 case SHORTCUT_CHROME: |
117 return 0; | 117 return 0; |
118 default: | 118 default: |
119 NOTREACHED(); | 119 NOTREACHED(); |
120 return 0; | 120 return 0; |
121 } | 121 } |
122 } | 122 } |
123 | 123 |
124 bool ChromeFrameDistribution::IsSetAsDefaultSupported() { | |
125 return false; | |
126 } | |
127 | |
124 bool ChromeFrameDistribution::CanSetAsDefault() { | 128 bool ChromeFrameDistribution::CanSetAsDefault() { |
125 return false; | 129 return false; |
126 } | 130 } |
127 | 131 |
128 bool ChromeFrameDistribution::CanCreateDesktopShortcuts() { | 132 bool ChromeFrameDistribution::CanCreateDesktopShortcuts() { |
129 return false; | 133 return false; |
130 } | 134 } |
131 | 135 |
136 bool ChromeFrameDistribution::GetCommandExecuteImplClsidString( | |
137 string16* handler_class_uuid) { | |
138 return false; | |
gab
2013/09/06 18:40:08
I find it sad to have to duplicate this logic from
zturner
2013/09/06 20:53:16
StringFromCLSID() and UuidToString() both internal
| |
139 } | |
140 | |
132 bool ChromeFrameDistribution::GetCommandExecuteImplClsid( | 141 bool ChromeFrameDistribution::GetCommandExecuteImplClsid( |
133 string16* handler_class_uuid) { | 142 CLSID* handler_class_uuid) { |
134 return false; | 143 return false; |
135 } | 144 } |
136 | 145 |
137 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, | 146 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, |
138 installer::ArchiveType archive_type, | 147 installer::ArchiveType archive_type, |
139 installer::InstallStatus install_status) { | 148 installer::InstallStatus install_status) { |
140 #if defined(GOOGLE_CHROME_BUILD) | 149 #if defined(GOOGLE_CHROME_BUILD) |
141 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 150 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
142 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 151 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
143 kChromeFrameGuid); | 152 kChromeFrameGuid); |
144 #endif | 153 #endif |
145 } | 154 } |
OLD | NEW |