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

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

Issue 9960087: Revert 13676 - Revert 131665 - Add a preference for why an extension is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 39c0360986c0bb44495280abafcfd12b16aa39e9..d7ead3407b7e4a0428145bef49d31ec7f7194322 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -139,6 +139,12 @@ class ExtensionPrefs : public ExtensionContentSettingsStore::Observer,
void SetDidExtensionEscalatePermissions(const Extension* extension,
bool did_escalate);
+ // Getter and setters for disabled reason.
+ Extension::DisableReason GetDisableReason(const std::string& extension_id);
+ void SetDisableReason(const std::string& extension_id,
+ Extension::DisableReason disable_reason);
+ void RemoveDisableReason(const std::string& extension_id);
+
// Returns the version string for the currently installed extension, or
// the empty string if not found.
std::string GetVersionString(const std::string& extension_id);
« no previous file with comments | « chrome/browser/extensions/extension_management_browsertest.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698