| Index: chrome/common/extensions/extension.h
|
| diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
|
| index e9a25cc4bc5416bb26b89f3b4cb84e0d8d6abdee..c94b18cc555939a7089fa39a2319ae0c7d43cf60 100644
|
| --- a/chrome/common/extensions/extension.h
|
| +++ b/chrome/common/extensions/extension.h
|
| @@ -272,9 +272,11 @@ class Extension {
|
| }
|
|
|
| // Returns true if the extension has the specified API permission.
|
| + static bool HasApiPermission(const std::vector<std::string>& api_permissions,
|
| + const std::string& permission);
|
| +
|
| bool HasApiPermission(const std::string& permission) const {
|
| - return std::find(api_permissions_.begin(), api_permissions_.end(),
|
| - permission) != api_permissions_.end();
|
| + return HasApiPermission(this->api_permissions(), permission);
|
| }
|
|
|
| // Returns the set of hosts that the extension effectively has access to. This
|
|
|