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