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

Issue 1835863002: Added check for behavior feature existense (Closed)

Created:
4 years, 8 months ago by matthewtff.asm
Modified:
4 years, 8 months ago
Reviewers:
benwells
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added check for behavior feature existense Sometimes JSONReader fails to read json from resources(or resources are broken). So add some error checking to prevent browser crash in such cases. See https://bugs.chromium.org/p/chromium/issues/detail?id=176381 for more details BUG=602936 Committed: https://crrev.com/604a2ac93c3427d614e100a699e16567dae14ef9 Cr-Commit-Position: refs/heads/master@{#387565}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Make Get*Feature return |nullptr| instead crash if feature is missing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -18 lines) Patch
M chrome/browser/extensions/extension_util.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/extensions/application_launch.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/sync_helper.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/extension_zoom_request_client.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M extensions/browser/guest_view/extensions_guest_view_manager_delegate.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M extensions/common/features/feature_provider.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/common/features/feature_provider.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
matthewtff.asm
We receive crashes at https://code.google.com/p/chromium/codesearch#chromium/src/extensions/common/features/feature_provider.cc&q=GetFeatureFromProviderByName&sq=package:chromium&l=71 due to unavailable behavior feature. My invstigation led me to ...
4 years, 8 months ago (2016-03-28 07:15:14 UTC) #1
matthewtff.asm
Gentle ping
4 years, 8 months ago (2016-04-06 12:22:41 UTC) #4
benwells
On 2016/04/06 12:22:41, matthewtff.asm wrote: > Gentle ping Sorry about that. For some reason I ...
4 years, 8 months ago (2016-04-12 00:14:50 UTC) #5
matthewtff.asm
On 2016/04/12 00:14:50, benwells wrote: > Sorry about that. For some reason I missed the ...
4 years, 8 months ago (2016-04-12 09:08:33 UTC) #6
benwells
On 2016/04/12 09:08:33, matthewtff.asm wrote: > On 2016/04/12 00:14:50, benwells wrote: > > Sorry about ...
4 years, 8 months ago (2016-04-13 03:04:40 UTC) #7
matthewtff.asm
On 2016/04/13 03:04:40, benwells wrote: > On 2016/04/12 09:08:33, matthewtff.asm wrote: > > On 2016/04/12 ...
4 years, 8 months ago (2016-04-13 06:38:31 UTC) #8
benwells
Thanks for adding the bug! https://codereview.chromium.org/1835863002/diff/1/extensions/common/features/feature_provider.h File extensions/common/features/feature_provider.h (right): https://codereview.chromium.org/1835863002/diff/1/extensions/common/features/feature_provider.h#newcode16 extensions/common/features/feature_provider.h:16: class Extension; It's nice ...
4 years, 8 months ago (2016-04-14 06:36:15 UTC) #10
matthewtff.asm
On 2016/04/14 06:36:15, benwells wrote: > Can you revert the changes in this file, but ...
4 years, 8 months ago (2016-04-14 16:16:46 UTC) #11
benwells
lgtm
4 years, 8 months ago (2016-04-15 05:41:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1835863002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1835863002/20001
4 years, 8 months ago (2016-04-15 09:03:16 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-15 09:57:08 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 10:02:02 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/604a2ac93c3427d614e100a699e16567dae14ef9
Cr-Commit-Position: refs/heads/master@{#387565}

Powered by Google App Engine
This is Rietveld 408576698