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

Unified Diff: extensions/browser/api/web_request/upload_data_presenter.cc

Issue 2370633002: replace deprecated version of SetWithoutPathExpansion (Closed)
Patch Set: use MakeUnique Created 4 years, 3 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
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 3bb1d8019d32e3a9af3e8be94df323a124cd9ac8..ff63010bc56ca5ff1b84146be66855a7d82d54c1 100644
--- a/extensions/browser/api/web_request/upload_data_presenter.cc
+++ b/extensions/browser/api/web_request/upload_data_presenter.cc
@@ -30,10 +30,10 @@ namespace {
// for |key|, creating it if necessary.
base::ListValue* GetOrCreateList(base::DictionaryValue* dictionary,
const std::string& key) {
- base::ListValue* list = NULL;
+ base::ListValue* list = nullptr;
if (!dictionary->GetList(key, &list)) {
list = new base::ListValue();
- dictionary->SetWithoutPathExpansion(key, list);
+ dictionary->SetWithoutPathExpansion(key, base::WrapUnique(list));
}
return list;
}

Powered by Google App Engine
This is Rietveld 408576698