 Chromium Code Reviews
 Chromium Code Reviews Issue 8202011:
  Notify users about certain changes in installed extensions.  (Closed) 
  Base URL: http://git.chromium.org/git/chromium.git@trunk
    
  
    Issue 8202011:
  Notify users about certain changes in installed extensions.  (Closed) 
  Base URL: http://git.chromium.org/git/chromium.git@trunk| 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); |