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 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 string16 ChromeAppHostDistribution::GetAppGuid() { | 33 string16 ChromeAppHostDistribution::GetAppGuid() { |
34 return kChromeAppHostGuid; | 34 return kChromeAppHostGuid; |
35 } | 35 } |
36 | 36 |
37 string16 ChromeAppHostDistribution::GetBaseAppName() { | 37 string16 ChromeAppHostDistribution::GetBaseAppName() { |
38 return L"Google Chrome App Launcher"; | 38 return L"Google Chrome App Launcher"; |
39 } | 39 } |
40 | 40 |
| 41 string16 ChromeAppHostDistribution::GetBrowserProgIdPrefix() { |
| 42 NOTREACHED(); |
| 43 return string16(); |
| 44 } |
| 45 |
| 46 string16 ChromeAppHostDistribution::GetBrowserProgIdDesc() { |
| 47 NOTREACHED(); |
| 48 return string16(); |
| 49 } |
| 50 |
41 string16 ChromeAppHostDistribution::GetDisplayName() { | 51 string16 ChromeAppHostDistribution::GetDisplayName() { |
42 return GetShortcutName(SHORTCUT_APP_LAUNCHER); | 52 return GetShortcutName(SHORTCUT_APP_LAUNCHER); |
43 } | 53 } |
44 | 54 |
45 string16 ChromeAppHostDistribution::GetShortcutName( | 55 string16 ChromeAppHostDistribution::GetShortcutName( |
46 ShortcutType shortcut_type) { | 56 ShortcutType shortcut_type) { |
47 DCHECK_EQ(shortcut_type, SHORTCUT_APP_LAUNCHER); | 57 DCHECK_EQ(shortcut_type, SHORTCUT_APP_LAUNCHER); |
48 return installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); | 58 return installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); |
49 } | 59 } |
50 | 60 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 149 |
140 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, | 150 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, |
141 installer::ArchiveType archive_type, | 151 installer::ArchiveType archive_type, |
142 installer::InstallStatus install_status) { | 152 installer::InstallStatus install_status) { |
143 #if defined(GOOGLE_CHROME_BUILD) | 153 #if defined(GOOGLE_CHROME_BUILD) |
144 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 154 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
145 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 155 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
146 kChromeAppHostGuid); | 156 kChromeAppHostGuid); |
147 #endif | 157 #endif |
148 } | 158 } |
OLD | NEW |