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

Unified Diff: net/http/http_server_properties_manager.cc

Issue 1160823007: HttpServerProperties - Don't persist if SetSupportsQuic is called with (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | net/http/http_server_properties_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26ce850dff02af8ff56c976d1f42ca2cfe3f04a0..f1bb719d167e7a4d05caa28c0cd9c2b4b750f9e4 100644
--- a/net/http/http_server_properties_manager.cc
+++ b/net/http/http_server_properties_manager.cc
@@ -337,8 +337,13 @@ void HttpServerPropertiesManager::SetSupportsQuic(
bool used_quic,
const IPAddressNumber& address) {
DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
+ IPAddressNumber old_last_quic_addr;
+ http_server_properties_impl_->GetSupportsQuic(&old_last_quic_addr);
http_server_properties_impl_->SetSupportsQuic(used_quic, address);
- ScheduleUpdatePrefsOnNetworkThread(SET_SUPPORTS_QUIC);
+ IPAddressNumber new_last_quic_addr;
+ http_server_properties_impl_->GetSupportsQuic(&new_last_quic_addr);
+ if (old_last_quic_addr != new_last_quic_addr)
+ ScheduleUpdatePrefsOnNetworkThread(SET_SUPPORTS_QUIC);
}
void HttpServerPropertiesManager::SetServerNetworkStats(
« no previous file with comments | « no previous file | net/http/http_server_properties_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698