Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Unified Diff: net/quic/quic_http_stream.cc

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_packet_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_packet_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698