summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_http_stream.cc
diff options
context:
space:
mode:
authorrch <rch@chromium.org>2015-01-30 12:05:44 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-30 20:07:45 +0000
commit684d3f95e9628ecf27aa2b6e0bda67437c953817 (patch)
tree70d1478a58e0a60c4e5bd257da64ecac729348ac /net/quic/quic_http_stream.cc
parent941a3b51fea40279bc555963d7a32d7ed94a952f (diff)
downloadchromium_src-684d3f95e9628ecf27aa2b6e0bda67437c953817.zip
chromium_src-684d3f95e9628ecf27aa2b6e0bda67437c953817.tar.gz
chromium_src-684d3f95e9628ecf27aa2b6e0bda67437c953817.tar.bz2
Change logic for the histogram Net.QuicSession.CookieSentToAccountsOverChannelId
so that it only fires when a cookie was actually sent. Review URL: https://codereview.chromium.org/890953002 Cr-Commit-Position: refs/heads/master@{#313969}
Diffstat (limited to 'net/quic/quic_http_stream.cc')
-rw-r--r--net/quic/quic_http_stream.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/quic/quic_http_stream.cc b/net/quic/quic_http_stream.cc
index b22fb93..d61a303 100644
--- a/net/quic/quic_http_stream.cc
+++ b/net/quic/quic_http_stream.cc
@@ -111,7 +111,8 @@ int QuicHttpStream::SendRequest(const HttpRequestHeaders& request_headers,
// TODO(rch): remove this once we figure out why channel ID is not being
// sent when it should be.
HostPortPair origin = HostPortPair::FromURL(request_info_->url);
- if (origin.Equals(HostPortPair("accounts.google.com", 443))) {
+ if (origin.Equals(HostPortPair("accounts.google.com", 443)) &&
+ request_headers.HasHeader(HttpRequestHeaders::kCookie)) {
SSLInfo ssl_info;
bool secure_session =
session_->GetSSLInfo(&ssl_info) && ssl_info.cert.get();