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

Issue 3158036: Add a helper process to Chrome Frame to allow for non-administrative installs... (Closed)

Created:
10 years, 4 months ago by robertshield
Modified:
9 years, 6 months ago
CC:
chromium-reviews, amit, Sigurður Ásgeirsson
Visibility:
Public.

Description

Add a helper process to Chrome Frame to allow for non-administrative installs. The helper process registers a hook dll that performs the necessary BHO injection instead of registering it in HKLM. BUG=53127 TEST=Non-admin CF installs work. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57860

Patch Set 1 #

Total comments: 16

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+669 lines, -23 lines) Patch
A chrome_frame/bho_loader.h View 1 chunk +39 lines, -0 lines 0 comments Download
A chrome_frame/bho_loader.cc View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
A chrome_frame/chrome_frame_helper_dll.cc View 1 chunk +28 lines, -0 lines 0 comments Download
A chrome_frame/chrome_frame_helper_dll.def View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A chrome_frame/chrome_frame_helper_main.cc View 1 2 3 4 1 chunk +131 lines, -0 lines 0 comments Download
A chrome_frame/chrome_frame_helper_util.h View 1 chunk +43 lines, -0 lines 0 comments Download
A chrome_frame/chrome_frame_helper_util.cc View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
A chrome_frame/chrome_frame_helper_version.rc View 1 chunk +50 lines, -0 lines 0 comments Download
M chrome_frame/chrome_frame_launcher.gyp View 1 2 3 4 5 2 chunks +95 lines, -22 lines 0 comments Download
A chrome_frame/event_hooker.h View 3 4 1 chunk +36 lines, -0 lines 0 comments Download
A chrome_frame/event_hooker.cc View 3 4 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
robertshield
10 years, 4 months ago (2010-08-26 19:25:39 UTC) #1
tommi (sloooow) - chröme
http://codereview.chromium.org/3158036/diff/1/2 File chrome_frame/bho_loader.cc (right): http://codereview.chromium.org/3158036/diff/1/2#newcode19 chrome_frame/bho_loader.cc:19: hooker_ = new EventHooker(); put the hooker in an ...
10 years, 4 months ago (2010-08-26 19:52:51 UTC) #2
robertshield
Thanks, please take another look. http://codereview.chromium.org/3158036/diff/1/2 File chrome_frame/bho_loader.cc (right): http://codereview.chromium.org/3158036/diff/1/2#newcode19 chrome_frame/bho_loader.cc:19: hooker_ = new EventHooker(); ...
10 years, 4 months ago (2010-08-26 20:41:00 UTC) #3
tommi (sloooow) - chröme
lgtm http://codereview.chromium.org/3158036/diff/15001/16006 File chrome_frame/chrome_frame_helper_main.cc (right): http://codereview.chromium.org/3158036/diff/15001/16006#newcode116 chrome_frame/chrome_frame_helper_main.cc:116: while (GetMessage(&msg, NULL, 0, 0)) { fyi - ...
10 years, 4 months ago (2010-08-26 20:45:26 UTC) #4
amit
Looks very nice and simple. Now given that this is a single critical point of ...
10 years, 4 months ago (2010-08-26 21:48:13 UTC) #5
tommi (sloooow) - chröme
I agree but maybe we could submit this as is and do breakpad next? On ...
10 years, 4 months ago (2010-08-26 22:28:13 UTC) #6
amit
On Thu, Aug 26, 2010 at 3:27 PM, Tommi <tommi@chromium.org> wrote: > I agree but ...
10 years, 4 months ago (2010-08-26 22:42:08 UTC) #7
amit
On Thu, Aug 26, 2010 at 3:42 PM, Amit Joshi <amit@chromium.org> wrote: > > On ...
10 years, 4 months ago (2010-08-26 22:42:51 UTC) #8
robertshield
10 years, 3 months ago (2010-08-30 14:06:37 UTC) #9
Thanks!

http://codereview.chromium.org/3158036/diff/15001/16006
File chrome_frame/chrome_frame_helper_main.cc (right):

http://codereview.chromium.org/3158036/diff/15001/16006#newcode102
chrome_frame/chrome_frame_helper_main.cc:102: int APIENTRY wWinMain(HINSTANCE
hinstance, HINSTANCE, wchar_t*, int show_cmd) {
On 2010/08/26 21:48:13, amit wrote:
> First thing we should do is register with breakpad?

Added a todo, I'll add that in a quickly upcoming CL.

http://codereview.chromium.org/3158036/diff/15001/16006#newcode116
chrome_frame/chrome_frame_helper_main.cc:116: while (GetMessage(&msg, NULL, 0,
0)) {
On 2010/08/26 20:45:26, tommi wrote:
> fyi - GetMessage can return -1, so MS recommends something like this:
> 
> while( (bRet = GetMessage( &msg, hWnd, 0, 0 )) != 0)
> { 
>     if (bRet == -1)
>     {
>         // handle the error and possibly exit
>     }
>     else
>     {
>         TranslateMessage(&msg); 
>         DispatchMessage(&msg); 
>     }
> }

Done.

http://codereview.chromium.org/3158036/diff/15001/16011
File chrome_frame/event_hooker.cc (right):

http://codereview.chromium.org/3158036/diff/15001/16011#newcode35
chrome_frame/event_hooker.cc:35: window_reparent_hook_ =
SetWinEventHook(EVENT_OBJECT_PARENTCHANGE,
On 2010/08/26 21:48:13, amit wrote:
> do we need this? 

Previous readings suggested it was necessary, if looking for a specific window
hierarchy. Since we're looking for any window of a certain class, I can take
this out.

Powered by Google App Engine
This is Rietveld 408576698