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

Issue 165414: Disable an extension when it is upgraded to a version that requires more (Closed)

Created:
11 years, 4 months ago by Matt Perry
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Disable an extension when it is upgraded to a version that requires more permissions then before, and prompt the user to re-enable. Incidentally, this required adding support for disabling extensions. BUG=12140 TEST=covered by unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23480

Patch Set 1 #

Total comments: 5

Patch Set 2 : fix chrome.gyp #

Total comments: 14

Patch Set 3 : review comments #

Total comments: 10

Patch Set 4 : more review comments #

Total comments: 1

Patch Set 5 : more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -72 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/browser.cc View 4 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_browsertest.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 3 3 chunks +31 lines, -20 lines 0 comments Download
M chrome/browser/extensions/extension_browsertests_misc.cc View 1 2 3 4 2 chunks +47 lines, -1 line 0 comments Download
A chrome/browser/extensions/extension_disabled_infobar_delegate.h View 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_disabled_infobar_delegate.cc View 1 chunk +92 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 3 chunks +36 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_ui_unittest.cc View 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 1 2 3 4 6 chunks +22 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 3 4 8 chunks +93 lines, -33 lines 0 comments Download
M chrome/browser/extensions/extensions_ui.h View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extensions_ui.cc View 1 2 4 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/resources/extensions_ui.html View 4 chunks +21 lines, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/notification_type.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/permissions-high-v2.crx View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/permissions-low-v1.crx View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/permissions-low-v1.pem View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension1.json View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension2.json View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/ui/create_extension_detail_value_expected_output/good-extension3.json View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Matt Perry
11 years, 4 months ago (2009-08-12 23:31:14 UTC) #1
Aaron Boodman
http://codereview.chromium.org/165414/diff/1/4 File chrome/browser/extensions/extension_browsertest.cc (right): http://codereview.chromium.org/165414/diff/1/4#newcode46 Line 46: NotificationRegistrar registrar; Fair enough :) http://codereview.chromium.org/165414/diff/1/4#newcode50 Line 50: ...
11 years, 4 months ago (2009-08-13 19:30:43 UTC) #2
Matt Perry
http://codereview.chromium.org/165414/diff/1/4 File chrome/browser/extensions/extension_browsertest.cc (right): http://codereview.chromium.org/165414/diff/1/4#newcode50 Line 50: MessageLoop::current()->PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask, On 2009/08/13 19:30:43, Aaron Boodman ...
11 years, 4 months ago (2009-08-13 19:56:29 UTC) #3
Aaron Boodman
http://codereview.chromium.org/165414/diff/29/37 File chrome/browser/extensions/extension_prefs.cc (right): http://codereview.chromium.org/165414/diff/29/37#newcode248 Line 248: return Extension::DISABLED; I think it is better to ...
11 years, 4 months ago (2009-08-14 03:21:47 UTC) #4
Matt Perry
http://codereview.chromium.org/165414/diff/29/37 File chrome/browser/extensions/extension_prefs.cc (right): http://codereview.chromium.org/165414/diff/29/37#newcode248 Line 248: return Extension::DISABLED; On 2009/08/14 03:21:47, Aaron Boodman wrote: ...
11 years, 4 months ago (2009-08-14 20:47:57 UTC) #5
Aaron Boodman
11 years, 4 months ago (2009-08-14 20:56:51 UTC) #6
lgtm, one more nit.

http://codereview.chromium.org/165414/diff/2001/2014
File chrome/browser/extensions/extensions_service.cc (right):

http://codereview.chromium.org/165414/diff/2001/2014#newcode305
Line 305: NotificationType::EXTENSION_LOAD_DISABLED,
Nit: I think a clearer name for this would be something like
EXTENSION_UPDATE_DISABLED.

Powered by Google App Engine
This is Rietveld 408576698