Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: extensions/browser/event_router.h

Issue 2893693002: Remove NOTIFICATION_EXTENSION_ENABLED. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/event_router.h
diff --git a/extensions/browser/event_router.h b/extensions/browser/event_router.h
index 48bc266980cce4ce121f64a3402d8afbc5926e8a..f9d6e7ee41950ddc06107610c37ef3f067bfdfd5 100644
--- a/extensions/browser/event_router.h
+++ b/extensions/browser/event_router.h
@@ -18,8 +18,6 @@
#include "base/scoped_observer.h"
#include "base/values.h"
#include "components/keyed_service/core/keyed_service.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/render_process_host_observer.h"
#include "extensions/browser/event_listener_map.h"
#include "extensions/browser/extension_event_histogram_value.h"
@@ -45,7 +43,6 @@ struct Event;
struct EventListenerInfo;
class EventRouter : public KeyedService,
- public content::NotificationObserver,
public ExtensionRegistryObserver,
public EventListenerMap::Delegate,
public content::RenderProcessHostObserver {
@@ -227,12 +224,11 @@ class EventRouter : public KeyedService,
void SetRegisteredEvents(const std::string& extension_id,
const std::set<std::string>& events);
- void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) override;
// ExtensionRegistryObserver implementation.
void OnExtensionLoaded(content::BrowserContext* browser_context,
const Extension* extension) override;
+ void OnExtensionEnabled(content::BrowserContext* browser_context,
+ const Extension* extension) override;
void OnExtensionUnloaded(content::BrowserContext* browser_context,
const Extension* extension,
UnloadedExtensionReason reason) override;
@@ -327,8 +323,6 @@ class EventRouter : public KeyedService,
// tests.
ExtensionPrefs* extension_prefs_;
- content::NotificationRegistrar registrar_;
-
ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
extension_registry_observer_;

Powered by Google App Engine
This is Rietveld 408576698