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

Unified Diff: extensions/browser/event_router.cc

Issue 2523913003: Fix bugs in filtered event removal code (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/event_router.cc
diff --git a/extensions/browser/event_router.cc b/extensions/browser/event_router.cc
index e70a78c528aaf8a774142fc846997502fd294679..5dcb3b307de0a671cd896715e0ae167220acc632 100644
--- a/extensions/browser/event_router.cc
+++ b/extensions/browser/event_router.cc
@@ -419,9 +419,9 @@ void EventRouter::RemoveFilterFromEvent(const std::string& event_name,
}
for (size_t i = 0; i < filter_list->GetSize(); i++) {
- DictionaryValue* filter = NULL;
- CHECK(filter_list->GetDictionary(i, &filter));
- if (filter->Equals(filter)) {
+ DictionaryValue* filter_value = NULL;
+ CHECK(filter_list->GetDictionary(i, &filter_value));
+ if (filter_value->Equals(filter)) {
Devlin 2016/11/24 01:21:32 ... so this meant we were always removing the fir
lazyboy 2016/12/02 21:13:28 *Almost*. The fact that we had bug in writing thos
filter_list->Remove(i, NULL);
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698