Index: google_apis/gcm/engine/connection_factory_impl.cc |
diff --git a/google_apis/gcm/engine/connection_factory_impl.cc b/google_apis/gcm/engine/connection_factory_impl.cc |
index 4963f1327109581ad817ae6a7bd91a784eb06f51..4857d2a73e9293bac28e2544164cba70996c5c2b 100644 |
--- a/google_apis/gcm/engine/connection_factory_impl.cc |
+++ b/google_apis/gcm/engine/connection_factory_impl.cc |
@@ -535,7 +535,7 @@ int ConnectionFactoryImpl::ReconsiderProxyAfterError(int error) { |
} |
void ConnectionFactoryImpl::ReportSuccessfulProxyConnection() { |
- if (gcm_network_session_ && gcm_network_session_->proxy_service()) |
+ if (gcm_network_session_.get() && gcm_network_session_->proxy_service()) |
gcm_network_session_->proxy_service()->ReportSuccess(proxy_info_, NULL); |
} |
@@ -551,7 +551,7 @@ void ConnectionFactoryImpl::CloseSocket() { |
} |
void ConnectionFactoryImpl::RebuildNetworkSessionAuthCache() { |
- if (!http_network_session_ || !http_network_session_->http_auth_cache()) |
+ if (!http_network_session_.get() || !http_network_session_->http_auth_cache()) |
return; |
gcm_network_session_->http_auth_cache()->UpdateAllFrom( |