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

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

Issue 536753003: Add recommended extension installation support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-3
Patch Set: rebase, more fix 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 | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/external_policy_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/external_policy_loader.h
diff --git a/chrome/browser/extensions/external_policy_loader.h b/chrome/browser/extensions/external_policy_loader.h
index b046ccafcd9ac01392bc7d8b3a9a6f84b4c16299..845deddd685a54bff241d6361104847a35a7a1ca 100644
--- a/chrome/browser/extensions/external_policy_loader.h
+++ b/chrome/browser/extensions/external_policy_loader.h
@@ -22,7 +22,16 @@ namespace extensions {
class ExternalPolicyLoader : public ExternalLoader,
public ExtensionManagement::Observer {
public:
- explicit ExternalPolicyLoader(ExtensionManagement* settings);
+ // Indicates the policies for installed extensions from this class, according
+ // to management polices.
+ enum InstallationType {
+ // Installed extensions are not allowed to be disabled or removed.
+ FORCED,
+ // Installed extensions are allowed to be disabled but not removed.
+ RECOMMENDED
+ };
+
+ ExternalPolicyLoader(ExtensionManagement* settings, InstallationType type);
// ExtensionManagement::Observer implementation
virtual void OnExtensionManagementSettingsChanged() override;
@@ -41,6 +50,7 @@ class ExternalPolicyLoader : public ExternalLoader,
virtual ~ExternalPolicyLoader();
ExtensionManagement* settings_;
+ InstallationType type_;
DISALLOW_COPY_AND_ASSIGN(ExternalPolicyLoader);
};
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/external_policy_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698