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

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

Issue 536753003: Add recommended extension installation support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-3
Patch Set: add ui changes 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/external_policy_loader.h
diff --git a/chrome/browser/extensions/external_policy_loader.h b/chrome/browser/extensions/external_policy_loader.h
index a08e9ed5604d65f31a79f66efc6768eea6dc59a7..08d82ccf860afba1ffddf84eecdabfae8d5863af 100644
--- a/chrome/browser/extensions/external_policy_loader.h
+++ b/chrome/browser/extensions/external_policy_loader.h
@@ -22,7 +22,11 @@ namespace extensions {
class ExternalPolicyLoader : public ExternalLoader,
public ExtensionManagement::Observer {
public:
- explicit ExternalPolicyLoader(ExtensionManagement* settings);
+ // Indicates which kind of extensions this class will provide, according to
+ // management polcies.
+ enum InstallationType { FORCED, RECOMMENDED };
Joao da Silva 2014/09/18 12:21:23 Break each constant into a line and document what
binjin 2014/09/18 16:25:15 Done.
+
+ ExternalPolicyLoader(ExtensionManagement* settings, InstallationType type);
// ExtensionManagement::Observer implementation
virtual void OnExtensionManagementSettingsChanged() OVERRIDE;
@@ -41,6 +45,7 @@ class ExternalPolicyLoader : public ExternalLoader,
virtual ~ExternalPolicyLoader();
ExtensionManagement* settings_;
+ InstallationType type_;
DISALLOW_COPY_AND_ASSIGN(ExternalPolicyLoader);
};

Powered by Google App Engine
This is Rietveld 408576698