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::GetAppShortCutName() { | 41 string16 ChromeAppHostDistribution::GetShortcutName( |
42 const string16& product_name = | 42 ShortcutEnum shortcut_enum) { |
43 installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); | 43 switch (shortcut_enum) { |
44 return product_name; | 44 case SHORTCUT_APP_LAUNCHER: |
45 } | 45 return installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); |
46 | 46 default: |
47 string16 ChromeAppHostDistribution::GetAlternateApplicationName() { | 47 NOTREACHED(); |
gab
2013/06/18 19:50:29
As it is, GetDisplayName() will hit this for this
calamity
2013/06/27 01:27:44
Done.
| |
48 const string16& product_name = | 48 return string16(); |
49 installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); | 49 } |
50 return product_name; | |
51 } | 50 } |
52 | 51 |
53 string16 ChromeAppHostDistribution::GetBaseAppId() { | 52 string16 ChromeAppHostDistribution::GetBaseAppId() { |
54 // Should be same as AppListController::GetAppModelId(). | 53 // Should be same as AppListController::GetAppModelId(). |
55 return L"ChromeAppList"; | 54 return L"ChromeAppList"; |
56 } | 55 } |
57 | 56 |
58 string16 ChromeAppHostDistribution::GetInstallSubDir() { | 57 string16 ChromeAppHostDistribution::GetInstallSubDir() { |
59 return BrowserDistribution::GetSpecificDistribution( | 58 return BrowserDistribution::GetSpecificDistribution( |
60 BrowserDistribution::CHROME_BINARIES)->GetInstallSubDir(); | 59 BrowserDistribution::CHROME_BINARIES)->GetInstallSubDir(); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 | 140 |
142 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, | 141 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, |
143 installer::ArchiveType archive_type, | 142 installer::ArchiveType archive_type, |
144 installer::InstallStatus install_status) { | 143 installer::InstallStatus install_status) { |
145 #if defined(GOOGLE_CHROME_BUILD) | 144 #if defined(GOOGLE_CHROME_BUILD) |
146 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 145 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
147 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 146 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
148 kChromeAppHostGuid); | 147 kChromeAppHostGuid); |
149 #endif | 148 #endif |
150 } | 149 } |
OLD | NEW |