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 | 9 |
10 #include <shlobj.h> | 10 #include <shlobj.h> |
(...skipping 28 matching lines...) Expand all Loading... |
39 DeleteResult DeleteChromeDirectoriesIfEmpty( | 39 DeleteResult DeleteChromeDirectoriesIfEmpty( |
40 const base::FilePath& application_directory); | 40 const base::FilePath& application_directory); |
41 | 41 |
42 // This function removes all Chrome registration related keys. It returns true | 42 // This function removes all Chrome registration related keys. It returns true |
43 // if successful, otherwise false. The error code is set in |exit_code|. | 43 // if successful, otherwise false. The error code is set in |exit_code|. |
44 // |root| is the registry root (HKLM|HKCU) and |browser_entry_suffix| is the | 44 // |root| is the registry root (HKLM|HKCU) and |browser_entry_suffix| is the |
45 // suffix for default browser entry name in the registry (optional). | 45 // suffix for default browser entry name in the registry (optional). |
46 bool DeleteChromeRegistrationKeys(const InstallerState& installer_state, | 46 bool DeleteChromeRegistrationKeys(const InstallerState& installer_state, |
47 BrowserDistribution* dist, | 47 BrowserDistribution* dist, |
48 HKEY root, | 48 HKEY root, |
49 const string16& browser_entry_suffix, | 49 const base::string16& browser_entry_suffix, |
50 InstallStatus* exit_code); | 50 InstallStatus* exit_code); |
51 | 51 |
52 // Removes any legacy registry keys from earlier versions of Chrome that are no | 52 // Removes any legacy registry keys from earlier versions of Chrome that are no |
53 // longer needed. This is used during autoupdate since we don't do full | 53 // longer needed. This is used during autoupdate since we don't do full |
54 // uninstalls/reinstalls to update. | 54 // uninstalls/reinstalls to update. |
55 void RemoveChromeLegacyRegistryKeys(BrowserDistribution* dist, | 55 void RemoveChromeLegacyRegistryKeys(BrowserDistribution* dist, |
56 const string16& chrome_exe); | 56 const base::string16& chrome_exe); |
57 | 57 |
58 // This function uninstalls a product. Hence we came up with this awesome | 58 // This function uninstalls a product. Hence we came up with this awesome |
59 // name for it. | 59 // name for it. |
60 // | 60 // |
61 // original_state: The installation state of all products on the system. | 61 // original_state: The installation state of all products on the system. |
62 // installer_state: State associated with this operation. | 62 // installer_state: State associated with this operation. |
63 // setup_path: Path to the executable (setup.exe) as it will be copied | 63 // setup_path: Path to the executable (setup.exe) as it will be copied |
64 // to temp folder before deleting Chrome folder. | 64 // to temp folder before deleting Chrome folder. |
65 // dist: Represents the distribution to be uninstalled. | 65 // dist: Represents the distribution to be uninstalled. |
66 // remove_all: Remove all shared files, registry entries as well. | 66 // remove_all: Remove all shared files, registry entries as well. |
(...skipping 22 matching lines...) Expand all Loading... |
89 // uninstall_status: the uninstall status so far (may change during invocation). | 89 // uninstall_status: the uninstall status so far (may change during invocation). |
90 void CleanUpInstallationDirectoryAfterUninstall( | 90 void CleanUpInstallationDirectoryAfterUninstall( |
91 const InstallationState& original_state, | 91 const InstallationState& original_state, |
92 const InstallerState& installer_state, | 92 const InstallerState& installer_state, |
93 const CommandLine& cmd_line, | 93 const CommandLine& cmd_line, |
94 InstallStatus* uninstall_status); | 94 InstallStatus* uninstall_status); |
95 | 95 |
96 } // namespace installer | 96 } // namespace installer |
97 | 97 |
98 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H_ | 98 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H_ |
OLD | NEW |