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

Unified Diff: net/quic/quic_client_session.cc

Issue 504953003: Remove implicit conversions from scoped_refptr to T* in net/quic/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_client_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_client_session.cc
diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
index d5639738969f8f8250c00cd73b10c6ceff1fcbbe..285c234a5b29f18b4f771cb792228ba930dec29c 100644
--- a/net/quic/quic_client_session.cc
+++ b/net/quic/quic_client_session.cc
@@ -232,7 +232,7 @@ QuicClientSession::~QuicClientSession() {
bool port_selected = stream_factory_->enable_port_selection();
SSLInfo ssl_info;
- if (!GetSSLInfo(&ssl_info) || !ssl_info.cert) {
+ if (!GetSSLInfo(&ssl_info) || !ssl_info.cert.get()) {
if (port_selected) {
UMA_HISTOGRAM_CUSTOM_COUNTS("Net.QuicSession.ConnectSelectPortForHTTP",
round_trip_handshakes, 0, 3, 4);
@@ -485,7 +485,7 @@ int QuicClientSession::GetNumSentClientHellos() const {
bool QuicClientSession::CanPool(const std::string& hostname) const {
DCHECK(connection()->connected());
SSLInfo ssl_info;
- if (!GetSSLInfo(&ssl_info) || !ssl_info.cert) {
+ if (!GetSSLInfo(&ssl_info) || !ssl_info.cert.get()) {
// We can always pool with insecure QUIC sessions.
return true;
}
@@ -761,7 +761,7 @@ base::Value* QuicClientSession::GetInfoAsValue(
dict->SetInteger("packets_received", stats.packets_received);
dict->SetInteger("packets_lost", stats.packets_lost);
SSLInfo ssl_info;
- dict->SetBoolean("secure", GetSSLInfo(&ssl_info) && ssl_info.cert);
+ dict->SetBoolean("secure", GetSSLInfo(&ssl_info) && ssl_info.cert.get());
base::ListValue* alias_list = new base::ListValue();
for (std::set<HostPortPair>::const_iterator it = aliases.begin();
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698