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 18 matching lines...) Expand all Loading... |
29 } | 29 } |
30 | 30 |
31 string16 ChromeFrameDistribution::GetAppGuid() { | 31 string16 ChromeFrameDistribution::GetAppGuid() { |
32 return kChromeFrameGuid; | 32 return kChromeFrameGuid; |
33 } | 33 } |
34 | 34 |
35 string16 ChromeFrameDistribution::GetBaseAppName() { | 35 string16 ChromeFrameDistribution::GetBaseAppName() { |
36 return L"Google Chrome Frame"; | 36 return L"Google Chrome Frame"; |
37 } | 37 } |
38 | 38 |
| 39 string16 ChromeFrameDistribution::GetBrowserProgIdPrefix() { |
| 40 NOTREACHED(); |
| 41 return string16(); |
| 42 } |
| 43 |
39 string16 ChromeFrameDistribution::GetShortcutName(ShortcutType shortcut_type) { | 44 string16 ChromeFrameDistribution::GetShortcutName(ShortcutType shortcut_type) { |
40 switch (shortcut_type) { | 45 switch (shortcut_type) { |
41 case SHORTCUT_CHROME: | 46 case SHORTCUT_CHROME: |
42 case SHORTCUT_CHROME_ALTERNATE: | 47 case SHORTCUT_CHROME_ALTERNATE: |
43 return installer::GetLocalizedString(IDS_PRODUCT_FRAME_NAME_BASE); | 48 return installer::GetLocalizedString(IDS_PRODUCT_FRAME_NAME_BASE); |
44 default: | 49 default: |
45 NOTREACHED(); | 50 NOTREACHED(); |
46 return string16(); | 51 return string16(); |
47 } | 52 } |
48 } | 53 } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 141 |
137 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, | 142 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, |
138 installer::ArchiveType archive_type, | 143 installer::ArchiveType archive_type, |
139 installer::InstallStatus install_status) { | 144 installer::InstallStatus install_status) { |
140 #if defined(GOOGLE_CHROME_BUILD) | 145 #if defined(GOOGLE_CHROME_BUILD) |
141 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 146 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
142 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 147 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
143 kChromeFrameGuid); | 148 kChromeFrameGuid); |
144 #endif | 149 #endif |
145 } | 150 } |
OLD | NEW |