Add a function triggering extension installed to ExtensionRegistryObserver.
This can be replace chrome::NOTIFICATION_EXTENSION_INSTALLED with ExtensionRegistryObserver.
And apply it to WebStoreInstaller and InstallTracker.
[email protected]
BUG=354459
TEST=unit_test, manual(install app from webstore)
Review URL: https://codereview.chromium.org/279073003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272143 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 702b7fc4..cfb45b9 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1935,6 +1935,9 @@
content::Source<Profile>(profile_),
content::Details<const extensions::InstalledExtensionInfo>(&details));
+ ExtensionRegistry::Get(profile_)
+ ->TriggerOnWillBeInstalled(extension, is_update, old_name);
+
bool unacknowledged_external = IsUnacknowledgedExternalExtension(extension);
// Unpacked extensions default to allowing file access, but if that has been