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

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

Issue 10689097: Enforce the 'requirements' field in manifests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Conforming to the doc Created 8 years, 5 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_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index 51d61168aba35660e9020487ff8b7f820664d04b..832381833887769c35d18e07c359d50efc84c111 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -147,6 +147,18 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
const Extension* extension,
bool did_escalate);
+ // Does the extension declare requirements that the system does not meet?
+ bool HasUnsupportedRequirements(const std::string& extension_id);
+
+ // Remove any unsupported requirement warnings that this extension has.
+ void ClearUnsupportedRequirements(const std::string& extension_id);
+
+ void SetUnsupportedRequirements(const std::string& extension_id,
+ std::vector<std::string> requirement_errors);
+
+ std::vector<std::string> GetUnsupportedRequirements(
+ const std::string& extension_id);
+
// Getter and setters for disabled reason.
Extension::DisableReason GetDisableReason(
const std::string& extension_id);

Powered by Google App Engine
This is Rietveld 408576698