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 // 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 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 // |root| is the registry root (HKLM|HKCU) and |browser_entry_suffix| is the | 28 // |root| is the registry root (HKLM|HKCU) and |browser_entry_suffix| is the |
29 // suffix for default browser entry name in the registry (optional). | 29 // suffix for default browser entry name in the registry (optional). |
30 bool DeleteChromeRegistrationKeys(BrowserDistribution* dist, HKEY root, | 30 bool DeleteChromeRegistrationKeys(BrowserDistribution* dist, HKEY root, |
31 const string16& browser_entry_suffix, | 31 const string16& browser_entry_suffix, |
32 const FilePath& target_path, | 32 const FilePath& target_path, |
33 InstallStatus* exit_code); | 33 InstallStatus* exit_code); |
34 | 34 |
35 // Removes any legacy registry keys from earlier versions of Chrome that are no | 35 // Removes any legacy registry keys from earlier versions of Chrome that are no |
36 // longer needed. This is used during autoupdate since we don't do full | 36 // longer needed. This is used during autoupdate since we don't do full |
37 // uninstalls/reinstalls to update. | 37 // uninstalls/reinstalls to update. |
38 void RemoveChromeLegacyRegistryKeys(BrowserDistribution* dist); | 38 void RemoveChromeLegacyRegistryKeys(BrowserDistribution* dist, |
| 39 const string16& chrome_exe); |
39 | 40 |
40 // This function uninstalls a product. Hence we came up with this awesome | 41 // This function uninstalls a product. Hence we came up with this awesome |
41 // name for it. | 42 // name for it. |
42 // | 43 // |
43 // original_state: The installation state of all products on the system. | 44 // original_state: The installation state of all products on the system. |
44 // installer_state: State associated with this operation. | 45 // installer_state: State associated with this operation. |
45 // setup_path: Path to the executable (setup.exe) as it will be copied | 46 // setup_path: Path to the executable (setup.exe) as it will be copied |
46 // to temp folder before deleting Chrome folder. | 47 // to temp folder before deleting Chrome folder. |
47 // dist: Represents the distribution to be uninstalled. | 48 // dist: Represents the distribution to be uninstalled. |
48 // remove_all: Remove all shared files, registry entries as well. | 49 // remove_all: Remove all shared files, registry entries as well. |
49 // force_uninstall: Uninstall without prompting for user confirmation or | 50 // force_uninstall: Uninstall without prompting for user confirmation or |
50 // any checks for Chrome running. | 51 // any checks for Chrome running. |
51 // cmd_line: CommandLine that contains information about the command that | 52 // cmd_line: CommandLine that contains information about the command that |
52 // was used to launch current uninstaller. | 53 // was used to launch current uninstaller. |
53 installer::InstallStatus UninstallProduct( | 54 installer::InstallStatus UninstallProduct( |
54 const InstallationState& original_state, | 55 const InstallationState& original_state, |
55 const InstallerState& installer_state, | 56 const InstallerState& installer_state, |
56 const FilePath& setup_path, | 57 const FilePath& setup_path, |
57 const Product& dist, | 58 const Product& dist, |
58 bool remove_all, | 59 bool remove_all, |
59 bool force_uninstall, | 60 bool force_uninstall, |
60 const CommandLine& cmd_line); | 61 const CommandLine& cmd_line); |
61 | 62 |
62 } // namespace installer | 63 } // namespace installer |
63 | 64 |
64 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H_ | 65 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H_ |
OLD | NEW |