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 <utility> |
| 16 |
15 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
16 #include "base/logging.h" | 18 #include "base/logging.h" |
17 #include "base/values.h" | 19 #include "base/values.h" |
18 #include "chrome/installer/util/app_registration_data.h" | 20 #include "chrome/installer/util/app_registration_data.h" |
19 #include "chrome/installer/util/non_updating_app_registration_data.h" | 21 #include "chrome/installer/util/non_updating_app_registration_data.h" |
20 | 22 |
21 GoogleChromeDistribution::GoogleChromeDistribution() | 23 GoogleChromeDistribution::GoogleChromeDistribution() |
22 : BrowserDistribution( | 24 : BrowserDistribution( |
23 CHROME_BROWSER, | 25 CHROME_BROWSER, |
24 scoped_ptr<AppRegistrationData>( | 26 scoped_ptr<AppRegistrationData>( |
25 new NonUpdatingAppRegistrationData(base::string16()))) { | 27 new NonUpdatingAppRegistrationData(base::string16()))) { |
26 } | 28 } |
27 | 29 |
28 GoogleChromeDistribution::GoogleChromeDistribution( | 30 GoogleChromeDistribution::GoogleChromeDistribution( |
29 scoped_ptr<AppRegistrationData> app_reg_data) | 31 scoped_ptr<AppRegistrationData> app_reg_data) |
30 : BrowserDistribution(CHROME_BROWSER, app_reg_data.Pass()) { | 32 : BrowserDistribution(CHROME_BROWSER, std::move(app_reg_data)) {} |
31 } | |
32 | 33 |
33 void GoogleChromeDistribution::DoPostUninstallOperations( | 34 void GoogleChromeDistribution::DoPostUninstallOperations( |
34 const Version& version, | 35 const Version& version, |
35 const base::FilePath& local_data_path, | 36 const base::FilePath& local_data_path, |
36 const base::string16& distribution_data) { | 37 const base::string16& distribution_data) { |
37 } | 38 } |
38 | 39 |
39 base::string16 GoogleChromeDistribution::GetActiveSetupGuid() { | 40 base::string16 GoogleChromeDistribution::GetActiveSetupGuid() { |
40 return base::string16(); | 41 return base::string16(); |
41 } | 42 } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 installer::InstallStatus install_status) { | 107 installer::InstallStatus install_status) { |
107 } | 108 } |
108 | 109 |
109 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { | 110 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { |
110 return false; | 111 return false; |
111 } | 112 } |
112 | 113 |
113 bool GoogleChromeDistribution::HasUserExperiments() { | 114 bool GoogleChromeDistribution::HasUserExperiments() { |
114 return false; | 115 return false; |
115 } | 116 } |
OLD | NEW |