Index: extensions/browser/extension_registry.cc |
=================================================================== |
--- extensions/browser/extension_registry.cc (revision 260931) |
+++ extensions/browser/extension_registry.cc (working copy) |
@@ -10,7 +10,8 @@ |
namespace extensions { |
-ExtensionRegistry::ExtensionRegistry() {} |
+ExtensionRegistry::ExtensionRegistry(content::BrowserContext* browser_context) |
+ : browser_context_(browser_context) {} |
ExtensionRegistry::~ExtensionRegistry() {} |
// static |
@@ -38,14 +39,16 @@ |
void ExtensionRegistry::TriggerOnLoaded(const Extension* extension) { |
DCHECK(enabled_extensions_.Contains(extension->id())); |
- FOR_EACH_OBSERVER( |
- ExtensionRegistryObserver, observers_, OnExtensionLoaded(extension)); |
+ FOR_EACH_OBSERVER(ExtensionRegistryObserver, |
+ observers_, |
+ OnExtensionLoaded(browser_context_, extension)); |
} |
void ExtensionRegistry::TriggerOnUnloaded(const Extension* extension) { |
DCHECK(!enabled_extensions_.Contains(extension->id())); |
- FOR_EACH_OBSERVER( |
- ExtensionRegistryObserver, observers_, OnExtensionUnloaded(extension)); |
+ FOR_EACH_OBSERVER(ExtensionRegistryObserver, |
+ observers_, |
+ OnExtensionUnloaded(browser_context_, extension)); |
} |
const Extension* ExtensionRegistry::GetExtensionById(const std::string& id, |