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
3 // found in the LICENSE file.
5 // This file defines implementation of GoogleChromeSxSDistribution.
7 #include "chrome/installer/util/google_chrome_sxs_distribution.h"
9 #include "base/command_line.h"
10 #include "base/logging.h"
12 #include "installer_util_strings.h" // NOLINT
16 const wchar_t kChromeSxSGuid
[] = L
"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}";
17 const wchar_t kChannelName
[] = L
"canary";
18 const wchar_t kBrowserAppId
[] = L
"ChromeCanary";
19 const int kSxSIconIndex
= 4;
23 GoogleChromeSxSDistribution::GoogleChromeSxSDistribution()
24 : GoogleChromeDistribution() {
25 GoogleChromeDistribution::set_product_guid(kChromeSxSGuid
);
28 string16
GoogleChromeSxSDistribution::GetBaseAppName() {
29 return L
"Google Chrome Canary";
32 string16
GoogleChromeSxSDistribution::GetAppShortCutName() {
33 const string16
& shortcut_name
=
34 installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE
);
38 string16
GoogleChromeSxSDistribution::GetBaseAppId() {
42 string16
GoogleChromeSxSDistribution::GetInstallSubDir() {
43 return GoogleChromeDistribution::GetInstallSubDir().append(
44 installer::kSxSSuffix
);
47 string16
GoogleChromeSxSDistribution::GetUninstallRegPath() {
48 return GoogleChromeDistribution::GetUninstallRegPath().append(
49 installer::kSxSSuffix
);
52 bool GoogleChromeSxSDistribution::CanSetAsDefault() {
56 int GoogleChromeSxSDistribution::GetIconIndex() {
60 bool GoogleChromeSxSDistribution::GetChromeChannel(string16
* channel
) {
61 *channel
= kChannelName
;
65 bool GoogleChromeSxSDistribution::GetCommandExecuteImplClsid(
66 string16
* handler_class_uuid
) {
70 bool GoogleChromeSxSDistribution::AppHostIsSupported() {
74 bool GoogleChromeSxSDistribution::ShouldSetExperimentLabels() {
78 bool GoogleChromeSxSDistribution::HasUserExperiments() {
82 string16
GoogleChromeSxSDistribution::ChannelName() {