| Index: chrome/browser/extensions/api/declarative/declarative_api.cc
|
| diff --git a/chrome/browser/extensions/api/declarative/declarative_api.cc b/chrome/browser/extensions/api/declarative/declarative_api.cc
|
| index 8c9b856832d02efdb34ffb48d3d9741a618cb0fc..ce226fd6f844af5d5bb6f93f5ab77440cc1c965a 100644
|
| --- a/chrome/browser/extensions/api/declarative/declarative_api.cc
|
| +++ b/chrome/browser/extensions/api/declarative/declarative_api.cc
|
| @@ -42,6 +42,12 @@ RulesFunction::RulesFunction() : rules_registry_(NULL) {}
|
|
|
| RulesFunction::~RulesFunction() {}
|
|
|
| +bool RulesFunction::HasPermission() {
|
| + std::string event_name;
|
| + EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &event_name));
|
| + return extension_->HasAPIPermission(event_name);
|
| +}
|
| +
|
| bool RulesFunction::RunImpl() {
|
| std::string event_name;
|
| EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &event_name));
|
|
|