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

Issue 5354006: Fix a problem with the delete-after-reboot code. Removing pending renames of ... (Closed)

Created:
10 years ago by robertshield
Modified:
9 years, 6 months ago
Reviewers:
grt (UTC plus 2)
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix a problem with the delete-after-reboot code. Removing pending renames of files not currently on disk would fail due to calls to GetShortPathName failing for already-deleted files. Now we just attempt to keep using the long path names for the already-deleted-file case. Also test. BUG=64503 TEST=Uninstall CF while it is in use. Delete the in use files. Reinstall. Ensure that the CF files are no longer scheduled for deletion by looking at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67889

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -4 lines) Patch
M chrome/installer/util/delete_after_reboot_helper.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/installer/util/delete_after_reboot_helper.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/installer/util/delete_after_reboot_helper_unittest.cc View 1 3 chunks +61 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
robertshield
10 years ago (2010-11-30 17:06:51 UTC) #1
grt (UTC plus 2)
LGTM with two nits. http://codereview.chromium.org/5354006/diff/1/chrome/installer/util/delete_after_reboot_helper_unittest.cc File chrome/installer/util/delete_after_reboot_helper_unittest.cc (right): http://codereview.chromium.org/5354006/diff/1/chrome/installer/util/delete_after_reboot_helper_unittest.cc#newcode220 chrome/installer/util/delete_after_reboot_helper_unittest.cc:220: for (int i = 0; ...
10 years ago (2010-12-01 04:46:54 UTC) #2
robertshield
10 years ago (2010-12-01 14:50:04 UTC) #3
Thanks!

http://codereview.chromium.org/5354006/diff/1/chrome/installer/util/delete_af...
File chrome/installer/util/delete_after_reboot_helper_unittest.cc (right):

http://codereview.chromium.org/5354006/diff/1/chrome/installer/util/delete_af...
chrome/installer/util/delete_after_reboot_helper_unittest.cc:220: for (int i =
0; i < arraysize(expected_paths); i++) {
On 2010/12/01 04:46:54, grt wrote:
> Prefer preincrement.

Done.

http://codereview.chromium.org/5354006/diff/1/chrome/installer/util/delete_af...
chrome/installer/util/delete_after_reboot_helper_unittest.cc:226: iter++;
On 2010/12/01 04:46:54, grt wrote:
> Prefer preincrement (which has lower cost in this case).

Done.

Powered by Google App Engine
This is Rietveld 408576698