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

Issue 22870004: On uninstall, delete shortcuts first, and then remove directory only if empty. (Closed)

Created:
7 years, 4 months ago by huangs
Modified:
7 years, 4 months ago
Reviewers:
gab
CC:
chromium-reviews, grt+watch_chromium.org
Visibility:
Public.

Description

On uninstall, delete shortcuts first, and then remove directory only if empty. Previously, ShellUtil::RemoveShortcuts() simply wipes out the entire directory if |location| is SHORTCUT_LOCATION_START_MENU or SHORTCUT_LOCATION_APP_SHORTCUTS, for efficiency. But we're now writing code to migrate shortcuts on the self-destruct flow. In this case, wiping out the directory would destroy our results. Therefore the new logic for deletion of these directories are: - Use same code to remove Chrome-specific shortcuts (this is what's done for other diretories, e.g., Start Menu). - If the directory becomes empty, then remove it; otherwise do nothing. The side effect is that if user creates any non-Chrome shortcuts in these directories, then these shortcuts (and the containing directory) will persist after Chrome uninstall. I think this is a pretty normal behavior. BUG=235857 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217130

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixing comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -7 lines) Patch
M chrome/installer/util/shell_util.cc View 1 3 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
huangs
PTAL.
7 years, 4 months ago (2013-08-12 18:33:43 UTC) #1
gab
lgtm w/ nit https://codereview.chromium.org/22870004/diff/1/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://codereview.chromium.org/22870004/diff/1/chrome/installer/util/shell_util.cc#newcode1257 chrome/installer/util/shell_util.cc:1257: // where no deletion occurred because ...
7 years, 4 months ago (2013-08-12 20:09:36 UTC) #2
huangs
https://codereview.chromium.org/22870004/diff/1/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://codereview.chromium.org/22870004/diff/1/chrome/installer/util/shell_util.cc#newcode1257 chrome/installer/util/shell_util.cc:1257: // where no deletion occurred because directory is non-empty. ...
7 years, 4 months ago (2013-08-12 20:27:16 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/22870004/6001
7 years, 4 months ago (2013-08-12 20:29:08 UTC) #4
commit-bot: I haz the power
7 years, 4 months ago (2013-08-13 00:17:58 UTC) #5
Message was sent while issue was closed.
Change committed as 217130

Powered by Google App Engine
This is Rietveld 408576698