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

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

Issue 8202011: Notify users about certain changes in installed extensions. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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: chrome/browser/extensions/extension_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index e791e8c840af8127f7c13339092c689513430ec6..e9910932fbca757367297b9fcbc35e0ffbe997ab 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -155,6 +155,29 @@ class ExtensionPrefs : public ExtensionContentSettingsStore::Observer {
// Based on extension id, checks prefs to see if it is blacklisted.
bool IsExtensionBlacklisted(const std::string& id);
+ // Based on extension id, checks prefs to see if it is orphaned.
+ bool IsExtensionOrphaned(const std::string& id);
+
+ // Whether the user has acknowledged an external extension.
+ bool IsExternalExtensionAcknowledged(const std::string& extension_id);
+ void AcknowledgeExternalExtension(const std::string& extension_id);
+
+ // Whether the user has acknowledged a blacklisted extension.
+ bool IsBlacklistedExtensionAcknowledged(const std::string& extension_id);
+ void AcknowledgeBlacklistedExtension(const std::string& extension_id);
+
+ // Whether the user has acknowledged an orphaned extension.
+ bool IsOrphanedExtensionAcknowledged(const std::string& extension_id);
+ void AcknowledgeOrphanedExtension(const std::string& extension_id);
+
+ // Whether the extension notification code has already run for the first
+ // time for this profile. Currently we use this flag to mean that any
+ // extensions that would trigger notifications should get silently
+ // acknowledged. This is a fuse. Calling it the first time returns false.
+ // Subsequent calls return true. It's not possible through an API to ever
+ // reset it. Don't call it unless you mean it!
+ bool IsNotificationSystemInitialized();
asargent_no_longer_on_chrome 2011/10/07 21:25:34 nit: "Notification" is becoming an overloaded term
miket_OOO 2011/10/07 22:38:22 Done.
+
// Is the extension with |extension_id| allowed by policy (checking both
// whitelist and blacklist).
bool IsExtensionAllowedByPolicy(const std::string& extension_id);

Powered by Google App Engine
This is Rietveld 408576698