build: fix build when enable_pdf_viewer
and enable_electron_extensions
disabled (#43251)
build: fix build when enable_pdf_viewer and enable_electron_extensions disabled Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
c7a65af50c
commit
fbb67164ac
2 changed files with 3 additions and 0 deletions
|
@ -373,8 +373,10 @@ ElectronBrowserContext::~ElectronBrowserContext() {
|
|||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
NotifyWillBeDestroyed();
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
// the DestroyBrowserContextServices() call below frees this.
|
||||
extension_system_ = nullptr;
|
||||
#endif
|
||||
|
||||
// Notify any keyed services of browser context destruction.
|
||||
BrowserContextDependencyManager::GetInstance()->DestroyBrowserContextServices(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue