Index: chrome/browser/ui/webui/options/certificate_manager_handler.cc |
diff --git a/chrome/browser/ui/webui/options/certificate_manager_handler.cc b/chrome/browser/ui/webui/options/certificate_manager_handler.cc |
index e4c42f4fd52a246abfdba99ecde8fffec73e573c..91f5f9f50d1717e92eead104cf5b116617b81179 100644 |
--- a/chrome/browser/ui/webui/options/certificate_manager_handler.cc |
+++ b/chrome/browser/ui/webui/options/certificate_manager_handler.cc |
@@ -1144,7 +1144,7 @@ void CertificateManagerHandler::PopulateTree( |
dict->SetString(kNameId, i->first); |
// Populate second level (certs). |
- base::ListValue* subnodes = new base::ListValue; |
+ auto subnodes = base::MakeUnique<base::ListValue>(); |
for (net::CertificateList::const_iterator org_cert_it = i->second.begin(); |
org_cert_it != i->second.end(); ++org_cert_it) { |
std::unique_ptr<base::DictionaryValue> cert_dict( |
@@ -1175,7 +1175,7 @@ void CertificateManagerHandler::PopulateTree( |
} |
std::sort(subnodes->begin(), subnodes->end(), comparator); |
- dict->Set(kSubNodesId, subnodes); |
+ dict->Set(kSubNodesId, std::move(subnodes)); |
nodes->Append(std::move(dict)); |
} |
std::sort(nodes->begin(), nodes->end(), comparator); |