Chromium Code Reviews| Index: extensions/browser/api/declarative/declarative_api.cc |
| diff --git a/extensions/browser/api/declarative/declarative_api.cc b/extensions/browser/api/declarative/declarative_api.cc |
| index e9b355d950d2c9892ef69ee25e840b9ac56fcc4e..e97028bd4497757a0a3f8b42dfeb9874f0164e16 100644 |
| --- a/extensions/browser/api/declarative/declarative_api.cc |
| +++ b/extensions/browser/api/declarative/declarative_api.cc |
| @@ -13,6 +13,7 @@ |
| #include "content/public/browser/render_process_host.h" |
| #include "content/public/browser/render_view_host.h" |
| #include "content/public/browser/web_contents.h" |
| +#include "extensions/browser/api/declarative/rules_registry_service.h" |
| #include "extensions/browser/api/extensions_api_client.h" |
| #include "extensions/browser/extension_system.h" |
| #include "extensions/browser/guest_view/web_view/web_view_constants.h" |
| @@ -153,8 +154,8 @@ bool RulesFunction::RunAsync() { |
| // The following call will return a NULL pointer for apps_shell, but should |
| // never be called there anyways. |
| - rules_registry_ = ExtensionsAPIClient::Get()->GetRulesRegistry( |
| - browser_context(), key, event_name); |
| + rules_registry_ = RulesRegistryService::Get(browser_context())-> |
| + GetRulesRegistry(key, event_name); |
|
Fady Samuel
2014/09/29 21:26:32
Indentation is off.
|
| DCHECK(rules_registry_.get()); |
| // Raw access to this function is not available to extensions, therefore |
| // there should never be a request for a nonexisting rules registry. |