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

Unified Diff: extensions/browser/api/web_request/upload_data_presenter.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
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;
}

Powered by Google App Engine
This is Rietveld 408576698