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 #include "chrome/installer/util/app_registration_data.h" | 18 #include "chrome/installer/util/app_registration_data.h" |
19 #include "chrome/installer/util/non_updating_app_registration_data.h" | 19 #include "chrome/installer/util/non_updating_app_registration_data.h" |
20 | 20 |
21 GoogleChromeDistribution::GoogleChromeDistribution() | 21 GoogleChromeDistribution::GoogleChromeDistribution() |
22 : BrowserDistribution(CHROME_BROWSER, | 22 : BrowserDistribution(CHROME_BROWSER, |
23 make_scoped_ptr( | 23 make_scoped_ptr(new NonUpdatingAppRegistrationData( |
24 new NonUpdatingAppRegistrationData(base::string16()))) { | 24 base::string16())).Pass()) { |
25 } | 25 } |
26 | 26 |
27 GoogleChromeDistribution::GoogleChromeDistribution( | 27 GoogleChromeDistribution::GoogleChromeDistribution( |
28 scoped_ptr<AppRegistrationData> app_reg_data) | 28 scoped_ptr<AppRegistrationData> app_reg_data) |
29 : BrowserDistribution(CHROME_BROWSER, app_reg_data.Pass()) { | 29 : BrowserDistribution(CHROME_BROWSER, app_reg_data.Pass()) { |
30 } | 30 } |
31 | 31 |
32 void GoogleChromeDistribution::DoPostUninstallOperations( | 32 void GoogleChromeDistribution::DoPostUninstallOperations( |
33 const Version& version, | 33 const Version& version, |
34 const base::FilePath& local_data_path, | 34 const base::FilePath& local_data_path, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 installer::InstallStatus install_status) { | 114 installer::InstallStatus install_status) { |
115 } | 115 } |
116 | 116 |
117 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { | 117 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { |
118 return false; | 118 return false; |
119 } | 119 } |
120 | 120 |
121 bool GoogleChromeDistribution::HasUserExperiments() { | 121 bool GoogleChromeDistribution::HasUserExperiments() { |
122 return false; | 122 return false; |
123 } | 123 } |
OLD | NEW |