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

Unified Diff: chrome/browser/extensions/event_router.h

Issue 10941003: Reset registered events and dispatch runtime.onInstalled to all extensions when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ? Created 8 years, 3 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: chrome/browser/extensions/event_router.h
diff --git a/chrome/browser/extensions/event_router.h b/chrome/browser/extensions/event_router.h
index 891f34da40d8ef05f8eafa1670e99d413080aaa9..ac540d681e7c3bf35f3bc7539a71d7c788e1bbb1 100644
--- a/chrome/browser/extensions/event_router.h
+++ b/chrome/browser/extensions/event_router.h
@@ -30,6 +30,7 @@ class RenderProcessHost;
namespace extensions {
class Extension;
class ExtensionHost;
+class ExtensionPrefs;
struct Event;
@@ -54,7 +55,7 @@ class EventRouter : public content::NotificationObserver,
UserGestureState user_gesture,
const EventFilteringInfo& info);
- explicit EventRouter(Profile* profile);
+ EventRouter(Profile* profile, ExtensionPrefs* extension_prefs);
virtual ~EventRouter();
// Add or remove the process/extension pair as a listener for |event_name|.
@@ -241,6 +242,10 @@ class EventRouter : public content::NotificationObserver,
EventListenerMap listeners_;
+ // True if we should dispatch the event signalling that Chrome was updated
+ // upon loading an extension.
+ bool dispatch_chrome_updated_event_;
+
DISALLOW_COPY_AND_ASSIGN(EventRouter);
};

Powered by Google App Engine
This is Rietveld 408576698