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

Unified Diff: extensions/browser/extension_registry_observer.h

Issue 279073003: Add a function triggering extension installed to ExtensionRegistryObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 5880add25e63307af4691dae2e4bc98bdbcd7b99..d127e0a0ee252f605307e0a6f18f9b45f61594c2 100644
--- a/extensions/browser/extension_registry_observer.h
+++ b/extensions/browser/extension_registry_observer.h
@@ -33,6 +33,12 @@ class ExtensionRegistryObserver {
virtual void OnExtensionUnloaded(content::BrowserContext* browser_context,
const Extension* extension,
UnloadedExtensionInfo::Reason reason) {}
+
+ // Called after an extension is installed. The extension will exclusively
+ // exists in any of the ExtensionRegistry sets (enabled, disabled, etc.).
not at google - send to devlin 2014/05/14 18:17:50 How about the second sentence: The extension will
limasdf 2014/05/16 01:02:35 Done. Thank you.
+ virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
+ const Extension* extension,
+ InstalledExtensionInfo info) {}
not at google - send to devlin 2014/05/14 18:17:50 we should unwrap the arguments of InstalledExtensi
limasdf 2014/05/16 01:02:35 Done.
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698