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

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

Issue 6125003: Make ExtensionBrowserEventRouter owned by ExtensionService.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/extension_browser_event_router.h
===================================================================
--- chrome/browser/extensions/extension_browser_event_router.h (revision 71520)
+++ chrome/browser/extensions/extension_browser_event_router.h (working copy)
@@ -10,7 +10,6 @@
#include <string>
#include "base/basictypes.h"
-#include "base/singleton.h"
#include "chrome/browser/browser_list.h"
#include "chrome/browser/extensions/extension_tabs_module.h"
#include "chrome/browser/tabs/tab_strip_model_observer.h"
@@ -36,11 +35,11 @@
public BrowserList::Observer,
public NotificationObserver {
public:
- // Get Browser-Global instance.
- static ExtensionBrowserEventRouter* GetInstance();
+ explicit ExtensionBrowserEventRouter(Profile* profile);
+ ~ExtensionBrowserEventRouter();
// Must be called once. Subsequent calls have no effect.
- void Init(Profile* profile);
+ void Init();
// BrowserList::Observer
virtual void OnBrowserAdded(const Browser* browser);
@@ -130,10 +129,6 @@
// Removes notifications added in RegisterForTabNotifications.
void UnregisterForTabNotifications(TabContents* contents);
- ExtensionBrowserEventRouter();
- ~ExtensionBrowserEventRouter();
- friend struct DefaultSingletonTraits<ExtensionBrowserEventRouter>;
-
NotificationRegistrar registrar_;
bool initialized_;
« no previous file with comments | « chrome/browser/extensions/browser_action_apitest.cc ('k') | chrome/browser/extensions/extension_browser_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698