Add recommended extension installation support
Extensions on recommended installation list will be automatically installed just like forced installed extensions, but are allowed to be disabled (not allowed to be uninstalled).
This CL adds a new ExternalLoader for recommended extension (use EXTERNAL_PREF_DOWNLOAD as location), another MustRemainInstalled() function to interface of ManagementPolicy, and related WebUI changes.
BUG=177351
Review URL: https://codereview.chromium.org/536753003
Cr-Commit-Position: refs/heads/master@{#299336}
diff --git a/chrome/browser/extensions/extension_management.h b/chrome/browser/extensions/extension_management.h
index d7410e2..735ed15 100644
--- a/chrome/browser/extensions/extension_management.h
+++ b/chrome/browser/extensions/extension_management.h
@@ -84,6 +84,9 @@
// ExternalPolicyLoader::AddExtension().
scoped_ptr<base::DictionaryValue> GetForceInstallList() const;
+ // Like GetForceInstallList(), but returns recommended install list instead.
+ scoped_ptr<base::DictionaryValue> GetRecommendedInstallList() const;
+
// Returns if an extension with id |id| is allowed to install or not.
bool IsInstallationAllowed(const ExtensionId& id) const;