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"
19 GoogleChromeDistribution::GoogleChromeDistribution()
20 : BrowserDistribution(CHROME_BROWSER) {
23 void GoogleChromeDistribution::DoPostUninstallOperations(
24 const Version& version,
25 const base::FilePath& local_data_path,
26 const string16& distribution_data) {
29 string16 GoogleChromeDistribution::GetActiveSetupGuid() {
34 string16 GoogleChromeDistribution::GetAppGuid() {
39 string16 GoogleChromeDistribution::GetBaseAppName() {
44 string16 GoogleChromeDistribution::GetShortcutName(ShortcutType shortcut_type) {
49 int GoogleChromeDistribution::GetIconIndex(ShortcutType shortcut_type) {
54 string16 GoogleChromeDistribution::GetBaseAppId() {
59 string16 GoogleChromeDistribution::GetBrowserProgIdPrefix() {
64 string16 GoogleChromeDistribution::GetBrowserProgIdDesc() {
69 string16 GoogleChromeDistribution::GetInstallSubDir() {
74 string16 GoogleChromeDistribution::GetPublisherName() {
79 string16 GoogleChromeDistribution::GetAppDescription() {
84 std::string GoogleChromeDistribution::GetSafeBrowsingName() {
89 string16 GoogleChromeDistribution::GetStateKey() {
94 string16 GoogleChromeDistribution::GetStateMediumKey() {
99 std::string GoogleChromeDistribution::GetNetworkStatsServer() const {
101 return std::string();
104 std::string GoogleChromeDistribution::GetHttpPipeliningTestServer() const {
106 return std::string();
109 string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) {
114 string16 GoogleChromeDistribution::GetUninstallLinkName() {
119 string16 GoogleChromeDistribution::GetUninstallRegPath() {
124 string16 GoogleChromeDistribution::GetVersionKey() {
129 string16 GoogleChromeDistribution::GetIconFilename() {
134 bool GoogleChromeDistribution::GetCommandExecuteImplClsid(
135 string16* handler_class_uuid) {
140 bool GoogleChromeDistribution::AppHostIsSupported() {
145 void GoogleChromeDistribution::UpdateInstallStatus(bool system_install,
146 installer::ArchiveType archive_type,
147 installer::InstallStatus install_status) {
151 bool GoogleChromeDistribution::ShouldSetExperimentLabels() {
156 bool GoogleChromeDistribution::HasUserExperiments() {