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

Unified Diff: net/base/net_log_util.cc

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/base/filename_util_unittest.cc ('k') | net/data/proxy_resolver_v8_unittest/pac_library_unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_log_util.cc
diff --git a/net/base/net_log_util.cc b/net/base/net_log_util.cc
index 3b437aadbda6a0952f120a9b3ab5fc927a638213..75be128851425df39202c8ab91a839427e28904d 100644
--- a/net/base/net_log_util.cc
+++ b/net/base/net_log_util.cc
@@ -33,6 +33,7 @@
#include "net/proxy/proxy_service.h"
#include "net/quic/quic_protocol.h"
#include "net/quic/quic_utils.h"
+#include "net/socket/ssl_client_socket.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
@@ -447,10 +448,17 @@ NET_EXPORT scoped_ptr<base::DictionaryValue> GetNetInfo(
"force_spdy_always",
http_network_session->params().force_spdy_always);
- std::vector<std::string> next_protos;
+ NextProtoVector next_protos;
http_network_session->GetNextProtos(&next_protos);
- std::string next_protos_string = JoinString(next_protos, ',');
- status_dict->SetString("next_protos", next_protos_string);
+ if (!next_protos.empty()) {
+ std::string next_protos_string;
+ for (const NextProto proto : next_protos) {
+ if (!next_protos_string.empty())
+ next_protos_string.append(",");
+ next_protos_string.append(SSLClientSocket::NextProtoToString(proto));
+ }
+ status_dict->SetString("next_protos", next_protos_string);
+ }
net_info_dict->Set(NetInfoSourceToString(NET_INFO_SPDY_STATUS),
status_dict);
« no previous file with comments | « net/base/filename_util_unittest.cc ('k') | net/data/proxy_resolver_v8_unittest/pac_library_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698