Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8349)

Unified Diff: chrome/common/extensions/extension.h

Issue 8598022: Restrict access to permissions based on extension types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/extensions/extension.cc » ('j') | chrome/common/extensions/extension.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 146c53458965a863f2be73195dba7e8b83bff816..b37e9541a628ff9d34c5421903b284d639d2cc4b 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -688,8 +688,10 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
std::string* error) const;
bool CanSpecifyComponentOnlyPermission() const;
bool CanSpecifyExperimentalPermission() const;
- bool CanSpecifyPermissionForHostedApp(
- const ExtensionAPIPermission* api) const;
+
+ // Returns true if the |permission| can be specified by this extension type.
+ bool CanSpecifyPermissionForType(
Aaron Boodman 2011/11/22 09:40:32 It isn't clear to me from just these declarations
jstritar 2011/11/22 15:58:29 Done- just rolled it into CanSpeicfyAPIPermission.
+ const ExtensionAPIPermission* permission) const;
// Checks whether the host |pattern| is allowed for this extension, given API
// permissions |permissions|.
« no previous file with comments | « no previous file | chrome/common/extensions/extension.cc » ('j') | chrome/common/extensions/extension.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698