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 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
11 #include "chrome/installer/util/google_chrome_distribution.h"
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"
21 GoogleChromeDistribution::GoogleChromeDistribution()
22 : BrowserDistribution(
24 scoped_ptr<AppRegistrationData>(
25 new NonUpdatingAppRegistrationData(base::string16()))) {
28 GoogleChromeDistribution::GoogleChromeDistribution(
29 scoped_ptr<AppRegistrationData> app_reg_data)
30 : BrowserDistribution(CHROME_BROWSER, app_reg_data.Pass()) {
33 void GoogleChromeDistribution::DoPostUninstallOperations(
34 const Version& version,
35 const base::FilePath& local_data_path,
36 const base::string16& distribution_data) {
39 base::string16 GoogleChromeDistribution::GetActiveSetupGuid() {
40 return base::string16();
43 base::string16 GoogleChromeDistribution::GetBaseAppName() {
44 return base::string16();
47 base::string16 GoogleChromeDistribution::GetShortcutName(
48 ShortcutType shortcut_type) {
49 return base::string16();
52 int GoogleChromeDistribution::GetIconIndex(ShortcutType shortcut_type) {
56 base::string16 GoogleChromeDistribution::GetBaseAppId() {
57 return base::string16();
60 base::string16 GoogleChromeDistribution::GetBrowserProgIdPrefix() {
61 return base::string16();
64 base::string16 GoogleChromeDistribution::GetBrowserProgIdDesc() {
65 return base::string16();
68 base::string16 GoogleChromeDistribution::GetInstallSubDir() {
69 return base::string16();
72 base::string16 GoogleChromeDistribution::GetPublisherName() {
73 return base::string16();
76 base::string16 GoogleChromeDistribution::GetAppDescription() {
77 return base::string16();
80 std::string GoogleChromeDistribution::GetSafeBrowsingName() {
84 std::string GoogleChromeDistribution::GetNetworkStatsServer() const {
88 base::string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) {
89 return base::string16();
92 base::string16 GoogleChromeDistribution::GetUninstallLinkName() {
93 return base::string16();
96 base::string16 GoogleChromeDistribution::GetUninstallRegPath() {
97 return base::string16();
100 base::string16 GoogleChromeDistribution::GetIconFilename() {
101 return base::string16();
104 bool GoogleChromeDistribution::GetCommandExecuteImplClsid(
105 base::string16* handler_class_uuid) {
109 bool GoogleChromeDistribution::AppHostIsSupported() {
113 void GoogleChromeDistribution::UpdateInstallStatus(bool system_install,
114 installer::ArchiveType archive_type,
115 installer::InstallStatus install_status) {
118 bool GoogleChromeDistribution::ShouldSetExperimentLabels() {
122 bool GoogleChromeDistribution::HasUserExperiments() {