Index: chrome/installer/util/chrome_app_host_distribution.cc |
diff --git a/chrome/installer/util/chrome_app_host_distribution.cc b/chrome/installer/util/chrome_app_host_distribution.cc |
index 4ff30be22cf1e143fefdd357572043675ae11f98..e30bfa0072a318c94cf63dce665879a4eb662107 100644 |
--- a/chrome/installer/util/chrome_app_host_distribution.cc |
+++ b/chrome/installer/util/chrome_app_host_distribution.cc |
@@ -24,6 +24,12 @@ namespace { |
const wchar_t kChromeAppHostGuid[] = L"{FDA71E6F-AC4C-4a00-8B70-9958A68906BF}"; |
+#if defined(GOOGLE_CHROME_BUILD) |
+ const int kAppLauncherIconIndex = 5; |
gab
2013/05/15 22:42:20
Coordinate with https://codereview.chromium.org/13
huangs
2013/05/17 20:59:24
Will do so once I merge. Keeping this now for tes
|
+#else |
+ const int kAppLauncherIconIndex = 1; |
+#endif |
+ |
} // namespace |
ChromeAppHostDistribution::ChromeAppHostDistribution() |
@@ -35,19 +41,30 @@ string16 ChromeAppHostDistribution::GetAppGuid() { |
} |
string16 ChromeAppHostDistribution::GetBaseAppName() { |
- return L"Google Chrome App Launcher"; |
+#if defined(GOOGLE_CHROME_BUILD) |
grt (UTC plus 2)
2013/05/16 14:55:52
I think it's safe to replace the body of this func
huangs
2013/05/17 20:59:24
https://codereview.chromium.org/13864015/ will ref
|
+ return InstallUtil::IsChromeSxSProcess() ? |
+ L"Google Chrome Canary App Launcher" : L"Google Chrome App Launcher"; |
+#else |
+ return L"Chromium App Launcher"; |
+#endif |
+} |
+ |
+string16 ChromeAppHostDistribution::GetAppShortCutFolderName() { |
+#if defined(GOOGLE_CHROME_BUILD) |
grt (UTC plus 2)
2013/05/16 14:55:52
Can this whole function become:
GetSpecificDistr
huangs
2013/05/17 20:59:24
Discussed with gab@, the plan for (https://coderev
|
+ return InstallUtil::IsChromeSxSProcess() ? |
+ installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE) : |
+ installer::GetLocalizedString(IDS_PRODUCT_NAME_BASE); |
+#else |
+ return L"Chromium"; |
+#endif |
} |
string16 ChromeAppHostDistribution::GetAppShortCutName() { |
- const string16& product_name = |
- installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); |
- return product_name; |
+ return installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); |
} |
string16 ChromeAppHostDistribution::GetAlternateApplicationName() { |
- const string16& product_name = |
- installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); |
- return product_name; |
+ return installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); |
} |
string16 ChromeAppHostDistribution::GetBaseAppId() { |
@@ -111,8 +128,8 @@ string16 ChromeAppHostDistribution::GetUninstallLinkName() { |
} |
string16 ChromeAppHostDistribution::GetUninstallRegPath() { |
- return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" |
- L"Google Chrome App Launcher"; |
+ NOTREACHED(); |
+ return string16(); |
} |
string16 ChromeAppHostDistribution::GetVersionKey() { |
@@ -131,7 +148,11 @@ bool ChromeAppHostDistribution::CanCreateDesktopShortcuts() { |
} |
string16 ChromeAppHostDistribution::GetIconFilename() { |
- return installer::kChromeAppHostExe; |
+ return installer::kChromeExe; |
+} |
+ |
+int ChromeAppHostDistribution::GetIconIndex() { |
+ return kAppLauncherIconIndex; |
} |
bool ChromeAppHostDistribution::GetCommandExecuteImplClsid( |
@@ -148,3 +169,21 @@ void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, |
kChromeAppHostGuid); |
#endif |
} |
+ |
+LegacyChromeAppHostDistribution::LegacyChromeAppHostDistribution() {} |
+ |
+string16 LegacyChromeAppHostDistribution::GetBaseAppName() { |
+ return L"Google Chrome App Launcher"; |
grt (UTC plus 2)
2013/05/16 14:55:52
see comment above
huangs
2013/05/17 20:59:24
Same as above. This will be deleted. If we decided
|
+} |
+ |
+string16 LegacyChromeAppHostDistribution::GetAppShortCutFolderName() { |
+ return GetAppShortCutName(); |
+} |
+ |
+string16 LegacyChromeAppHostDistribution::GetAppShortCutName() { |
+ return installer::GetLocalizedString(IDS_PRODUCT_APP_LAUNCHER_NAME_BASE); |
+} |
+ |
+string16 LegacyChromeAppHostDistribution::GetAlternateApplicationName() { |
+ return GetAppShortCutName(); |
+} |