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

Unified Diff: net/http/http_server_properties_manager.cc

Issue 2070203002: Remove unused HttpServerProperites::ClearAlternativeServices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@AltSvcClear
Patch Set: fix Created 4 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 | « net/http/http_server_properties_manager.h ('k') | 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 f7b705f16a7031733cf3d3b887f76e81583bf7bd..e9dcffd24e0d44f7e5bfebf43a1b3a4adafe373b 100644
--- a/net/http/http_server_properties_manager.cc
+++ b/net/http/http_server_properties_manager.cc
@@ -265,19 +265,6 @@ void HttpServerPropertiesManager::ConfirmAlternativeService(
ScheduleUpdatePrefsOnNetworkThread(CONFIRM_ALTERNATIVE_SERVICE);
}
-void HttpServerPropertiesManager::ClearAlternativeServices(
- const url::SchemeHostPort& origin) {
- DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
- const AlternativeServiceMap& map =
- http_server_properties_impl_->alternative_service_map();
- size_t old_size = map.size();
- http_server_properties_impl_->ClearAlternativeServices(origin);
- size_t new_size = map.size();
- // Persist only if we have deleted an entry.
- if (old_size != new_size)
- ScheduleUpdatePrefsOnNetworkThread(CLEAR_ALTERNATIVE_SERVICE);
-}
-
const AlternativeServiceMap&
HttpServerPropertiesManager::alternative_service_map() const {
DCHECK(network_task_runner_->RunsTasksOnCurrentThread());
« no previous file with comments | « net/http/http_server_properties_manager.h ('k') | net/http/http_server_properties_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698