Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1137)

Unified Diff: chrome/installer/util/chrome_app_host_distribution.cc

Issue 11359013: Adding App Launcher shortcuts on install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanups; adding DCHECK to ensure App Launcher-releated stuff are for user-level. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 112678e430f84ec1fb76b1c7d2747661fc97bced..436568f62271a8eeb927c37514009b6c5ea648b9 100644
--- a/chrome/installer/util/chrome_app_host_distribution.cc
+++ b/chrome/installer/util/chrome_app_host_distribution.cc
@@ -21,8 +21,11 @@
#include "installer_util_strings.h" // NOLINT
namespace {
+
const wchar_t kChromeAppHostGuid[] = L"{FDA71E6F-AC4C-4a00-8B70-9958A68906BF}";
-}
+const wchar_t kAppListId[] = L"ChromeAppList";
gab 2012/11/02 04:19:58 I don't feel a constant is necessary, I prefer inl
huangs 2012/11/02 21:05:10 Keeping the constant, so sorting. The const is ad
+
+} // namespace
ChromeAppHostDistribution::ChromeAppHostDistribution()
: BrowserDistribution(CHROME_APP_HOST) {
@@ -48,6 +51,11 @@ string16 ChromeAppHostDistribution::GetAlternateApplicationName() {
return product_name;
}
+string16 ChromeAppHostDistribution::GetBaseAppId() {
+ // Should be same as AppListController::GetAppModelId().
erikwright (departed) 2012/11/01 20:43:36 Note that this will end up being suffixed with a u
erikwright (departed) 2012/11/02 02:40:27 I will do a small refactoring of the AppListContro
huangs 2012/11/02 21:05:10 Done (code is in install.cc: CreateOrUpdateShortcu
+ return kAppListId;
+}
+
string16 ChromeAppHostDistribution::GetInstallSubDir() {
return BrowserDistribution::GetSpecificDistribution(
BrowserDistribution::CHROME_BINARIES)->GetInstallSubDir();
@@ -124,7 +132,7 @@ bool ChromeAppHostDistribution::CanSetAsDefault() {
}
bool ChromeAppHostDistribution::CanCreateDesktopShortcuts() {
- return false;
+ return true;
}
bool ChromeAppHostDistribution::GetCommandExecuteImplClsid(
« chrome/installer/setup/uninstall.cc ('K') | « chrome/installer/util/chrome_app_host_distribution.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698