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

Issue 10534125: Extend EventFilter to handle the case where EventMatchers from event X get (Closed)

Created:
8 years, 6 months ago by koz (OOO until 15th September)
Modified:
8 years, 6 months ago
Reviewers:
Matt Perry, battre
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, mpcomplete, benwells, aa, not at google - send to devlin
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix bug in EventFilter that arises when matchers are added to multiple events. This change fixes a bug in EventFilter to handle the case where the existence of matching EventMatchers for event X causes matching against an event with name Y to crash. It also changes the representation of EventMatcher so that it owns the entire filter dictionary. BUG=121479 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143142

Patch Set 1 #

Total comments: 2

Patch Set 2 : respond to comments #

Total comments: 4

Patch Set 3 : respond to comments #

Total comments: 14

Patch Set 4 : respond to comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -45 lines) Patch
M chrome/common/extensions/event_filter.h View 1 2 3 3 chunks +13 lines, -5 lines 0 comments Download
M chrome/common/extensions/event_filter.cc View 1 2 3 4 chunks +35 lines, -11 lines 0 comments Download
M chrome/common/extensions/event_filter_unittest.cc View 6 chunks +29 lines, -16 lines 0 comments Download
M chrome/common/extensions/event_filtering_info.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/extensions/event_filtering_info.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/common/extensions/event_matcher.h View 1 2 3 1 chunk +12 lines, -11 lines 0 comments Download
M chrome/common/extensions/event_matcher.cc View 1 2 3 2 chunks +25 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
koz (OOO until 15th September)
These changes support the implementation of event filtering in http://codereview.chromium.org/10514013/.
8 years, 6 months ago (2012-06-12 22:50:18 UTC) #1
Matt Perry
https://chromiumcodereview.appspot.com/10534125/diff/1/chrome/common/extensions/event_filtering_info.cc File chrome/common/extensions/event_filtering_info.cc (right): https://chromiumcodereview.appspot.com/10534125/diff/1/chrome/common/extensions/event_filtering_info.cc#newcode30 chrome/common/extensions/event_filtering_info.cc:30: value.SetString("testing", "hello"); remove?
8 years, 6 months ago (2012-06-12 23:33:37 UTC) #2
koz (OOO until 15th September)
https://chromiumcodereview.appspot.com/10534125/diff/1/chrome/common/extensions/event_filtering_info.cc File chrome/common/extensions/event_filtering_info.cc (right): https://chromiumcodereview.appspot.com/10534125/diff/1/chrome/common/extensions/event_filtering_info.cc#newcode30 chrome/common/extensions/event_filtering_info.cc:30: value.SetString("testing", "hello"); On 2012/06/12 23:33:37, Matt Perry wrote: > ...
8 years, 6 months ago (2012-06-12 23:47:09 UTC) #3
battre
https://chromiumcodereview.appspot.com/10534125/diff/6001/chrome/common/extensions/event_filter.h File chrome/common/extensions/event_filter.h (right): https://chromiumcodereview.appspot.com/10534125/diff/6001/chrome/common/extensions/event_filter.h#newcode75 chrome/common/extensions/event_filter.h:75: EventMatcher* event_matcher() const { remove this const? https://chromiumcodereview.appspot.com/10534125/diff/6001/chrome/common/extensions/event_filtering_info.h File ...
8 years, 6 months ago (2012-06-13 09:22:04 UTC) #4
koz (OOO until 15th September)
https://chromiumcodereview.appspot.com/10534125/diff/6001/chrome/common/extensions/event_filter.h File chrome/common/extensions/event_filter.h (right): https://chromiumcodereview.appspot.com/10534125/diff/6001/chrome/common/extensions/event_filter.h#newcode75 chrome/common/extensions/event_filter.h:75: EventMatcher* event_matcher() const { On 2012/06/13 09:22:04, battre wrote: ...
8 years, 6 months ago (2012-06-14 02:22:25 UTC) #5
koz (OOO until 15th September)
Friendly ping.
8 years, 6 months ago (2012-06-18 00:57:20 UTC) #6
battre
LGTM with nits. https://chromiumcodereview.appspot.com/10534125/diff/4002/chrome/common/extensions/event_filter.cc File chrome/common/extensions/event_filter.cc (right): https://chromiumcodereview.appspot.com/10534125/diff/4002/chrome/common/extensions/event_filter.cc#newcode68 chrome/common/extensions/event_filter.cc:68: EventMatcher* EventFilter::GetEventMatcher(MatcherID id) { opt: DCHECK(id_to_event_name_.find(id) ...
8 years, 6 months ago (2012-06-18 12:29:17 UTC) #7
Matt Perry
lgtm
8 years, 6 months ago (2012-06-18 18:17:12 UTC) #8
koz (OOO until 15th September)
Thanks, guys. https://chromiumcodereview.appspot.com/10534125/diff/4002/chrome/common/extensions/event_filter.cc File chrome/common/extensions/event_filter.cc (right): https://chromiumcodereview.appspot.com/10534125/diff/4002/chrome/common/extensions/event_filter.cc#newcode68 chrome/common/extensions/event_filter.cc:68: EventMatcher* EventFilter::GetEventMatcher(MatcherID id) { On 2012/06/18 12:29:17, ...
8 years, 6 months ago (2012-06-19 00:07:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/10534125/17001
8 years, 6 months ago (2012-06-19 00:08:20 UTC) #10
commit-bot: I haz the power
Try job failure for 10534125-17001 (retry) (retry) on win_rel for step "chrome_frame_net_tests". It's a second ...
8 years, 6 months ago (2012-06-19 04:15:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/10534125/17001
8 years, 6 months ago (2012-06-19 04:24:40 UTC) #12
commit-bot: I haz the power
Try job failure for 10534125-17001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-19 06:15:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/10534125/21002
8 years, 6 months ago (2012-06-19 06:49:06 UTC) #14
commit-bot: I haz the power
Try job failure for 10534125-21002 (retry) (retry) on win_rel for step "chrome_frame_net_tests". It's a second ...
8 years, 6 months ago (2012-06-19 12:55:42 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/10534125/21002
8 years, 6 months ago (2012-06-20 03:00:08 UTC) #16
commit-bot: I haz the power
8 years, 6 months ago (2012-06-20 04:45:35 UTC) #17
Change committed as 143142

Powered by Google App Engine
This is Rietveld 408576698