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

Unified Diff: extensions/browser/extension_registry.cc

Issue 326213004: Invoke callback from WebstoreInstaller when installation is fully complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self nits Created 6 years, 6 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
diff --git a/extensions/browser/extension_registry.cc b/extensions/browser/extension_registry.cc
index a0175c25882f0211f5fd308becefbeed43e0bebe..bfd1fddf19c9d0aed6fd50ddfbfdd551af37dd9c 100644
--- a/extensions/browser/extension_registry.cc
+++ b/extensions/browser/extension_registry.cc
@@ -67,6 +67,13 @@ void ExtensionRegistry::TriggerOnWillBeInstalled(const Extension* extension,
browser_context_, extension, is_update, from_ephemeral, old_name));
}
+void ExtensionRegistry::TriggerOnInstalled(const Extension* extension) {
+ DCHECK(GenerateInstalledExtensionsSet()->Contains(extension->id()));
asargent_no_longer_on_chrome 2014/06/11 18:27:54 I forget, do the bodies of DCHECK's get completely
tmdiep 2014/06/11 22:56:18 The code doesn't get compiled out completely, but
+ FOR_EACH_OBSERVER(ExtensionRegistryObserver,
+ observers_,
+ OnExtensionInstalled(browser_context_, extension));
+}
+
void ExtensionRegistry::TriggerOnUninstalled(const Extension* extension) {
DCHECK(!GenerateInstalledExtensionsSet()->Contains(extension->id()));
FOR_EACH_OBSERVER(ExtensionRegistryObserver,

Powered by Google App Engine
This is Rietveld 408576698