| Index: extensions/browser/extension_registry.cc
|
| diff --git a/extensions/browser/extension_registry.cc b/extensions/browser/extension_registry.cc
|
| index 9391b400deaf3fe651bb99a5b2d796f950aae2e6..f4bd91e145bff6c4387b74ba7f35614de5a94651 100644
|
| --- a/extensions/browser/extension_registry.cc
|
| +++ b/extensions/browser/extension_registry.cc
|
| @@ -4,11 +4,18 @@
|
|
|
| #include "extensions/browser/extension_registry.h"
|
|
|
| +#include "extensions/browser/extension_registry_factory.h"
|
| +
|
| namespace extensions {
|
|
|
| ExtensionRegistry::ExtensionRegistry() {}
|
| ExtensionRegistry::~ExtensionRegistry() {}
|
|
|
| +// static
|
| +ExtensionRegistry* ExtensionRegistry::Get(content::BrowserContext* context) {
|
| + return ExtensionRegistryFactory::GetForBrowserContext(context);
|
| +}
|
| +
|
| bool ExtensionRegistry::AddEnabled(
|
| const scoped_refptr<const Extension>& extension) {
|
| return enabled_extensions_.Insert(extension);
|
| @@ -57,4 +64,9 @@ void ExtensionRegistry::SetDisabledModificationCallback(
|
| disabled_extensions_.set_modification_callback(callback);
|
| }
|
|
|
| +void ExtensionRegistry::Shutdown() {
|
| + // Release references to all Extension objects in the sets.
|
| + ClearAll();
|
| +}
|
| +
|
| } // namespace extensions
|
|
|