| Index: extensions/browser/api/declarative/rules_registry_service.cc
|
| diff --git a/extensions/browser/api/declarative/rules_registry_service.cc b/extensions/browser/api/declarative/rules_registry_service.cc
|
| index 939b01eab2ae33b92bdf779c059582e6ae5ee6ab..bca6fd5bb2dbba2156c2b1dfc8abf93a4f53cec3 100644
|
| --- a/extensions/browser/api/declarative/rules_registry_service.cc
|
| +++ b/extensions/browser/api/declarative/rules_registry_service.cc
|
| @@ -137,6 +137,13 @@ RulesRegistryService* RulesRegistryService::Get(
|
| return BrowserContextKeyedAPIFactory<RulesRegistryService>::Get(context);
|
| }
|
|
|
| +// static
|
| +RulesRegistryService* RulesRegistryService::GetIfExists(
|
| + content::BrowserContext* context) {
|
| + return BrowserContextKeyedAPIFactory<RulesRegistryService>::GetIfExists(
|
| + context);
|
| +}
|
| +
|
| void RulesRegistryService::RegisterRulesRegistry(
|
| scoped_refptr<RulesRegistry> rule_registry) {
|
| const std::string event_name(rule_registry->event_name());
|
|
|