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..91429d5135b33947a45832930dda95768a007c0c 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; |
@@ -117,6 +124,9 @@ class ExtensionManagement : public KeyedService { |
// Returns a constant reference to |global_settings_|. |
const GlobalSettings& ReadGlobalSettings() const; |
+ // Allow preference from user preference store, for testing purpose. |
+ void AllowUserPreferenceForTesting() const; |
Joao da Silva
2014/09/07 14:30:21
Revert these changes. See the comment on the brows
|
+ |
private: |
// Load all extension management preferences from |pref_service|, and |
// refresh the settings. |
@@ -156,6 +166,8 @@ class ExtensionManagement : public KeyedService { |
// Extension settings applicable to all extensions. |
GlobalSettings global_settings_; |
+ mutable bool allow_user_preference_; |
+ |
PrefService* pref_service_; |
ObserverList<Observer, true> observer_list_; |