Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / installer / util / chromium_binaries_distribution.cc
blob30bf44f608acb8631c70b3c4e9332e53304249ad
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.
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"
13 namespace {
15 const wchar_t kChromiumBinariesName[] = L"Chromium Binaries";
17 } // namespace
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)) {
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() {
36 NOTREACHED();
37 return base::string16();
40 base::string16 ChromiumBinariesDistribution::GetBrowserProgIdPrefix() {
41 NOTREACHED();
42 return base::string16();
45 base::string16 ChromiumBinariesDistribution::GetBrowserProgIdDesc() {
46 NOTREACHED();
47 return base::string16();
50 base::string16 ChromiumBinariesDistribution::GetDisplayName() {
51 return kChromiumBinariesName;
54 base::string16 ChromiumBinariesDistribution::GetShortcutName(
55 ShortcutType shortcut_type) {
56 NOTREACHED();
57 return base::string16();
60 base::string16 ChromiumBinariesDistribution::GetBaseAppId() {
61 NOTREACHED();
62 return base::string16();
65 base::string16 ChromiumBinariesDistribution::GetInstallSubDir() {
66 return browser_distribution_->GetInstallSubDir();
69 base::string16 ChromiumBinariesDistribution::GetPublisherName() {
70 NOTREACHED();
71 return base::string16();
74 base::string16 ChromiumBinariesDistribution::GetAppDescription() {
75 NOTREACHED();
76 return base::string16();
79 base::string16 ChromiumBinariesDistribution::GetLongAppDescription() {
80 NOTREACHED();
81 return base::string16();
84 std::string ChromiumBinariesDistribution::GetSafeBrowsingName() {
85 NOTREACHED();
86 return std::string();
89 base::string16 ChromiumBinariesDistribution::GetUninstallLinkName() {
90 NOTREACHED();
91 return base::string16();
94 base::string16 ChromiumBinariesDistribution::GetUninstallRegPath() {
95 NOTREACHED();
96 return base::string16();
99 BrowserDistribution::DefaultBrowserControlPolicy
100 ChromiumBinariesDistribution::GetDefaultBrowserControlPolicy() {
101 return DEFAULT_BROWSER_UNSUPPORTED;
104 int ChromiumBinariesDistribution::GetIconIndex(ShortcutType shortcut_type) {
105 NOTREACHED();
106 return 0;
109 bool ChromiumBinariesDistribution::GetChromeChannel(base::string16* channel) {
110 NOTREACHED();
111 return false;
114 bool ChromiumBinariesDistribution::GetCommandExecuteImplClsid(
115 base::string16* handler_class_uuid) {
116 return false;