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

Unified Diff: net/http/http_server_properties_impl.cc

Issue 411423003: Make the default alternate protcol probability threshold 1, not 0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « net/http/http_network_session.cc ('k') | 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 4bb544d3303694f3ec96b137fd8e499b49ee0387..56f30621835bae7a14c608b315123b63db90de59 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -26,7 +26,7 @@ HttpServerPropertiesImpl::HttpServerPropertiesImpl()
alternate_protocol_experiment_(
ALTERNATE_PROTOCOL_NOT_PART_OF_EXPERIMENT),
spdy_settings_map_(SpdySettingsMap::NO_AUTO_EVICT),
- alternate_protocol_probability_threshold_(0),
+ alternate_protocol_probability_threshold_(1),
weak_ptr_factory_(this) {
canoncial_suffixes_.push_back(".c.youtube.com");
canoncial_suffixes_.push_back(".googlevideo.com");
@@ -198,7 +198,7 @@ bool HttpServerPropertiesImpl::HasAlternateProtocol(
return true;
AlternateProtocolMap::const_iterator it = alternate_protocol_map_.Get(server);
if (it != alternate_protocol_map_.end() &&
- it->second.probability > alternate_protocol_probability_threshold_) {
+ it->second.probability >= alternate_protocol_probability_threshold_) {
return true;
}
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_server_properties_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698