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

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

Issue 10946030: Remove Chrome's ProgID from filetype associations at uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't disrupt system-level registration Created 8 years, 3 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 9
10 #include <shlobj.h> 10 #include <shlobj.h>
11 11
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "chrome/installer/util/util_constants.h" 13 #include "chrome/installer/util/util_constants.h"
14 14
15 class BrowserDistribution; 15 class BrowserDistribution;
16 class CommandLine; 16 class CommandLine;
17 class FilePath; 17 class FilePath;
18 18
19 namespace installer { 19 namespace installer {
20 20
21 class InstallationState; 21 class InstallationState;
22 class InstallerState; 22 class InstallerState;
23 class Product; 23 class Product;
24 24
25 // This function removes all Chrome registration related keys. It returns true 25 // This function removes all Chrome registration related keys. It returns true
26 // if successful, otherwise false. The error code is set in |exit_code|. 26 // if successful, otherwise false. The error code is set in |exit_code|.
27 // |root| is the registry root (HKLM|HKCU) and |browser_entry_suffix| is the 27 // |root| is the registry root (HKLM|HKCU) and |browser_entry_suffix| is the
28 // suffix for default browser entry name in the registry (optional). 28 // suffix for default browser entry name in the registry (optional).
29 bool DeleteChromeRegistrationKeys(BrowserDistribution* dist, HKEY root, 29 bool DeleteChromeRegistrationKeys(const InstallerState& installer_state,
30 BrowserDistribution* dist, HKEY root,
gab 2012/09/19 19:58:50 nit: wrap "HKEY root" on its own line.
30 const string16& browser_entry_suffix, 31 const string16& browser_entry_suffix,
31 const FilePath& target_path,
32 InstallStatus* exit_code); 32 InstallStatus* exit_code);
33 33
34 // Removes any legacy registry keys from earlier versions of Chrome that are no 34 // Removes any legacy registry keys from earlier versions of Chrome that are no
35 // longer needed. This is used during autoupdate since we don't do full 35 // longer needed. This is used during autoupdate since we don't do full
36 // uninstalls/reinstalls to update. 36 // uninstalls/reinstalls to update.
37 void RemoveChromeLegacyRegistryKeys(BrowserDistribution* dist, 37 void RemoveChromeLegacyRegistryKeys(BrowserDistribution* dist,
38 const string16& chrome_exe); 38 const string16& chrome_exe);
39 39
40 // This function uninstalls a product. Hence we came up with this awesome 40 // This function uninstalls a product. Hence we came up with this awesome
41 // name for it. 41 // name for it.
(...skipping 13 matching lines...) Expand all
55 const InstallerState& installer_state, 55 const InstallerState& installer_state,
56 const FilePath& setup_path, 56 const FilePath& setup_path,
57 const Product& dist, 57 const Product& dist,
58 bool remove_all, 58 bool remove_all,
59 bool force_uninstall, 59 bool force_uninstall,
60 const CommandLine& cmd_line); 60 const CommandLine& cmd_line);
61 61
62 } // namespace installer 62 } // namespace installer
63 63
64 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H_ 64 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698