diff --git a/shell/browser/electron_browser_context.h b/shell/browser/electron_browser_context.h index b9659bc6d9e4..e0a17ad47219 100644 --- a/shell/browser/electron_browser_context.h +++ b/shell/browser/electron_browser_context.h @@ -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