• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 //
5 // This file declares a class that contains various method related to branding.
6 
7 #include "chrome/installer/util/google_chrome_binaries_distribution.h"
8 
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"
12 
13 namespace {
14 
15 const wchar_t kChromiumBinariesName[] = L"Chromium Binaries";
16 
17 }  // namespace
18 
ChromiumBinariesDistribution()19 ChromiumBinariesDistribution::ChromiumBinariesDistribution()
20     : BrowserDistribution(
21           CHROME_BINARIES,
22           scoped_ptr<AppRegistrationData>(new NonUpdatingAppRegistrationData(
23               base::string16(L"Software\\").append(kChromiumBinariesName)))),
24       browser_distribution_(
25           BrowserDistribution::GetSpecificDistribution(CHROME_BROWSER)) {
26 }
27 
ChromiumBinariesDistribution(scoped_ptr<AppRegistrationData> app_reg_data)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)) {
33 }
34 
GetBaseAppName()35 base::string16 ChromiumBinariesDistribution::GetBaseAppName() {
36   NOTREACHED();
37   return base::string16();
38 }
39 
GetBrowserProgIdPrefix()40 base::string16 ChromiumBinariesDistribution::GetBrowserProgIdPrefix() {
41   NOTREACHED();
42   return base::string16();
43 }
44 
GetBrowserProgIdDesc()45 base::string16 ChromiumBinariesDistribution::GetBrowserProgIdDesc() {
46   NOTREACHED();
47   return base::string16();
48 }
49 
GetDisplayName()50 base::string16 ChromiumBinariesDistribution::GetDisplayName() {
51   return kChromiumBinariesName;
52 }
53 
GetShortcutName(ShortcutType shortcut_type)54 base::string16 ChromiumBinariesDistribution::GetShortcutName(
55     ShortcutType shortcut_type) {
56   NOTREACHED();
57   return base::string16();
58 }
59 
GetBaseAppId()60 base::string16 ChromiumBinariesDistribution::GetBaseAppId() {
61   NOTREACHED();
62   return base::string16();
63 }
64 
GetInstallSubDir()65 base::string16 ChromiumBinariesDistribution::GetInstallSubDir() {
66   return browser_distribution_->GetInstallSubDir();
67 }
68 
GetPublisherName()69 base::string16 ChromiumBinariesDistribution::GetPublisherName() {
70   NOTREACHED();
71   return base::string16();
72 }
73 
GetAppDescription()74 base::string16 ChromiumBinariesDistribution::GetAppDescription() {
75   NOTREACHED();
76   return base::string16();
77 }
78 
GetLongAppDescription()79 base::string16 ChromiumBinariesDistribution::GetLongAppDescription() {
80   NOTREACHED();
81   return base::string16();
82 }
83 
GetSafeBrowsingName()84 std::string ChromiumBinariesDistribution::GetSafeBrowsingName() {
85   NOTREACHED();
86   return std::string();
87 }
88 
GetUninstallLinkName()89 base::string16 ChromiumBinariesDistribution::GetUninstallLinkName() {
90   NOTREACHED();
91   return base::string16();
92 }
93 
GetUninstallRegPath()94 base::string16 ChromiumBinariesDistribution::GetUninstallRegPath() {
95   NOTREACHED();
96   return base::string16();
97 }
98 
99 BrowserDistribution::DefaultBrowserControlPolicy
GetDefaultBrowserControlPolicy()100     ChromiumBinariesDistribution::GetDefaultBrowserControlPolicy() {
101   return DEFAULT_BROWSER_UNSUPPORTED;
102 }
103 
GetIconIndex(ShortcutType shortcut_type)104 int ChromiumBinariesDistribution::GetIconIndex(ShortcutType shortcut_type) {
105   NOTREACHED();
106   return 0;
107 }
108 
GetChromeChannel(base::string16 * channel)109 bool ChromiumBinariesDistribution::GetChromeChannel(base::string16* channel) {
110   NOTREACHED();
111   return false;
112 }
113 
GetCommandExecuteImplClsid(base::string16 * handler_class_uuid)114 bool ChromiumBinariesDistribution::GetCommandExecuteImplClsid(
115     base::string16* handler_class_uuid) {
116   return false;
117 }
118