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

Unified Diff: extensions/browser/extension_registry_observer.h

Issue 2893693002: Remove NOTIFICATION_EXTENSION_ENABLED. (Closed)
Patch Set: Created 3 years, 7 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_observer.h
diff --git a/extensions/browser/extension_registry_observer.h b/extensions/browser/extension_registry_observer.h
index a7a9e9bfff37ce8530c6a30df92cf93d273b12fa..a067b36d844b8c8f0d2a6337fd2a9039a90de006 100644
--- a/extensions/browser/extension_registry_observer.h
+++ b/extensions/browser/extension_registry_observer.h
@@ -29,6 +29,12 @@ class ExtensionRegistryObserver {
content::BrowserContext* browser_context,
const Extension* extension) {}
+ // Called when an extension is enabled. Under most circumstances, listeners
+ // will want to use OnExtensionLoaded(). This is only called when the "Enable"
+ // button is hit in the extensions tab.
+ virtual void OnExtensionEnabled(content::BrowserContext* browser_context,
+ const Extension* extension) {}
+
// Called after an extension is loaded and all necessary browser state is
// initialized to support the start of the extension's child process.
virtual void OnExtensionReady(content::BrowserContext* browser_context,

Powered by Google App Engine
This is Rietveld 408576698