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

Unified Diff: chrome/browser/extensions/permissions_updater.h

Issue 501273002: Update extension install prompt to reflect withheld permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added withheld permissions to install prompt Created 6 years, 4 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: chrome/browser/extensions/permissions_updater.h
diff --git a/chrome/browser/extensions/permissions_updater.h b/chrome/browser/extensions/permissions_updater.h
index f22cdc668bb779a23dbfc435c42943c0e748a2a0..e20676ae8c66d6c413b9923b36b9948042565d8b 100644
--- a/chrome/browser/extensions/permissions_updater.h
+++ b/chrome/browser/extensions/permissions_updater.h
@@ -27,6 +27,11 @@ class PermissionSet;
// and notifies interested parties of the changes.
class PermissionsUpdater {
public:
+ enum InitFlag {
+ INIT_FLAG_NONE = 0,
+ INIT_FLAG_TRANSIENT = 1 << 0,
+ };
+
explicit PermissionsUpdater(content::BrowserContext* browser_context);
~PermissionsUpdater();
@@ -49,6 +54,7 @@ class PermissionsUpdater {
// permissions currently requested by the extension and all the permissions
// required by the extension.
void InitializePermissions(const Extension* extension);
+ void InitializePermissions(const Extension* extension, InitFlag init_flag);
gpdavis 2014/08/29 01:12:16 Should we be updating the comment here? I didn't
// Grants any withheld all-hosts (or all-hosts-like) permissions.
void GrantWithheldImpliedAllHosts(const Extension* extension);

Powered by Google App Engine
This is Rietveld 408576698