mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
chore: add DCHECK to ensure extension_system() is not used for in-memory sessions (#23475)
This commit is contained in:
@@ -139,9 +139,10 @@ class ElectronBrowserContext
|
||||
}
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
// Guard usages of extension_system() with !IsOffTheRecord()
|
||||
// There is no extension system for in-memory sessions
|
||||
extensions::ElectronExtensionSystem* extension_system() {
|
||||
// Guard usages of extension_system() with !IsOffTheRecord()
|
||||
// There is no extension system for in-memory sessions
|
||||
DCHECK(!IsOffTheRecord());
|
||||
return extension_system_;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user