| Index: net/http/http_server_properties_manager.cc
|
| diff --git a/net/http/http_server_properties_manager.cc b/net/http/http_server_properties_manager.cc
|
| index 68a558322d5f9a387dece09694a5689c87a34d13..03772737e31ee691163a30f5ea2b33ef613d9997 100644
|
| --- a/net/http/http_server_properties_manager.cc
|
| +++ b/net/http/http_server_properties_manager.cc
|
| @@ -155,12 +155,20 @@ bool HttpServerPropertiesManager::SupportsRequestPriority(
|
| return http_server_properties_impl_->SupportsRequestPriority(server);
|
| }
|
|
|
| +bool HttpServerPropertiesManager::GetSupportsSpdy(const HostPortPair& server) {
|
| + DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
|
| + return http_server_properties_impl_->GetSupportsSpdy(server);
|
| +}
|
| +
|
| void HttpServerPropertiesManager::SetSupportsSpdy(const HostPortPair& server,
|
| bool support_spdy) {
|
| DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
|
|
|
| + bool old_support_spdy = http_server_properties_impl_->GetSupportsSpdy(server);
|
| http_server_properties_impl_->SetSupportsSpdy(server, support_spdy);
|
| - ScheduleUpdatePrefsOnNetworkThread(SUPPORTS_SPDY);
|
| + bool new_support_spdy = http_server_properties_impl_->GetSupportsSpdy(server);
|
| + if (old_support_spdy != new_support_spdy)
|
| + ScheduleUpdatePrefsOnNetworkThread(SUPPORTS_SPDY);
|
| }
|
|
|
| bool HttpServerPropertiesManager::RequiresHTTP11(const HostPortPair& server) {
|
|
|