Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: chrome/installer/setup/uninstall.h

Issue 10451074: Always suffix ChromeHTML entries on Windows for user-level installs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments + introduce ShellUtil::QuickIsChromeRegistered() Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698