refactor: remove use of deprecated API BuildServiceInstanceFor() (#43707)
* refactor: update BadgeManagerFactory Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: update NetworkContextServiceFactory Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: update ElectronExtensionSystemFactory Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: update UsbChooserContextFactory Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: update UsbHidChooserContextFactory Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: update SerialChooserContextFactory Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: update FileSystemAccessPermissionContextFactory Co-authored-by: Charles Kerr <charles@charleskerr.com> * empty commit --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
7a04a77ed0
commit
748f293400
14 changed files with 42 additions and 36 deletions
|
@ -35,9 +35,10 @@ ElectronExtensionSystemFactory::ElectronExtensionSystemFactory()
|
|||
|
||||
ElectronExtensionSystemFactory::~ElectronExtensionSystemFactory() = default;
|
||||
|
||||
KeyedService* ElectronExtensionSystemFactory::BuildServiceInstanceFor(
|
||||
std::unique_ptr<KeyedService>
|
||||
ElectronExtensionSystemFactory::BuildServiceInstanceForBrowserContext(
|
||||
BrowserContext* context) const {
|
||||
return new ElectronExtensionSystem(context);
|
||||
return std::make_unique<ElectronExtensionSystem>(context);
|
||||
}
|
||||
|
||||
BrowserContext* ElectronExtensionSystemFactory::GetBrowserContextToUse(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue