Index: chrome/browser/extensions/extension_history_api.h |
diff --git a/chrome/browser/extensions/extension_history_api.h b/chrome/browser/extensions/extension_history_api.h |
index f6ddcdc5de0fea4e499dc836ac859bdca6fd6e97..bb6f55a12d7749e55b6d42aa1f70326e9d5a633b 100644 |
--- a/chrome/browser/extensions/extension_history_api.h |
+++ b/chrome/browser/extensions/extension_history_api.h |
@@ -6,10 +6,8 @@ |
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_HISTORY_API_H_ |
#pragma once |
-#include <map> |
#include <string> |
-#include "base/memory/singleton.h" |
#include "chrome/browser/extensions/extension_function.h" |
#include "chrome/browser/history/history.h" |
#include "chrome/browser/history/history_notifications.h" |
@@ -19,18 +17,12 @@ |
// extension system. |
class ExtensionHistoryEventRouter : public NotificationObserver { |
public: |
- // Single instance of the event router. |
- static ExtensionHistoryEventRouter* GetInstance(); |
+ explicit ExtensionHistoryEventRouter(); |
+ virtual ~ExtensionHistoryEventRouter(); |
- // Safe to call multiple times. |
void ObserveProfile(Profile* profile); |
private: |
- friend struct DefaultSingletonTraits<ExtensionHistoryEventRouter>; |
- |
- ExtensionHistoryEventRouter(); |
- virtual ~ExtensionHistoryEventRouter(); |
- |
// NotificationObserver::Observe. |
virtual void Observe(NotificationType type, |
const NotificationSource& source, |
@@ -49,10 +41,6 @@ class ExtensionHistoryEventRouter : public NotificationObserver { |
// Used for tracking registrations to history service notifications. |
NotificationRegistrar registrar_; |
- // Registered profiles. |
- typedef std::map<uintptr_t, Profile*> ProfileMap; |
- ProfileMap profiles_; |
- |
DISALLOW_COPY_AND_ASSIGN(ExtensionHistoryEventRouter); |
}; |