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

Issue 7003068: Fix crash when you uninstall a permissions-upgrade disabled extension. (Closed)

Created:
9 years, 6 months ago by asargent_no_longer_on_chrome
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix crash when you uninstall a permissions-upgrade disabled extension. When an extension is disabled because a newer version requires higher permissions, if you then uninstall the extension while the infobar warning is still up, you'll get a crash if you switch to the tab that had the infobar. This patch makes the infobar notice the extension uninstall and remove itself. BUG=84826 TEST=As detailed in description above (and outlined in bug report too). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88458

Patch Set 1 #

Total comments: 1

Patch Set 2 : initialize extension to NULL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -3 lines) Patch
M chrome/browser/extensions/extension_disabled_infobar_delegate.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_management_browsertest.cc View 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
asargent_no_longer_on_chrome
9 years, 6 months ago (2011-06-08 21:47:27 UTC) #1
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/7003068/diff/1/chrome/browser/extensions/extension_disabled_infobar_delegate.cc File chrome/browser/extensions/extension_disabled_infobar_delegate.cc (right): http://codereview.chromium.org/7003068/diff/1/chrome/browser/extensions/extension_disabled_infobar_delegate.cc#newcode161 chrome/browser/extensions/extension_disabled_infobar_delegate.cc:161: if (info->reason == UnloadedExtensionInfo::DISABLE || Won't this leave ...
9 years, 6 months ago (2011-06-08 23:20:44 UTC) #2
asargent_no_longer_on_chrome
> Won't this leave extension uninitialized if it's not a disable or uninstall? Is > ...
9 years, 6 months ago (2011-06-08 23:40:12 UTC) #3
commit-bot: I haz the power
9 years, 6 months ago (2011-06-09 01:18:43 UTC) #4
Change committed as 88458

Powered by Google App Engine
This is Rietveld 408576698