Index: extensions/browser/event_router.cc |
diff --git a/extensions/browser/event_router.cc b/extensions/browser/event_router.cc |
index 67eb46374e496e733c550043072b1c0ad429de44..f2601d6979b5f73c7bc0672080c590761e10180c 100644 |
--- a/extensions/browser/event_router.cc |
+++ b/extensions/browser/event_router.cc |
@@ -398,9 +398,9 @@ void EventRouter::AddFilterToEvent(const std::string& event_name, |
ListValue* filter_list = nullptr; |
if (!filtered_events->GetListWithoutPathExpansion(event_name, &filter_list)) { |
- filter_list = new ListValue; |
- filtered_events->SetWithoutPathExpansion(event_name, |
- base::WrapUnique(filter_list)); |
+ filtered_events->SetWithoutPathExpansion( |
+ event_name, base::MakeUnique<base::ListValue>()); |
+ filtered_events->GetListWithoutPathExpansion(event_name, &filter_list); |
} |
filter_list->Append(filter->CreateDeepCopy()); |