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

Issue 7065024: Add a self-destruct mechanism to user-level Chrome Frame when it detects that system-level Chrome... (Closed)

Created:
9 years, 7 months ago by robertshield
Modified:
9 years, 7 months ago
Reviewers:
amit, grt (UTC plus 2)
CC:
chromium-reviews, amit, brettw-cc_chromium.org
Visibility:
Public.

Description

Add a self-destruct mechanism to user-level Chrome Frame when it detects that system-level Chrome Frame is present. This is a first step to handling user-to-system-level handoff. It will cause a user-level install to be correctly replaced with a system-level one once the user logs out and back in again. Additional changelists will follow that: 1) Ensure full clean-up of the user-level installation. 2) Handle notifications such that logging out and in again isn't required. BUG=82816 TEST=Install user-level Chrome Frame. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87033

Patch Set 1 #

Total comments: 52

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 31

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+483 lines, -26 lines) Patch
M chrome/browser/browser_main.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/installer/util/browser_distribution.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome_frame/bho_loader.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome_frame/chrome_frame_helper_main.cc View 1 2 3 4 4 chunks +110 lines, -3 lines 0 comments Download
M chrome_frame/chrome_frame_helper_util.h View 1 2 3 2 chunks +17 lines, -1 line 0 comments Download
M chrome_frame/chrome_frame_helper_util.cc View 1 2 3 2 chunks +95 lines, -1 line 0 comments Download
M chrome_frame/chrome_frame_launcher.gyp View 1 2 3 4 5 chunks +33 lines, -3 lines 0 comments Download
M chrome_frame/chrome_tab.cc View 1 3 chunks +7 lines, -2 lines 0 comments Download
A chrome_frame/registry_watcher.h View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A chrome_frame/registry_watcher.cc View 1 2 3 1 chunk +101 lines, -0 lines 0 comments Download
A chrome_frame/test/registry_watcher_unittest.cc View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
robertshield
Just to get the basic approach reviewed, I figured I'd ask you to take a ...
9 years, 7 months ago (2011-05-24 22:24:18 UTC) #1
amit
lgtm A combination of RegNotifyChangeKeyValue and RegisterWaitForSingleObject should be equally simple to implement :) http://codereview.chromium.org/7065024/diff/1/chrome_frame/chrome_frame_helper_main.cc ...
9 years, 7 months ago (2011-05-24 22:36:50 UTC) #2
grt (UTC plus 2)
This is pretty elegant looking. Nice work. It looks like the TEST field for the ...
9 years, 7 months ago (2011-05-25 16:10:06 UTC) #3
robertshield
Thanks for the comments. I added a registry change notification watcher that observes when the ...
9 years, 7 months ago (2011-05-26 15:14:28 UTC) #4
grt (UTC plus 2)
Change ALL the copyright years! http://codereview.chromium.org/7065024/diff/1/chrome_frame/chrome_frame_helper_util.cc File chrome_frame/chrome_frame_helper_util.cc (right): http://codereview.chromium.org/7065024/diff/1/chrome_frame/chrome_frame_helper_util.cc#newcode1 chrome_frame/chrome_frame_helper_util.cc:1: // Copyright (c) 2010 ...
9 years, 7 months ago (2011-05-26 17:08:58 UTC) #5
robertshield
Thanks, PTAL http://codereview.chromium.org/7065024/diff/1/chrome_frame/chrome_frame_helper_util.cc File chrome_frame/chrome_frame_helper_util.cc (right): http://codereview.chromium.org/7065024/diff/1/chrome_frame/chrome_frame_helper_util.cc#newcode1 chrome_frame/chrome_frame_helper_util.cc:1: // Copyright (c) 2010 The Chromium Authors. ...
9 years, 7 months ago (2011-05-27 03:34:59 UTC) #6
grt (UTC plus 2)
Very nice! LGTM with one last nit about the .gyp file. http://codereview.chromium.org/7065024/diff/16001/chrome_frame/chrome_frame_helper_main.cc File chrome_frame/chrome_frame_helper_main.cc (right): ...
9 years, 7 months ago (2011-05-27 14:07:58 UTC) #7
robertshield
9 years, 7 months ago (2011-05-27 14:29:47 UTC) #8
Thanks!

http://codereview.chromium.org/7065024/diff/16001/chrome_frame/chrome_frame_l...
File chrome_frame/chrome_frame_launcher.gyp (right):

http://codereview.chromium.org/7065024/diff/16001/chrome_frame/chrome_frame_l...
chrome_frame/chrome_frame_launcher.gyp:198: 'SubSystem': '2',
On 2011/05/27 14:07:58, grt wrote:
> On 2011/05/27 03:34:59, robertshield wrote:
> > On 2011/05/26 17:08:58, grt wrote:
> > > I'm not sure why this is needed; the linker isn't used to build a static
> lib,
> > is
> > > it?
> > 
> > Stuff in this static lib calls shlwapi functions, so whatever exe / dll
> targets
> > depend on this lib needs to have slwapi.lib somewhere in their linker
command
> > lines. Gyp's exuberant dependency propagation actually seems to take care of
> > that through a different byzantine path, but I feel it cleaner to leave this
> > here and it's certainly not harmful. I removed it from the dll target above
> > which no longer depends on it directly.
> 
> Gotcha.  I think you can nuke the /SUBSYSTEM stuff.  At least, I don't see how
> it can be used here.

Done.

Powered by Google App Engine
This is Rietveld 408576698