| Index: chrome/common/extensions/permissions/permission_set.h
|
| diff --git a/chrome/common/extensions/permissions/permission_set.h b/chrome/common/extensions/permissions/permission_set.h
|
| index 3de9287e8cafdf69a2b2bd0dd12ccd64b9f562be..bc542574c4e4b5ab0df00068d4b7b6fe52428ab7 100644
|
| --- a/chrome/common/extensions/permissions/permission_set.h
|
| +++ b/chrome/common/extensions/permissions/permission_set.h
|
| @@ -126,7 +126,9 @@ class PermissionSet
|
|
|
| // Returns true if |permissions| has a greater privilege level than this
|
| // permission set (e.g., this permission set has less permissions).
|
| - bool HasLessPrivilegesThan(const PermissionSet* permissions) const;
|
| + // Whether certain permissions are considered varies by extension type.
|
| + bool HasLessPrivilegesThan(const PermissionSet* permissions,
|
| + Manifest::Type extension_type) const;
|
|
|
| const APIPermissionSet& apis() const { return apis_; }
|
|
|
| @@ -170,13 +172,12 @@ class PermissionSet
|
|
|
| // Returns true if |permissions| has an elevated API privilege level than
|
| // this set.
|
| - bool HasLessAPIPrivilegesThan(
|
| - const PermissionSet* permissions) const;
|
| + bool HasLessAPIPrivilegesThan(const PermissionSet* permissions) const;
|
|
|
| // Returns true if |permissions| has more host permissions compared to this
|
| // set.
|
| - bool HasLessHostPrivilegesThan(
|
| - const PermissionSet* permissions) const;
|
| + bool HasLessHostPrivilegesThan(const PermissionSet* permissions,
|
| + Manifest::Type extension_type) const;
|
|
|
| // Gets a list of the distinct hosts for displaying to the user.
|
| // NOTE: do not use this for comparing permissions, since this disgards some
|
|
|