return extensions_.size();
}
+ // Returns true if all startup notifications have already been issued.
+ bool is_ready() const {
+ return ready_;
+ }
+
private:
// Contains data associated with a background application that is not
// represented by the Extension class.
// or removed.
void SendApplicationListChangedNotifications();
- // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED.
+ // Invoked by Observe for NOTIFICATION_EXTENSION_LOADED_DEPRECATED.
void OnExtensionLoaded(const extensions::Extension* extension);
// Invoked by Observe for NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED.
ObserverList<Observer, true> observers_;
Profile* profile_;
content::NotificationRegistrar registrar_;
+ bool ready_;
DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel);
};