refactor: use std::make_unique/base::MakeRefCounted when possible (#29637)
This commit is contained in:
parent
ebf54d7cc0
commit
56ac67e059
5 changed files with 9 additions and 5 deletions
|
@ -49,7 +49,8 @@ namespace extensions {
|
|||
ElectronExtensionSystem::ElectronExtensionSystem(
|
||||
BrowserContext* browser_context)
|
||||
: browser_context_(browser_context),
|
||||
store_factory_(new ValueStoreFactoryImpl(browser_context->GetPath())) {}
|
||||
store_factory_(base::MakeRefCounted<ValueStoreFactoryImpl>(
|
||||
browser_context->GetPath())) {}
|
||||
|
||||
ElectronExtensionSystem::~ElectronExtensionSystem() = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue