diff options
author | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 23:27:51 +0000 |
---|---|---|
committer | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 23:27:51 +0000 |
commit | 38e87253e69adebfd3ce5b1050cea6c0c9942165 (patch) | |
tree | 9bfb3b5e562014f9aa9ef11de62cd3b05b28371e /extensions/browser/extension_registry.h | |
parent | 6fa58150d06d0bbd3fa74f7f04ebe7e911b16dff (diff) | |
download | chromium_src-38e87253e69adebfd3ce5b1050cea6c0c9942165.zip chromium_src-38e87253e69adebfd3ce5b1050cea6c0c9942165.tar.gz chromium_src-38e87253e69adebfd3ce5b1050cea6c0c9942165.tar.bz2 |
Prune shared extension module after extension updating.
When an extension is updated, the imported module of the extension could be changed in the new version. If the imported modules are removed in the new version, we need check and remove the shared modules if necessary.
BUG=393232
Review URL: https://codereview.chromium.org/386033002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283574 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/browser/extension_registry.h')
-rw-r--r-- | extensions/browser/extension_registry.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/browser/extension_registry.h b/extensions/browser/extension_registry.h index 3d10763..eec137b 100644 --- a/extensions/browser/extension_registry.h +++ b/extensions/browser/extension_registry.h @@ -88,7 +88,8 @@ class ExtensionRegistry : public KeyedService { // Invokes the observer method OnExtensionInstalled(). The extension must be // contained in one of the registry's extension sets. - void TriggerOnInstalled(const Extension* extension); + void TriggerOnInstalled(const Extension* extension, + bool is_update); // Invokes the observer method OnExtensionUninstalled(). The extension must // not be any installed extension with |extension|'s ID. |