diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-16 18:23:21 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-16 18:23:21 +0000 |
commit | 17d7d3ab19145001a7d512d3c16982c46463175d (patch) | |
tree | f580d12f296990aebd77424f8bdcd9e2e1323b5f /net/http/http_stream_factory_impl.cc | |
parent | b10c54d852dc3dd198df86430eeeaf5325f3129b (diff) | |
download | chromium_src-17d7d3ab19145001a7d512d3c16982c46463175d.zip chromium_src-17d7d3ab19145001a7d512d3c16982c46463175d.tar.gz chromium_src-17d7d3ab19145001a7d512d3c16982c46463175d.tar.bz2 |
The SPDY Exclusions were broken; the intent of the exclusion is so that our
benchmark harness can force SPDY, but still report to the benchmark harness
itself in non-spdy mode.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6674031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_factory_impl.cc')
-rw-r--r-- | net/http/http_stream_factory_impl.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/net/http/http_stream_factory_impl.cc b/net/http/http_stream_factory_impl.cc index 8a1ee60..63db456 100644 --- a/net/http/http_stream_factory_impl.cc +++ b/net/http/http_stream_factory_impl.cc @@ -18,19 +18,6 @@ namespace net { namespace { -bool HasSpdyExclusion(const HostPortPair& endpoint) { - std::list<HostPortPair>* exclusions = - HttpStreamFactory::forced_spdy_exclusions(); - if (!exclusions) - return false; - - std::list<HostPortPair>::const_iterator it; - for (it = exclusions->begin(); it != exclusions->end(); it++) - if (it->Equals(endpoint)) - return true; - return false; -} - GURL UpgradeUrlToHttps(const GURL& original_url) { GURL::Replacements replacements; // new_sheme and new_port need to be in scope here because GURL::Replacements @@ -158,7 +145,7 @@ bool HttpStreamFactoryImpl::GetAlternateProtocolRequestFor( return false; origin.set_port(alternate.port); - if (HasSpdyExclusion(origin)) + if (HttpStreamFactory::HasSpdyExclusion(origin)) return false; *alternate_url = UpgradeUrlToHttps(original_url); |