Index: net/http/http_server_properties.cc |
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc |
index 514278cc2224253a0a2a8414c517e3bdae00b1b0..ba969729b04ddabc7b02b3df565193e5a23cfaed 100644 |
--- a/net/http/http_server_properties.cc |
+++ b/net/http/http_server_properties.cc |
@@ -103,11 +103,21 @@ AlternateProtocol AlternateProtocolFromNextProto(NextProto next_proto) { |
std::string AlternateProtocolInfo::ToString() const { |
return base::StringPrintf("%d:%s p=%f%s", port, |
- AlternateProtocolToString(protocol), |
- probability, |
+ AlternateProtocolToString(protocol), probability, |
is_broken ? " (broken)" : ""); |
} |
+std::string AlternateProtocolsToString(const AlternateProtocols& protocols) { |
+ std::string output; |
+ for (AlternateProtocols::const_iterator it = protocols.begin(); |
+ it != protocols.end(); ++it) { |
+ if (!output.empty()) |
+ output.append("; "); |
+ output.append(it->ToString()); |
+ } |
+ return output; |
+} |
+ |
// static |
void HttpServerProperties::ForceHTTP11(SSLConfig* ssl_config) { |
ssl_config->next_protos.clear(); |