Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: extensions/browser/extension_registry.cc

Issue 207613002: Cleanup: Remove NOTIFICATION_EXTENSION_UNLOADED usage in MediaScanManager. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/extension_registry.cc
===================================================================
--- extensions/browser/extension_registry.cc (revision 259942)
+++ 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,

Powered by Google App Engine
This is Rietveld 408576698