| 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..cee552cf9ca2b1d2cada65ef8a9ff4de81475dde 100644
|
| --- a/chrome/browser/extensions/extension_management.h
|
| +++ b/chrome/browser/extensions/extension_management.h
|
| @@ -23,7 +23,7 @@
|
| #include "extensions/common/manifest.h"
|
|
|
| class GURL;
|
| -class PrefService;
|
| +class Profile;
|
|
|
| namespace content {
|
| class BrowserContext;
|
| @@ -70,7 +70,7 @@ class ExtensionManagement : public KeyedService {
|
| INSTALLATION_RECOMMENDED,
|
| };
|
|
|
| - explicit ExtensionManagement(PrefService* pref_service);
|
| + explicit ExtensionManagement(Profile* profile);
|
| ~ExtensionManagement() override;
|
|
|
| // KeyedService implementations:
|
| @@ -138,7 +138,7 @@ class ExtensionManagement : public KeyedService {
|
| std::unique_ptr<internal::IndividualSettings>>;
|
| friend class ExtensionManagementServiceTest;
|
|
|
| - // Load all extension management preferences from |pref_service|, and
|
| + // Load all extension management preferences from the pref service, and
|
| // refresh the settings.
|
| void Refresh();
|
|
|
| @@ -153,6 +153,14 @@ class ExtensionManagement : public KeyedService {
|
| void OnExtensionPrefChanged();
|
| void NotifyExtensionManagementPrefChanged();
|
|
|
| + // Helper to update |extension_dict| for forced installs.
|
| + void UpdateForcedExtensions(const base::DictionaryValue* extension_dict);
|
| +
|
| + // Helper to return an extension install list, in format specified by
|
| + // ExternalPolicyLoader::AddExtension().
|
| + std::unique_ptr<base::DictionaryValue> GetInstallListByMode(
|
| + InstallationMode installation_mode) const;
|
| +
|
| // 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,7 @@ class ExtensionManagement : public KeyedService {
|
| // Extension settings applicable to all extensions.
|
| std::unique_ptr<internal::GlobalSettings> global_settings_;
|
|
|
| - PrefService* pref_service_;
|
| + Profile* profile_ = nullptr;
|
|
|
| base::ObserverList<Observer, true> observer_list_;
|
| PrefChangeRegistrar pref_change_registrar_;
|
|
|