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 21 GoogleChromeDistribution::GoogleChromeDistribution() 22 : BrowserDistribution( 23 CHROME_BROWSER, 24 scoped_ptr<AppRegistrationData>( 25 new NonUpdatingAppRegistrationData(base::string16()))) { 26 } 27 28 GoogleChromeDistribution::GoogleChromeDistribution( 29 scoped_ptr<AppRegistrationData> app_reg_data) 30 : BrowserDistribution(CHROME_BROWSER, app_reg_data.Pass()) { 31 } 32 33 void GoogleChromeDistribution::DoPostUninstallOperations( 34 const Version& version, 35 const base::FilePath& local_data_path, 36 const base::string16& distribution_data) { 37 } 38 39 base::string16 GoogleChromeDistribution::GetActiveSetupGuid() { 40 return base::string16(); 41 } 42 43 base::string16 GoogleChromeDistribution::GetBaseAppName() { 44 return base::string16(); 45 } 46 47 base::string16 GoogleChromeDistribution::GetShortcutName( 48 ShortcutType shortcut_type) { 49 return base::string16(); 50 } 51 52 int GoogleChromeDistribution::GetIconIndex(ShortcutType shortcut_type) { 53 return 0; 54 } 55 56 base::string16 GoogleChromeDistribution::GetBaseAppId() { 57 return base::string16(); 58 } 59 60 base::string16 GoogleChromeDistribution::GetBrowserProgIdPrefix() { 61 return base::string16(); 62 } 63 64 base::string16 GoogleChromeDistribution::GetBrowserProgIdDesc() { 65 return base::string16(); 66 } 67 68 base::string16 GoogleChromeDistribution::GetInstallSubDir() { 69 return base::string16(); 70 } 71 72 base::string16 GoogleChromeDistribution::GetPublisherName() { 73 return base::string16(); 74 } 75 76 base::string16 GoogleChromeDistribution::GetAppDescription() { 77 return base::string16(); 78 } 79 80 std::string GoogleChromeDistribution::GetSafeBrowsingName() { 81 return std::string(); 82 } 83 84 std::string GoogleChromeDistribution::GetNetworkStatsServer() const { 85 return std::string(); 86 } 87 88 base::string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) { 89 return base::string16(); 90 } 91 92 base::string16 GoogleChromeDistribution::GetUninstallLinkName() { 93 return base::string16(); 94 } 95 96 base::string16 GoogleChromeDistribution::GetUninstallRegPath() { 97 return base::string16(); 98 } 99 100 base::string16 GoogleChromeDistribution::GetIconFilename() { 101 return base::string16(); 102 } 103 104 bool GoogleChromeDistribution::GetCommandExecuteImplClsid( 105 base::string16* handler_class_uuid) { 106 return false; 107 } 108 109 bool GoogleChromeDistribution::AppHostIsSupported() { 110 return false; 111 } 112 113 void GoogleChromeDistribution::UpdateInstallStatus(bool system_install, 114 installer::ArchiveType archive_type, 115 installer::InstallStatus install_status) { 116 } 117 118 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { 119 return false; 120 } 121 122 bool GoogleChromeDistribution::HasUserExperiments() { 123 return false; 124 } 125