| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 // This file declares Chrome uninstall related functions. | 5 // This file declares Chrome uninstall related functions. |
| 6 | 6 |
| 7 #ifndef CHROME_INSTALLER_SETUP_UNINSTALL_H__ | 7 #ifndef CHROME_INSTALLER_SETUP_UNINSTALL_H_ |
| 8 #define CHROME_INSTALLER_SETUP_UNINSTALL_H__ | 8 #define CHROME_INSTALLER_SETUP_UNINSTALL_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include <shlobj.h> | 12 #include <shlobj.h> |
| 13 | 13 |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "chrome/installer/util/util_constants.h" | 15 #include "chrome/installer/util/util_constants.h" |
| 16 #include "chrome/installer/util/version.h" | 16 #include "chrome/installer/util/version.h" |
| 17 | 17 |
| 18 namespace installer_setup { | 18 namespace installer_setup { |
| 19 // This function removes all Chrome registration related keys. It returns true | 19 // This function removes all Chrome registration related keys. It returns true |
| 20 // if successful, otherwise false. The error code is set in |exit_code|. | 20 // if successful, otherwise false. The error code is set in |exit_code|. |
| 21 // |root| is the registry root (HKLM|HKCU) | 21 // |root| is the registry root (HKLM|HKCU) and |browser_entry_suffix| is the |
| 22 // suffix for default browser entry name in the registry (optional). |
| 22 bool DeleteChromeRegistrationKeys(HKEY root, | 23 bool DeleteChromeRegistrationKeys(HKEY root, |
| 24 const std::wstring& browser_entry_suffix, |
| 23 installer_util::InstallStatus& exit_code); | 25 installer_util::InstallStatus& exit_code); |
| 24 | 26 |
| 25 // This function uninstalls Chrome. | 27 // This function uninstalls Chrome. |
| 26 // | 28 // |
| 27 // exe_path: Path to the executable (setup.exe) as it will be copied | 29 // exe_path: Path to the executable (setup.exe) as it will be copied |
| 28 // to temp folder before deleting Chrome folder. | 30 // to temp folder before deleting Chrome folder. |
| 29 // system_uninstall: if true, the function uninstalls Chrome installed system | 31 // system_uninstall: if true, the function uninstalls Chrome installed system |
| 30 // wise. otherwise, it uninstalls Chrome installed for the | 32 // wise. otherwise, it uninstalls Chrome installed for the |
| 31 // current user. | 33 // current user. |
| 32 // remove_all: Remove all shared files, registry entries as well. | 34 // remove_all: Remove all shared files, registry entries as well. |
| 33 // force_uninstall: Uninstall without prompting for user confirmation or | 35 // force_uninstall: Uninstall without prompting for user confirmation or |
| 34 // any checks for Chrome running. | 36 // any checks for Chrome running. |
| 35 // cmd_line: CommandLine that contains information about the command that | 37 // cmd_line: CommandLine that contains information about the command that |
| 36 // was used to launch current uninstaller. | 38 // was used to launch current uninstaller. |
| 37 // cmd_params: Command line parameters passed to the uninstaller. | 39 // cmd_params: Command line parameters passed to the uninstaller. |
| 38 installer_util::InstallStatus UninstallChrome( | 40 installer_util::InstallStatus UninstallChrome( |
| 39 const std::wstring& exe_path, bool system_uninstall, | 41 const std::wstring& exe_path, bool system_uninstall, |
| 40 bool remove_all, bool force_uninstall, | 42 bool remove_all, bool force_uninstall, |
| 41 const CommandLine& cmd_line, const wchar_t* cmd_params); | 43 const CommandLine& cmd_line, const wchar_t* cmd_params); |
| 42 | 44 |
| 43 } // namespace installer_setup | 45 } // namespace installer_setup |
| 44 | 46 |
| 45 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H__ | 47 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H_ |
| OLD | NEW |