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

Unified Diff: net/http/transport_security_persister.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_server_properties_impl.cc ('k') | net/proxy/proxy_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_persister.cc
diff --git a/net/http/transport_security_persister.cc b/net/http/transport_security_persister.cc
index e383c392ebc69c1ff4d24622fdc15233df2d1ae6..a37d2379db2993f847c9461dc42e8ef8d49fd30f 100644
--- a/net/http/transport_security_persister.cc
+++ b/net/http/transport_security_persister.cc
@@ -29,7 +29,7 @@ namespace {
base::ListValue* SPKIHashesToListValue(const HashValueVector& hashes) {
base::ListValue* pins = new base::ListValue;
for (size_t i = 0; i != hashes.size(); i++)
- pins->Append(new base::StringValue(hashes[i].ToString()));
+ pins->AppendString(hashes[i].ToString());
return pins;
}
« no previous file with comments | « net/http/http_server_properties_impl.cc ('k') | net/proxy/proxy_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698