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

Issue 10946030: Remove Chrome's ProgID from filetype associations at uninstall. (Closed)

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

Description

Remove Chrome's ProgID from filetype associations at uninstall. And notify the shell after Chrome is unregistered so that Chrome's icon disappears from things like icons on the destop. BUG=149089 TEST=install Chrome, make it the default, uninstall it, run One Note, click a link. IE should open. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157624

Patch Set 1 #

Patch Set 2 : also notify the shell #

Total comments: 11

Patch Set 3 : don't disrupt system-level registration #

Total comments: 7

Patch Set 4 : final tweaks #

Total comments: 2

Patch Set 5 : oops #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -17 lines) Patch
M chrome/installer/setup/setup_main.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/setup/uninstall.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 9 chunks +35 lines, -13 lines 2 comments Download

Messages

Total messages: 12 (0 generated)
grt (UTC plus 2)
8 years, 3 months ago (2012-09-19 15:45:06 UTC) #1
gab
Comments below. https://codereview.chromium.org/10946030/diff/4001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://codereview.chromium.org/10946030/diff/4001/chrome/installer/setup/uninstall.cc#newcode754 chrome/installer/setup/uninstall.cc:754: InstallUtil::ValueEquals prog_id_pred(prog_id); |prog_id| here could be suffixed ...
8 years, 3 months ago (2012-09-19 16:11:16 UTC) #2
grt (UTC plus 2)
PTAL https://chromiumcodereview.appspot.com/10946030/diff/4001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/10946030/diff/4001/chrome/installer/setup/uninstall.cc#newcode754 chrome/installer/setup/uninstall.cc:754: InstallUtil::ValueEquals prog_id_pred(prog_id); On 2012/09/19 16:11:16, gab wrote: > ...
8 years, 3 months ago (2012-09-19 19:43:15 UTC) #3
gab
LGTM w/ consideration of the suggested changes. https://chromiumcodereview.appspot.com/10946030/diff/4001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/10946030/diff/4001/chrome/installer/setup/uninstall.cc#newcode755 chrome/installer/setup/uninstall.cc:755: for (const ...
8 years, 3 months ago (2012-09-19 19:58:50 UTC) #4
grt (UTC plus 2)
tanx! https://chromiumcodereview.appspot.com/10946030/diff/4001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/10946030/diff/4001/chrome/installer/setup/uninstall.cc#newcode755 chrome/installer/setup/uninstall.cc:755: for (const wchar_t* const* filetype = &ShellUtil::kFileAssociations[0]; On ...
8 years, 3 months ago (2012-09-19 20:04:52 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/10946030/10002
8 years, 3 months ago (2012-09-19 20:06:06 UTC) #6
gab
Whoopsy! https://chromiumcodereview.appspot.com/10946030/diff/10002/chrome/installer/setup/uninstall.h File chrome/installer/setup/uninstall.h (right): https://chromiumcodereview.appspot.com/10946030/diff/10002/chrome/installer/setup/uninstall.h#newcode30 chrome/installer/setup/uninstall.h:30: BrowserDistribution* dist, HKEY root, Hmmm, looks like you ...
8 years, 3 months ago (2012-09-19 20:17:04 UTC) #7
grt (UTC plus 2)
thanks again https://chromiumcodereview.appspot.com/10946030/diff/10002/chrome/installer/setup/uninstall.h File chrome/installer/setup/uninstall.h (right): https://chromiumcodereview.appspot.com/10946030/diff/10002/chrome/installer/setup/uninstall.h#newcode30 chrome/installer/setup/uninstall.h:30: BrowserDistribution* dist, HKEY root, On 2012/09/19 20:17:04, ...
8 years, 3 months ago (2012-09-19 20:20:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/10946030/10003
8 years, 3 months ago (2012-09-19 20:20:31 UTC) #9
commit-bot: I haz the power
Change committed as 157624
8 years, 3 months ago (2012-09-19 22:16:03 UTC) #10
gab
Whoopsy, see comment below :(... https://codereview.chromium.org/10946030/diff/10003/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://codereview.chromium.org/10946030/diff/10003/chrome/installer/setup/uninstall.cc#newcode760 chrome/installer/setup/uninstall.cc:760: KEY_QUERY_VALUE).Valid())) { Arg, I ...
8 years, 3 months ago (2012-09-22 05:20:22 UTC) #11
grt (UTC plus 2)
8 years, 3 months ago (2012-09-22 12:09:09 UTC) #12
https://chromiumcodereview.appspot.com/10946030/diff/10003/chrome/installer/s...
File chrome/installer/setup/uninstall.cc (right):

https://chromiumcodereview.appspot.com/10946030/diff/10003/chrome/installer/s...
chrome/installer/setup/uninstall.cc:760: KEY_QUERY_VALUE).Valid())) {
On 2012/09/22 05:20:22, gab wrote:
> Arg, I just tested this, it's wrong as it doesn't remove registrations on
system
> installs.
> 
> The condition is missing "|| installer_state.system_install()", but that would
> be redundant so the condition below is equivalent I believe:
> 
> installer_state.system_install() ||
> !suffix.empty() ||
> !base::win::RegKey(HKEY_LOCAL_MACHINE, reg_prog_id.c_str(),
>                               KEY_QUERY_VALUE).Valid())) {
> 
> i.e. Removing the keys when uninstalling a system-level install is always ok.
It
> is also ok when uninstalling a user-level install; except if the suffix is
empty
> and there is a system-level Chrome present.
> 
> Sorry for missing that in the original review :(...

Facepalm.  I'll fix it.

Powered by Google App Engine
This is Rietveld 408576698