| 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 return string16(); |
| 43 } |
| 44 |
| 41 string16 ChromeAppHostDistribution::GetDisplayName() { | 45 string16 ChromeAppHostDistribution::GetDisplayName() { |
| 42 return GetShortcutName(SHORTCUT_APP_LAUNCHER); | 46 return GetShortcutName(SHORTCUT_APP_LAUNCHER); |
| 43 } | 47 } |
| 44 | 48 |
| 45 string16 ChromeAppHostDistribution::GetShortcutName( | 49 string16 ChromeAppHostDistribution::GetShortcutName( |
| 46 ShortcutType shortcut_type) { | 50 ShortcutType shortcut_type) { |
| 47 DCHECK_EQ(shortcut_type, SHORTCUT_APP_LAUNCHER); | 51 DCHECK_EQ(shortcut_type, SHORTCUT_APP_LAUNCHER); |
| 48 return installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); | 52 return installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); |
| 49 } | 53 } |
| 50 | 54 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 129 } |
| 126 | 130 |
| 127 bool ChromeAppHostDistribution::CanCreateDesktopShortcuts() { | 131 bool ChromeAppHostDistribution::CanCreateDesktopShortcuts() { |
| 128 return true; | 132 return true; |
| 129 } | 133 } |
| 130 | 134 |
| 131 string16 ChromeAppHostDistribution::GetIconFilename() { | 135 string16 ChromeAppHostDistribution::GetIconFilename() { |
| 132 return installer::kChromeAppHostExe; | 136 return installer::kChromeAppHostExe; |
| 133 } | 137 } |
| 134 | 138 |
| 135 bool ChromeAppHostDistribution::GetCommandExecuteImplClsid( | 139 bool ChromeAppHostDistribution::GetCommandExecuteImplClsidString( |
| 136 string16* handler_class_uuid) { | 140 string16* handler_class_uuid) { |
| 137 return false; | 141 return false; |
| 138 } | 142 } |
| 139 | 143 |
| 140 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, | 144 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, |
| 141 installer::ArchiveType archive_type, | 145 installer::ArchiveType archive_type, |
| 142 installer::InstallStatus install_status) { | 146 installer::InstallStatus install_status) { |
| 143 #if defined(GOOGLE_CHROME_BUILD) | 147 #if defined(GOOGLE_CHROME_BUILD) |
| 144 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 148 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
| 145 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 149 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
| 146 kChromeAppHostGuid); | 150 kChromeAppHostGuid); |
| 147 #endif | 151 #endif |
| 148 } | 152 } |
| OLD | NEW |