diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 23:25:34 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 23:25:34 +0000 |
commit | 28fd315edf0cf8f4b238dbc5eb58c1842507cd27 (patch) | |
tree | 9e5a7712c84f0a9f118e4412e950c9da0ae45f27 /net/http/http_stream_request.cc | |
parent | b2776001d48b85076ebb7cc1df49c749ec9b524c (diff) | |
download | chromium_src-28fd315edf0cf8f4b238dbc5eb58c1842507cd27.zip chromium_src-28fd315edf0cf8f4b238dbc5eb58c1842507cd27.tar.gz chromium_src-28fd315edf0cf8f4b238dbc5eb58c1842507cd27.tar.bz2 |
Correct typo so that statistics appear for speculative activities
A recent migration to using streams for handling preconnection included
a tiny typo, which prevented us from annotating sockets as having been
created as part of speculation. As a result, we did not get any stats,
despite the fact that preconnection was active.
BUG=55161
r=mbelshe
Review URL: http://codereview.chromium.org/3331023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59171 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_request.cc')
-rw-r--r-- | net/http/http_stream_request.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/http_stream_request.cc b/net/http/http_stream_request.cc index d979e0a..b59366c 100644 --- a/net/http/http_stream_request.cc +++ b/net/http/http_stream_request.cc @@ -669,7 +669,7 @@ int HttpStreamRequest::DoCreateStream() { // We only set the socket motivation if we're the first to use // this socket. Is there a race for two SPDY requests? We really // need to plumb this through to the connect level. - if (connection_.get() && connection_->is_reused()) + if (connection_.get() && !connection_->is_reused()) SetSocketMotivation(); if (!using_spdy_) { |