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

Unified Diff: chrome/common/extensions/permissions/permission_set.h

Issue 11413099: Bluetooth API Permission Dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix memory leak Created 8 years 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
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 599c2b8278bdb2164ec78f180e089f8d4f7e9628..6c5288768f9a7c5938b51e23aa1ed4b517eea770 100644
--- a/chrome/common/extensions/permissions/permission_set.h
+++ b/chrome/common/extensions/permissions/permission_set.h
@@ -59,6 +59,11 @@ class PermissionSet
static PermissionSet* CreateUnion(
const PermissionSet* set1, const PermissionSet* set2);
+ // Creates a new permission set that only contains permissions that must be
+ // in the manifest. Passes ownership of the new set to the caller.
+ static PermissionSet* ExcludeNotInManifestPermissions(
+ const PermissionSet* set);
+
bool operator==(const PermissionSet& rhs) const;
// Returns true if |set| is a subset of this.
« no previous file with comments | « chrome/common/extensions/permissions/permission_message.h ('k') | chrome/common/extensions/permissions/permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698