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 defines dummy implementation of several functions from the
6 // BrowserDistribution class for Google Chrome. These functions allow 64-bit
7 // Windows Chrome binary to build successfully. Since this binary is only used
8 // for Native Client support, most of the install/uninstall functionality is not
9 // necessary there.
10
11 #include "chrome/installer/util/google_chrome_distribution.h"
12
13 #include <windows.h>
14
15 #include "base/files/file_path.h"
16 #include "base/logging.h"
17 #include "base/values.h"
18 #include "chrome/installer/util/app_registration_data.h"
19 #include "chrome/installer/util/non_updating_app_registration_data.h"
20
GoogleChromeDistribution()21 GoogleChromeDistribution::GoogleChromeDistribution()
22 : BrowserDistribution(
23 CHROME_BROWSER,
24 scoped_ptr<AppRegistrationData>(
25 new NonUpdatingAppRegistrationData(base::string16()))) {
26 }
27
GoogleChromeDistribution(scoped_ptr<AppRegistrationData> app_reg_data)28 GoogleChromeDistribution::GoogleChromeDistribution(
29 scoped_ptr<AppRegistrationData> app_reg_data)
30 : BrowserDistribution(CHROME_BROWSER, app_reg_data.Pass()) {
31 }
32
DoPostUninstallOperations(const Version & version,const base::FilePath & local_data_path,const base::string16 & distribution_data)33 void GoogleChromeDistribution::DoPostUninstallOperations(
34 const Version& version,
35 const base::FilePath& local_data_path,
36 const base::string16& distribution_data) {
37 }
38
GetActiveSetupGuid()39 base::string16 GoogleChromeDistribution::GetActiveSetupGuid() {
40 return base::string16();
41 }
42
GetBaseAppName()43 base::string16 GoogleChromeDistribution::GetBaseAppName() {
44 return base::string16();
45 }
46
GetShortcutName(ShortcutType shortcut_type)47 base::string16 GoogleChromeDistribution::GetShortcutName(
48 ShortcutType shortcut_type) {
49 return base::string16();
50 }
51
GetIconIndex(ShortcutType shortcut_type)52 int GoogleChromeDistribution::GetIconIndex(ShortcutType shortcut_type) {
53 return 0;
54 }
55
GetBaseAppId()56 base::string16 GoogleChromeDistribution::GetBaseAppId() {
57 return base::string16();
58 }
59
GetBrowserProgIdPrefix()60 base::string16 GoogleChromeDistribution::GetBrowserProgIdPrefix() {
61 return base::string16();
62 }
63
GetBrowserProgIdDesc()64 base::string16 GoogleChromeDistribution::GetBrowserProgIdDesc() {
65 return base::string16();
66 }
67
GetInstallSubDir()68 base::string16 GoogleChromeDistribution::GetInstallSubDir() {
69 return base::string16();
70 }
71
GetPublisherName()72 base::string16 GoogleChromeDistribution::GetPublisherName() {
73 return base::string16();
74 }
75
GetAppDescription()76 base::string16 GoogleChromeDistribution::GetAppDescription() {
77 return base::string16();
78 }
79
GetSafeBrowsingName()80 std::string GoogleChromeDistribution::GetSafeBrowsingName() {
81 return std::string();
82 }
83
GetNetworkStatsServer() const84 std::string GoogleChromeDistribution::GetNetworkStatsServer() const {
85 return std::string();
86 }
87
GetDistributionData(HKEY root_key)88 base::string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) {
89 return base::string16();
90 }
91
GetUninstallLinkName()92 base::string16 GoogleChromeDistribution::GetUninstallLinkName() {
93 return base::string16();
94 }
95
GetUninstallRegPath()96 base::string16 GoogleChromeDistribution::GetUninstallRegPath() {
97 return base::string16();
98 }
99
GetIconFilename()100 base::string16 GoogleChromeDistribution::GetIconFilename() {
101 return base::string16();
102 }
103
GetCommandExecuteImplClsid(base::string16 * handler_class_uuid)104 bool GoogleChromeDistribution::GetCommandExecuteImplClsid(
105 base::string16* handler_class_uuid) {
106 return false;
107 }
108
AppHostIsSupported()109 bool GoogleChromeDistribution::AppHostIsSupported() {
110 return false;
111 }
112
UpdateInstallStatus(bool system_install,installer::ArchiveType archive_type,installer::InstallStatus install_status)113 void GoogleChromeDistribution::UpdateInstallStatus(bool system_install,
114 installer::ArchiveType archive_type,
115 installer::InstallStatus install_status) {
116 }
117
ShouldSetExperimentLabels()118 bool GoogleChromeDistribution::ShouldSetExperimentLabels() {
119 return false;
120 }
121
HasUserExperiments()122 bool GoogleChromeDistribution::HasUserExperiments() {
123 return false;
124 }
125