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

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

Issue 10246007: Fix GetAppShortcutName to return a localized name for Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: string16 madness Created 8 years, 8 months 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 class that contains various method related to branding. 5 // This file defines a class that contains various method related to branding.
6 // It provides only default implementations of these methods. Usually to add 6 // It provides only default implementations of these methods. Usually to add
7 // specific branding, we will need to extend this class with a custom 7 // specific branding, we will need to extend this class with a custom
8 // implementation. 8 // implementation.
9 9
10 #include "chrome/installer/util/browser_distribution.h" 10 #include "chrome/installer/util/browser_distribution.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 dist = GetOrCreateBrowserDistribution<ChromiumBinariesDistribution>( 125 dist = GetOrCreateBrowserDistribution<ChromiumBinariesDistribution>(
126 &g_binaries_distribution); 126 &g_binaries_distribution);
127 #endif 127 #endif
128 } 128 }
129 129
130 return dist; 130 return dist;
131 } 131 }
132 132
133 void BrowserDistribution::DoPostUninstallOperations( 133 void BrowserDistribution::DoPostUninstallOperations(
134 const Version& version, const FilePath& local_data_path, 134 const Version& version, const FilePath& local_data_path,
135 const std::wstring& distribution_data) { 135 const string16& distribution_data) {
136 } 136 }
137 137
138 std::wstring BrowserDistribution::GetAppGuid() { 138 string16 BrowserDistribution::GetAppGuid() {
139 return L""; 139 return L"";
140 } 140 }
141 141
142 std::wstring BrowserDistribution::GetApplicationName() { 142 string16 BrowserDistribution::GetApplicationName() {
143 return L"Chromium"; 143 return L"Chromium";
144 } 144 }
145 145
146 std::wstring BrowserDistribution::GetAppShortCutName() { 146 string16 BrowserDistribution::GetAppShortCutName() {
147 return GetApplicationName(); 147 return GetApplicationName();
148 } 148 }
149 149
150 std::wstring BrowserDistribution::GetAlternateApplicationName() { 150 string16 BrowserDistribution::GetAlternateApplicationName() {
151 return L"The Internet"; 151 return L"The Internet";
152 } 152 }
153 153
154 std::wstring BrowserDistribution::GetBrowserAppId() { 154 string16 BrowserDistribution::GetBrowserAppId() {
155 return L"Chromium"; 155 return L"Chromium";
156 } 156 }
157 157
158 std::wstring BrowserDistribution::GetInstallSubDir() { 158 string16 BrowserDistribution::GetInstallSubDir() {
159 return L"Chromium"; 159 return L"Chromium";
160 } 160 }
161 161
162 std::wstring BrowserDistribution::GetPublisherName() { 162 string16 BrowserDistribution::GetPublisherName() {
163 return L"Chromium"; 163 return L"Chromium";
164 } 164 }
165 165
166 std::wstring BrowserDistribution::GetAppDescription() { 166 string16 BrowserDistribution::GetAppDescription() {
167 return L"Browse the web"; 167 return L"Browse the web";
168 } 168 }
169 169
170 std::wstring BrowserDistribution::GetLongAppDescription() { 170 string16 BrowserDistribution::GetLongAppDescription() {
171 const std::wstring& app_description = 171 const string16& app_description =
172 installer::GetLocalizedString(IDS_PRODUCT_DESCRIPTION_BASE); 172 installer::GetLocalizedString(IDS_PRODUCT_DESCRIPTION_BASE);
173 return app_description; 173 return app_description;
174 } 174 }
175 175
176 std::string BrowserDistribution::GetSafeBrowsingName() { 176 std::string BrowserDistribution::GetSafeBrowsingName() {
177 return "chromium"; 177 return "chromium";
178 } 178 }
179 179
180 std::wstring BrowserDistribution::GetStateKey() { 180 string16 BrowserDistribution::GetStateKey() {
181 return L"Software\\Chromium"; 181 return L"Software\\Chromium";
182 } 182 }
183 183
184 std::wstring BrowserDistribution::GetStateMediumKey() { 184 string16 BrowserDistribution::GetStateMediumKey() {
185 return L"Software\\Chromium"; 185 return L"Software\\Chromium";
186 } 186 }
187 187
188 std::wstring BrowserDistribution::GetStatsServerURL() { 188 string16 BrowserDistribution::GetStatsServerURL() {
189 return L""; 189 return L"";
190 } 190 }
191 191
192 std::string BrowserDistribution::GetNetworkStatsServer() const { 192 std::string BrowserDistribution::GetNetworkStatsServer() const {
193 return ""; 193 return "";
194 } 194 }
195 195
196 std::string BrowserDistribution::GetHttpPipeliningTestServer() const { 196 std::string BrowserDistribution::GetHttpPipeliningTestServer() const {
197 return ""; 197 return "";
198 } 198 }
199 199
200 std::wstring BrowserDistribution::GetDistributionData(HKEY root_key) { 200 string16 BrowserDistribution::GetDistributionData(HKEY root_key) {
201 return L""; 201 return L"";
202 } 202 }
203 203
204 std::wstring BrowserDistribution::GetUninstallLinkName() { 204 string16 BrowserDistribution::GetUninstallLinkName() {
205 return L"Uninstall Chromium"; 205 return L"Uninstall Chromium";
206 } 206 }
207 207
208 std::wstring BrowserDistribution::GetUninstallRegPath() { 208 string16 BrowserDistribution::GetUninstallRegPath() {
209 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Chromium"; 209 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Chromium";
210 } 210 }
211 211
212 std::wstring BrowserDistribution::GetVersionKey() { 212 string16 BrowserDistribution::GetVersionKey() {
213 return L"Software\\Chromium"; 213 return L"Software\\Chromium";
214 } 214 }
215 215
216 bool BrowserDistribution::CanSetAsDefault() { 216 bool BrowserDistribution::CanSetAsDefault() {
217 return true; 217 return true;
218 } 218 }
219 219
220 bool BrowserDistribution::CanCreateDesktopShortcuts() { 220 bool BrowserDistribution::CanCreateDesktopShortcuts() {
221 return true; 221 return true;
222 } 222 }
223 223
224 int BrowserDistribution::GetIconIndex() { 224 int BrowserDistribution::GetIconIndex() {
225 return 0; 225 return 0;
226 } 226 }
227 227
228 bool BrowserDistribution::GetChromeChannel(std::wstring* channel) { 228 bool BrowserDistribution::GetChromeChannel(string16* channel) {
229 return false; 229 return false;
230 } 230 }
231 231
232 bool BrowserDistribution::GetDelegateExecuteHandlerData( 232 bool BrowserDistribution::GetDelegateExecuteHandlerData(
233 string16* handler_class_uuid, 233 string16* handler_class_uuid,
234 string16* type_lib_uuid, 234 string16* type_lib_uuid,
235 string16* type_lib_version, 235 string16* type_lib_version,
236 string16* interface_uuid) { 236 string16* interface_uuid) {
237 // TODO(grt): http://crbug.com/123727 Return values for Chromium. 237 // TODO(grt): http://crbug.com/123727 Return values for Chromium.
238 return false; 238 return false;
(...skipping 10 matching lines...) Expand all
249 } 249 }
250 250
251 void BrowserDistribution::LaunchUserExperiment( 251 void BrowserDistribution::LaunchUserExperiment(
252 const FilePath& setup_path, installer::InstallStatus status, 252 const FilePath& setup_path, installer::InstallStatus status,
253 const Version& version, const installer::Product& product, 253 const Version& version, const installer::Product& product,
254 bool system_level) { 254 bool system_level) {
255 } 255 }
256 256
257 257
258 void BrowserDistribution::InactiveUserToastExperiment(int flavor, 258 void BrowserDistribution::InactiveUserToastExperiment(int flavor,
259 const std::wstring& experiment_group, 259 const string16& experiment_group,
260 const installer::Product& installation, 260 const installer::Product& installation,
261 const FilePath& application_path) { 261 const FilePath& application_path) {
262 } 262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698