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 e9584c32787e32f784083101cce8fb3fbe833b1f..dbc6c9147432e21fa68b557e1ec214c7f3846c19 100644 |
--- a/extensions/browser/api/web_request/upload_data_presenter.cc |
+++ b/extensions/browser/api/web_request/upload_data_presenter.cc |
@@ -46,9 +46,9 @@ namespace subtle { |
void AppendKeyValuePair(const char* key, |
base::Value* value, |
base::ListValue* list) { |
- base::DictionaryValue* dictionary = new base::DictionaryValue; |
+ std::unique_ptr<base::DictionaryValue> dictionary(new base::DictionaryValue); |
dictionary->SetWithoutPathExpansion(key, value); |
- list->Append(dictionary); |
+ list->Append(std::move(dictionary)); |
} |
} // namespace subtle |