Index: extensions/browser/extension_registry.h |
diff --git a/extensions/browser/extension_registry.h b/extensions/browser/extension_registry.h |
index d8df24b3653d51b30a7b5996ae96579442d832a9..65ee7517b99b6987d31aea96f00b047fd4519faf 100644 |
--- a/extensions/browser/extension_registry.h |
+++ b/extensions/browser/extension_registry.h |
@@ -74,6 +74,14 @@ class ExtensionRegistry : public KeyedService { |
void TriggerOnUnloaded(const Extension* extension, |
UnloadedExtensionInfo::Reason reason); |
+ // If this is a fresh install then |is_update| is false and there must not be |
+ // any installed extension with |extension|'s ID. If this is an update then |
+ // |is_update| is true and must be an installed extension with |extension|'s |
+ // ID, and |old_name| must be non-empty. |
+ void TriggerOnWillBeInstalled(const Extension* extension, |
+ bool is_update, |
+ const std::string& old_name); |
+ |
// Find an extension by ID using |include_mask| to pick the sets to search: |
// * enabled_extensions() --> ExtensionRegistry::ENABLED |
// * disabled_extensions() --> ExtensionRegistry::DISABLED |