| 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..03ac55cec16c575d5892514d59c79ff435c6aa24 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(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
|
|
|