Index: net/quic/quic_http_stream.cc |
diff --git a/net/quic/quic_http_stream.cc b/net/quic/quic_http_stream.cc |
index 4f8e4e4b84175f063735351a1fe07c56fa5fcbe5..b22fb93300b7780d895bdf2a88c8e9fa5e0d9fee 100644 |
--- a/net/quic/quic_http_stream.cc |
+++ b/net/quic/quic_http_stream.cc |
@@ -108,7 +108,18 @@ int QuicHttpStream::SendRequest(const HttpRequestHeaders& request_headers, |
CHECK(!callback.is_null()); |
CHECK(response); |
- if (!stream_) { |
+ // 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))) { |
+ SSLInfo ssl_info; |
+ bool secure_session = |
+ session_->GetSSLInfo(&ssl_info) && ssl_info.cert.get(); |
+ DCHECK(secure_session); |
+ UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.CookieSentToAccountsOverChannelId", |
+ ssl_info.channel_id_sent); |
+ } |
+ if (!stream_) { |
return ERR_CONNECTION_CLOSED; |
} |