Index: extensions/browser/api/web_request/upload_data_presenter.cc |
diff --git a/extensions/browser/api/web_request/upload_data_presenter.cc b/extensions/browser/api/web_request/upload_data_presenter.cc |
index 259865da69aa570cbe3a7c8dc410d96e35018f8b..0a3fd2477e3289bc09901e75482e45bef462a49d 100644 |
--- a/extensions/browser/api/web_request/upload_data_presenter.cc |
+++ b/extensions/browser/api/web_request/upload_data_presenter.cc |
@@ -30,8 +30,9 @@ base::ListValue* GetOrCreateList(base::DictionaryValue* dictionary, |
const std::string& key) { |
base::ListValue* list = nullptr; |
if (!dictionary->GetList(key, &list)) { |
- list = new base::ListValue(); |
- dictionary->SetWithoutPathExpansion(key, base::WrapUnique(list)); |
+ dictionary->SetWithoutPathExpansion(key, |
+ base::MakeUnique<base::ListValue>()); |
+ dictionary->GetListWithoutPathExpansion(key, &list); |
} |
return list; |
} |