refactor: inline simple getters (#41125)

This commit is contained in:
Charles Kerr 2024-01-29 20:43:28 -06:00 committed by GitHub
parent 4e19321ba8
commit ffec3127d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 93 additions and 192 deletions

View file

@ -72,7 +72,7 @@ void NetworkContextService::ConfigureNetworkContextParams(
// Enable the HTTP cache.
network_context_params->http_cache_enabled =
browser_context_->CanUseHttpCache();
browser_context_->can_use_http_cache();
network_context_params->cookie_manager_params =
network::mojom::CookieManagerParams::New();
@ -81,7 +81,7 @@ void NetworkContextService::ConfigureNetworkContextParams(
if (!in_memory) {
// Configure the HTTP cache path and size.
network_context_params->http_cache_max_size =
browser_context_->GetMaxCacheSize();
browser_context_->max_cache_size();
network_context_params->file_paths =
network::mojom::NetworkContextFilePaths::New();