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

Issue 2523913003: Fix bugs in filtered event removal code (Closed)

Created:
4 years ago by lazyboy
Modified:
4 years ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix bugs in filtered event removal code 1. There was a typo bug in EventRouter::RemoveFilterFromEvent() 2. The way we are writing and reading filtered events in ExtensionPrefs was inconsistent: using GetList vs GetListWithoutPathExpansion. This matters because event names, which are used as dictionary keys, generally contain dots in them. e.g. chrome.onFoo Add unit tests to cover these changes. BUG=670852 Test=None Committed: https://crrev.com/348e5ca732110d639d2aea576535c12383836ffb Cr-Commit-Position: refs/heads/master@{#436419}

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 18

Patch Set 4 : address comments #

Patch Set 5 : sync @tott #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -5 lines) Patch
M extensions/browser/event_router.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/event_router.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M extensions/browser/event_router_unittest.cc View 1 2 3 4 chunks +171 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
lazyboy
4 years ago (2016-11-24 01:14:37 UTC) #4
Devlin
lgtm, but the fact that no tests caught this makes me worried. https://codereview.chromium.org/2523913003/diff/1/extensions/browser/event_router.cc File extensions/browser/event_router.cc ...
4 years ago (2016-11-24 01:21:33 UTC) #7
lazyboy
CL updated with fixing both bugs instead and I wrote unit tests to cover them, ...
4 years ago (2016-12-02 21:13:28 UTC) #11
Devlin
https://codereview.chromium.org/2523913003/diff/40001/extensions/browser/event_router_unittest.cc File extensions/browser/event_router_unittest.cc (right): https://codereview.chromium.org/2523913003/diff/40001/extensions/browser/event_router_unittest.cc#newcode12 extensions/browser/event_router_unittest.cc:12: #include "base/compiler_specific.h" #include "base/macros.h" typo https://codereview.chromium.org/2523913003/diff/40001/extensions/browser/event_router_unittest.cc#newcode126 extensions/browser/event_router_unittest.cc:126: filter_dict->Set("hostSuffix", new ...
4 years ago (2016-12-02 21:41:25 UTC) #12
lazyboy
https://codereview.chromium.org/2523913003/diff/40001/extensions/browser/event_router_unittest.cc File extensions/browser/event_router_unittest.cc (right): https://codereview.chromium.org/2523913003/diff/40001/extensions/browser/event_router_unittest.cc#newcode12 extensions/browser/event_router_unittest.cc:12: #include "base/compiler_specific.h" #include "base/macros.h" On 2016/12/02 21:41:24, Devlin wrote: ...
4 years ago (2016-12-03 00:12:26 UTC) #13
Devlin
lgtm
4 years ago (2016-12-05 19:39:13 UTC) #14
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/2523913003/80001
4 years ago (2016-12-05 20:57:05 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-05 21:44:01 UTC) #20
commit-bot: I haz the power
4 years ago (2016-12-05 21:46:43 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/348e5ca732110d639d2aea576535c12383836ffb
Cr-Commit-Position: refs/heads/master@{#436419}

Powered by Google App Engine
This is Rietveld 408576698