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

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: Header update Created 6 years, 3 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..d77eec76e61fd692e9b26b15d517aae43f752d6d 100644
--- a/chrome/browser/extensions/permissions_updater.h
+++ b/chrome/browser/extensions/permissions_updater.h
@@ -27,7 +27,14 @@ 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(content::BrowserContext* browser_context,
+ InitFlag init_flag);
~PermissionsUpdater();
// Adds the set of |permissions| to the |extension|'s active permission set
@@ -86,6 +93,10 @@ class PermissionsUpdater {
// The associated BrowserContext.
content::BrowserContext* browser_context_;
+
+ // Initialization flag that determines whether prefs is consulted about the
+ // extension. Transient extensions should not have entries in prefs.
+ InitFlag init_flag_;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698