diff options
author | robertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-20 19:07:32 +0000 |
---|---|---|
committer | robertshield@google.com <robertshield@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-20 19:07:32 +0000 |
commit | c98911a3fe397932e43700219ba22fa725745cac (patch) | |
tree | f5a64579b53aa653dd0b60361b46de62419bc2ba /chrome/installer/setup | |
parent | 86e6ee66939784971858201236b02f353ab76f2d (diff) | |
download | chromium_src-c98911a3fe397932e43700219ba22fa725745cac.zip chromium_src-c98911a3fe397932e43700219ba22fa725745cac.tar.gz chromium_src-c98911a3fe397932e43700219ba22fa725745cac.tar.bz2 |
Add brand code submission to Google Chrome uninstall metrics.
Review URL: http://codereview.chromium.org/78005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup')
-rw-r--r-- | chrome/installer/setup/uninstall.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc index b1414aa..d0dc8de 100644 --- a/chrome/installer/setup/uninstall.cc +++ b/chrome/installer/setup/uninstall.cc @@ -249,6 +249,11 @@ installer_util::InstallStatus installer_setup::UninstallChrome( HKEY reg_root = system_uninstall ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; RegKey key(reg_root, L"", KEY_ALL_ACCESS); BrowserDistribution* dist = BrowserDistribution::GetDistribution(); + + // Note that we must retrieve the distribution-specific data before deleting + // dist->GetVersionKey(). + std::wstring distribution_data(dist->GetDistributionData(&key)); + DeleteRegistryKey(key, dist->GetUninstallRegPath()); DeleteRegistryKey(key, dist->GetVersionKey()); @@ -345,7 +350,8 @@ installer_util::InstallStatus installer_setup::UninstallChrome( if (!force_uninstall) { LOG(INFO) << "Uninstallation complete. Launching Uninstall survey."; - dist->DoPostUninstallOperations(installed_version, local_state_path); + dist->DoPostUninstallOperations(installed_version, local_state_path, + distribution_data); } // Try and delete the preserved local state once the post-install |