summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-02 00:25:11 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-02 00:25:11 +0000
commitb5b26b78902b8e928942e4e162d86a67d98890a8 (patch)
tree46572abe13ee9ed95df1b88769de1e691ccb7ce2 /chrome/common/extensions/extension.h
parentfc6dd4e81e0abb0b206ddb0d7e81144456a6f419 (diff)
downloadchromium_src-b5b26b78902b8e928942e4e162d86a67d98890a8.zip
chromium_src-b5b26b78902b8e928942e4e162d86a67d98890a8.tar.gz
chromium_src-b5b26b78902b8e928942e4e162d86a67d98890a8.tar.bz2
Use extension API features instead of kNonPermissionModulesNames.
This migrates the constants in permission_set.cc to _api_features.json. This includes a slight behavior change. Some modules with manifest keys, like browserAction, omnibox, and commands, used to be accessible even without the manifest key present. After this patch, they will be inaccessible. I don't think that should be an issue in practice, because the modules wouldn't do anything if there was no manifest key present. BUG=234790,265006 Review URL: https://chromiumcodereview.appspot.com/20818004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r--chrome/common/extensions/extension.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 7f759a1..f9134d4 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -228,7 +228,7 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// DEPRECATED: These methods have been moved to PermissionsData.
// TODO(rdevlin.cronin): remove these once all calls have been updated.
bool HasAPIPermission(APIPermission::ID permission) const;
- bool HasAPIPermission(const std::string& function_name) const;
+ bool HasAPIPermission(const std::string& permission_name) const;
scoped_refptr<const PermissionSet> GetActivePermissions() const;
// Whether context menu should be shown for page and browser actions.