Index: chrome/browser/extensions/extension_management.h |
diff --git a/chrome/browser/extensions/extension_management.h b/chrome/browser/extensions/extension_management.h |
index 58c621f90c22a3010581e938b8b1788e80aa28ca..a686f34708d86b5ddfe0ed232638d60f8104d07a 100644 |
--- a/chrome/browser/extensions/extension_management.h |
+++ b/chrome/browser/extensions/extension_management.h |
@@ -70,7 +70,7 @@ class ExtensionManagement : public KeyedService { |
INSTALLATION_RECOMMENDED, |
}; |
- explicit ExtensionManagement(PrefService* pref_service); |
+ ExtensionManagement(PrefService* pref_service, bool is_signin_profile); |
~ExtensionManagement() override; |
// KeyedService implementations: |
@@ -153,6 +153,14 @@ class ExtensionManagement : public KeyedService { |
void OnExtensionPrefChanged(); |
void NotifyExtensionManagementPrefChanged(); |
+ // Helper to return an extension install list, in format specified by |
+ // ExternalPolicyLoader::AddExtension(). |
+ std::unique_ptr<base::DictionaryValue> GetInstallListByMode( |
+ InstallationMode installation_mode) const; |
+ |
+ // Helper to update |extension_dict| for forced installs. |
+ void UpdateForcedExtensions(const base::DictionaryValue* extension_dict); |
+ |
// Helper function to access |settings_by_id_| with |id| as key. |
// Adds a new IndividualSettings entry to |settings_by_id_| if none exists for |
// |id| yet. |
@@ -183,7 +191,8 @@ class ExtensionManagement : public KeyedService { |
// Extension settings applicable to all extensions. |
std::unique_ptr<internal::GlobalSettings> global_settings_; |
- PrefService* pref_service_; |
+ PrefService* pref_service_ = nullptr; |
+ bool is_signin_profile_ = false; |
base::ObserverList<Observer, true> observer_list_; |
PrefChangeRegistrar pref_change_registrar_; |