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

Unified Diff: extensions/common/permissions/permissions_data.h

Issue 2821123002: Differentiate new permissions from old in extension permission update bubble (Closed)
Patch Set: Git rebase master Created 3 years, 8 months 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: extensions/common/permissions/permissions_data.h
diff --git a/extensions/common/permissions/permissions_data.h b/extensions/common/permissions/permissions_data.h
index 699740325cc0e0b0e198ff6c66e3f4272fe3327a..a619590a29d8b32c0c3980d36dcd6620ffe11d66 100644
--- a/extensions/common/permissions/permissions_data.h
+++ b/extensions/common/permissions/permissions_data.h
@@ -165,6 +165,12 @@ class PermissionsData {
// display at install time, in a nested format ready for display.
PermissionMessages GetPermissionMessages() const;
+ // Returns the list of permission details for permissions that are included in
+ // active_permissions(), but not present in |granted_permissions|. These are
+ // returned in a nested format, ready for display.
+ PermissionMessages GetNewPermissionMessages(
+ const PermissionSet& granted_permissions) const;
+
// Returns true if the extension has requested all-hosts permissions (or
// something close to it), but has had it withheld.
bool HasWithheldImpliedAllHosts() const;
« no previous file with comments | « chrome/browser/extensions/extension_disabled_ui.cc ('k') | extensions/common/permissions/permissions_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698