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

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

Issue 536573003: Add ExtensionManagement based ExternalLoader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-2
Patch Set: 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/extension_management.h
diff --git a/chrome/browser/extensions/extension_management.h b/chrome/browser/extensions/extension_management.h
index 3f1a40511573c7087f105f822d6a845c6aadd7f1..778b2d01d30c619555587a7e793acf9f2623a51d 100644
--- a/chrome/browser/extensions/extension_management.h
+++ b/chrome/browser/extensions/extension_management.h
@@ -110,6 +110,13 @@ class ExtensionManagement : public KeyedService {
// from the command line, or when loaded as an unpacked extension).
bool BlacklistedByDefault();
+ // Returns the force install list, in format specified by
+ // ExternalPolicyLoader::AddExtension().
+ scoped_ptr<base::DictionaryValue> GetForceInstallList() const;
+
+ // Returns if an extension with id |id| is allowed to install or not.
+ bool IsInstallationAllowed(const ExtensionId& id) const;
+
// Helper function to read |settings_by_id_| with |id| as key. Returns a
// constant reference to default settings if |id| does not exist.
const IndividualSettings& ReadById(const ExtensionId& id) const;

Powered by Google App Engine
This is Rietveld 408576698