Commit 684d3f95 authored by rch's avatar rch Committed by Commit bot

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}
parent 941a3b51
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment