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

Unified Diff: chrome/installer/setup/setup_util.h

Issue 1327793004: Delete Chrome state in registry on uninstall when the user profile is being deleted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/installer/setup/setup_util.cc » ('j') | chrome/installer/setup/setup_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/setup_util.h
diff --git a/chrome/installer/setup/setup_util.h b/chrome/installer/setup/setup_util.h
index 0b04b7b7812936e3aabdeb3a0195476b40b0bc08..38ffc0664c4aca0bf6fc9ea842312f4919d716dc 100644
--- a/chrome/installer/setup/setup_util.h
+++ b/chrome/installer/setup/setup_util.h
@@ -11,6 +11,8 @@
#include <windows.h>
+#include <vector>
+
#include "base/basictypes.h"
#include "base/strings/string16.h"
#include "base/win/scoped_handle.h"
@@ -124,6 +126,14 @@ base::string16 GetRegistrationDataCommandKey(
const AppRegistrationData& reg_data,
const wchar_t* name);
+// Deletes all values and subkeys of the key |path| under |root|, preserving
+// the keys named in |keys_to_preserve| (each of which must be an ASCII string).
+// The key itself is deleted if no subkeys are preserved.
+void DeleteRegistryKeyPartial(
+ HKEY root,
+ const base::string16& path,
+ const std::vector<base::string16>& keys_to_preserve);
+
// This class will enable the privilege defined by |privilege_name| on the
// current process' token. The privilege will be disabled upon the
// ScopedTokenPrivilege's destruction (unless it was already enabled when the
« no previous file with comments | « no previous file | chrome/installer/setup/setup_util.cc » ('j') | chrome/installer/setup/setup_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698