chore: use std::make_unique/base::MakeRefCounted when possible (#29510)
This commit is contained in:
parent
a4decffe9a
commit
79cb5144ae
38 changed files with 106 additions and 101 deletions
|
@ -214,7 +214,8 @@ void SystemNetworkContextManager::DeleteInstance() {
|
|||
SystemNetworkContextManager::SystemNetworkContextManager(
|
||||
PrefService* pref_service)
|
||||
: proxy_config_monitor_(pref_service) {
|
||||
shared_url_loader_factory_ = new URLLoaderFactoryForSystem(this);
|
||||
shared_url_loader_factory_ =
|
||||
base::MakeRefCounted<URLLoaderFactoryForSystem>(this);
|
||||
}
|
||||
|
||||
SystemNetworkContextManager::~SystemNetworkContextManager() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue