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 #include "chrome/installer/util/chrome_binaries_operations.h" | 5 #include "chrome/installer/util/chrome_binaries_operations.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/installer/util/channel_info.h" | 10 #include "chrome/installer/util/channel_info.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 options->insert(kOptionMultiInstall); | 29 options->insert(kOptionMultiInstall); |
30 } | 30 } |
31 | 31 |
32 void ChromeBinariesOperations::AddKeyFiles( | 32 void ChromeBinariesOperations::AddKeyFiles( |
33 const std::set<base::string16>& options, | 33 const std::set<base::string16>& options, |
34 std::vector<base::FilePath>* key_files) const { | 34 std::vector<base::FilePath>* key_files) const { |
35 DCHECK(key_files); | 35 DCHECK(key_files); |
36 key_files->push_back(base::FilePath(installer::kChromeDll)); | 36 key_files->push_back(base::FilePath(installer::kChromeDll)); |
37 } | 37 } |
38 | 38 |
39 void ChromeBinariesOperations::AddComDllList( | |
40 const std::set<base::string16>& options, | |
41 std::vector<base::FilePath>* com_dll_list) const { | |
42 } | |
43 | |
44 void ChromeBinariesOperations::AppendProductFlags( | 39 void ChromeBinariesOperations::AppendProductFlags( |
45 const std::set<base::string16>& options, | 40 const std::set<base::string16>& options, |
46 base::CommandLine* cmd_line) const { | 41 base::CommandLine* cmd_line) const { |
47 DCHECK(cmd_line); | 42 DCHECK(cmd_line); |
48 | 43 |
49 DCHECK(options.find(kOptionMultiInstall) != options.end()); | 44 DCHECK(options.find(kOptionMultiInstall) != options.end()); |
50 | 45 |
51 // Add --multi-install if it isn't already there. | 46 // Add --multi-install if it isn't already there. |
52 if (!cmd_line->HasSwitch(switches::kMultiInstall)) | 47 if (!cmd_line->HasSwitch(switches::kMultiInstall)) |
53 cmd_line->AppendSwitch(switches::kMultiInstall); | 48 cmd_line->AppendSwitch(switches::kMultiInstall); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 void ChromeBinariesOperations::LaunchUserExperiment( | 82 void ChromeBinariesOperations::LaunchUserExperiment( |
88 const base::FilePath& setup_path, | 83 const base::FilePath& setup_path, |
89 const std::set<base::string16>& options, | 84 const std::set<base::string16>& options, |
90 InstallStatus status, | 85 InstallStatus status, |
91 bool system_level) const { | 86 bool system_level) const { |
92 // Not meaningful to have binaries run experiments. | 87 // Not meaningful to have binaries run experiments. |
93 NOTREACHED(); | 88 NOTREACHED(); |
94 } | 89 } |
95 | 90 |
96 } // namespace installer | 91 } // namespace installer |
OLD | NEW |