Index: chrome/browser/extensions/extension_bookmarks_module.cc |
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc |
index e325aa01dbc879290259e28750aa531675578b17..3b204c35f4014ffa8773c07e3063f1ca60a5d74d 100644 |
--- a/chrome/browser/extensions/extension_bookmarks_module.cc |
+++ b/chrome/browser/extensions/extension_bookmarks_module.cc |
@@ -118,11 +118,6 @@ void BookmarksFunction::Observe(NotificationType type, |
Release(); // Balanced in Run(). |
} |
-// static |
-ExtensionBookmarkEventRouter* ExtensionBookmarkEventRouter::GetInstance() { |
- return Singleton<ExtensionBookmarkEventRouter>::get(); |
-} |
- |
ExtensionBookmarkEventRouter::ExtensionBookmarkEventRouter() { |
} |
@@ -130,10 +125,7 @@ ExtensionBookmarkEventRouter::~ExtensionBookmarkEventRouter() { |
} |
void ExtensionBookmarkEventRouter::Observe(BookmarkModel* model) { |
- if (models_.find(model) == models_.end()) { |
- model->AddObserver(this); |
- models_.insert(model); |
- } |
+ model->AddObserver(this); |
asargent_no_longer_on_chrome
2011/06/23 22:18:38
Is there a matching call to RemoveObserver somewhe
Yoyo Zhou
2011/06/24 17:21:38
There wasn't before... we should probably have one
asargent_no_longer_on_chrome
2011/06/24 18:56:39
Looks like BookmarkModelObserver's get their Bookm
Yoyo Zhou
2011/06/24 22:10:33
We don't keep a pointer to the model anymore; I gu
|
} |
void ExtensionBookmarkEventRouter::DispatchEvent(Profile *profile, |