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

Issue 7976045: Fix in-use updates for Chrome Frame. (Closed)

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

Description

Fix in-use updates for Chrome Frame. On in-use updates, make a copy of the old chrome launcher's IE low rights elevation policy prior to registering the new npchrome_frame.dll so that running instances of IE can still launch Chrome. In so doing, I also removed elevation policy addition/removal code from the installer so that npchrome_frame.dll's {un,}registration code is the one and only place where this is done. BUG=95810 TEST=Install a previous version of GCF, run IE and visit some page that activates GCF, update to a version of GCF containing this fix, then try to visit another page that will activate GCF. If all goes well, you won't see an IE security prompt. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102569

Patch Set 1 : Fixed line widths #

Total comments: 31

Patch Set 2 : Some changes incorporated #

Total comments: 2

Patch Set 3 : Hey, it compiles! #

Total comments: 2

Patch Set 4 : unwrapped a line #

Patch Set 5 : Reverted change to chrome_installer.gypi since it's no longer needed. #

Patch Set 6 : Sanity check before dcommit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -257 lines) Patch
M chrome/installer/setup/install.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/installer/setup/install_worker.h View 1 2 1 chunk +9 lines, -5 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 chunks +70 lines, -52 lines 0 comments Download
M chrome/installer/setup/install_worker_unittest.cc View 1 2 9 chunks +84 lines, -124 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 6 chunks +45 lines, -28 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 3 chunks +11 lines, -8 lines 0 comments Download
M chrome/installer/util/copy_reg_key_work_item.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/installer/util/copy_reg_key_work_item.cc View 1 2 3 chunks +28 lines, -13 lines 0 comments Download
M chrome/installer/util/copy_reg_key_work_item_unittest.cc View 1 2 6 chunks +44 lines, -5 lines 0 comments Download
M chrome/installer/util/work_item.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/installer/util/work_item.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/installer/util/work_item_list.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/installer/util/work_item_list.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome_frame/chrome_frame_activex.rgs View 1 2 chunks +5 lines, -5 lines 0 comments Download
M chrome_frame/chrome_frame_elevation.rgs View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome_frame/chrome_tab.cc View 1 3 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
grt (UTC plus 2)
http://codereview.chromium.org/7976045/diff/10/chrome/chrome_installer.gypi File chrome/chrome_installer.gypi (right): http://codereview.chromium.org/7976045/diff/10/chrome/chrome_installer.gypi#newcode345 chrome/chrome_installer.gypi:345: 'installer/util/installation_validation_helper.cc', i already have a pending change that moves ...
9 years, 3 months ago (2011-09-22 19:28:35 UTC) #1
robertshield
Looking good, but I abhor MaybeFoo() methods.. do they do Foo()? do they do something ...
9 years, 3 months ago (2011-09-22 20:34:10 UTC) #2
grt (UTC plus 2)
Thanks for the review. Let the bikeshedding begin! http://codereview.chromium.org/7976045/diff/10/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/7976045/diff/10/chrome/installer/setup/install_worker.cc#newcode988 chrome/installer/setup/install_worker.cc:988: // ...
9 years, 3 months ago (2011-09-23 04:16:49 UTC) #3
grt (UTC plus 2)
http://codereview.chromium.org/7976045/diff/9001/base/threading/thread_restrictions.cc File base/threading/thread_restrictions.cc (right): http://codereview.chromium.org/7976045/diff/9001/base/threading/thread_restrictions.cc#newcode36 base/threading/thread_restrictions.cc:36: LOG(ERROR) << uh, obviously this wasn't supposed to be ...
9 years, 3 months ago (2011-09-23 04:18:42 UTC) #4
robertshield
http://codereview.chromium.org/7976045/diff/10/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/7976045/diff/10/chrome/installer/setup/install_worker.cc#newcode988 chrome/installer/setup/install_worker.cc:988: // rather than do something like StringFromGUID2(__uuidof(ChromeFrame), ...). On ...
9 years, 3 months ago (2011-09-23 14:22:18 UTC) #5
grt (UTC plus 2)
thanks for the thoughtful review. PTAL. http://codereview.chromium.org/7976045/diff/10/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/7976045/diff/10/chrome/installer/setup/install_worker.cc#newcode1006 chrome/installer/setup/install_worker.cc:1006: } else { ...
9 years, 3 months ago (2011-09-23 18:21:07 UTC) #6
robertshield
LGTM http://codereview.chromium.org/7976045/diff/10/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): http://codereview.chromium.org/7976045/diff/10/chrome/installer/setup/install_worker.cc#newcode1006 chrome/installer/setup/install_worker.cc:1006: } else { On 2011/09/23 18:21:07, grt wrote: ...
9 years, 3 months ago (2011-09-23 18:34:24 UTC) #7
grt (UTC plus 2)
Thanks! http://codereview.chromium.org/7976045/diff/21001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): http://codereview.chromium.org/7976045/diff/21001/chrome/installer/setup/uninstall.cc#newcode125 chrome/installer/setup/uninstall.cc:125: WorkItem::CreateNoRollbackWorkItemList()); On 2011/09/23 18:34:24, robertshield wrote: > ^ ...
9 years, 3 months ago (2011-09-23 18:40:15 UTC) #8
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/7976045/24001
9 years, 3 months ago (2011-09-23 19:06:50 UTC) #9
commit-bot: I haz the power
9 years, 3 months ago (2011-09-23 19:07:00 UTC) #10
Presubmit check for 7976045-24001 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit ERRORS **
chrome/installer/util/copy_reg_key_work_item.h, line 34: new code should not use
wstrings.  If you are calling an API that accepts a wstring, fix the API.

chrome/installer/util/work_item.cc, line 29: new code should not use wstrings. 
If you are calling an API that accepts a wstring, fix the API.

chrome/installer/util/work_item.h, line 66: new code should not use wstrings. 
If you are calling an API that accepts a wstring, fix the API.

chrome/installer/util/work_item_list.cc, line 79: new code should not use
wstrings.  If you are calling an API that accepts a wstring, fix the API.

chrome/installer/util/copy_reg_key_work_item.cc, line 19: new code should not
use wstrings.  If you are calling an API that accepts a wstring, fix the API.

chrome/installer/util/work_item_list.h, line 43: new code should not use
wstrings.  If you are calling an API that accepts a wstring, fix the API.

chrome/installer/setup/install_worker.cc, line 1000: new code should not use
wstrings.  If you are calling an API that accepts a wstring, fix the API.

chrome/installer/setup/install_worker.cc, line 1023: new code should not use
wstrings.  If you are calling an API that accepts a wstring, fix the API.

chrome/installer/setup/install_worker.cc, line 1037: new code should not use
wstrings.  If you are calling an API that accepts a wstring, fix the API.

chrome/installer/setup/install_worker.cc, line 1038: new code should not use
wstrings.  If you are calling an API that accepts a wstring, fix the API.

Presubmit checks took 3.4s to calculate.

Was the presubmit check useful? Please send feedback & hate mail to
maruel@chromium.org!

Powered by Google App Engine
This is Rietveld 408576698