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

Unified Diff: net/base/address_list.cc

Issue 2037933002: Remove ListValue::Append(new {Fundamental,String}Value(...)) pattern in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | net/cert/x509_certificate_net_log_param.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_list.cc
diff --git a/net/base/address_list.cc b/net/base/address_list.cc
index 754b396a9ec664bb6a57ae8947e8c27b7b3b7bbf..5ef9675df02c61d39e6fe0ebd10a1351d181528a 100644
--- a/net/base/address_list.cc
+++ b/net/base/address_list.cc
@@ -23,7 +23,7 @@ std::unique_ptr<base::Value> NetLogAddressListCallback(
for (AddressList::const_iterator it = address_list->begin();
it != address_list->end(); ++it) {
- list->Append(new base::StringValue(it->ToString()));
+ list->AppendString(it->ToString());
}
dict->Set("address_list", std::move(list));
« no previous file with comments | « no previous file | net/cert/x509_certificate_net_log_param.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698