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

Issue 9320021: Fix crash in ExtensionService::InitializePermissions(). (Closed)

Created:
8 years, 10 months ago by jstritar
Modified:
8 years, 10 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, mihaip+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix crash in ExtensionService::InitializePermissions(). This crash occurs when an unpacked extension changes IDs by adding a key to its manifest. The extension preferences are stored under the old key. This started causing problems because now we record granted permissions for unpacked extensions. BUG=112301 TEST=ExtensionServiceTest.UnpackedExtensionCanChangeID Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120123

Patch Set 1 #

Total comments: 1

Patch Set 2 : add the test data #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -4 lines) Patch
M chrome/browser/extensions/extension_service_unittest.cc View 2 chunks +45 lines, -0 lines 0 comments Download
M chrome/browser/extensions/installed_loader.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/permissions_updater.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/unpacked/manifest_no_key.json View 1 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/unpacked/manifest_with_key.json View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jstritar
http://codereview.chromium.org/9320021/diff/1/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/9320021/diff/1/chrome/common/extensions/extension.cc#newcode2669 chrome/common/extensions/extension.cc:2669: } This method isn't very useful anymore (used in ...
8 years, 10 months ago (2012-02-01 21:46:33 UTC) #1
Aaron Boodman
lgtm
8 years, 10 months ago (2012-02-01 21:58:37 UTC) #2
Aaron Boodman
8 years, 10 months ago (2012-02-02 00:43:51 UTC) #3
As to your question about whether it is OK to increase the size of
Preferences file by always including granted permissions...

I think it would be good to keep the size of the prefs file down as
much as possible. Let's keep it the way you have it now for awhile and
see if it continues to cause problems.

- a

On Wed, Feb 1, 2012 at 1:58 PM,  <aa@chromium.org> wrote:
> lgtm
>
> http://codereview.chromium.org/9320021/

Powered by Google App Engine
This is Rietveld 408576698