Index: net/spdy/spdy_session_pool.cc |
diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc |
index 3c9db1d4310145856eed468455e8f6eabd2cc249..254e5d36e59f3f53b419cde11d0b7c9b95e958eb 100644 |
--- a/net/spdy/spdy_session_pool.cc |
+++ b/net/spdy/spdy_session_pool.cc |
@@ -53,7 +53,7 @@ SpdySessionPool::SpdySessionPool( |
trusted_spdy_proxy_( |
HostPortPair::FromString(trusted_spdy_proxy)) { |
NetworkChangeNotifier::AddIPAddressObserver(this); |
- if (ssl_config_service_) |
+ if (ssl_config_service_.get()) |
ssl_config_service_->AddObserver(this); |
CertDatabase::GetInstance()->AddObserver(this); |
} |
@@ -61,7 +61,7 @@ SpdySessionPool::SpdySessionPool( |
SpdySessionPool::~SpdySessionPool() { |
CloseAllSessions(); |
- if (ssl_config_service_) |
+ if (ssl_config_service_.get()) |
ssl_config_service_->RemoveObserver(this); |
NetworkChangeNotifier::RemoveIPAddressObserver(this); |
CertDatabase::GetInstance()->RemoveObserver(this); |
@@ -88,7 +88,7 @@ scoped_refptr<SpdySession> SpdySessionPool::GetInternal( |
if (!list) { |
// Check if we have a Session through a domain alias. |
spdy_session = GetFromAlias(host_port_proxy_pair, net_log, true); |
- if (spdy_session) { |
+ if (spdy_session.get()) { |
UMA_HISTOGRAM_ENUMERATION("Net.SpdySessionGet", |
FOUND_EXISTING_FROM_IP_POOL, |
SPDY_SESSION_GET_MAX); |