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

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: feedback 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..31d6ad88e1d388a846cfc2d61b7ef01598bfde08 100644
--- a/extensions/browser/extension_registry_observer.h
+++ b/extensions/browser/extension_registry_observer.h
@@ -33,6 +33,13 @@ class ExtensionRegistryObserver {
virtual void OnExtensionUnloaded(content::BrowserContext* browser_context,
const Extension* extension,
UnloadedExtensionInfo::Reason reason) {}
+
+ // Called after an extension is installed. The extension will be in exactly
+ // one of the ExtensionRegistry sets.
not at google - send to devlin 2014/05/16 13:49:03 This comment which I asked you to write is actuall
limasdf 2014/05/16 20:39:14 Yep, ExtensionService send notification prior to a
not at google - send to devlin 2014/05/16 23:03:35 yes exactly. I expect at least one person has been
+ virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
+ const Extension* extension,
+ bool is_update,
+ const std::string& old_name) {}
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698