Index: chrome/browser/extensions/extensions_service.h |
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h |
index 6a567492f792ac60040a99249737d19b91f8c8ef..e26f153154840d1957d4b98b84f46970ae4046ee 100644 |
--- a/chrome/browser/extensions/extensions_service.h |
+++ b/chrome/browser/extensions/extensions_service.h |
@@ -22,6 +22,7 @@ |
#include "chrome/browser/extensions/external_extension_provider.h" |
#include "chrome/browser/extensions/sandboxed_extension_unpacker.h" |
#include "chrome/common/extensions/extension.h" |
+#include "chrome/common/notification_registrar.h" |
class Browser; |
class DictionaryValue; |
@@ -52,6 +53,7 @@ class ExtensionUpdateService { |
// Manages installed and running Chromium extensions. |
class ExtensionsService |
: public ExtensionUpdateService, |
+ public NotificationObserver, |
public base::RefCountedThreadSafe<ExtensionsService> { |
public: |
@@ -209,6 +211,11 @@ class ExtensionsService |
// Whether the extension service is ready. |
bool is_ready() { return ready_; } |
+ // NotificationObserver |
+ virtual void Observe(NotificationType type, |
+ const NotificationSource& source, |
+ const NotificationDetails& details); |
+ |
private: |
// Look up an extension by ID, optionally including either or both of enabled |
// and disabled extensions. |
@@ -246,6 +253,8 @@ class ExtensionsService |
// Is the service ready to go? |
bool ready_; |
+ NotificationRegistrar registrar_; |
+ |
// Our extension updater, if updates are turned on. |
scoped_refptr<ExtensionUpdater> updater_; |