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

Unified Diff: extensions/browser/management_policy.h

Issue 536753003: Add recommended extension installation support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-3
Patch Set: rebase, more fix Created 6 years, 2 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: extensions/browser/management_policy.h
diff --git a/extensions/browser/management_policy.h b/extensions/browser/management_policy.h
index 149a598fc38527e595a2be38dc08475ea62694a8..a8578224f544ffc89c333fefbbf0d8d27dea4a8b 100644
--- a/extensions/browser/management_policy.h
+++ b/extensions/browser/management_policy.h
@@ -74,6 +74,11 @@ class ManagementPolicy {
Extension::DisableReason* reason,
base::string16* error) const;
+ // Similar to MustRemainEnabled, but for whether an extension must remain
+ // installed, and returns an error and/or reason if the caller needs it.
+ virtual bool MustRemainInstalled(const Extension* extension,
+ base::string16* error) const;
+
private:
DISALLOW_COPY_AND_ASSIGN(Provider);
};
@@ -109,6 +114,11 @@ class ManagementPolicy {
Extension::DisableReason* reason,
base::string16* error) const;
+ // Returns true immediately if any registered provider's MustRemainInstalled
+ // function returns true.
+ bool MustRemainInstalled(const Extension* extension,
+ base::string16* error) const;
+
// For use in testing.
void UnregisterAllProviders();
int GetNumProviders() const;
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | extensions/browser/management_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698