Index: chrome/browser/background_application_list_model.h |
=================================================================== |
--- chrome/browser/background_application_list_model.h (revision 85937) |
+++ chrome/browser/background_application_list_model.h (working copy) |
@@ -32,11 +32,12 @@ |
public: |
// Invoked when data that the model associates with the extension, such as |
// the Icon, has changed. |
- virtual void OnApplicationDataChanged(const Extension* extension); |
+ virtual void OnApplicationDataChanged(const Extension* extension, |
+ Profile* profile); |
// Invoked when the model detects a previously unknown extension and/or when |
// it no longer detects a previously known extension. |
- virtual void OnApplicationListChanged(); |
+ virtual void OnApplicationListChanged(Profile* profile); |
protected: |
virtual ~Observer(); |
@@ -68,6 +69,9 @@ |
// Returns true if the passed extension is a background app. |
static bool IsBackgroundApp(const Extension& extension); |
+ // Returns whether any of the extensions are background apps. |
+ bool HasBackgroundApp(); |
+ |
// Dissociate observer from this model. |
void RemoveObserver(Observer* observer); |
@@ -110,11 +114,11 @@ |
// Notifies observers that some of the data associated with this background |
// application, e. g. the Icon, has changed. |
- void OnApplicationDataChanged(const Extension* extension); |
+ void OnApplicationDataChanged(const Extension* extension, Profile* profile); |
// Notifies observers that at least one background application has been added |
// or removed. |
- void OnApplicationListChanged(); |
+ void OnApplicationListChanged(Profile* profile); |
// Invoked by Observe for EXTENSION_LOADED notifications. |
void OnExtensionLoaded(Extension* extension); |