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

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: oops 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,
31 HKEY root,
30 const string16& browser_entry_suffix, 32 const string16& browser_entry_suffix,
31 const FilePath& target_path,
32 InstallStatus* exit_code); 33 InstallStatus* exit_code);
33 34
34 // 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
35 // 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
36 // uninstalls/reinstalls to update. 37 // uninstalls/reinstalls to update.
37 void RemoveChromeLegacyRegistryKeys(BrowserDistribution* dist, 38 void RemoveChromeLegacyRegistryKeys(BrowserDistribution* dist,
38 const string16& chrome_exe); 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.
(...skipping 13 matching lines...) Expand all
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