fix: do not initialize any extension related logic in OffTheRecord contexts (#22772)

This commit is contained in:
Samuel Attard 2020-05-08 11:17:28 -07:00 committed by GitHub
parent a3ee61f963
commit 21900fe4f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 115 additions and 44 deletions

View file

@ -139,6 +139,8 @@ 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() {
return extension_system_;
}