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

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

Issue 1986823002: Reset user data directory and disk cache directory after downgrade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « chrome/chrome_tests.gypi ('k') | chrome/installer/util/install_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/install_worker.cc
diff --git a/chrome/installer/setup/install_worker.cc b/chrome/installer/setup/install_worker.cc
index cc479761adca639d905522844d23652fb3c9dbcc..68ac7554c1089c33ab6dd8d3ddc62e2a3255177a 100644
--- a/chrome/installer/setup/install_worker.cc
+++ b/chrome/installer/setup/install_worker.cc
@@ -229,7 +229,7 @@ void AddProductSpecificWorkItems(const InstallationState& original_state,
const InstallerState& installer_state,
const base::FilePath& setup_path,
const Version& new_version,
- bool is_new_install,
+ const Version* current_version,
bool add_language_identifier,
WorkItemList* list) {
const Products& products = installer_state.products();
@@ -239,8 +239,8 @@ void AddProductSpecificWorkItems(const InstallationState& original_state,
if (p.is_chrome()) {
AddOsUpgradeWorkItems(installer_state, setup_path, new_version, p,
list);
- AddFirewallRulesWorkItems(
- installer_state, p.distribution(), is_new_install, list);
+ AddFirewallRulesWorkItems(installer_state, p.distribution(),
+ current_version == nullptr, list);
#if defined(GOOGLE_CHROME_BUILD)
if (!InstallUtil::IsChromeSxSProcess()) {
@@ -250,6 +250,9 @@ void AddProductSpecificWorkItems(const InstallationState& original_state,
new_version, add_language_identifier, list);
}
#endif // GOOGLE_CHROME_BUILD
+ InstallUtil::AddUpdateDowngradeVersionItem(
+ installer_state.system_install(), current_version, new_version,
+ p.distribution(), list);
}
if (p.is_chrome_binaries())
AddQuickEnableChromeFrameWorkItems(installer_state, list);
@@ -1127,13 +1130,9 @@ void AddInstallWorkItems(const InstallationState& original_state,
// Add any remaining work items that involve special settings for
// each product.
- AddProductSpecificWorkItems(original_state,
- installer_state,
- setup_path,
- new_version,
- current_version == NULL,
- add_language_identifier,
- install_list);
+ AddProductSpecificWorkItems(original_state, installer_state, setup_path,
+ new_version, current_version,
+ add_language_identifier, install_list);
// Copy over brand, usagestats, and other values.
AddGoogleUpdateWorkItems(original_state, installer_state, install_list);
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/installer/util/install_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698