| Index: net/http/http_server_properties_impl.cc
|
| diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc
|
| index d66987869f02d84920b4f679c11563532d36a7d3..79c6e08dca802ef97d58f144b24b56e729df92c1 100644
|
| --- a/net/http/http_server_properties_impl.cc
|
| +++ b/net/http/http_server_properties_impl.cc
|
| @@ -246,7 +246,7 @@
|
| GetAlternativeServices(server);
|
| for (const AlternativeService& alternative_service :
|
| alternative_service_vector) {
|
| - if (alternative_service.protocol == kProtoQUIC) {
|
| + if (alternative_service.protocol == QUIC) {
|
| return true;
|
| }
|
| }
|
| @@ -340,7 +340,7 @@
|
| // If the alternative service is equivalent to the origin (same host, same
|
| // port, and both TCP), skip it.
|
| if (host_port_pair.Equals(alternative_service.host_port_pair()) &&
|
| - alternative_service.protocol == kProtoHTTP2) {
|
| + alternative_service.protocol == NPN_HTTP_2) {
|
| ++it;
|
| continue;
|
| }
|
| @@ -472,7 +472,7 @@
|
| const AlternativeService& alternative_service) {
|
| // Empty host means use host of origin, callers are supposed to substitute.
|
| DCHECK(!alternative_service.host.empty());
|
| - if (alternative_service.protocol == kProtoUnknown) {
|
| + if (alternative_service.protocol == UNINITIALIZED_ALTERNATE_PROTOCOL) {
|
| LOG(DFATAL) << "Trying to mark unknown alternate protocol broken.";
|
| return;
|
| }
|
| @@ -513,7 +513,7 @@
|
|
|
| bool HttpServerPropertiesImpl::WasAlternativeServiceRecentlyBroken(
|
| const AlternativeService& alternative_service) {
|
| - if (alternative_service.protocol == kProtoUnknown)
|
| + if (alternative_service.protocol == UNINITIALIZED_ALTERNATE_PROTOCOL)
|
| return false;
|
| return base::ContainsKey(recently_broken_alternative_services_,
|
| alternative_service);
|
| @@ -521,7 +521,7 @@
|
|
|
| void HttpServerPropertiesImpl::ConfirmAlternativeService(
|
| const AlternativeService& alternative_service) {
|
| - if (alternative_service.protocol == kProtoUnknown)
|
| + if (alternative_service.protocol == UNINITIALIZED_ALTERNATE_PROTOCOL)
|
| return;
|
| broken_alternative_services_.erase(alternative_service);
|
| recently_broken_alternative_services_.erase(alternative_service);
|
|
|