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 20117b60db11abe01941b47bf1a56d813cc71f7e..3338d3801f8a16f79d334683e3704a65f39fce49 100644 |
--- a/google_apis/gcm/engine/connection_factory_impl.cc |
+++ b/google_apis/gcm/engine/connection_factory_impl.cc |
@@ -319,7 +319,7 @@ void ConnectionFactoryImpl::StartConnection() { |
connecting_ = true; |
GURL current_endpoint = GetCurrentEndpoint(); |
recorder_->RecordConnectionInitiated(current_endpoint.host()); |
- RebuildNetworkSessionAuthCache(); |
+ UpdateFromHttpNetworkSession(); |
int status = gcm_network_session_->proxy_service()->ResolveProxy( |
current_endpoint, |
std::string(), |
@@ -590,12 +590,14 @@ void ConnectionFactoryImpl::CloseSocket() { |
socket_handle_.Reset(); |
} |
-void ConnectionFactoryImpl::RebuildNetworkSessionAuthCache() { |
+void ConnectionFactoryImpl::UpdateFromHttpNetworkSession() { |
if (!http_network_session_ || !http_network_session_->http_auth_cache()) |
return; |
gcm_network_session_->http_auth_cache()->UpdateAllFrom( |
*http_network_session_->http_auth_cache()); |
+ |
+ gcm_network_session_->SetQuicEnabled(http_network_session_->IsQuicEnabled()); |
} |
} // namespace gcm |