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

Issue 2738553002: [Extensions] Log instances of invalid extensions being added (Closed)

Created:
3 years, 9 months ago by Devlin
Modified:
3 years, 9 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, lfg
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Log instances of invalid extensions being added In theory, we should never add an extension with an invalid location (install source). However, in practice, bugs imply that this might be able to happen. Add some more tracking in ExtensionService::AddExtension to both upload a crash dump and gracefully early-out any case where we try to add invalid extensions. BUG=692069 BUG=698736 Review-Url: https://codereview.chromium.org/2738553002 Cr-Commit-Position: refs/heads/master@{#455897} Committed: https://chromium.googlesource.com/chromium/src/+/08ada0f645a7440d60b0004392b6330582c1da7e

Patch Set 1 #

Total comments: 6

Patch Set 2 : lazyboy's + test fix #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Messages

Total messages: 20 (8 generated)
Devlin
https://codereview.chromium.org/2738553002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/2738553002/diff/1/chrome/browser/extensions/extension_service.cc#newcode1492 chrome/browser/extensions/extension_service.cc:1492: base::debug::DumpWithoutCrashing(); I don't think I've ever actually used this ...
3 years, 9 months ago (2017-03-06 22:10:00 UTC) #2
lazyboy
/cc lfg about base::debug::Alias() https://codereview.chromium.org/2738553002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/2738553002/diff/1/chrome/browser/extensions/extension_service.cc#newcode1487 chrome/browser/extensions/extension_service.cc:1487: // TODO(devlin): We should *never* ...
3 years, 9 months ago (2017-03-06 23:08:11 UTC) #3
Devlin
https://codereview.chromium.org/2738553002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/2738553002/diff/1/chrome/browser/extensions/extension_service.cc#newcode1487 chrome/browser/extensions/extension_service.cc:1487: // TODO(devlin): We should *never* add an extension with ...
3 years, 9 months ago (2017-03-07 01:31:40 UTC) #6
lfg
https://codereview.chromium.org/2738553002/diff/1/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/2738553002/diff/1/chrome/browser/extensions/extension_service.cc#newcode1492 chrome/browser/extensions/extension_service.cc:1492: base::debug::DumpWithoutCrashing(); On 2017/03/07 01:31:40, Devlin wrote: > On 2017/03/06 ...
3 years, 9 months ago (2017-03-07 17:00:30 UTC) #8
lazyboy
https://codereview.chromium.org/2738553002/diff/40001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/2738553002/diff/40001/chrome/browser/extensions/extension_service.cc#newcode1492 chrome/browser/extensions/extension_service.cc:1492: char extension_id_copy[32]; I think you need 33 here, b/c ...
3 years, 9 months ago (2017-03-08 19:01:01 UTC) #9
Devlin
https://codereview.chromium.org/2738553002/diff/40001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/2738553002/diff/40001/chrome/browser/extensions/extension_service.cc#newcode1492 chrome/browser/extensions/extension_service.cc:1492: char extension_id_copy[32]; On 2017/03/08 19:01:01, lazyboy wrote: > I ...
3 years, 9 months ago (2017-03-09 01:23:38 UTC) #10
Devlin
+battre for profile_resetter +atwilson for background Just updating tests to not use invalid manifest locations.
3 years, 9 months ago (2017-03-09 01:24:15 UTC) #12
Andrew T Wilson (Slow)
background/ lgtm
3 years, 9 months ago (2017-03-09 09:08:36 UTC) #13
lazyboy
Sorry this slipped through, lgtm
3 years, 9 months ago (2017-03-09 18:16:24 UTC) #14
battre
lgtm
3 years, 9 months ago (2017-03-09 20:53:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2738553002/60001
3 years, 9 months ago (2017-03-09 21:14:11 UTC) #17
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 23:30:39 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/08ada0f645a7440d60b0004392b6...

Powered by Google App Engine
This is Rietveld 408576698