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

Side by Side Diff: chrome/installer/util/chrome_app_host_distribution.cc

Issue 11267023: Implementing --app-launcher install/uninstall flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits; added localized string for App Launcher uninstall shortcut. 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 BrowserDistribution::CHROME_BINARIES)->GetInstallSubDir(); 53 BrowserDistribution::CHROME_BINARIES)->GetInstallSubDir();
54 } 54 }
55 55
56 string16 ChromeAppHostDistribution::GetPublisherName() { 56 string16 ChromeAppHostDistribution::GetPublisherName() {
57 const string16& publisher_name = 57 const string16& publisher_name =
58 installer::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE); 58 installer::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE);
59 return publisher_name; 59 return publisher_name;
60 } 60 }
61 61
62 string16 ChromeAppHostDistribution::GetAppDescription() { 62 string16 ChromeAppHostDistribution::GetAppDescription() {
63 NOTREACHED() << "This should never be accessed due to no start-menu/task-bar " 63 const string16& app_description =
64 << "shortcuts."; 64 installer::GetLocalizedString(IDS_APP_LAUNCHER_SHORTCUT_TOOLTIP_BASE);
65 return L"A standalone platform for Chrome apps."; 65 return app_description;
66 } 66 }
67 67
68 string16 ChromeAppHostDistribution::GetLongAppDescription() { 68 string16 ChromeAppHostDistribution::GetLongAppDescription() {
69 NOTREACHED() << "This should never be accessed as Chrome App Host is not a " 69 const string16& app_description =
70 << "default browser option."; 70 installer::GetLocalizedString(IDS_APP_LAUNCHER_PRODUCT_DESCRIPTION_BASE);
71 return L"A standalone platform for Chrome apps."; 71 return app_description;
72 } 72 }
73 73
74 std::string ChromeAppHostDistribution::GetSafeBrowsingName() { 74 std::string ChromeAppHostDistribution::GetSafeBrowsingName() {
75 return "googlechromeapphost"; 75 return "googlechromeapphost";
76 } 76 }
77 77
78 string16 ChromeAppHostDistribution::GetStateKey() { 78 string16 ChromeAppHostDistribution::GetStateKey() {
79 string16 key(google_update::kRegPathClientState); 79 string16 key(google_update::kRegPathClientState);
80 key.append(L"\\"); 80 key.append(L"\\");
81 key.append(kChromeAppHostGuid); 81 key.append(kChromeAppHostGuid);
(...skipping 13 matching lines...) Expand all
95 95
96 std::string ChromeAppHostDistribution::GetNetworkStatsServer() const { 96 std::string ChromeAppHostDistribution::GetNetworkStatsServer() const {
97 return chrome_common_net::kEchoTestServerLocation; 97 return chrome_common_net::kEchoTestServerLocation;
98 } 98 }
99 99
100 std::string ChromeAppHostDistribution::GetHttpPipeliningTestServer() const { 100 std::string ChromeAppHostDistribution::GetHttpPipeliningTestServer() const {
101 return chrome_common_net::kPipelineTestServerBaseUrl; 101 return chrome_common_net::kPipelineTestServerBaseUrl;
102 } 102 }
103 103
104 string16 ChromeAppHostDistribution::GetUninstallLinkName() { 104 string16 ChromeAppHostDistribution::GetUninstallLinkName() {
105 NOTREACHED() << "This should never be accessed as Chrome App Host has no " 105 const string16& link_name =
106 << "uninstall entry."; 106 installer::GetLocalizedString(IDS_UNINSTALL_APP_LAUNCHER_BASE);
107 return L"Uninstall Chrome App Host"; 107 return link_name;
108 } 108 }
109 109
110 string16 ChromeAppHostDistribution::GetUninstallRegPath() { 110 string16 ChromeAppHostDistribution::GetUninstallRegPath() {
111 NOTREACHED() << "This should never be accessed as Chrome App Host has no "
112 << "uninstall entry.";
113 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" 111 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\"
114 L"Google Chrome App Host"; 112 L"Google Chrome App Host";
115 } 113 }
116 114
117 string16 ChromeAppHostDistribution::GetVersionKey() { 115 string16 ChromeAppHostDistribution::GetVersionKey() {
118 string16 key(google_update::kRegPathClients); 116 string16 key(google_update::kRegPathClients);
119 key.append(L"\\"); 117 key.append(L"\\");
120 key.append(kChromeAppHostGuid); 118 key.append(kChromeAppHostGuid);
121 return key; 119 return key;
122 } 120 }
(...skipping 13 matching lines...) Expand all
136 134
137 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install, 135 void ChromeAppHostDistribution::UpdateInstallStatus(bool system_install,
138 installer::ArchiveType archive_type, 136 installer::ArchiveType archive_type,
139 installer::InstallStatus install_status) { 137 installer::InstallStatus install_status) {
140 #if defined(GOOGLE_CHROME_BUILD) 138 #if defined(GOOGLE_CHROME_BUILD)
141 GoogleUpdateSettings::UpdateInstallStatus(system_install, 139 GoogleUpdateSettings::UpdateInstallStatus(system_install,
142 archive_type, InstallUtil::GetInstallReturnCode(install_status), 140 archive_type, InstallUtil::GetInstallReturnCode(install_status),
143 kChromeAppHostGuid); 141 kChromeAppHostGuid);
144 #endif 142 #endif
145 } 143 }
OLDNEW
« no previous file with comments | « chrome/installer/util/channel_info.cc ('k') | chrome/installer/util/chrome_app_host_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698