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

Issue 22382007: On user-level Chrome self-destruct, make user-created shortcuts target system-level chrome.exe. (Closed)

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

Description

On user-level Chrome self-destruct, make user-created shortcuts target system-level chrome.exe. The old behavior was to delete all the shortcuts, which is rather user-hostile. With this change, the user-created shortcuts will be made to target the new system-level Chrome, to form a better transition experience. - To determine whether or not a shortcut (to the user-level chrome.exe) is user-created, the heuristic we use is to test that the arguments of the shortcut are empty. - The default shortcut to user-level chrome.exe is NOT retargeted, so it would get deleted (thus avoiding duplicate shortcut to the system-level Chrome). Right now the "Chrome Apps" is not handled. This is a similar issue as http://crbug.com/238895 , and should be handled in a different CL. BUG=235857 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221343

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Comment fixes. #

Patch Set 4 : Sync. #

Total comments: 4

Patch Set 5 : Restricting RetargetShortcuts() to user-level only. #

Patch Set 6 : Sync. #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -21 lines) Patch
M chrome/installer/setup/uninstall.cc View 1 2 3 4 2 chunks +70 lines, -0 lines 7 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 chunks +19 lines, -8 lines 3 comments Download
M chrome/installer/util/shell_util_unittest.cc View 1 2 3 4 chunks +23 lines, -9 lines 4 comments Download

Messages

Total messages: 20 (0 generated)
huangs
This is a preliminary CL. Currently Start Screen links are not migrated. This because these ...
7 years, 4 months ago (2013-08-09 21:17:10 UTC) #1
grt (UTC plus 2)
Hi Sam. Who are you asking to take a look at this? Is it ready ...
7 years, 4 months ago (2013-08-13 03:40:59 UTC) #2
huangs
This is not ready for review yet; I'll have to merge with recent refactoring changes ...
7 years, 4 months ago (2013-08-14 18:19:39 UTC) #3
grt (UTC plus 2)
On 2013/08/14 18:19:39, huangs1 wrote: > This is not ready for review yet; I'll have ...
7 years, 4 months ago (2013-08-15 02:52:27 UTC) #4
huangs
Synched with https://chromiumcodereview.appspot.com/15255004/ . But turns out I still need https://codereview.chromium.org/13864015/ . I think I ...
7 years, 4 months ago (2013-08-23 15:48:14 UTC) #5
huangs
Ping on review. Thanks.
7 years, 3 months ago (2013-08-29 14:38:48 UTC) #6
grt (UTC plus 2)
hi sam. looks pretty good. the goal here is for profile and app shortcuts to ...
7 years, 3 months ago (2013-09-04 03:50:36 UTC) #7
huangs
Yes, it's to migrated the shortcuts -- a feature that gab@ requested. Also updated the ...
7 years, 3 months ago (2013-09-04 14:48:39 UTC) #8
grt (UTC plus 2)
lgtm, but please update the description: the "prerequesite CL" appears to have landed, so mention ...
7 years, 3 months ago (2013-09-04 15:01:04 UTC) #9
huangs
Synched, updated comment and committing!
7 years, 3 months ago (2013-09-04 21:37:16 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/22382007/24001
7 years, 3 months ago (2013-09-04 21:37:39 UTC) #11
grt (UTC plus 2)
On 2013/09/04 21:37:16, huangs1 wrote: > Synched, updated comment and committing! I meant that "This ...
7 years, 3 months ago (2013-09-04 23:24:38 UTC) #12
huangs
Ah, okay. Removed.
7 years, 3 months ago (2013-09-04 23:26:15 UTC) #13
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 3 months ago (2013-09-05 02:53:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/22382007/24001
7 years, 3 months ago (2013-09-05 04:21:54 UTC) #15
commit-bot: I haz the power
Change committed as 221343
7 years, 3 months ago (2013-09-05 04:22:14 UTC) #16
gab
Sorry for the late review, last week was nuts... Comments below, please address in a ...
7 years, 3 months ago (2013-09-09 13:00:31 UTC) #17
huangs
Okay, will make follow-up issue.
7 years, 3 months ago (2013-09-09 15:03:46 UTC) #18
huangs
Follow up in https://codereview.chromium.org/23581012 https://chromiumcodereview.appspot.com/22382007/diff/24001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/22382007/diff/24001/chrome/installer/setup/uninstall.cc#newcode332 chrome/installer/setup/uninstall.cc:332: // |require_args| is set, then ...
7 years, 3 months ago (2013-09-11 19:02:51 UTC) #19
gab
7 years, 3 months ago (2013-09-11 20:23:05 UTC) #20
Message was sent while issue was closed.
Thanks :)! Will continue there...

https://chromiumcodereview.appspot.com/22382007/diff/24001/chrome/installer/s...
File chrome/installer/setup/uninstall.cc (right):

https://chromiumcodereview.appspot.com/22382007/diff/24001/chrome/installer/s...
chrome/installer/setup/uninstall.cc:346: if
(!ShellUtil::UpdateShortcuts(ShellUtil::SHORTCUT_LOCATION_DESKTOP, dist,
On 2013/09/11 19:02:52, huangs1 wrote:
> DeleteShortcuts() message string also distinguish between "delete" and
"unpin".
> 
> I was planning to have this as a separate refactoring CL, after calamity@'s
> https://chromiumcodereview.appspot.com/13864015/  has been committed.

Ah ok, sgtm :)!

https://chromiumcodereview.appspot.com/22382007/diff/24001/chrome/installer/u...
File chrome/installer/util/shell_util.cc (right):

https://chromiumcodereview.appspot.com/22382007/diff/24001/chrome/installer/u...
chrome/installer/util/shell_util.cc:2077: bool require_args,
On 2013/09/11 19:02:52, huangs1 wrote:
> The purpose of |require_args| is keep UpdateShortcuts() general; it's rather
ad
> hoc that our main usage opts to not retarget links without args (so we will
not
> have duplicate shortcuts). 
> 
> To follow he suggestion, I'm removing |require_args|, and renaming
> UpdateShortcuts() to UpdateShortcutsWithArgs() to be explicit. 

sgtm.

> The test cases
> would also need to be changed (dummy arguments need to be added).

Powered by Google App Engine
This is Rietveld 408576698