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

Unified Diff: extensions/browser/management_policy.h

Issue 595363002: Add policy controlled permission block list for extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-fix
Patch Set: fix memory leaks Created 6 years, 2 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
« no previous file with comments | « components/policy/resources/policy_templates.json ('k') | extensions/browser/management_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/management_policy.h
diff --git a/extensions/browser/management_policy.h b/extensions/browser/management_policy.h
index a8578224f544ffc89c333fefbbf0d8d27dea4a8b..09b59b1c5e952c5218429311599e168a3c478fe5 100644
--- a/extensions/browser/management_policy.h
+++ b/extensions/browser/management_policy.h
@@ -7,6 +7,7 @@
#include <set>
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "extensions/common/extension.h"
@@ -92,6 +93,9 @@ class ManagementPolicy {
void RegisterProvider(Provider* provider);
void UnregisterProvider(Provider* provider);
+ // Like RegisterProvider(), but registers multiple providers instead.
+ void RegisterProviders(std::vector<Provider*> providers);
+
// Returns true if the user is permitted to install, load, and run the given
// extension. If not, |error| may be set to an appropriate message.
bool UserMayLoad(const Extension* extension, base::string16* error) const;
« no previous file with comments | « components/policy/resources/policy_templates.json ('k') | extensions/browser/management_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698