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

Unified Diff: chrome/browser/extensions/extension_management.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/extension_management.h
diff --git a/chrome/browser/extensions/extension_management.h b/chrome/browser/extensions/extension_management.h
index c3eccda371e95de69224f680804df7892612f257..adface9fdabc53276579aa3e1d590ff8b93cea7d 100644
--- a/chrome/browser/extensions/extension_management.h
+++ b/chrome/browser/extensions/extension_management.h
@@ -143,9 +143,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 a list of extensions which will be automatically installed, in
+ // format specified in ExternalPolicyLoader::AddExtension().
+ // If |forced| is true, returned extensions are not permitted to be
+ // disabled by user, otherwise returned extensions are allowed to be
+ // disabled but not uninstalled.
+ // Note that these two lists have no extension in common.
+ scoped_ptr<base::DictionaryValue> GetAutoInstallList(bool forced) const;
Joao da Silva 2014/09/18 12:21:23 Use two methods instead of having the argument: s
binjin 2014/09/18 16:25:15 Done. I choosed to duplicated code here. since add
// Returns if an extension with id |id| is allowed to install or not.
bool IsInstallationAllowed(const ExtensionId& id) const;

Powered by Google App Engine
This is Rietveld 408576698