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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 30 matching lines...) Expand all
41 installer::GetLocalizedString(IDS_PRODUCT_APP_HOST_NAME_BASE); 41 installer::GetLocalizedString(IDS_PRODUCT_APP_HOST_NAME_BASE);
42 return product_name; 42 return product_name;
43 } 43 }
44 44
45 string16 ChromeAppHostDistribution::GetAlternateApplicationName() { 45 string16 ChromeAppHostDistribution::GetAlternateApplicationName() {
46 const string16& product_name = 46 const string16& product_name =
47 installer::GetLocalizedString(IDS_PRODUCT_APP_HOST_NAME_BASE); 47 installer::GetLocalizedString(IDS_PRODUCT_APP_HOST_NAME_BASE);
48 return product_name; 48 return product_name;
49 } 49 }
50 50
51 string16 ChromeAppHostDistribution::GetBaseAppId() {
52 // See AppListController::GetAppModelId().
53 return L"ChromeAppList";
erikwright (departed) 2012/11/01 01:21:50 Is a TODO required to use the correct App Model ID
gab 2012/11/01 04:46:19 This is the "base AppId", i.e. the one to begin al
huangs 2012/11/01 19:20:38 Expanded comment, and defined constant for this.
54 }
55
51 string16 ChromeAppHostDistribution::GetInstallSubDir() { 56 string16 ChromeAppHostDistribution::GetInstallSubDir() {
52 return BrowserDistribution::GetSpecificDistribution( 57 return BrowserDistribution::GetSpecificDistribution(
53 BrowserDistribution::CHROME_BINARIES)->GetInstallSubDir(); 58 BrowserDistribution::CHROME_BINARIES)->GetInstallSubDir();
54 } 59 }
55 60
56 string16 ChromeAppHostDistribution::GetPublisherName() { 61 string16 ChromeAppHostDistribution::GetPublisherName() {
57 const string16& publisher_name = 62 const string16& publisher_name =
58 installer::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE); 63 installer::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE);
59 return publisher_name; 64 return publisher_name;
60 } 65 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 key.append(L"\\"); 122 key.append(L"\\");
118 key.append(kChromeAppHostGuid); 123 key.append(kChromeAppHostGuid);
119 return key; 124 return key;
120 } 125 }
121 126
122 bool ChromeAppHostDistribution::CanSetAsDefault() { 127 bool ChromeAppHostDistribution::CanSetAsDefault() {
123 return false; 128 return false;
124 } 129 }
125 130
126 bool ChromeAppHostDistribution::CanCreateDesktopShortcuts() { 131 bool ChromeAppHostDistribution::CanCreateDesktopShortcuts() {
127 return false; 132 return true;
gab 2012/11/01 04:46:19 I don't think this has any impact anymore (i.e. fi
huangs 2012/11/01 19:20:38 Will edit once I have access. Planning to add: -
128 } 133 }
129 134
130 bool ChromeAppHostDistribution::GetCommandExecuteImplClsid( 135 bool ChromeAppHostDistribution::GetCommandExecuteImplClsid(
131 string16* handler_class_uuid) { 136 string16* handler_class_uuid) {
132 return false; 137 return false;
133 } 138 }
134 139
135 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, 140 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install,
136 installer::ArchiveType archive_type, 141 installer::ArchiveType archive_type,
137 installer::InstallStatus install_status) { 142 installer::InstallStatus install_status) {
138 #if defined(GOOGLE_CHROME_BUILD) 143 #if defined(GOOGLE_CHROME_BUILD)
139 GoogleUpdateSettings::UpdateInstallStatus(system_install, 144 GoogleUpdateSettings::UpdateInstallStatus(system_install,
140 archive_type, InstallUtil::GetInstallReturnCode(install_status), 145 archive_type, InstallUtil::GetInstallReturnCode(install_status),
141 kChromeAppHostGuid); 146 kChromeAppHostGuid);
142 #endif 147 #endif
143 } 148 }
OLDNEW
« 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