Index: chrome/browser/ui/webui/system_info_ui.cc |
diff --git a/chrome/browser/ui/webui/system_info_ui.cc b/chrome/browser/ui/webui/system_info_ui.cc |
index 1c14d01b58cef892c7015c9b314163b8739073a6..ebf7121cc532d4286b6a95240e271c6a7c7ade9d 100644 |
--- a/chrome/browser/ui/webui/system_info_ui.cc |
+++ b/chrome/browser/ui/webui/system_info_ui.cc |
@@ -152,8 +152,7 @@ void SystemInfoUIHTMLSource::RequestComplete() { |
webui::SetLoadTimeDataDefaults(app_locale, &strings); |
if (response_.get()) { |
- base::ListValue* details = new base::ListValue(); |
- strings.Set("details", details); |
+ auto details = base::MakeUnique<base::ListValue>(); |
for (SystemLogsResponse::const_iterator it = response_->begin(); |
it != response_->end(); |
++it) { |
@@ -162,6 +161,7 @@ void SystemInfoUIHTMLSource::RequestComplete() { |
val->SetString("statValue", it->second); |
details->Append(std::move(val)); |
} |
+ strings.Set("details", std::move(details)); |
} |
static const base::StringPiece systeminfo_html( |
ResourceBundle::GetSharedInstance().GetRawDataResource( |