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

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

Issue 2144313002: Plumbing for login apps device policy to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Devlin feedback Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_management.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_management.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698