Index: net/http/http_stream_factory_impl_job.cc |
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc |
index e91febf82cd8ef047ba7bbd1bdd79ecd74c7214e..c04cb47e82a5e57476f83dcdee7fd914a19c3fc1 100644 |
--- a/net/http/http_stream_factory_impl_job.cc |
+++ b/net/http/http_stream_factory_impl_job.cc |
@@ -140,7 +140,8 @@ |
NetLogCaptureMode /* capture_mode */) { |
std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
- dict->SetString("proto", NextProtoToString(negotiated_protocol)); |
+ dict->SetString("proto", |
+ SSLClientSocket::NextProtoToString(negotiated_protocol)); |
return std::move(dict); |
} |
@@ -213,14 +214,14 @@ |
// the same time since alternative services are used for requests that are |
// fetched directly, while the alternative proxy server is used for requests |
// that should be fetched using proxy. |
- DCHECK(alternative_service_.protocol == kProtoUnknown || |
+ DCHECK(alternative_service_.protocol == UNINITIALIZED_ALTERNATE_PROTOCOL || |
!alternative_proxy_server_.is_valid()); |
DCHECK(!alternative_proxy_server_.is_valid() || |
!(IsSpdyAlternative() || IsQuicAlternative())); |
// If either the alternative service protocol is specified or if the |
// alternative proxy server is valid, then the job type must be set to |
// either ALTERNATIVE or PRECONNECT. |
- DCHECK((alternative_service_.protocol == kProtoUnknown && |
+ DCHECK((alternative_service_.protocol == UNINITIALIZED_ALTERNATE_PROTOCOL && |
!alternative_proxy_server_.is_valid()) || |
(job_type_ == ALTERNATIVE || job_type_ == PRECONNECT)); |
// If the alternative proxy server is valid, then the job type must be |
@@ -1311,11 +1312,11 @@ |
} |
bool HttpStreamFactoryImpl::Job::IsSpdyAlternative() const { |
- return alternative_service_.protocol == kProtoHTTP2; |
+ return alternative_service_.protocol == NPN_HTTP_2; |
} |
bool HttpStreamFactoryImpl::Job::IsQuicAlternative() const { |
- return alternative_service_.protocol == kProtoQUIC; |
+ return alternative_service_.protocol == QUIC; |
} |
void HttpStreamFactoryImpl::Job::InitSSLConfig(SSLConfig* ssl_config, |