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

Unified Diff: net/http/http_server_properties_impl.cc

Issue 1205633002: Set alternative service even if it is broken. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: #7. Created 5 years, 6 months 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 | « no previous file | net/http/http_server_properties_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2484371ada1b03c38d0861236a7d7b91bee86079..fbb9df1eebd1b47da146e15da1b831c68df45900 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -278,15 +278,6 @@ void HttpServerPropertiesImpl::SetAlternativeService(
const HostPortPair& origin,
const AlternativeService& alternative_service,
double alternative_probability) {
- AlternativeService complete_alternative_service(alternative_service);
- if (complete_alternative_service.host.empty()) {
- complete_alternative_service.host = origin.host();
- }
- if (IsAlternativeServiceBroken(complete_alternative_service)) {
- DVLOG(1) << "Ignore alternative service since it is known to be broken.";
- return;
- }
-
const AlternativeServiceInfo alternative_service_info(
alternative_service, alternative_probability);
AlternativeServiceMap::const_iterator it =
« no previous file with comments | « no previous file | net/http/http_server_properties_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698