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

Unified Diff: extensions/browser/event_router.cc

Issue 2843813002: Remove SetWithoutPathExpansion (Closed)
Patch Set: Fix CrOS Error Created 3 years, 8 months 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 | « extensions/browser/api/web_request/upload_data_presenter.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | 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 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());
« no previous file with comments | « extensions/browser/api/web_request/upload_data_presenter.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698