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