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 declares a class that contains various method related to branding.
7 #include "chrome/installer/util/google_chrome_binaries_distribution.h"
9 #include "base/logging.h"
10 #include "chrome/installer/util/app_registration_data.h"
11 #include "chrome/installer/util/non_updating_app_registration_data.h"
15 const wchar_t kChromiumBinariesName
[] = L
"Chromium Binaries";
19 ChromiumBinariesDistribution::ChromiumBinariesDistribution()
20 : BrowserDistribution(
22 scoped_ptr
<AppRegistrationData
>(new NonUpdatingAppRegistrationData(
23 base::string16(L
"Software\\").append(kChromiumBinariesName
)))),
24 browser_distribution_(
25 BrowserDistribution::GetSpecificDistribution(CHROME_BROWSER
)) {
28 ChromiumBinariesDistribution::ChromiumBinariesDistribution(
29 scoped_ptr
<AppRegistrationData
> app_reg_data
)
30 : BrowserDistribution(CHROME_BINARIES
, app_reg_data
.Pass()),
31 browser_distribution_(
32 BrowserDistribution::GetSpecificDistribution(CHROME_BROWSER
)) {
35 base::string16
ChromiumBinariesDistribution::GetBaseAppName() {
37 return base::string16();
40 base::string16
ChromiumBinariesDistribution::GetBrowserProgIdPrefix() {
42 return base::string16();
45 base::string16
ChromiumBinariesDistribution::GetBrowserProgIdDesc() {
47 return base::string16();
50 base::string16
ChromiumBinariesDistribution::GetDisplayName() {
51 return kChromiumBinariesName
;
54 base::string16
ChromiumBinariesDistribution::GetShortcutName(
55 ShortcutType shortcut_type
) {
57 return base::string16();
60 base::string16
ChromiumBinariesDistribution::GetBaseAppId() {
62 return base::string16();
65 base::string16
ChromiumBinariesDistribution::GetInstallSubDir() {
66 return browser_distribution_
->GetInstallSubDir();
69 base::string16
ChromiumBinariesDistribution::GetPublisherName() {
71 return base::string16();
74 base::string16
ChromiumBinariesDistribution::GetAppDescription() {
76 return base::string16();
79 base::string16
ChromiumBinariesDistribution::GetLongAppDescription() {
81 return base::string16();
84 std::string
ChromiumBinariesDistribution::GetSafeBrowsingName() {
89 base::string16
ChromiumBinariesDistribution::GetUninstallRegPath() {
91 return base::string16();
94 BrowserDistribution::DefaultBrowserControlPolicy
95 ChromiumBinariesDistribution::GetDefaultBrowserControlPolicy() {
96 return DEFAULT_BROWSER_UNSUPPORTED
;
99 int ChromiumBinariesDistribution::GetIconIndex(ShortcutType shortcut_type
) {
104 bool ChromiumBinariesDistribution::GetChromeChannel(base::string16
* channel
) {
109 base::string16
ChromiumBinariesDistribution::GetCommandExecuteImplClsid() {
110 return base::string16();