OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 | 17 |
18 GoogleChromeDistribution::GoogleChromeDistribution( | 18 GoogleChromeDistribution::GoogleChromeDistribution() |
19 const installer::MasterPreferences& prefs) | 19 : BrowserDistribution(CHROME_BROWSER) { |
20 : BrowserDistribution(prefs) { | |
21 } | 20 } |
22 | 21 |
23 void GoogleChromeDistribution::DoPostUninstallOperations( | 22 void GoogleChromeDistribution::DoPostUninstallOperations( |
24 const Version& version, | 23 const Version& version, |
25 const FilePath& local_data_path, | 24 const FilePath& local_data_path, |
26 const std::wstring& distribution_data) { | 25 const std::wstring& distribution_data) { |
27 } | 26 } |
28 | 27 |
29 std::wstring GoogleChromeDistribution::GetAppGuid() { | 28 std::wstring GoogleChromeDistribution::GetAppGuid() { |
30 NOTREACHED(); | 29 NOTREACHED(); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 NOTREACHED(); | 106 NOTREACHED(); |
108 } | 107 } |
109 | 108 |
110 void GoogleChromeDistribution::LaunchUserExperiment( | 109 void GoogleChromeDistribution::LaunchUserExperiment( |
111 installer::InstallStatus status, const Version& version, | 110 installer::InstallStatus status, const Version& version, |
112 const installer::Product& installation, bool system_level) { | 111 const installer::Product& installation, bool system_level) { |
113 NOTREACHED(); | 112 NOTREACHED(); |
114 } | 113 } |
115 | 114 |
116 void GoogleChromeDistribution::InactiveUserToastExperiment(int flavor, | 115 void GoogleChromeDistribution::InactiveUserToastExperiment(int flavor, |
117 const installer::Product& installation) { | 116 const installer::Product& installation, |
| 117 const FilePath& application_path) { |
118 NOTREACHED(); | 118 NOTREACHED(); |
119 } | 119 } |
120 | 120 |
121 bool GoogleChromeDistribution::ExtractUninstallMetricsFromFile( | 121 bool GoogleChromeDistribution::ExtractUninstallMetricsFromFile( |
122 const FilePath& file_path, std::wstring* uninstall_metrics_string) { | 122 const FilePath& file_path, std::wstring* uninstall_metrics_string) { |
123 NOTREACHED(); | 123 NOTREACHED(); |
124 return false; | 124 return false; |
125 } | 125 } |
126 | 126 |
127 bool GoogleChromeDistribution::ExtractUninstallMetrics( | 127 bool GoogleChromeDistribution::ExtractUninstallMetrics( |
128 const DictionaryValue& root, std::wstring* uninstall_metrics_string) { | 128 const DictionaryValue& root, std::wstring* uninstall_metrics_string) { |
129 NOTREACHED(); | 129 NOTREACHED(); |
130 return false; | 130 return false; |
131 } | 131 } |
132 | 132 |
133 bool GoogleChromeDistribution::BuildUninstallMetricsString( | 133 bool GoogleChromeDistribution::BuildUninstallMetricsString( |
134 DictionaryValue* uninstall_metrics_dict, std::wstring* metrics) { | 134 DictionaryValue* uninstall_metrics_dict, std::wstring* metrics) { |
135 NOTREACHED(); | 135 NOTREACHED(); |
136 return false; | 136 return false; |
137 } | 137 } |
138 | |
139 bool GoogleChromeDistribution::SetChannelFlags( | |
140 bool set, | |
141 installer::ChannelInfo* channel_info) { | |
142 NOTREACHED(); | |
143 return false; | |
144 } | |
OLD | NEW |