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

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

Issue 117433002: Remove installation of Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo fix Created 7 years 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/installer/setup/cf_migration.cc ('k') | chrome/installer/setup/install_worker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/install.cc
diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc
index 66c081aa0dec774b97337ef64957b9f649ff9e2a..707fae9be4b0639b198296ce5eddee874ae902d3 100644
--- a/chrome/installer/setup/install.cc
+++ b/chrome/installer/setup/install.cc
@@ -506,17 +506,15 @@ InstallStatus InstallOrUpdateProduct(
const base::FilePath& prefs_path,
const MasterPreferences& prefs,
const Version& new_version) {
+ DCHECK(!installer_state.products().empty());
+
// TODO(robertshield): Removing the pending on-reboot moves should be done
// elsewhere.
- // TODO(erikwright): Understand why this is Chrome Frame only and whether
- // it also applies to App Host. Shouldn't it apply to any multi-install too?
- const Products& products = installer_state.products();
- DCHECK(products.size());
- if (installer_state.FindProduct(BrowserDistribution::CHROME_FRAME)) {
- // Make sure that we don't end up deleting installed files on next reboot.
- if (!RemoveFromMovesPendingReboot(installer_state.target_path()))
- LOG(ERROR) << "Error accessing pending moves value.";
- }
+ // Remove any scheduled MOVEFILE_DELAY_UNTIL_REBOOT entries in the target of
+ // this installation. These may have been added during a previous uninstall of
+ // the same version.
+ LOG_IF(ERROR, !RemoveFromMovesPendingReboot(installer_state.target_path()))
+ << "Error accessing pending moves value.";
// Create VisualElementManifest.xml in |src_path| (if required) so that it
// looks as if it had been extracted from the archive when calling
« no previous file with comments | « chrome/installer/setup/cf_migration.cc ('k') | chrome/installer/setup/install_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698