| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file defines dummy implementation of several functions from the | 5 // This file defines dummy implementation of several functions from the |
| 6 // BrowserDistribution class for Google Chrome. These functions allow 64-bit | 6 // BrowserDistribution class for Google Chrome. These functions allow 64-bit |
| 7 // Windows Chrome binary to build successfully. Since this binary is only used | 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 | 8 // for Native Client support, most of the install/uninstall functionality is not |
| 9 // necessary there. | 9 // necessary there. |
| 10 | 10 |
| 11 #include "chrome/installer/util/google_chrome_distribution.h" | 11 #include "chrome/installer/util/google_chrome_distribution.h" |
| 12 | 12 |
| 13 #include <windows.h> | 13 #include <windows.h> |
| 14 | 14 |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 | 18 |
| 19 GoogleChromeDistribution::GoogleChromeDistribution() | 19 GoogleChromeDistribution::GoogleChromeDistribution() |
| 20 : BrowserDistribution(CHROME_BROWSER) { | 20 : BrowserDistribution(CHROME_BROWSER) { |
| 21 } | 21 } |
| 22 | 22 |
| 23 void GoogleChromeDistribution::DoPostUninstallOperations( | 23 void GoogleChromeDistribution::DoPostUninstallOperations( |
| 24 const Version& version, | 24 const Version& version, |
| 25 const base::FilePath& local_data_path, | 25 const base::FilePath& local_data_path, |
| 26 const string16& distribution_data) { | 26 const base::string16& distribution_data) { |
| 27 } | 27 } |
| 28 | 28 |
| 29 string16 GoogleChromeDistribution::GetActiveSetupGuid() { | 29 base::string16 GoogleChromeDistribution::GetActiveSetupGuid() { |
| 30 NOTREACHED(); | 30 NOTREACHED(); |
| 31 return string16(); | 31 return base::string16(); |
| 32 } | 32 } |
| 33 | 33 |
| 34 string16 GoogleChromeDistribution::GetAppGuid() { | 34 base::string16 GoogleChromeDistribution::GetAppGuid() { |
| 35 NOTREACHED(); | 35 NOTREACHED(); |
| 36 return string16(); | 36 return base::string16(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 string16 GoogleChromeDistribution::GetBaseAppName() { | 39 base::string16 GoogleChromeDistribution::GetBaseAppName() { |
| 40 NOTREACHED(); | 40 NOTREACHED(); |
| 41 return string16(); | 41 return base::string16(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 string16 GoogleChromeDistribution::GetShortcutName(ShortcutType shortcut_type) { | 44 base::string16 GoogleChromeDistribution::GetShortcutName( |
| 45 ShortcutType shortcut_type) { |
| 45 NOTREACHED(); | 46 NOTREACHED(); |
| 46 return string16(); | 47 return base::string16(); |
| 47 } | 48 } |
| 48 | 49 |
| 49 int GoogleChromeDistribution::GetIconIndex(ShortcutType shortcut_type) { | 50 int GoogleChromeDistribution::GetIconIndex(ShortcutType shortcut_type) { |
| 50 NOTREACHED(); | 51 NOTREACHED(); |
| 51 return 0; | 52 return 0; |
| 52 } | 53 } |
| 53 | 54 |
| 54 string16 GoogleChromeDistribution::GetBaseAppId() { | 55 base::string16 GoogleChromeDistribution::GetBaseAppId() { |
| 55 NOTREACHED(); | 56 NOTREACHED(); |
| 56 return string16(); | 57 return base::string16(); |
| 57 } | 58 } |
| 58 | 59 |
| 59 string16 GoogleChromeDistribution::GetBrowserProgIdPrefix() { | 60 base::string16 GoogleChromeDistribution::GetBrowserProgIdPrefix() { |
| 60 NOTREACHED(); | 61 NOTREACHED(); |
| 61 return string16(); | 62 return base::string16(); |
| 62 } | 63 } |
| 63 | 64 |
| 64 string16 GoogleChromeDistribution::GetBrowserProgIdDesc() { | 65 base::string16 GoogleChromeDistribution::GetBrowserProgIdDesc() { |
| 65 NOTREACHED(); | 66 NOTREACHED(); |
| 66 return string16(); | 67 return base::string16(); |
| 67 } | 68 } |
| 68 | 69 |
| 69 string16 GoogleChromeDistribution::GetInstallSubDir() { | 70 base::string16 GoogleChromeDistribution::GetInstallSubDir() { |
| 70 NOTREACHED(); | 71 NOTREACHED(); |
| 71 return string16(); | 72 return base::string16(); |
| 72 } | 73 } |
| 73 | 74 |
| 74 string16 GoogleChromeDistribution::GetPublisherName() { | 75 base::string16 GoogleChromeDistribution::GetPublisherName() { |
| 75 NOTREACHED(); | 76 NOTREACHED(); |
| 76 return string16(); | 77 return base::string16(); |
| 77 } | 78 } |
| 78 | 79 |
| 79 string16 GoogleChromeDistribution::GetAppDescription() { | 80 base::string16 GoogleChromeDistribution::GetAppDescription() { |
| 80 NOTREACHED(); | 81 NOTREACHED(); |
| 81 return string16(); | 82 return base::string16(); |
| 82 } | 83 } |
| 83 | 84 |
| 84 std::string GoogleChromeDistribution::GetSafeBrowsingName() { | 85 std::string GoogleChromeDistribution::GetSafeBrowsingName() { |
| 85 NOTREACHED(); | 86 NOTREACHED(); |
| 86 return std::string(); | 87 return std::string(); |
| 87 } | 88 } |
| 88 | 89 |
| 89 string16 GoogleChromeDistribution::GetStateKey() { | 90 base::string16 GoogleChromeDistribution::GetStateKey() { |
| 90 NOTREACHED(); | 91 NOTREACHED(); |
| 91 return string16(); | 92 return base::string16(); |
| 92 } | 93 } |
| 93 | 94 |
| 94 string16 GoogleChromeDistribution::GetStateMediumKey() { | 95 base::string16 GoogleChromeDistribution::GetStateMediumKey() { |
| 95 NOTREACHED(); | 96 NOTREACHED(); |
| 96 return string16(); | 97 return base::string16(); |
| 97 } | 98 } |
| 98 | 99 |
| 99 std::string GoogleChromeDistribution::GetNetworkStatsServer() const { | 100 std::string GoogleChromeDistribution::GetNetworkStatsServer() const { |
| 100 NOTREACHED(); | 101 NOTREACHED(); |
| 101 return std::string(); | 102 return std::string(); |
| 102 } | 103 } |
| 103 | 104 |
| 104 std::string GoogleChromeDistribution::GetHttpPipeliningTestServer() const { | 105 std::string GoogleChromeDistribution::GetHttpPipeliningTestServer() const { |
| 105 NOTREACHED(); | 106 NOTREACHED(); |
| 106 return std::string(); | 107 return std::string(); |
| 107 } | 108 } |
| 108 | 109 |
| 109 string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) { | 110 base::string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) { |
| 110 NOTREACHED(); | 111 NOTREACHED(); |
| 111 return string16(); | 112 return base::string16(); |
| 112 } | 113 } |
| 113 | 114 |
| 114 string16 GoogleChromeDistribution::GetUninstallLinkName() { | 115 base::string16 GoogleChromeDistribution::GetUninstallLinkName() { |
| 115 NOTREACHED(); | 116 NOTREACHED(); |
| 116 return string16(); | 117 return base::string16(); |
| 117 } | 118 } |
| 118 | 119 |
| 119 string16 GoogleChromeDistribution::GetUninstallRegPath() { | 120 base::string16 GoogleChromeDistribution::GetUninstallRegPath() { |
| 120 NOTREACHED(); | 121 NOTREACHED(); |
| 121 return string16(); | 122 return base::string16(); |
| 122 } | 123 } |
| 123 | 124 |
| 124 string16 GoogleChromeDistribution::GetVersionKey() { | 125 base::string16 GoogleChromeDistribution::GetVersionKey() { |
| 125 NOTREACHED(); | 126 NOTREACHED(); |
| 126 return string16(); | 127 return base::string16(); |
| 127 } | 128 } |
| 128 | 129 |
| 129 string16 GoogleChromeDistribution::GetIconFilename() { | 130 base::string16 GoogleChromeDistribution::GetIconFilename() { |
| 130 NOTREACHED(); | 131 NOTREACHED(); |
| 131 return string16(); | 132 return base::string16(); |
| 132 } | 133 } |
| 133 | 134 |
| 134 bool GoogleChromeDistribution::GetCommandExecuteImplClsid( | 135 bool GoogleChromeDistribution::GetCommandExecuteImplClsid( |
| 135 string16* handler_class_uuid) { | 136 base::string16* handler_class_uuid) { |
| 136 NOTREACHED(); | 137 NOTREACHED(); |
| 137 return false; | 138 return false; |
| 138 } | 139 } |
| 139 | 140 |
| 140 bool GoogleChromeDistribution::AppHostIsSupported() { | 141 bool GoogleChromeDistribution::AppHostIsSupported() { |
| 141 NOTREACHED(); | 142 NOTREACHED(); |
| 142 return false; | 143 return false; |
| 143 } | 144 } |
| 144 | 145 |
| 145 void GoogleChromeDistribution::UpdateInstallStatus(bool system_install, | 146 void GoogleChromeDistribution::UpdateInstallStatus(bool system_install, |
| 146 installer::ArchiveType archive_type, | 147 installer::ArchiveType archive_type, |
| 147 installer::InstallStatus install_status) { | 148 installer::InstallStatus install_status) { |
| 148 NOTREACHED(); | 149 NOTREACHED(); |
| 149 } | 150 } |
| 150 | 151 |
| 151 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { | 152 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { |
| 152 NOTREACHED(); | 153 NOTREACHED(); |
| 153 return false; | 154 return false; |
| 154 } | 155 } |
| 155 | 156 |
| 156 bool GoogleChromeDistribution::HasUserExperiments() { | 157 bool GoogleChromeDistribution::HasUserExperiments() { |
| 157 NOTREACHED(); | 158 NOTREACHED(); |
| 158 return false; | 159 return false; |
| 159 } | 160 } |
| OLD | NEW |