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

Issue 1294863006: Do not register Chrome's DelegateExecute on Win10+. (Closed)

Created:
5 years, 4 months ago by gab
Modified:
5 years, 3 months ago
Reviewers:
grt (UTC plus 2)
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@d1_fix_debug_versioninfo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not register Chrome's DelegateExecute on Win10+. And delete active registrations for installs that made it to Win10 with such registrations (in place OS upgrade or installs that were on Win10 already before this fix). The deletions do not perform a pristine cleanup, but a sufficient in place cleanup to disable delegate execution while not being too intrusive on the codebase (no duplication of knowledge of each single registry key). Uninstall will take care of cleaning up the dead leaves. BUG=516349 Committed: https://crrev.com/635098e6af574e60e3ebdc7e2ef38b23f9f3ab24 Cr-Commit-Position: refs/heads/master@{#346321}

Patch Set 1 #

Total comments: 23

Patch Set 2 : review:grt #

Patch Set 3 : fix GetProgIdEntries and add FIXME note #

Patch Set 4 : tweak IsChromeRegistered to support RemovalFlag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -117 lines) Patch
M chrome/installer/setup/install_worker.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 14 chunks +168 lines, -115 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 13 (2 generated)
gab
Greg PTAL, I think this is the cleanest way to do it, but I'm open ...
5 years, 4 months ago (2015-08-20 19:42:58 UTC) #2
grt (UTC plus 2)
Seems a bit complex in a sense, but I can see how it avoids duplication ...
5 years, 3 months ago (2015-08-24 15:08:20 UTC) #3
gab
Comments addressed, PTAL. Thanks, Gab https://codereview.chromium.org/1294863006/diff/1/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://codereview.chromium.org/1294863006/diff/1/chrome/installer/util/shell_util.cc#newcode178 chrome/installer/util/shell_util.cc:178: // Identifies the type ...
5 years, 3 months ago (2015-08-27 20:51:08 UTC) #4
gab
Just realized while testing this that I also need to fix IsChromeRegistered() to return false ...
5 years, 3 months ago (2015-08-27 21:44:06 UTC) #5
gab
https://codereview.chromium.org/1294863006/diff/1/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://codereview.chromium.org/1294863006/diff/1/chrome/installer/util/shell_util.cc#newcode343 chrome/installer/util/shell_util.cc:343: if (!app_info.delegate_clsid.empty()) { On 2015/08/27 20:51:07, gab (OOO friday) ...
5 years, 3 months ago (2015-08-27 21:48:53 UTC) #6
gab
On 2015/08/27 21:44:06, gab (OOO friday) wrote: > Just realized while testing this that I ...
5 years, 3 months ago (2015-08-27 22:10:25 UTC) #7
grt (UTC plus 2)
Nice catch on the IsChromeRegistered() fix! LGTM provided that you add test coverage as requested ...
5 years, 3 months ago (2015-08-29 01:38:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1294863006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1294863006/60001
5 years, 3 months ago (2015-08-29 14:14:31 UTC) #10
gab
https://codereview.chromium.org/1294863006/diff/1/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://codereview.chromium.org/1294863006/diff/1/chrome/installer/util/shell_util.cc#newcode343 chrome/installer/util/shell_util.cc:343: if (!app_info.delegate_clsid.empty()) { On 2015/08/29 01:38:41, grt wrote: > ...
5 years, 3 months ago (2015-08-29 14:39:30 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-08-29 16:17:42 UTC) #12
commit-bot: I haz the power
5 years, 3 months ago (2015-08-29 16:18:16 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/635098e6af574e60e3ebdc7e2ef38b23f9f3ab24
Cr-Commit-Position: refs/heads/master@{#346321}

Powered by Google App Engine
This is Rietveld 408576698