Index: net/http/http_server_properties.cc |
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc |
index a9cbd7230e5eea4f24daf499cd2dd9a924a087aa..e03e97dfd1bd5d14f9cf370c80193e6c091d2fe4 100644 |
--- a/net/http/http_server_properties.cc |
+++ b/net/http/http_server_properties.cc |
@@ -101,9 +101,19 @@ AlternateProtocol AlternateProtocolFromNextProto(NextProto next_proto) { |
} |
std::string AlternateProtocolInfo::ToString() const { |
- return base::StringPrintf("%d:%s p=%f", port, |
- AlternateProtocolToString(protocol), |
- probability); |
+ return base::StringPrintf( |
+ "%d:%s p=%f", port, AlternateProtocolToString(protocol), probability); |
+} |
+ |
+std::string AlternateProtocolsToString(const AlternateProtocols& protocols) { |
+ std::string output{}; |
+ for (AlternateProtocols::const_iterator it = protocols.begin(); |
+ it != protocols.end(); |
+ ++it) { |
+ output.append(it->ToString()); |
+ output.append("; "); |
+ } |
+ return output; |
} |
} // namespace net |