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

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: Comment updates and cleanup 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..a60d7d2e449a6229f3d98516a8913063ebf7d02d 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);
+ explicit PermissionsUpdater(content::BrowserContext* browser_context,
Devlin 2014/09/11 21:18:53 This doesn't need explicit anymore :)
gpdavis 2014/09/12 00:11:54 Ah, okay, we just need explicit for single paramet
Devlin 2014/09/12 00:26:46 Right. This stack overflow question does a good j
gpdavis 2014/09/12 00:30:57 Yep, I found that with a quick google search :) J
+ InitFlag init_flag);
~PermissionsUpdater();
// Adds the set of |permissions| to the |extension|'s active permission set
@@ -86,6 +93,8 @@ class PermissionsUpdater {
// The associated BrowserContext.
content::BrowserContext* browser_context_;
+
+ InitFlag init_flag_;
Devlin 2014/09/11 21:18:53 Comment.
gpdavis 2014/09/12 00:11:54 Done.
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698