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

Unified Diff: net/http/http_server_properties_impl.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 | « net/http/http_response_headers.cc ('k') | net/http/transport_security_persister.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_impl.cc
diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc
index a4d3ad5e3a7163d6685dee16e3214829a3bf8510..7b997097febf3a9d80d27b124f236fde45ae7c70 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -214,7 +214,7 @@ void HttpServerPropertiesImpl::GetSpdyServerList(
it != spdy_servers_map_.end() && count < max_size; ++it) {
const std::string spdy_server = it->first;
if (it->second) {
- spdy_server_list->Append(new base::StringValue(spdy_server));
+ spdy_server_list->AppendString(spdy_server);
++count;
}
}
@@ -545,8 +545,7 @@ HttpServerPropertiesImpl::GetAlternativeServiceInfoAsValue() const {
if (IsAlternativeServiceBroken(alternative_service)) {
alternative_service_string.append(" (broken)");
}
- alternative_service_list->Append(
- new base::StringValue(alternative_service_string));
+ alternative_service_list->AppendString(alternative_service_string);
}
if (alternative_service_list->empty())
continue;
« no previous file with comments | « net/http/http_response_headers.cc ('k') | net/http/transport_security_persister.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698