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

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

Issue 23258005: Give SxS distribution its own registration GUIDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed IsSetAsDefaultSupported() and GetCommandExecuteImplClsid(), and other minor cleanup. Created 7 years, 3 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
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 18 matching lines...) Expand all
29 29
30 #include "installer_util_strings.h" // NOLINT 30 #include "installer_util_strings.h" // NOLINT
31 31
32 using installer::MasterPreferences; 32 using installer::MasterPreferences;
33 33
34 namespace { 34 namespace {
35 35
36 const wchar_t kChromiumActiveSetupGuid[] = 36 const wchar_t kChromiumActiveSetupGuid[] =
37 L"{7D2B3E1D-D096-4594-9D8F-A6667F12E0AC}"; 37 L"{7D2B3E1D-D096-4594-9D8F-A6667F12E0AC}";
38 38
39 const wchar_t kCommandExecuteImplUuid[] = 39 const wchar_t kCommandExecuteImplUuidString[] =
40 L"{A2DF06F9-A21A-44A8-8A99-8B9C84F29160}"; 40 L"{A2DF06F9-A21A-44A8-8A99-8B9C84F29160}";
41 41
42 // The Chromium App Launcher icon is index 1; see chrome_exe.rc. 42 // The Chromium App Launcher icon is index 1; see chrome_exe.rc.
43 const int kAppLauncherIconIndex = 1; 43 const int kAppLauncherIconIndex = 1;
44 44
45 // The BrowserDistribution objects are never freed. 45 // The BrowserDistribution objects are never freed.
46 BrowserDistribution* g_browser_distribution = NULL; 46 BrowserDistribution* g_browser_distribution = NULL;
47 BrowserDistribution* g_chrome_frame_distribution = NULL; 47 BrowserDistribution* g_chrome_frame_distribution = NULL;
48 BrowserDistribution* g_binaries_distribution = NULL; 48 BrowserDistribution* g_binaries_distribution = NULL;
49 BrowserDistribution* g_chrome_app_host_distribution = NULL; 49 BrowserDistribution* g_chrome_app_host_distribution = NULL;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 string16 BrowserDistribution::GetStartMenuShortcutSubfolder( 192 string16 BrowserDistribution::GetStartMenuShortcutSubfolder(
193 Subfolder subfolder_type) { 193 Subfolder subfolder_type) {
194 DCHECK_EQ(subfolder_type, SUBFOLDER_CHROME); 194 DCHECK_EQ(subfolder_type, SUBFOLDER_CHROME);
195 return GetShortcutName(SHORTCUT_CHROME); 195 return GetShortcutName(SHORTCUT_CHROME);
196 } 196 }
197 197
198 string16 BrowserDistribution::GetBaseAppId() { 198 string16 BrowserDistribution::GetBaseAppId() {
199 return L"Chromium"; 199 return L"Chromium";
200 } 200 }
201 201
202 string16 BrowserDistribution::GetBrowserProgIdPrefix() {
203 // This used to be "ChromiumHTML", but was forced to become "ChromiumHTM"
204 // because of http://crbug.com/153349. See the declaration of this function
205 // in the header file for more details.
206 return L"ChromiumHTM";
207 }
208
209 string16 BrowserDistribution::GetBrowserProgIdDesc() {
210 return L"Chromium HTML Document";
211 }
212
213
202 string16 BrowserDistribution::GetInstallSubDir() { 214 string16 BrowserDistribution::GetInstallSubDir() {
203 return L"Chromium"; 215 return L"Chromium";
204 } 216 }
205 217
206 string16 BrowserDistribution::GetPublisherName() { 218 string16 BrowserDistribution::GetPublisherName() {
207 return L"Chromium"; 219 return L"Chromium";
208 } 220 }
209 221
210 string16 BrowserDistribution::GetAppDescription() { 222 string16 BrowserDistribution::GetAppDescription() {
211 return L"Browse the web"; 223 return L"Browse the web";
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 262 }
251 263
252 string16 BrowserDistribution::GetVersionKey() { 264 string16 BrowserDistribution::GetVersionKey() {
253 return L"Software\\Chromium"; 265 return L"Software\\Chromium";
254 } 266 }
255 267
256 bool BrowserDistribution::CanSetAsDefault() { 268 bool BrowserDistribution::CanSetAsDefault() {
257 return true; 269 return true;
258 } 270 }
259 271
272 void BrowserDistribution::DebugEnableSetAsDefault() {
273 }
274
260 bool BrowserDistribution::CanCreateDesktopShortcuts() { 275 bool BrowserDistribution::CanCreateDesktopShortcuts() {
261 return true; 276 return true;
262 } 277 }
263 278
264 bool BrowserDistribution::GetChromeChannel(string16* channel) { 279 bool BrowserDistribution::GetChromeChannel(string16* channel) {
265 return false; 280 return false;
266 } 281 }
267 282
268 bool BrowserDistribution::GetCommandExecuteImplClsid( 283 bool BrowserDistribution::GetCommandExecuteImplClsidString(
269 string16* handler_class_uuid) { 284 string16* handler_class_uuid) {
270 if (handler_class_uuid) 285 if (handler_class_uuid)
271 *handler_class_uuid = kCommandExecuteImplUuid; 286 *handler_class_uuid = kCommandExecuteImplUuidString;
272 return true; 287 return true;
273 } 288 }
274 289
275 bool BrowserDistribution::AppHostIsSupported() { 290 bool BrowserDistribution::AppHostIsSupported() {
276 return false; 291 return false;
277 } 292 }
278 293
279 void BrowserDistribution::UpdateInstallStatus(bool system_install, 294 void BrowserDistribution::UpdateInstallStatus(bool system_install,
280 installer::ArchiveType archive_type, 295 installer::ArchiveType archive_type,
281 installer::InstallStatus install_status) { 296 installer::InstallStatus install_status) {
282 } 297 }
283 298
284 bool BrowserDistribution::ShouldSetExperimentLabels() { 299 bool BrowserDistribution::ShouldSetExperimentLabels() {
285 return false; 300 return false;
286 } 301 }
287 302
288 bool BrowserDistribution::HasUserExperiments() { 303 bool BrowserDistribution::HasUserExperiments() {
289 return false; 304 return false;
290 } 305 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698