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

Issue 7824010: Make Chrome Frame registration and unregistration more robust. (Closed)

Created:
9 years, 3 months ago by robertshield
Modified:
9 years, 3 months ago
Reviewers:
grt (UTC plus 2)
CC:
chromium-reviews, erikwright (departed)
Visibility:
Public.

Description

Make Chrome Frame registration and unregistration more robust and make it return extra information in the failure code. Specifically, there are a series of registration changes made by Chrome Frame at registration and unregistration time. Previously, if any of those changes failed, the previous changes were left and subsequent changes were not made. During registration this could result in partial registration data being left if one of the items failed which is bad but wasn't a problem in practice, because if ever registration failed, unregistration would then be performed by the installer. Also the most likely step to fail happens first. During unregistration, if any of the steps fail, the remaining unregistration steps will not be taken. This is bad, as uninstallation is a best effort, "clean up everything you can" type thing. Changed this to for registration roll back the previous N-1 steps of step N fails and for unregistration to attempt to perform all N steps disregarding failures. Updated installer logging. BUG=94848 TEST=Unregistration of e.g. the user-agent modification should always be performed even if an earlier step fails. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100224

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 74

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 42

Patch Set 7 : '' #

Total comments: 10

Patch Set 8 : '' #

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -290 lines) Patch
M chrome/installer/util/self_reg_work_item.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -3 lines 0 comments Download
M chrome_frame/chrome_tab.cc View 1 2 3 4 5 6 7 8 12 chunks +392 lines, -287 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
robertshield
9 years, 3 months ago (2011-09-02 15:15:27 UTC) #1
grt (UTC plus 2)
Apologies for the novella. http://codereview.chromium.org/7824010/diff/2003/chrome_frame/chrome_tab.cc File chrome_frame/chrome_tab.cc (right): http://codereview.chromium.org/7824010/diff/2003/chrome_frame/chrome_tab.cc#newcode494 chrome_frame/chrome_tab.cc:494: class CustomRegistrationHelper { Looks like ...
9 years, 3 months ago (2011-09-02 19:01:35 UTC) #2
robertshield
Thanks for the thorough review. Removed a bunch of code following your suggestion to use ...
9 years, 3 months ago (2011-09-03 05:36:21 UTC) #3
grt (UTC plus 2)
I think this new direction is pretty easy to follow. Again, apologies for the Vogon ...
9 years, 3 months ago (2011-09-06 14:56:55 UTC) #4
robertshield
Comments addressed, I need to redo my manual testing and see about writing some individual ...
9 years, 3 months ago (2011-09-06 20:23:42 UTC) #5
grt (UTC plus 2)
slowly i turned... http://codereview.chromium.org/7824010/diff/10003/chrome_frame/chrome_tab.cc File chrome_frame/chrome_tab.cc (right): http://codereview.chromium.org/7824010/diff/10003/chrome_frame/chrome_tab.cc#newcode394 chrome_frame/chrome_tab.cc:394: LOG(ERROR) << "Could not launch helper ...
9 years, 3 months ago (2011-09-07 15:00:48 UTC) #6
robertshield
http://codereview.chromium.org/7824010/diff/10003/chrome_frame/chrome_tab.cc File chrome_frame/chrome_tab.cc (right): http://codereview.chromium.org/7824010/diff/10003/chrome_frame/chrome_tab.cc#newcode394 chrome_frame/chrome_tab.cc:394: LOG(ERROR) << "Could not launch helper process."; On 2011/09/07 ...
9 years, 3 months ago (2011-09-07 17:58:11 UTC) #7
grt (UTC plus 2)
LGTM!
9 years, 3 months ago (2011-09-07 19:52:20 UTC) #8
robertshield
On 2011/09/07 19:52:20, grt wrote: > LGTM! I updated the elevation policy registration to fail ...
9 years, 3 months ago (2011-09-08 17:40:44 UTC) #9
grt (UTC plus 2)
9 years, 3 months ago (2011-09-08 17:58:11 UTC) #10
LGTM once again

Powered by Google App Engine
This is Rietveld 408576698