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
diff --git a/extensions/browser/extension_registry_observer.h b/extensions/browser/extension_registry_observer.h
index d0b10f3..3ba22c7e 100644
--- a/extensions/browser/extension_registry_observer.h
+++ b/extensions/browser/extension_registry_observer.h
@@ -63,7 +63,8 @@
// extension is tracked in one of the ExtensionRegistry sets, but is not
// necessarily enabled.
virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
- const Extension* extension) {}
+ const Extension* extension,
+ bool is_update) {}
// Called after an extension is uninstalled. The extension no longer exists in
// any of the ExtensionRegistry sets (enabled, disabled, etc.).