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

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: rebase, add error console Created 6 years, 8 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
« no previous file with comments | « extensions/browser/extension_registry.h ('k') | extensions/browser/extension_registry_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « extensions/browser/extension_registry.h ('k') | extensions/browser/extension_registry_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698