| Index: extensions/browser/extension_registry.cc
|
| diff --git a/extensions/browser/extension_registry.cc b/extensions/browser/extension_registry.cc
|
| index ac6c274db6c13cbe21986b4f98ddc69165bda2b4..76783f0d336d7f8710db7503611799512ab83e1a 100644
|
| --- a/extensions/browser/extension_registry.cc
|
| +++ b/extensions/browser/extension_registry.cc
|
| @@ -53,6 +53,18 @@ void ExtensionRegistry::TriggerOnUnloaded(
|
| OnExtensionUnloaded(browser_context_, extension, reason));
|
| }
|
|
|
| +void ExtensionRegistry::TriggerOnWillBeInstalled(const Extension* extension,
|
| + bool is_update,
|
| + const std::string& old_name) {
|
| + DCHECK(is_update ==
|
| + GenerateInstalledExtensionsSet()->Contains(extension->id()));
|
| + DCHECK(is_update == !old_name.empty());
|
| + FOR_EACH_OBSERVER(ExtensionRegistryObserver,
|
| + observers_,
|
| + OnExtensionWillBeInstalled(
|
| + browser_context_, extension, is_update, old_name));
|
| +}
|
| +
|
| const Extension* ExtensionRegistry::GetExtensionById(const std::string& id,
|
| int include_mask) const {
|
| std::string lowercase_id = StringToLowerASCII(id);
|
|
|