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

Issue 8299008: Errors while deleting old version dirs no longer cause them to grow in odd ways. (Closed)

Created:
9 years, 2 months ago by grt (UTC plus 2)
Modified:
9 years, 2 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Errors while deleting old version dirs no longer cause them to grow in odd ways. InstallerState::RemoveOldVersionDirectories now tells its DeleteTreeWorkItem instances to ignore failures. Deleting the old version dirs is a best-effort thing. Should one fail to be deletable on account of a file or directory being in use (other than the key files: chrome.dll, npchrome_frame.dll, and chrome_frame_helper.exe), the installer will no go on its merry way rather than trying to un-do the delete (which is error-prone to say the least). Also, during installation, don't make success of the install contingent on being able to delete old_chrome.exe. Basically for the same reasons. If we can't delete it because it's in use by someone/thing, just leave it there. It'll be cleaned up on a later install, or when new_chrome.exe is later swapped into place. This may reduce our INSTALL_FAILED errors. BUG=100218 TEST=see bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105671

Patch Set 1 #

Total comments: 6

Patch Set 2 : addresses nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -52 lines) Patch
M chrome/installer/setup/install_worker.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/delete_tree_work_item.cc View 1 5 chunks +20 lines, -12 lines 0 comments Download
M chrome/installer/util/installer_state.cc View 1 1 chunk +30 lines, -38 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
grt (UTC plus 2)
9 years, 2 months ago (2011-10-14 21:10:16 UTC) #1
robertshield
LGTM, nits: http://codereview.chromium.org/8299008/diff/1/chrome/installer/util/delete_tree_work_item.cc File chrome/installer/util/delete_tree_work_item.cc (right): http://codereview.chromium.org/8299008/diff/1/chrome/installer/util/delete_tree_work_item.cc#newcode1 chrome/installer/util/delete_tree_work_item.cc:1: // Copyright (c) 2009 The Chromium Authors. ...
9 years, 2 months ago (2011-10-14 21:28:35 UTC) #2
grt (UTC plus 2)
Thanks, man. http://codereview.chromium.org/8299008/diff/1/chrome/installer/util/delete_tree_work_item.cc File chrome/installer/util/delete_tree_work_item.cc (right): http://codereview.chromium.org/8299008/diff/1/chrome/installer/util/delete_tree_work_item.cc#newcode1 chrome/installer/util/delete_tree_work_item.cc:1: // Copyright (c) 2009 The Chromium Authors. ...
9 years, 2 months ago (2011-10-14 22:55:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/8299008/6001
9 years, 2 months ago (2011-10-15 00:16:04 UTC) #4
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 2 months ago (2011-10-15 04:26:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/8299008/6001
9 years, 2 months ago (2011-10-15 10:44:20 UTC) #6
commit-bot: I haz the power
9 years, 2 months ago (2011-10-15 13:59:27 UTC) #7
The commit queue went berserk retrying too often for a
seemingly flaky test. Builder is mac_rel, revision is 105660, job name
was 8299008-6001 (retry) (retry) (retry) (retry).

Powered by Google App Engine
This is Rietveld 408576698