| 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 5cd807e6f65d88850af174ffb607214263694bd4..e9b355d950d2c9892ef69ee25e840b9ac56fcc4e 100644
|
| --- a/extensions/browser/api/declarative/declarative_api.cc
|
| +++ b/extensions/browser/api/declarative/declarative_api.cc
|
| @@ -13,7 +13,6 @@
|
| #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"
|
| @@ -154,8 +153,8 @@ bool RulesFunction::RunAsync() {
|
|
|
| // The following call will return a NULL pointer for apps_shell, but should
|
| // never be called there anyways.
|
| - rules_registry_ = RulesRegistryService::Get(browser_context())->
|
| - GetRulesRegistry(key, event_name);
|
| + rules_registry_ = ExtensionsAPIClient::Get()->GetRulesRegistry(
|
| + browser_context(), key, event_name);
|
| 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.
|
|
|