OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <string> | 5 #include <string> |
6 #include <windows.h> | 6 #include <windows.h> |
7 #include <msi.h> | 7 #include <msi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 | 10 |
11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/process_util.h" | 16 #include "base/process_util.h" |
17 #include "base/registry.h" | 17 #include "base/registry.h" |
18 #include "base/scoped_handle_win.h" | 18 #include "base/scoped_handle_win.h" |
19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
| 20 #include "base/utf_string_conversions.h" |
20 #include "base/win_util.h" | 21 #include "base/win_util.h" |
21 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
22 #include "chrome/installer/setup/install.h" | 23 #include "chrome/installer/setup/install.h" |
23 #include "chrome/installer/setup/setup_constants.h" | 24 #include "chrome/installer/setup/setup_constants.h" |
24 #include "chrome/installer/setup/setup_util.h" | 25 #include "chrome/installer/setup/setup_util.h" |
25 #include "chrome/installer/setup/uninstall.h" | 26 #include "chrome/installer/setup/uninstall.h" |
26 #include "chrome/installer/util/browser_distribution.h" | 27 #include "chrome/installer/util/browser_distribution.h" |
27 #include "chrome/installer/util/delete_after_reboot_helper.h" | 28 #include "chrome/installer/util/delete_after_reboot_helper.h" |
28 #include "chrome/installer/util/delete_tree_work_item.h" | 29 #include "chrome/installer/util/delete_tree_work_item.h" |
29 #include "chrome/installer/util/helper.h" | 30 #include "chrome/installer/util/helper.h" |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 parsed_command_line.HasSwitch(installer_util::switches::kUninstall))) { | 737 parsed_command_line.HasSwitch(installer_util::switches::kUninstall))) { |
737 // Note that we allow the status installer_util::UNINSTALL_REQUIRES_REBOOT | 738 // Note that we allow the status installer_util::UNINSTALL_REQUIRES_REBOOT |
738 // to pass through, since this is only returned on uninstall which is never | 739 // to pass through, since this is only returned on uninstall which is never |
739 // invoked directly by Google Update. | 740 // invoked directly by Google Update. |
740 return_code = dist->GetInstallReturnCode(install_status); | 741 return_code = dist->GetInstallReturnCode(install_status); |
741 } | 742 } |
742 | 743 |
743 LOG(INFO) << "Installation complete, returning: " << return_code; | 744 LOG(INFO) << "Installation complete, returning: " << return_code; |
744 return return_code; | 745 return return_code; |
745 } | 746 } |
OLD | NEW |