| 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" | |
| 18 #include "base/scoped_handle_win.h" | 17 #include "base/scoped_handle_win.h" |
| 19 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 20 #include "base/win_util.h" | 19 #include "base/win_util.h" |
| 21 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
| 22 #include "chrome/installer/setup/install.h" | 21 #include "chrome/installer/setup/install.h" |
| 23 #include "chrome/installer/setup/setup_constants.h" | 22 #include "chrome/installer/setup/setup_constants.h" |
| 24 #include "chrome/installer/setup/setup_util.h" | 23 #include "chrome/installer/setup/setup_util.h" |
| 25 #include "chrome/installer/setup/uninstall.h" | 24 #include "chrome/installer/setup/uninstall.h" |
| 26 #include "chrome/installer/util/browser_distribution.h" | 25 #include "chrome/installer/util/browser_distribution.h" |
| 27 #include "chrome/installer/util/delete_after_reboot_helper.h" | 26 #include "chrome/installer/util/delete_after_reboot_helper.h" |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 parsed_command_line.HasSwitch(installer_util::switches::kUninstall))) { | 735 parsed_command_line.HasSwitch(installer_util::switches::kUninstall))) { |
| 737 // Note that we allow the status installer_util::UNINSTALL_REQUIRES_REBOOT | 736 // 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 | 737 // to pass through, since this is only returned on uninstall which is never |
| 739 // invoked directly by Google Update. | 738 // invoked directly by Google Update. |
| 740 return_code = dist->GetInstallReturnCode(install_status); | 739 return_code = dist->GetInstallReturnCode(install_status); |
| 741 } | 740 } |
| 742 | 741 |
| 743 LOG(INFO) << "Installation complete, returning: " << return_code; | 742 LOG(INFO) << "Installation complete, returning: " << return_code; |
| 744 return return_code; | 743 return return_code; |
| 745 } | 744 } |
| OLD | NEW |