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 #include "chrome/installer/util/chrome_browser_sxs_operations.h" | 5 #include "chrome/installer/util/chrome_browser_sxs_operations.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/installer/util/util_constants.h" | 9 #include "chrome/installer/util/util_constants.h" |
10 | 10 |
11 namespace installer { | 11 namespace installer { |
12 | 12 |
13 void ChromeBrowserSxSOperations::AppendProductFlags( | 13 void ChromeBrowserSxSOperations::AppendUninstallFlags( |
14 const std::set<std::wstring>& options, | 14 const std::set<std::wstring>& options, |
15 CommandLine* uninstall_command) const { | 15 CommandLine* cmd_line) const { |
16 DCHECK(uninstall_command); | 16 DCHECK(cmd_line); |
17 | 17 |
18 uninstall_command->AppendSwitch(switches::kChromeSxS); | 18 cmd_line->AppendSwitch(switches::kChromeSxS); |
19 ChromeBrowserOperations::AppendProductFlags(options, uninstall_command); | 19 ChromeBrowserOperations::AppendUninstallFlags(options, cmd_line); |
| 20 } |
| 21 |
| 22 void ChromeBrowserSxSOperations::AppendRenameFlags( |
| 23 const std::set<std::wstring>& options, |
| 24 CommandLine* cmd_line) const { |
| 25 DCHECK(cmd_line); |
| 26 |
| 27 cmd_line->AppendSwitch(switches::kChromeSxS); |
| 28 ChromeBrowserOperations::AppendRenameFlags(options, cmd_line); |
20 } | 29 } |
21 | 30 |
22 } // namespace installer | 31 } // namespace installer |
OLD | NEW |