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

Unified Diff: chrome/installer/setup/uninstall.cc

Issue 1473813003: Add a GetRegistryPath method to BrowserDistribution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improve method comment. Created 5 years, 1 month 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
Index: chrome/installer/setup/uninstall.cc
diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc
index e81dffd26ce5b7add41c58ce313d109d23d8156a..9d8fdf8e2d938e90f4bfb3808f4acea0ec2a20bb 100644
--- a/chrome/installer/setup/uninstall.cc
+++ b/chrome/installer/setup/uninstall.cc
@@ -858,12 +858,10 @@ void RemoveDistributionRegistryState(BrowserDistribution* distribution) {
L"Extensions",
L"NativeMessagingHosts",
};
- base::string16 key_name(L"Software\\");
- key_name += distribution->GetInstallSubDir();
// Delete the contents of the distribution key except for those parts used by
// outsiders to configure Chrome.
DeleteRegistryKeyPartial(
- HKEY_CURRENT_USER, key_name,
+ HKEY_CURRENT_USER, distribution->GetRegistryPath(),
std::vector<base::string16>(
&kKeysToPreserve[0],
&kKeysToPreserve[arraysize(kKeysToPreserve) - 1]));

Powered by Google App Engine
This is Rietveld 408576698