| Index: chrome/browser/extensions/extension_prefs.h
|
| diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
|
| index bc9c2c70b14e6aab07b2d283eb4dd9f27b0af368..c9bfe5500d8639aea9a224ea1ee052210bfa166c 100644
|
| --- a/chrome/browser/extensions/extension_prefs.h
|
| +++ b/chrome/browser/extensions/extension_prefs.h
|
| @@ -269,6 +269,10 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
|
| void SetActivePermissions(const std::string& extension_id,
|
| const PermissionSet* permissions);
|
|
|
| + // Returns true if registered events are from this version of Chrome. Else,
|
| + // clear them, and return false.
|
| + bool CheckRegisteredEventsUpToDate();
|
| +
|
| // Returns the list of events that the given extension has registered for.
|
| std::set<std::string> GetRegisteredEvents(const std::string& extension_id);
|
| void SetRegisteredEvents(const std::string& extension_id,
|
| @@ -541,6 +545,9 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
|
| // Migrates the disable reasons from a single enum to a bit mask.
|
| void MigrateDisableReasons(const ExtensionIds& extension_ids);
|
|
|
| + // Clears the registered events for event pages.
|
| + void ClearRegisteredEvents();
|
| +
|
| // Checks whether there is a state pref for the extension and if so, whether
|
| // it matches |check_state|.
|
| bool DoesExtensionHaveState(const std::string& id,
|
|
|