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

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-add Patch Set 1. See tests passing in trybot output. 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
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 3f6caaae309649bc5a623441b3a8da50b6325cfc..5ce7d4e8d2abf00af04df6657b7ed38669b9bed0 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') | net/http/http_server_properties_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698